diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 6f9898e..6c01aae 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,6 @@ { "core.min.js": "core.d23af1c652.min.js", - "vendor.min.js": "vendor.31d8689594.min.js", + "vendor.min.js": "vendor.723e6ba548.min.js", "mermaid.min.js": "mermaid.a7356d5ed1.min.js", "all.min.css": "all.65e547042d.min.css", "markdown.min.js": "markdown.6c8dfb7b1d.min.js", diff --git a/public/script/app.js b/public/script/app.js index 39b2bb8..ca0cf53 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -2445,7 +2445,7 @@ export const anonymizeController = function (state, http, html, params, location } selectedSourceKey = sourceKey(parseGithubUrl(state.sourceUrl)); if (await restoreGitHubDraft()) return; - await Promise.all([getRepoDetails(), getReadme()]); + await Promise.all([getRepoDetails(), getReadme().then(anonymizeReadme)]); anonymizeReadme(); }, @@ -2583,7 +2583,9 @@ export const anonymizeController = function (state, http, html, params, location } else { state.detectedType = "repo"; void findPreviousConfigurations(); - await Promise.all([getRepoDetails(), getReadme()]); + // Preview the README as soon as it arrives instead of after the + // details and branch list; rerun once those fill in the options. + await Promise.all([getRepoDetails(), getReadme().then(anonymizeReadme)]); anonymizeReadme(); } } catch (_) { /* Source errors are displayed by the request handlers. */ } @@ -2610,7 +2612,7 @@ export const anonymizeController = function (state, http, html, params, location if (!keepSavedCommit && !(state._preservingDraft && state.source.commit)) { state.source.commit = selected.commit; } - state.readme = selected.readme; + useBranchReadme(selected); await getReadme(); anonymizeReadme(); @@ -2647,7 +2649,7 @@ export const anonymizeController = function (state, http, html, params, location if (!keepSavedCommit && !(state._preservingDraft && state.source.commit)) { state.source.commit = selected[0].commit; } - state.readme = selected[0].readme; + useBranchReadme(selected[0]); await getReadme(force); } } catch (error) { @@ -2691,17 +2693,34 @@ export const anonymizeController = function (state, http, html, params, location } finally { finishSourceRequest(request); } } + // Branch the loaded README belongs to; "" is the default branch, asked + // for before the branch list names it. + let readmeBranch = null; + const readmeMatches = (branch) => readmeBranch !== null + && (readmeBranch === branch || (readmeBranch === "" && !!branch && branch === state.details?.defaultBranch)); + // Selecting a branch used to blank the README and fetch it again even + // when the default-branch README was already loaded. + function useBranchReadme(branch) { + if (state.readme && readmeMatches(branch.name)) return; + state.readme = branch.readme; + readmeBranch = branch.readme ? branch.name : null; + } async function getReadme(force) { if (state.readme && !force) return state.readme; const o = parseGithubUrl(state.sourceUrl); const request = beginSourceRequest(); + // A README asked for the default branch stays valid once the branch + // list selects that branch. + const stillWanted = () => isCurrentSource(request) + && (request.branch === state.source.branch + || (!request.branch && state.source.branch === state.details?.defaultBranch)); try { const res = await http.get(`/api/repo/${o.owner}/${o.repo}/readme`, { - params: { reconnect: state.reconnectingSource ? "1" : undefined, anonymizedRepoId: state.isUpdate && params.repoId && parseRepoFullName(state.sourceUrl) === state._originalFullName ? params.repoId : undefined, connection: state.githubConnection, force: force === true ? "1" : "0", branch: state.source.branch, repositoryID: sourceRepositoryID() }, + params: { reconnect: state.reconnectingSource ? "1" : undefined, anonymizedRepoId: state.isUpdate && params.repoId && parseRepoFullName(state.sourceUrl) === state._originalFullName ? params.repoId : undefined, connection: state.githubConnection, force: force === true ? "1" : "0", branch: request.branch, repositoryID: sourceRepositoryID() }, }); - if (isCurrentSource(request, true)) state.readme = res.data; + if (stillWanted()) { state.readme = res.data; readmeBranch = request.branch; } } catch (error) { - if (isCurrentSource(request, true)) state.readme = ""; + if (stillWanted()) { state.readme = ""; readmeBranch = null; } } finally { finishSourceRequest(request); } } @@ -2952,9 +2971,9 @@ export const anonymizeController = function (state, http, html, params, location link: !!state.options.link, repoId: state.repoId, }; - if (state.source && state.source.branch) { - opts.branchName = state.source.branch; - } + // Before the branch list loads, the README is the default branch's. + const branch = state.source?.branch || state.details?.defaultBranch; + if (branch) opts.branchName = branch; try { const o = parseGithubUrl(state.sourceUrl); opts.repoName = `${o.owner}/${o.repo}`; @@ -2966,6 +2985,7 @@ export const anonymizeController = function (state, http, html, params, location function makePreviewBatcher(kind, buildBody, applyResult) { let pendingTimer = null; let generation = 0; + let shownKey = null; const schedule = () => { if (state.detectedType !== kind) return; if (pendingTimer) timeout.cancel(pendingTimer); @@ -2975,9 +2995,14 @@ export const anonymizeController = function (state, http, html, params, location pendingTimer = null; const body = buildBody(); if (!body) { state.previewStatus = "idle"; return; } + if (body.wait) { state.previewStatus = state.sourceLoading ? "loading" : "idle"; return; } + const key = JSON.stringify(body); + if (key === shownKey) { state.previewStatus = "ready"; return; } + shownKey = null; http.post("/api/anonymize-preview", body).then(res => { if (current !== generation) return; applyResult(res.data, body); + shownKey = key; state.previewStatus = "ready"; }).catch(() => { if (current === generation) state.previewStatus = "error"; @@ -2986,6 +3011,7 @@ export const anonymizeController = function (state, http, html, params, location }; schedule.cancel = () => { generation++; + shownKey = null; if (pendingTimer) timeout.cancel(pendingTimer); pendingTimer = null; }; @@ -3141,7 +3167,12 @@ export const anonymizeController = function (state, http, html, params, location return { content: fileRaw, options: previewOptions() }; } if (!state.readme) return null; - return { content: state.readme, options: previewOptions() }; + const options = previewOptions(); + // Self-links are rewritten only once the branch and repository ID + // are known; until the details load, keep the README hidden rather + // than show its GitHub links. + if (!options.branchName || !options.repoId) return { wait: true }; + return { content: state.readme, options }; }, (data) => { if (typeof data?.content !== "string") throw Error("Invalid preview response"); @@ -3218,6 +3249,10 @@ export const anonymizeController = function (state, http, html, params, location function anonymizeReadme() { if (!state.anonymize || !state.anonymize.terms) return; + // Wait for the details (branch and repository ID) before the first + // render; the details watcher schedules it once they arrive. + const options = previewOptions(); + if (!options.branchName || !options.repoId) return; // The "regex characters detected" hint is informational, not a blocker // — IP addresses, escaped chars, etc. are all legitimate terms (#430). scheduleRepoPreview(); @@ -3676,6 +3711,7 @@ export const anonymizeController = function (state, http, html, params, location if (state.detectedType === "gist") refreshGistPreview(); }); state.watch("details", () => { + if (state.detectedType === "repo") anonymizeReadme(); if (state.detectedType === "pr") refreshPrPreview(); if (state.detectedType === "gist") refreshGistPreview(); }, true); diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index cbf4f7f..57ed750 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -1,61 +1,61 @@ -"use strict";(()=>{var cd=Object.defineProperty;var pd=e=>{throw TypeError(e)};var Jm=(e,t,s)=>t in e?cd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var Zm=(e,t)=>{for(var s in t)cd(e,s,{get:t[s],enumerable:!0})};var lt=(e,t,s)=>Jm(e,typeof t!="symbol"?t+"":t,s),aa=(e,t,s)=>t.has(e)||pd("Cannot "+s);var ue=(e,t,s)=>(aa(e,t,"read from private field"),s?s.call(e):t.get(e)),He=(e,t,s)=>t.has(e)?pd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ke=(e,t,s,i)=>(aa(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),ze=(e,t,s)=>(aa(e,t,"access private method"),s);var fd=(e,t,s,i)=>({set _(r){Ke(e,t,r,s)},get _(){return ue(e,t,i)}});var ve=["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 be={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function md(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),r=s.get("intentId"),o=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{64}$/.test(o||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:r,token:o}}function hd(e,t){let{http:s,promises:i,window:r}=t,o=t.takeReviewHandoff(),u=o?{clientId:o.clientId,intentId:o.intentId}:null,p,d,g,m,v,y=!0,C,k=i.defer(),w=()=>[...r.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:o?"":"Open a new artifact link from your submission. This link is missing or invalid."});let R=()=>y&&e.user?.username===v;function b(){y=!1,o=p=d=void 0,k.resolve(),r.clearTimeout(C)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,L=>{!v&&L?v=L:v&&L!==v&&(b(),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 P=()=>({timeout:k.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":d}}),D=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(!y||!o||e.busy||e.uncertain||e.saved||!e.user?.username)return;v=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,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,r.clearTimeout(C),m||(m=w());try{let H=(await s.get("/api/review-consent/csrf",{timeout:k.promise})).data;if(!R())return;if(d=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(d||""))throw new Error("invalid_csrf");let _=(await s.post("/api/review-consent/preview",{repositoryId:L,intent:{...o,requestId:m}},P())).data;if(!R())return;if(!_||typeof _.ticket!="string"||!_.ticket||_.ticket.length>8192||typeof _.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(_.policy?.access)||!Number.isSafeInteger(_.policy.version)||!Number.isFinite(Date.parse(_.policy.retainUntil))||!Number.isFinite(Date.parse(_.expiresAt))||Date.parse(_.expiresAt)<=Date.now()||Date.parse(_.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=_.ticket,g=w(),e.preview={repositoryName:_.repositoryName,policy:{..._.policy},expiresAt:_.expiresAt},C=r.setTimeout(()=>{y&&(e.expired=!0)},Math.max(0,Date.parse(_.expiresAt)-Date.now()))}catch(H){R()&&(e.error=D(H))}finally{R()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!R()||e.busy||e.saved||!p||!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 s.post("/api/review-consent/confirm",{ticket:p,requestId:g,acceptAccess:!0,acceptRetention:!0},P())).data;if(!R())return;if(L?.requestId!==g||!Number.isFinite(Date.parse(L.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,o=void 0,e.handoffEnabled||(p=void 0)}catch{R()&&(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{R()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!R()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let L,H=()=>{L?.remove(),r.removeEventListener("securitypolicyviolation",_)},_=W=>{W.violatedDirective?.startsWith("form-action")&&(H(),R()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let W=(await s.post("/api/review-consent/handoff",{ticket:p},P())).data;if(!R())return;let re=W?.completion,F=new URL(W?.callbackUrl);if(!re||Object.keys(re).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||re.contract!=="4open.artifacts/1"||re.clientId!==u.clientId||re.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(re.code||"")||!Number.isFinite(Date.parse(re.expiresAt))||Date.parse(re.expiresAt)<=Date.now()||Date.parse(re.expiresAt)>Date.now()+3e5||F.protocol!=="https:"||F.href!==W.callbackUrl||F.username||F.password||W.callbackUrl.includes("?")||W.callbackUrl.includes("#"))throw new Error("invalid_handoff");L=r.document.createElement("form"),L.method="POST",L.action=F.href;let V=r.document.createElement("input");V.type="hidden",V.name="completion",V.value=JSON.stringify(re),L.appendChild(V),r.document.body.appendChild(L),r.addEventListener("securitypolicyviolation",_),e.on("dispose",H),L.submit()}catch{H(),R()&&(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 Pi=new Map,th=be;function ls(e){if(!Pi.has(e)){let t=document.createElement("script");t.src=th[e];let s=new Promise((i,r)=>{t.onload=i,t.onerror=()=>{Pi.delete(e),t.remove(),r(new Error(`Unable to load ${e}. Please retry.`))}});Pi.set(e,s),document.head.appendChild(t)}return Pi.get(e)}async function Di(){await ls("editor"),ace.config.set("basePath","/script/external/ace/")}function Ls(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var rt={},Gn=[],zt=()=>{},da=()=>!1,$s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fs=e=>e.startsWith("onUpdate:"),yt=Object.assign,bo=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},nh=Object.prototype.hasOwnProperty,et=(e,t)=>nh.call(e,t),Ve=Array.isArray,In=e=>wo(e)==="[object Map]",rn=e=>wo(e)==="[object Set]",gd=e=>wo(e)==="[object Date]";var Fe=e=>typeof e=="function",mt=e=>typeof e=="string",Wt=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",ua=e=>(st(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),wd=Object.prototype.toString,wo=e=>wd.call(e),ca=e=>wo(e).slice(8,-1),Ai=e=>wo(e)==="[object Object]",Ii=e=>mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Us=Ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var Oi=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},sh=/-\w/g,wt=Oi(e=>e.replace(sh,t=>t.slice(1).toUpperCase())),oh=/\B([A-Z])/g,gn=Oi(e=>e.replace(oh,"-$1").toLowerCase()),ds=Oi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ko=Oi(e=>e?`on${ds(e)}`:""),tn=(e,t)=>!Object.is(e,t),Bs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Hs=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var yd,Co=()=>yd||(yd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function De(e){if(Ve(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(ih).forEach(s=>{if(s){let i=s.split(rh);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function T(e){let t="";if(mt(e))t=e;else if(Ve(e))for(let s=0;san(s,t))}var Ed=e=>!!(e&&e.__v_isRef===!0),c=e=>mt(e)?e:e==null?"":Ve(e)||st(e)&&(e.toString===wd||!Fe(e.toString))?Ed(e)?c(e.value):JSON.stringify(e,Sd,2):String(e),Sd=(e,t)=>Ed(t)?Sd(e,t.value):In(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,r],o)=>(s[la(i,o)+" =>"]=r,s),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>la(s))}:Wt(t)?la(t):st(t)&&!Ve(t)&&!Ai(t)?String(t):t,la=(e,t="")=>{var s;return Wt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function ph(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var kt,Ro=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&&kt&&(kt.active?(this.parent=kt,this.index=(kt.scopes||(kt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(kt===this)kt=this.prevScope;else{let t=kt;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 s,i;for(s=0,i=this.effects.length;s0)return;if(No){let t=No;for(No=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;So;){let t=So;for(So=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Id(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Od(e){let t,s=e.depsTail,i=s;for(;i;){let r=i.prevDep;i.version===-1?(i===s&&(s=r),Na(i),fh(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=s}function ha(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Md(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Md(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===To)||(e.globalVersion=To,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ha(e))))return;e.flags|=2;let t=e.dep,s=pt,i=ln;pt=e,ln=!0;try{Id(e);let r=e.fn(e._value);(t.version===0||tn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{pt=s,ln=i,Od(e),e.flags&=-3}}function Na(e,t=!1){let{dep:s,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Na(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function fh(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var ln=!0,Vd=[];function dn(){Vd.push(ln),ln=!1}function un(){let e=Vd.pop();ln=e===void 0?!0:e}function Nd(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=pt;pt=void 0;try{t()}finally{pt=s}}}var To=0,ga=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Po=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(!pt||!ln||pt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==pt)s=this.activeLink=new ga(pt,this),pt.deps?(s.prevDep=pt.depsTail,pt.depsTail.nextDep=s,pt.depsTail=s):pt.deps=pt.depsTail=s,qd(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=pt.depsTail,s.nextDep=void 0,pt.depsTail.nextDep=s,pt.depsTail=s,pt.deps===s&&(pt.deps=i)}return s}trigger(t){this.version++,To++,this.notify(t)}notify(t){Ea();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Sa()}}};function qd(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)qd(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var ya=new WeakMap,cs=Symbol(""),va=Symbol(""),Do=Symbol("");function Pt(e,t,s){if(ln&&pt){let i=ya.get(e);i||ya.set(e,i=new Map);let r=i.get(s);r||(i.set(s,r=new Po),r.map=i,r.key=s),r.track()}}function vn(e,t,s,i,r,o){let u=ya.get(e);if(!u){To++;return}let p=d=>{d&&d.trigger()};if(Ea(),t==="clear")u.forEach(p);else{let d=Ve(e),g=d&&Ii(s);if(d&&s==="length"){let m=Number(i);u.forEach((v,y)=>{(y==="length"||y===Do||!Wt(y)&&y>=m)&&p(v)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),g&&p(u.get(Do)),t){case"add":d?g&&p(u.get("length")):(p(u.get(cs)),In(e)&&p(u.get(va)));break;case"delete":d||(p(u.get(cs)),In(e)&&p(u.get(va)));break;case"set":In(e)&&p(u.get(cs));break}}Sa()}function zs(e){let t=nt(e);return t===e||(Pt(t,"iterate",Do),jt(e))?t:nn(e)?wn(e)?t.map(s=>Mn(Kt(s))):t.map(Mn):t.map(Kt)}function Ao(e){return Pt(e=nt(e),"iterate",Do),e}function yn(e,t){return nn(e)?Mn(wn(e)?Kt(t):t):Kt(t)}var mh={__proto__:null,[Symbol.iterator](){return fa(this,Symbol.iterator,e=>yn(this,e))},concat(...e){return zs(this).concat(...e.map(t=>Ve(t)?zs(t):t))},entries(){return fa(this,"entries",e=>(e[1]=yn(this,e[1]),e))},every(e,t){return On(this,"every",e,t,void 0,arguments)},filter(e,t){return On(this,"filter",e,t,s=>s.map(i=>yn(this,i)),arguments)},find(e,t){return On(this,"find",e,t,s=>yn(this,s),arguments)},findIndex(e,t){return On(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return On(this,"findLast",e,t,s=>yn(this,s),arguments)},findLastIndex(e,t){return On(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return On(this,"forEach",e,t,void 0,arguments)},includes(...e){return ma(this,"includes",e)},indexOf(...e){return ma(this,"indexOf",e)},join(e){return zs(this).join(e)},lastIndexOf(...e){return ma(this,"lastIndexOf",e)},map(e,t){return On(this,"map",e,t,void 0,arguments)},pop(){return Eo(this,"pop")},push(...e){return Eo(this,"push",e)},reduce(e,...t){return Td(this,"reduce",e,t)},reduceRight(e,...t){return Td(this,"reduceRight",e,t)},shift(){return Eo(this,"shift")},some(e,t){return On(this,"some",e,t,void 0,arguments)},splice(...e){return Eo(this,"splice",e)},toReversed(){return zs(this).toReversed()},toSorted(e){return zs(this).toSorted(e)},toSpliced(...e){return zs(this).toSpliced(...e)},unshift(...e){return Eo(this,"unshift",e)},values(){return fa(this,"values",e=>yn(this,e))}};function fa(e,t,s){let i=Ao(e),r=i[t],o=r.call(i);if(i!==e&&!jt(e)){if(o[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(o));return u.next=()=>Rd(o.next(),s),r!==Ld[t]&&Object.defineProperties(u,{return:{get(){let p=o.return;return typeof p=="function"?p.bind(o):p}},throw:{get(){let p=o.throw;return typeof p=="function"?p.bind(o):p}}}),u}o._next=o.next,o.next=()=>Rd(o._next(),s)}return o}function Rd(e,t){return e.done||(e.value=t(e.value)),e}var Ld=Array.prototype;function On(e,t,s,i,r,o){let u=Ao(e),p=u!==e&&!jt(e),d=u[t];if(d!==Ld[t]){let v=d.apply(e,o);return p?Kt(v):v}let g=s;u!==e&&(p?g=function(v,y){return s.call(this,yn(e,v),y,e)}:s.length>2&&(g=function(v,y){return s.call(this,v,y,e)}));let m=d.call(u,g,i);return p&&r?r(m):m}function Td(e,t,s,i){let r=Ao(e),o=r!==e&&!jt(e),u=s,p=!1;r!==e&&(o?(p=i.length===0,u=function(g,m,v){return p&&(p=!1,g=yn(e,g)),s.call(this,g,yn(e,m),v,e)}):s.length>3&&(u=function(g,m,v){return s.call(this,g,m,v,e)}));let d=r[t](u,...i);return p?yn(e,d):d}function ma(e,t,s){let i=nt(e);Pt(i,"iterate",Do);let r=i[t](...s);return(r===-1||r===!1)&&Oo(s[0])?(s[0]=nt(s[0]),i[t](...s)):r}function Eo(e,t,s=[]){dn(),Ea();let i=nt(e)[t].apply(e,s);return Sa(),un(),i}var hh=Ls("__proto__,__v_isRef,__isVue"),$d=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt));function gh(e){Wt(e)||(e=String(e));let t=nt(this);return Pt(t,"has",e),t.hasOwnProperty(e)}var Ui=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(r?o?Nh:Bd:o?Ud:Fd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ve(t);if(!r){let d;if(u&&(d=mh[s]))return d;if(s==="hasOwnProperty")return gh}let p=Reflect.get(t,s,St(t)?t:i);if((Wt(s)?$d.has(s):hh(s))||(r||Pt(t,"get",s),o))return p;if(St(p)){let d=u&&Ii(s)?p:p.value;return r&&st(d)?Hi(d):d}return st(p)?r?Hi(p):ut(p):p}},Bi=class extends Ui{constructor(t=!1){super(!1,t)}set(t,s,i,r){let o=t[s],u=Ve(t)&&Ii(s);if(!this._isShallow){let g=nn(o);if(!jt(i)&&!nn(i)&&(o=nt(o),i=nt(i)),!u&&St(o)&&!St(i))return g||(o.value=i),!0}let p=u?Number(s)e,Li=e=>Reflect.getPrototypeOf(e);function wh(e,t,s){return function(...i){let r=this.__v_raw,o=nt(r),u=In(o),p=e==="entries"||e===Symbol.iterator&&u,d=e==="keys"&&u,g=r[e](...i),m=s?wa:t?Mn:Kt;return!t&&Pt(o,"iterate",d?va:cs),yt(Object.create(g),{next(){let{value:v,done:y}=g.next();return y?{value:v,done:y}:{value:p?[m(v[0]),m(v[1])]:m(v),done:y}}})}}function $i(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kh(e,t){let s={get(r){let o=this.__v_raw,u=nt(o),p=nt(r);e||(tn(r,p)&&Pt(u,"get",r),Pt(u,"get",p));let{has:d}=Li(u),g=t?wa:e?Mn:Kt;if(d.call(u,r))return g(o.get(r));if(d.call(u,p))return g(o.get(p));o!==u&&o.get(r)},get size(){let r=this.__v_raw;return!e&&Pt(nt(r),"iterate",cs),r.size},has(r){let o=this.__v_raw,u=nt(o),p=nt(r);return e||(tn(r,p)&&Pt(u,"has",r),Pt(u,"has",p)),r===p?o.has(r):o.has(r)||o.has(p)},forEach(r,o){let u=this,p=u.__v_raw,d=nt(p),g=t?wa:e?Mn:Kt;return!e&&Pt(d,"iterate",cs),p.forEach((m,v)=>r.call(o,g(m),g(v),u))}};return yt(s,e?{add:$i("add"),set:$i("set"),delete:$i("delete"),clear:$i("clear")}:{add(r){let o=nt(this),u=Li(o),p=nt(r),d=!t&&!jt(r)&&!nn(r)?p:r;return u.has.call(o,d)||tn(r,d)&&u.has.call(o,r)||tn(p,d)&&u.has.call(o,p)||(o.add(d),vn(o,"add",d,d)),this},set(r,o){!t&&!jt(o)&&!nn(o)&&(o=nt(o));let u=nt(this),{has:p,get:d}=Li(u),g=p.call(u,r);g||(r=nt(r),g=p.call(u,r));let m=d.call(u,r);return u.set(r,o),g?tn(o,m)&&vn(u,"set",r,o,m):vn(u,"add",r,o),this},delete(r){let o=nt(this),{has:u,get:p}=Li(o),d=u.call(o,r);d||(r=nt(r),d=u.call(o,r));let g=p?p.call(o,r):void 0,m=o.delete(r);return d&&vn(o,"delete",r,void 0,g),m},clear(){let r=nt(this),o=r.size!==0,u=void 0,p=r.clear();return o&&vn(r,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=wh(r,e,t)}),s}function Ra(e,t){let s=kh(e,t);return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?i:Reflect.get(et(s,r)&&r in i?s:i,r,o)}var Ch={get:Ra(!1,!1)},Eh={get:Ra(!1,!0)},Sh={get:Ra(!0,!1)};var Fd=new WeakMap,Ud=new WeakMap,Bd=new WeakMap,Nh=new WeakMap;function Rh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ut(e){return nn(e)?e:Ta(e,!1,yh,Ch,Fd)}function Io(e){return Ta(e,!1,bh,Eh,Ud)}function Hi(e){return Ta(e,!0,vh,Sh,Bd)}function Ta(e,t,s,i,r){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let o=r.get(e);if(o)return o;let u=Rh(ca(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return r.set(e,p),p}function wn(e){return nn(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function jt(e){return!!(e&&e.__v_isShallow)}function Oo(e){return e?!!e.__v_raw:!1}function nt(e){let t=e&&e.__v_raw;return t?nt(t):e}function kn(e){return!et(e,"__v_skip")&&Object.isExtensible(e)&&Mi(e,"__v_skip",!0),e}var Kt=e=>st(e)?ut(e):e,Mn=e=>st(e)?Hi(e):e;function St(e){return e?e.__v_isRef===!0:!1}function bt(e){return Hd(e,!1)}function ji(e){return Hd(e,!0)}function Hd(e,t){return St(e)?e:new ka(e,t)}var ka=class{constructor(t,s){this.dep=new Po,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:nt(t),this._value=s?t:Kt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||jt(t)||nn(t);t=i?t:nt(t),tn(t,s)&&(this._rawValue=t,this._value=i?t:Kt(t),this.dep.trigger())}};function qn(e){return St(e)?e.value:e}var Th={get:(e,t,s)=>t==="__v_raw"?e:qn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let r=e[t];return St(r)&&!St(s)?(r.value=s,!0):Reflect.set(e,t,s,i)}};function _i(e){return wn(e)?e:new Proxy(e,Th)}var Ca=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Po(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=To-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&pt!==this)return Ad(this,!0),!0}get value(){let t=this.dep.track();return Md(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function zd(e,t,s=!1){let i,r;return Fe(e)?i=e:(i=e.get,r=e.set),new Ca(i,r,s)}var Fi={},zi=new WeakMap,us;function jd(e,t=!1,s=us){if(s){let i=zi.get(s);i||zi.set(s,i=[]),i.push(e)}}function _d(e,t,s=rt){let{immediate:i,deep:r,once:o,scheduler:u,augmentJob:p,call:d}=s,g=H=>{(s.onWarn||ph)("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=H=>r?H:jt(H)||r===!1||r===0?bn(H,1):bn(H),v,y,C,k,w=!1,R=!1;if(St(e)?(y=()=>e.value,w=jt(e)):wn(e)?(y=()=>m(e),w=!0):Ve(e)?(R=!0,w=e.some(H=>wn(H)||jt(H)),y=()=>e.map(H=>{if(St(H))return H.value;if(wn(H))return m(H);if(Fe(H))return d?d(H,2):H()})):Fe(e)?t?y=d?()=>d(e,2):e:y=()=>{if(C){dn();try{C()}finally{un()}}let H=us;us=v;try{return d?d(e,3,[k]):e(k)}finally{us=H}}:y=zt,t&&r){let H=y,_=r===!0?1/0:r;y=()=>bn(H(),_)}let b=Pd(),P=()=>{v.stop(),b&&b.active&&bo(b.effects,v)};if(o&&t){let H=t;t=(..._)=>{try{return H(..._)}finally{P()}}}let D=R?new Array(e.length).fill(Fi):Fi,L=H=>{if(!(!(v.flags&1)||!v.dirty&&!H))if(t){let _=v.run();if(H||r||w||(R?_.some((W,re)=>tn(W,D[re])):tn(_,D))){let W=us;dn();try{C&&C(),us=v;let re=[_,D===Fi?void 0:R&&D[0]===Fi?[]:D,k];D=_,d?d(t,3,re):t(...re)}finally{us=W,un()}}}else v.run()};return p&&p(L),v=new js(y),v.scheduler=u?()=>u(L,!1):L,k=H=>jd(H,!1,v),C=v.onStop=()=>{let H=zi.get(v);if(H){if(d)d(H,4);else for(let _ of H)_();zi.delete(v)}},t?i?L(!0):D=v.run():u?u(L.bind(null,!0),!0):v.run(),P.pause=v.pause.bind(v),P.resume=v.resume.bind(v),P.stop=P,P}function bn(e,t=1/0,s){if(t<=0||!st(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,St(e))bn(e.value,t,s);else if(Ve(e))for(let i=0;i{bn(i,t,s)});else if(Ai(e)){for(let i in e)bn(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&bn(e[i],t,s)}return e}function _o(e,t,s,i){try{return i?e(...i):e()}catch(r){Go(r,t,s)}}function sn(e,t,s,i){if(Fe(e)){let r=_o(e,t,s,i);return r&&ua(r)&&r.catch(o=>{Go(o,t,s)}),r}if(Ve(e)){let r=[];for(let o=0;o>>1,r=Vt[i],o=Uo(r);o=Uo(s)?Vt.push(e):Vt.splice(Oh(t),0,e),e.flags|=1,au()}}function au(){Ki||(Ki=ru.then(cu))}function lu(e){if(!Ve(e))Wn&&e.id===-1?Wn.splice(_s+1,0,e):e.flags&1||(En.push(e),e.flags|=1);else for(let t=0;t=t))continue;Vt.splice(i,1),i=e?i-1:cn,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function uu(e,t,s=0){if(En.length){let i=En,r=0;if(t){i=[];for(let u=0;uUo(u)-Uo(p));if(En.length=r,Wn){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function cu(e){let t=zt;try{for(cn=0;cn{i._d&&Ji(-1);let o=Yi(t),u=ms.length,p;try{p=e(...r)}finally{for(let d=ms.length;d>u;d--)Hu();Yi(o),i._d&&Ji(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function O(e,t){if(Yt===null)return e;let s=ir(Yt),i=e.dirs||(e.dirs=[]);for(let r=0;r1)return s&&Fe(t)?t.call(i&&i.proxy):t}}var qh=Symbol.for("v-scx"),Lh=()=>{{let e=Gt(qh);return e}};function dt(e,t,s){return fu(e,t,s)}function fu(e,t,s=rt){let{immediate:i,deep:r,flush:o,once:u}=s,p=yt({},s),d=t&&i||!t&&o!=="post",g;if(Ks){if(o==="sync"){let C=Lh();g=C.__watcherHandles||(C.__watcherHandles=[])}else if(!d){let C=()=>{};return C.stop=zt,C.resume=zt,C.pause=zt,C}}let m=Dt;p.call=(C,k,w)=>sn(C,m,k,w);let v=!1;o==="post"?p.scheduler=C=>{C.i=m,_t(C,m&&m.suspense)}:o!=="sync"&&(v=!0,p.scheduler=(C,k)=>{k?C():Ua(C)}),p.augmentJob=C=>{t&&(C.flags|=4),v&&(C.flags|=2,m&&(C.id=m.uid,C.i=m))};let y=_d(e,t,p);return Ks&&(g?g.push(y):d&&y()),y}function $h(e,t,s){let i=this.proxy,r=mt(e)?e.includes(".")?mu(i,e):()=>i[e]:e.bind(i,i),o;Fe(t)?o=t:(o=t.handler,s=t);let u=Yo(this),p=fu(r,o.bind(i),s);return u(),p}function mu(e,t){let s=t.split(".");return()=>{let i=e;for(let r=0;re.__isTeleport;var Da=Symbol("_leaveCb");function Uh(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==pn){t=i,s=!0;break}}return t}function hu(e){if(!tr(e))return er(e.type)&&e.children?Uh(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Fe(s.default))return s.default()}}function Bo(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Bo(er(s.type)&&hu(s)||s,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===N&&Ve(e.children)){let s=Tu(e.children,!1);s&&Bo(s,t)}}function Ma(e){if(e.component)return Ma(e.component.subTree);if(e.type===N){let t=Ve(e.children)&&Tu(e.children,!1);return t?Ma(t):void 0}if(e.type!==pn)return e}function Wo(e,t){return Fe(e)?yt({name:e.name},t,{setup:e}):e}function Ba(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gd(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Xi=new WeakMap;function qo(e,t,s,i,r=!1){if(Ve(e)){e.forEach((w,R)=>qo(w,t&&(Ve(t)?t[R]:t),s,i,r));return}if(Lo(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&qo(e,t,s,i.component.subTree);return}let o=i.shapeFlag&4?ir(i.component):i.el,u=r?null:o,{i:p,r:d}=e,g=t&&t.r,m=p.refs===rt?p.refs={}:p.refs,v=p.setupState,y=nt(v),C=v===rt?da:w=>Gd(m,w)?!1:et(y,w),k=(w,R)=>!(R&&Gd(m,R));if(g!=null&&g!==d){if(Wd(t),mt(g))m[g]=null,C(g)&&(v[g]=null);else if(St(g)){let w=t;k(g,w.k)&&(g.value=null),w.k&&(m[w.k]=null)}}if(Fe(d))_o(d,p,12,[u,m]);else{let w=mt(d),R=St(d);if(w||R){let b=()=>{if(e.f){let P=w?C(d)?v[d]:m[d]:k(d)||!e.k?d.value:m[e.k];if(r)Ve(P)&&bo(P,o);else if(Ve(P))P.includes(o)||P.push(o);else if(w)m[d]=[o],C(d)&&(v[d]=m[d]);else{let D=[o];k(d,e.k)&&(d.value=D),e.k&&(m[e.k]=D)}}else w?(m[d]=u,C(d)&&(v[d]=u)):R&&(k(d,e.k)&&(d.value=u),e.k&&(m[e.k]=u))};if(u){let P=()=>{b(),Xi.delete(e)};P.id=-1,Xi.set(e,P),_t(P,s)}else Wd(e),b()}}}function Wd(e){let t=Xi.get(e);t&&(t.flags|=8,Xi.delete(e))}var Kd=e=>e.nodeType===8;var sde=Co().requestIdleCallback||(e=>setTimeout(e,1)),ode=Co().cancelIdleCallback||(e=>clearTimeout(e));function Bh(e,t){if(Kd(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Kd(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var Lo=e=>!!e.type.__asyncLoader;function gu(e){Fe(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:r=200,hydrate:o,timeout:u,suspensible:p=!0,onError:d}=e,g=null,m,v=0,y=()=>(v++,g=null,C()),C=()=>{let k;return g||(k=g=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),d)return new Promise((R,b)=>{d(w,()=>R(y()),()=>b(w),v+1)});throw w}).then(w=>k!==g&&g?g:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),m=w,w)))};return Wo({name:"AsyncComponentWrapper",__asyncLoader:C,__asyncHydrate(k,w,R){let b=k.isConnected,P=!1;(w.bu||(w.bu=[])).push(()=>P=!0);let D=()=>{P||!k.parentNode||b&&!k.isConnected||R()},L=o?()=>{let H=o(D,_=>Bh(k,_));H&&(w.bum||(w.bum=[])).push(H)}:D;m?L():C().then(()=>!w.isUnmounted&&L())},get __asyncResolved(){return m},setup(){let k=Dt;if(Ba(k),m)return()=>Gi(m,k);let w=H=>{g=null,Go(H,k,13,!i)};if(p&&k.suspense||Ks)return C().then(H=>()=>Gi(H,k)).catch(H=>(w(H),()=>i?$e(i,{error:H}):null));let R=bt(!1),b=bt(),P=bt(!!r),D,L;return Ko(()=>{D!=null&&clearTimeout(D),L!=null&&clearTimeout(L)}),r&&(L=setTimeout(()=>{k.isUnmounted||(P.value=!1)},r)),u!=null&&(D=setTimeout(()=>{if(!k.isUnmounted&&!R.value&&!b.value){let H=new Error(`Async component timed out after ${u}ms.`);w(H),b.value=H}},u)),C().then(()=>{k.isUnmounted||(R.value=!0,k.parent&&tr(k.parent.vnode)&&k.parent.update())}).catch(H=>{if(k.isUnmounted){g=null;return}w(H),b.value=H}),()=>{if(R.value&&m)return Gi(m,k);if(b.value&&i)return $e(i,{error:b.value});if(s&&!P.value)return Gi(s,k)}}})}function Gi(e,t){let{ref:s,props:i,children:r,ce:o}=t.vnode,u=$e(e,i,r);return u.ref=s,u.ce=o,delete t.vnode.ce,u}var tr=e=>e.type.__isKeepAlive;function yu(e,t){bu(e,"a",t)}function vu(e,t){bu(e,"da",t)}function bu(e,t,s=Dt){let i=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(nr(t,i,s),s){let r=s.parent;for(;r&&r.parent;)tr(r.parent.vnode)&&Hh(i,t,s,r),r=r.parent}}function Hh(e,t,s,i){let r=nr(t,e,i,!0);Ko(()=>{bo(i[t],r)},s)}function nr(e,t,s=Dt,i=!1){if(s){let r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...u)=>{dn();let p=Yo(s),d=sn(t,s,e,u);return p(),un(),d});return i?r.unshift(o):r.push(o),o}}var $n=e=>(t,s=Dt)=>{(!Ks||e==="sp")&&nr(e,(...i)=>t(...i),s)},zh=$n("bm"),Qt=$n("m"),wu=$n("bu"),ku=$n("u"),Fn=$n("bum"),Ko=$n("um"),jh=$n("sp"),_h=$n("rtg"),Gh=$n("rtc");function Wh(e,t=Dt){nr("ec",e,t)}var Cu="components",Kh="directives";function _e(e,t){return Eu(Cu,e,!0,t)||e}var Yh=Symbol.for("v-ndc");function Le(e){return Eu(Kh,e)}function Eu(e,t,s=!0,i=!1){let r=Yt||Dt;if(r){let o=r.type;if(e===Cu){let p=Ig(o,!1);if(p&&(p===t||p===wt(t)||p===ds(wt(t))))return o}let u=Yd(r[e]||o[e],t)||Yd(r.appContext[e],t);return!u&&i?o:u}}function Yd(e,t){return e&&(e[t]||e[wt(t)]||e[ds(wt(t))])}function U(e,t,s,i){let r,o=s&&s[i],u=Ve(e);if(u||mt(e)){let p=u&&wn(e),d=!1,g=!1;p&&(d=!jt(e),g=nn(e),e=Ao(e)),r=new Array(e.length);for(let m=0,v=e.length;mt(p,d,void 0,o&&o[d]));else{let p=Object.keys(e);r=new Array(p.length);for(let d=0,g=p.length;de?Gu(e)?ir(e):Va(e.parent):null;var $o=yt(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=>Va(e.parent),$root:e=>Va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ha(e),$forceUpdate:e=>e.f||(e.f=()=>{Ua(e.update)}),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>$h.bind(e)});var Aa=(e,t)=>e!==rt&&!e.__isScriptSetup&&et(e,t),Xh={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:r,props:o,accessCache:u,type:p,appContext:d}=e;if(t[0]!=="$"){let y=u[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Aa(i,t))return u[t]=1,i[t];if(r!==rt&&et(r,t))return u[t]=2,r[t];if(et(o,t))return u[t]=3,o[t];if(s!==rt&&et(s,t))return u[t]=4,s[t];qa&&(u[t]=0)}}let g=$o[t],m,v;if(g)return t==="$attrs"&&Pt(e.attrs,"get",""),g(e);if((m=p.__cssModules)&&(m=m[t]))return m;if(s!==rt&&et(s,t))return u[t]=4,s[t];if(v=d.config.globalProperties,et(v,t))return v[t]},set({_:e},t,s){let{data:i,setupState:r,ctx:o}=e;return Aa(r,t)?(r[t]=s,!0):i!==rt&&et(i,t)?(i[t]=s,!0):et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:r,props:o,type:u}},p){let d;return!!(s[p]||e!==rt&&p[0]!=="$"&&et(e,p)||Aa(t,p)||et(o,p)||et(i,p)||et($o,p)||et(r.config.globalProperties,p)||(d=u.__cssModules)&&d[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:et(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Xd(e){return Ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var qa=!0;function Qh(e){let t=Ha(e),s=e.proxy,i=e.ctx;qa=!1,t.beforeCreate&&Qd(t.beforeCreate,e,"bc");let{data:r,computed:o,methods:u,watch:p,provide:d,inject:g,created:m,beforeMount:v,mounted:y,beforeUpdate:C,updated:k,activated:w,deactivated:R,beforeDestroy:b,beforeUnmount:P,destroyed:D,unmounted:L,render:H,renderTracked:_,renderTriggered:W,errorCaptured:re,serverPrefetch:F,expose:V,inheritAttrs:S,components:q,directives:G,filters:ie}=t;if(g&&Jh(g,i,null),u)for(let le in u){let ye=u[le];Fe(ye)&&(i[le]=ye.bind(s))}if(r){let le=r.call(s,s);st(le)&&(e.data=ut(le))}if(qa=!0,o)for(let le in o){let ye=o[le],Ae=Fe(ye)?ye.bind(s,s):Fe(ye.get)?ye.get.bind(s,s):zt,Xe=!Fe(ye)&&Fe(ye.set)?ye.set.bind(s):zt,tt=Ye({get:Ae,set:Xe});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Ge=>tt.value=Ge})}if(p)for(let le in p)Su(p[le],i,s,le);if(d){let le=Fe(d)?d.call(s):d;Reflect.ownKeys(le).forEach(ye=>{hs(ye,le[ye])})}m&&Qd(m,e,"c");function ne(le,ye){Ve(ye)?ye.forEach(Ae=>le(Ae.bind(s))):ye&&le(ye.bind(s))}if(ne(zh,v),ne(Qt,y),ne(wu,C),ne(ku,k),ne(yu,w),ne(vu,R),ne(Wh,re),ne(Gh,_),ne(_h,W),ne(Fn,P),ne(Ko,L),ne(jh,F),Ve(V))if(V.length){let le=e.exposed||(e.exposed={});V.forEach(ye=>{Object.defineProperty(le,ye,{get:()=>s[ye],set:Ae=>s[ye]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===zt&&(e.render=H),S!=null&&(e.inheritAttrs=S),q&&(e.components=q),G&&(e.directives=G),F&&Ba(e)}function Jh(e,t,s=zt){Ve(e)&&(e=La(e));for(let i in e){let r=e[i],o;st(r)?"default"in r?o=Gt(r.from||i,r.default,!0):o=Gt(r.from||i):o=Gt(r),St(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:u=>o.value=u}):t[i]=o}}function Qd(e,t,s){sn(Ve(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Su(e,t,s,i){let r=i.includes(".")?mu(s,i):()=>s[i];if(mt(e)){let o=t[e];Fe(o)&&dt(r,o)}else if(Fe(e))dt(r,e.bind(s));else if(st(e))if(Ve(e))e.forEach(o=>Su(o,t,s,i));else{let o=Fe(e.handler)?e.handler.bind(s):t[e.handler];Fe(o)&&dt(r,o,e)}}function Ha(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:u}}=e.appContext,p=o.get(t),d;return p?d=p:!r.length&&!s&&!i?d=t:(d={},r.length&&r.forEach(g=>Qi(d,g,u,!0)),Qi(d,t,u)),st(t)&&o.set(t,d),d}function Qi(e,t,s,i=!1){let{mixins:r,extends:o}=t;o&&Qi(e,o,s,!0),r&&r.forEach(u=>Qi(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=Zh[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var Zh={data:Jd,props:Zd,emits:Zd,methods:Vo,computed:Vo,beforeCreate:Mt,created:Mt,beforeMount:Mt,mounted:Mt,beforeUpdate:Mt,updated:Mt,beforeDestroy:Mt,beforeUnmount:Mt,destroyed:Mt,unmounted:Mt,activated:Mt,deactivated:Mt,errorCaptured:Mt,serverPrefetch:Mt,components:Vo,directives:Vo,watch:eg,provide:Jd,inject:xh};function Jd(e,t){return t?e?function(){return yt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function xh(e,t){return Vo(La(e),La(t))}function La(e){if(Ve(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wt(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function og(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||rt,r=s,o=t.startsWith("update:"),u=o&&sg(i,t.slice(7));u&&(u.trim&&(r=s.map(m=>mt(m)?m.trim():m)),u.number&&(r=r.map(Hs)));let p,d=i[p=ko(t)]||i[p=ko(wt(t))];!d&&o&&(d=i[p=ko(gn(t))]),d&&sn(d,e,6,r);let g=i[p+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,sn(g,e,6,r)}}var ig=new WeakMap;function Ru(e,t,s=!1){let i=s?ig:t.emitsCache,r=i.get(e);if(r!==void 0)return r;let o=e.emits,u={},p=!1;if(!Fe(e)){let d=g=>{let m=Ru(g,t,!0);m&&(p=!0,yt(u,m))};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!o&&!p?(st(e)&&i.set(e,null),null):(Ve(o)?o.forEach(d=>u[d]=null):yt(u,o),st(e)&&i.set(e,u),u)}function sr(e,t){return!e||!$s(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,gn(t))||et(e,t))}function Ia(e){let{type:t,vnode:s,proxy:i,withProxy:r,propsOptions:[o],slots:u,attrs:p,emit:d,render:g,renderCache:m,props:v,data:y,setupState:C,ctx:k,inheritAttrs:w}=e,R=Yi(e),b,P;try{if(s.shapeFlag&4){let H=r||i,_=H;b=Sn(g.call(_,H,m,v,C,y,k)),P=p}else{let H=t;b=Sn(H.length>1?H(v,{attrs:p,slots:u,emit:d}):H(v,null)),P=t.props?p:rg(p)}}catch(H){ms.length=0,Go(H,e,1),b=$e(pn)}let D=b,L;if(P&&w!==!1){let H=Object.keys(P),{shapeFlag:_}=D;H.length&&_&7&&(o&&H.some(Fs)&&(P=ag(P,o)),D=Ws(D,P,!1,!0))}if(s.dirs&&(D=Ws(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition){let H=er(D.type)&&hu(D)||D;Bo(H,s.transition)}return b=D,Yi(R),b}function Tu(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||$s(s))&&((t||(t={}))[s]=e[s]);return t},ag=(e,t)=>{let s={};for(let i in e)(!Fs(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function lg(e,t,s){let{props:i,children:r,component:o}=e,{props:u,children:p,patchFlag:d}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&d>=0){if(d&1024)return!0;if(d&16)return i?xd(i,u,g):!!u;if(d&8){let m=t.dynamicProps;for(let v=0;vObject.create(Du),Iu=e=>Object.getPrototypeOf(e)===Du;function ug(e,t,s,i=!1){let r={},o=Au();e.propsDefaults=Object.create(null),Ou(e,t,r,o);for(let u in e.propsOptions[0])u in r||(r[u]=void 0);s?e.props=i?r:Io(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function cg(e,t,s,i){let{props:r,attrs:o,vnode:{patchFlag:u}}=e,p=nt(r),[d]=e.propsOptions,g=!1;if((i||u>0)&&!(u&16)){if(u&8){let m=e.vnode.dynamicProps;for(let v=0;v{d=!0;let[y,C]=Mu(v,t,!0);yt(u,y),C&&p.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!o&&!d)return st(e)&&i.set(e,Gn),Gn;if(Ve(o))for(let m=0;me==="_"||e==="_ctx"||e==="$stable",ja=e=>Ve(e)?e.map(Sn):[Sn(e)],fg=(e,t,s)=>{if(t._n)return t;let i=Vh((...r)=>ja(t(...r)),s);return i._c=!1,i},Vu=(e,t,s)=>{let i=e._ctx;for(let r in e){if(za(r))continue;let o=e[r];if(Fe(o))t[r]=fg(r,o,i);else if(o!=null){let u=ja(o);t[r]=()=>u}}},qu=(e,t)=>{let s=ja(t);e.slots.default=()=>s},Lu=(e,t,s)=>{for(let i in t)(s||!za(i))&&(e[i]=t[i])},mg=(e,t,s)=>{let i=e.slots=Au();if(e.vnode.shapeFlag&32){let r=t._;r?(Lu(i,t,s),s&&Mi(i,"_",r,!0)):Vu(t,i)}else t&&qu(e,t)},hg=(e,t,s)=>{let{vnode:i,slots:r}=e,o=!0,u=rt;if(i.shapeFlag&32){let p=t._;p?s&&p===1?o=!1:Lu(r,t,s):(o=!t.$stable,Vu(t,r)),u=t}else t&&(qu(e,t),u={default:1});if(o)for(let p in r)!za(p)&&u[p]==null&&delete r[p]};function gg(){let e=[]}var _t=wg;function $u(e){return yg(e)}function yg(e,t){gg();let s=Co();s.__VUE__=!0;let{insert:i,remove:r,patchProp:o,createElement:u,createText:p,createComment:d,setText:g,setElementText:m,parentNode:v,nextSibling:y,setScopeId:C=zt,insertStaticContent:k}=e,w=(A,I,z,x=null,X=null,se=null,ce=void 0,ae=null,oe=!!I.dynamicChildren)=>{if(A===I)return;A&&!Mo(A,I)&&(x=he(A),We(A,X,se,!0),A=null),I.patchFlag===-2&&(oe=!1,I.dynamicChildren=null),I.dynamicChildren&&A&&A.dynamicChildren&&A.dynamicChildren.hasOnce&&(I.dynamicChildren===Gn&&(I.dynamicChildren=[]),I.dynamicChildren.hasOnce=!0);let{type:Z,ref:Ne,shapeFlag:fe}=I;switch(Z){case or:R(A,I,z,x);break;case pn:b(A,I,z,x);break;case Fo:A==null&&P(I,z,x,ce);break;case N:G(A,I,z,x,X,se,ce,ae,oe);break;default:fe&1?_(A,I,z,x,X,se,ce,ae,oe):fe&6?ie(A,I,z,x,X,se,ce,ae,oe):(fe&64||fe&128)&&Z.process(A,I,z,x,X,se,ce,ae,oe,ge)}Ne!=null&&X?qo(Ne,A&&A.ref,se,I||A,!I):Ne==null&&A&&A.ref!=null&&qo(A.ref,null,se,A,!0)},R=(A,I,z,x)=>{if(A==null)i(I.el=p(I.children),z,x);else{let X=I.el=A.el;I.children!==A.children&&g(X,I.children)}},b=(A,I,z,x)=>{A==null?i(I.el=d(I.children||""),z,x):I.el=A.el},P=(A,I,z,x)=>{[A.el,A.anchor]=k(A.children,I,z,x,A.el,A.anchor)},D=(A,I,z,x)=>{if(I.children!==A.children){let X=y(A.anchor);H(A),[I.el,I.anchor]=k(I.children,z,X,x)}else I.el=A.el,I.anchor=A.anchor},L=({el:A,anchor:I},z,x)=>{let X;for(;A&&A!==I;)X=y(A),i(A,z,x),A=X;i(I,z,x)},H=({el:A,anchor:I})=>{let z;for(;A&&A!==I;)z=y(A),r(A),A=z;r(I)},_=(A,I,z,x,X,se,ce,ae,oe)=>{if(I.type==="svg"?ce="svg":I.type==="math"&&(ce="mathml"),A==null)W(I,z,x,X,se,ce,ae,oe);else{let Z=A.el&&A.el._isVueCE?A.el:null;try{Z&&Z._beginPatch(),V(A,I,X,se,ce,ae,oe)}finally{Z&&Z._endPatch()}}},W=(A,I,z,x,X,se,ce,ae)=>{let oe,Z,{props:Ne,shapeFlag:fe,transition:Te,dirs:Me}=A;if(oe=A.el=u(A.type,se,Ne&&Ne.is,Ne),fe&8?m(oe,A.children):fe&16&&F(A.children,oe,null,x,X,Oa(A,se),ce,ae),Me&&ps(A,null,x,"created"),re(oe,A,A.scopeId,ce,x),Ne){for(let Ze in Ne)Ze!=="value"&&!Us(Ze)&&o(oe,Ze,null,Ne[Ze],se,x);"value"in Ne&&o(oe,"value",null,Ne.value,se),(Z=Ne.onVnodeBeforeMount)&&Cn(Z,x,A)}Me&&ps(A,null,x,"beforeMount");let Ue=vg(X,Te);Ue&&Te.beforeEnter(oe),i(oe,I,z),((Z=Ne&&Ne.onVnodeMounted)||Ue||Me)&&_t(()=>{let Qe;Z&&Cn(Z,x,A),Ue&&Te.enter(oe),Me&&ps(A,null,x,"mounted")},X)},re=(A,I,z,x,X)=>{if(z&&C(A,z),x)for(let se=0;se{for(let Z=oe;Z{let ae=I.el=A.el,{patchFlag:oe,dynamicChildren:Z,dirs:Ne}=I;oe|=A.patchFlag&16;let fe=A.props||rt,Te=I.props||rt,Me;if(z&&fs(z,!1),(Me=Te.onVnodeBeforeUpdate)&&Cn(Me,z,I,A),Ne&&ps(I,A,z,"beforeUpdate"),z&&fs(z,!0),Z&&(!A.dynamicChildren||A.dynamicChildren.length!==Z.length)&&(oe=0,ce=!1,Z=null),(fe.innerHTML&&Te.innerHTML==null||fe.textContent&&Te.textContent==null)&&m(ae,""),Z?S(A.dynamicChildren,Z,ae,z,x,Oa(I,X),se):ce||Ae(A,I,ae,null,z,x,Oa(I,X),se,!1),oe>0){if(oe&16)q(ae,fe,Te,z,X);else if(oe&2&&fe.class!==Te.class&&o(ae,"class",null,Te.class,X),oe&4&&o(ae,"style",fe.style,Te.style,X),oe&8){let Ue=I.dynamicProps;for(let Ze=0;Ze{Me&&Cn(Me,z,I,A),Ne&&ps(I,A,z,"updated")},x)},S=(A,I,z,x,X,se,ce)=>{for(let ae=0;ae{if(I!==z){if(I!==rt)for(let se in I)!Us(se)&&!(se in z)&&o(A,se,I[se],null,X,x);for(let se in z){if(Us(se))continue;let ce=z[se],ae=I[se];ce!==ae&&se!=="value"&&o(A,se,ae,ce,X,x)}"value"in z&&o(A,"value",I.value,z.value,X)}},G=(A,I,z,x,X,se,ce,ae,oe)=>{let Z=I.el=A?A.el:p(""),Ne=I.anchor=A?A.anchor:p(""),{patchFlag:fe,dynamicChildren:Te,slotScopeIds:Me}=I;Me&&(ae=ae?ae.concat(Me):Me),A==null?(i(Z,z,x),i(Ne,z,x),F(I.children||[],z,Ne,X,se,ce,ae,oe)):fe>0&&fe&64&&Te&&A.dynamicChildren&&A.dynamicChildren.length===Te.length?(S(A.dynamicChildren,Te,z,X,se,ce,ae),(I.key!=null||X&&I===X.subTree)&&Fu(A,I,!0)):Ae(A,I,z,Ne,X,se,ce,ae,oe)},ie=(A,I,z,x,X,se,ce,ae,oe)=>{I.slotScopeIds=ae,A==null?I.shapeFlag&512?X.ctx.activate(I,z,x,ce,oe):K(I,z,x,X,se,ce,oe):ne(A,I,oe)},K=(A,I,z,x,X,se,ce)=>{let ae=A.component=Rg(A,x,X);if(tr(A)&&(ae.ctx.renderer=ge),Tg(ae,!1,ce),ae.asyncDep){if(X&&X.registerDep(ae,le,ce,se),!A.el){let oe=ae.subTree=$e(pn);b(null,oe,I,z),A.placeholder=oe.el}}else le(ae,A,I,z,X,se,ce)},ne=(A,I,z)=>{let x=I.component=A.component;if(lg(A,I,z))if(x.asyncDep&&!x.asyncResolved){I.el=A.el,I.placeholder=A.placeholder,ye(x,I,z);return}else x.next=I,x.update();else I.el=A.el,I.placeholder=A.placeholder,x.vnode=I},le=(A,I,z,x,X,se,ce)=>{let ae=()=>{if(A.isMounted){let{next:fe,bu:Te,u:Me,parent:Ue,vnode:Ze}=A;{let J=Uu(A);if(J){fe&&(fe.el=Ze.el,ye(A,fe,ce)),J.asyncDep.then(()=>{_t(()=>{A.isUnmounted||Z()},X)});return}}let Qe=fe,Re;fs(A,!1),fe?(fe.el=Ze.el,ye(A,fe,ce)):fe=Ze,Te&&Bs(Te),(Re=fe.props&&fe.props.onVnodeBeforeUpdate)&&Cn(Re,Ue,fe,Ze),fs(A,!0);let Be=Ia(A),j=A.subTree;A.subTree=Be,w(j,Be,v(j.el),he(j),A,X,se),fe.el=Be.el,Qe===null&&dg(A,Be.el),Me&&_t(Me,X),(Re=fe.props&&fe.props.onVnodeUpdated)&&_t(()=>Cn(Re,Ue,fe,Ze),X)}else{let fe,{el:Te,props:Me}=I,{bm:Ue,m:Ze,parent:Qe,root:Re,type:Be}=A,j=Lo(I);if(fs(A,!1),Ue&&Bs(Ue),!j&&(fe=Me&&Me.onVnodeBeforeMount)&&Cn(fe,Qe,I),fs(A,!0),Te&&Ie){let J=()=>{A.subTree=Ia(A),Ie(Te,A.subTree,A,X,null)};j&&Be.__asyncHydrate?Be.__asyncHydrate(Te,A,J):J()}else{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Be,A.parent?A.parent.type:void 0);let J=A.subTree=Ia(A);w(null,J,z,x,A,X,se),I.el=J.el}if(Ze&&_t(Ze,X),!j&&(fe=Me&&Me.onVnodeMounted)){let J=I;_t(()=>Cn(fe,Qe,J),X)}(I.shapeFlag&256||Qe&&Lo(Qe.vnode)&&Qe.vnode.shapeFlag&256)&&A.a&&_t(A.a,X),A.isMounted=!0,I=z=x=null}};A.scope.on();let oe=A.effect=new js(ae);A.scope.off();let Z=A.update=oe.run.bind(oe),Ne=A.job=oe.runIfDirty.bind(oe);Ne.i=A,Ne.id=A.uid,oe.scheduler=()=>Ua(Ne),fs(A,!0),Z()},ye=(A,I,z)=>{I.component=A;let x=A.vnode.props;A.vnode=I,A.next=null,cg(A,I.props,x,z),hg(A,I.children,z),dn(),du(A),un()},Ae=(A,I,z,x,X,se,ce,ae,oe=!1)=>{let Z=A&&A.children,Ne=A?A.shapeFlag:0,fe=I.children,{patchFlag:Te,shapeFlag:Me}=I;if(Te>0){if(Te&128){tt(Z,fe,z,x,X,se,ce,ae,oe);return}else if(Te&256){Xe(Z,fe,z,x,X,se,ce,ae,oe);return}}Me&8?(Ne&16&&Q(Z,X,se),fe!==Z&&m(z,fe)):Ne&16?Me&16?tt(Z,fe,z,x,X,se,ce,ae,oe):Q(Z,X,se,!0):(Ne&8&&m(z,""),Me&16&&F(fe,z,x,X,se,ce,ae,oe))},Xe=(A,I,z,x,X,se,ce,ae,oe)=>{A=A||Gn,I=I||Gn;let Z=A.length,Ne=I.length,fe=Math.min(Z,Ne),Te;for(Te=0;TeNe?Q(A,X,se,!0,!1,fe):F(I,z,x,X,se,ce,ae,oe,fe)},tt=(A,I,z,x,X,se,ce,ae,oe)=>{let Z=0,Ne=I.length,fe=A.length-1,Te=Ne-1;for(;Z<=fe&&Z<=Te;){let Me=A[Z],Ue=I[Z]=oe?Ln(I[Z]):Sn(I[Z]);if(Mo(Me,Ue))w(Me,Ue,z,null,X,se,ce,ae,oe);else break;Z++}for(;Z<=fe&&Z<=Te;){let Me=A[fe],Ue=I[Te]=oe?Ln(I[Te]):Sn(I[Te]);if(Mo(Me,Ue))w(Me,Ue,z,null,X,se,ce,ae,oe);else break;fe--,Te--}if(Z>fe){if(Z<=Te){let Me=Te+1,Ue=MeTe)for(;Z<=fe;)We(A[Z],X,se,!0),Z++;else{let Me=Z,Ue=Z,Ze=new Map;for(Z=Ue;Z<=Te;Z++){let ke=I[Z]=oe?Ln(I[Z]):Sn(I[Z]);ke.key!=null&&Ze.set(ke.key,Z)}let Qe,Re=0,Be=Te-Ue+1,j=!1,J=0,me=new Array(Be);for(Z=0;Z=Be){We(ke,X,se,!0);continue}let qe;if(ke.key!=null)qe=Ze.get(ke.key);else for(Qe=Ue;Qe<=Te;Qe++)if(me[Qe-Ue]===0&&Mo(ke,I[Qe])){qe=Qe;break}qe===void 0?We(ke,X,se,!0):(me[qe-Ue]=Z+1,qe>=J?J=qe:j=!0,w(ke,I[qe],z,null,X,se,ce,ae,oe),Re++)}let Se=j?bg(me):Gn;for(Qe=Se.length-1,Z=Be-1;Z>=0;Z--){let ke=Ue+Z,qe=I[ke],ct=I[ke+1],At=ke+1{let{el:se,type:ce,transition:ae,children:oe,shapeFlag:Z}=A;if(Z&6){Ge(A.component.subTree,I,z,x);return}if(Z&128){A.suspense.move(I,z,x);return}if(Z&64){ce.move(A,I,z,ge);return}if(ce===N){i(se,I,z);for(let fe=0;feae.enter(se),X));else{let{leave:fe,delayLeave:Te,afterLeave:Me}=ae,Ue=()=>{A.ctx.isUnmounted?r(se):i(se,I,z)},Ze=()=>{let Qe=se._isLeaving||!!se[Da];se._isLeaving&&se[Da](!0),ae.persisted&&!Qe?Ue():fe(se,()=>{Ue(),Me&&Me()})};Te?Te(se,Ue,Ze):Ze()}else i(se,I,z)},We=(A,I,z,x=!1,X=!1)=>{let{type:se,props:ce,ref:ae,children:oe,dynamicChildren:Z,shapeFlag:Ne,patchFlag:fe,dirs:Te,cacheIndex:Me,memo:Ue}=A;if((fe===-2||Z&&Z.hasOnce)&&(X=!1),ae!=null&&(dn(),qo(ae,null,z,A,!0),un()),Me!=null&&(!A.ctx||A.ctx===I)&&(I.renderCache[Me]=void 0),Ne&256){I.ctx.deactivate(A);return}let Ze=Ne&1&&Te,Qe=!Lo(A),Re;if(Qe&&(Re=ce&&ce.onVnodeBeforeUnmount)&&Cn(Re,I,A),Ne&6)Oe(A.component,z,x);else{if(Ne&128){A.suspense.unmount(z,x);return}Ze&&ps(A,null,I,"beforeUnmount"),Ne&64?A.type.remove(A,I,z,ge,x):Z&&!Z.hasOnce&&(se!==N||fe>0&&fe&64)?Q(Z,I,z,!1,!0):(se===N&&fe&384||!X&&Ne&16)&&Q(oe,I,z),x&&it(A)}let Be=Ue!=null&&Me==null;(Qe&&(Re=ce&&ce.onVnodeUnmounted)||Ze||Be)&&_t(()=>{Re&&Cn(Re,I,A),Ze&&ps(A,null,I,"unmounted"),Be&&(A.el=null)},z)},it=A=>{let{type:I,el:z,anchor:x,transition:X}=A,se=I===N;if(se&&!X){ht(z,x);return}if(I===Fo){H(A),X&&!X.persisted&&X.afterLeave&&X.afterLeave();return}let ce=se?Ma(A):A,ae=()=>{se?v(z)&&ht(z,x):r(z),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(ce&&ce.shapeFlag&1&&X&&!X.persisted){let{leave:oe,delayLeave:Z}=X,Ne=ce.el,fe=()=>oe(Ne,ae);Z?Z(Ne,ae,fe):fe()}else ae()},ht=(A,I)=>{let z;for(;A!==I;)z=y(A),r(A),A=z;r(I)},Oe=(A,I,z)=>{let{bum:x,scope:X,job:se,subTree:ce,um:ae,m:oe,a:Z}=A;tu(oe),tu(Z),x&&Bs(x),X.stop(),se?(se.flags|=8,We(ce,A,I,z)):A.vnode.el&&ce&&(ce.transition=A.vnode.transition,We(ce,A,I,z)),ae&&_t(ae,I),_t(()=>{A.isUnmounted=!0},I)},Q=(A,I,z,x=!1,X=!1,se=0)=>{for(let ce=se;ce{if(A.shapeFlag&6)return he(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();let I=y(A.anchor||A.el),z=I&&I[Fh];return z?y(z):I},ee=(A,I,z)=>{let x=A&&I._vnode?void 0:A&&A.component?A.component.uid:Ng();Mh(()=>{A==null?I._vnode&&We(I._vnode,null,null,!0):w(I._vnode||null,A,I,null,null,null,z),I._vnode=A},x)},ge={p:w,um:We,m:Ge,r:it,mt:K,mc:F,pc:Ae,pbc:S,n:he,o:e},Ee,Ie;return t&&([Ee,Ie]=t(ge)),{render:ee,hydrate:Ee,createApp:ng(ee,Ee)}}function Oa({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function fs({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function vg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fu(e,t,s=!1){let i=e.children,r=t.children;if(Ve(i)&&Ve(r))for(let o=0;o>1,e[s[p]]0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,u=s[o-1];o-- >0;)s[o]=u,u=t[u];return s}function Uu(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Uu(t)}function tu(e){if(e)for(let t=0;te.__isSuspense;function wg(e,t){t&&t.pendingBranch?Ve(e)?t.effects.push(...e):t.effects.push(e):lu(e)}var N=Symbol.for("v-fgt"),or=Symbol.for("v-txt"),pn=Symbol.for("v-cmt"),Fo=Symbol.for("v-stc"),ms=[],Xt=null;function a(e=!1){ms.push(Xt=e?null:[])}function Hu(){ms.pop(),Xt=ms[ms.length-1]||null}var Ho=1;function Ji(e,t=!1){Ho+=e,e<0&&Xt&&t&&(Xt.hasOnce=!0)}function zu(e){return e.dynamicChildren=Ho>0?Xt||Gn:null,Hu(),Ho>0&&Xt&&Xt.push(e),e}function l(e,t,s,i,r,o){return zu(n(e,t,s,i,r,o,!0))}function Nt(e,t,s,i,r){return zu($e(e,t,s,i,r,!0))}function zo(e){return e?e.__v_isVNode===!0:!1}function Mo(e,t){return e.type===t.type&&e.key===t.key}var ju=({key:e})=>e??null,Wi=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?mt(e)||St(e)||Fe(e)?{i:Yt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,r=null,o=e===N?0:1,u=!1,p=!1){let d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ju(t),ref:t&&Wi(t),scopeId:pu,slotScopeIds:null,children:s,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:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Yt};return p?(Zi(d,s),o&128&&e.normalize(d)):s&&(d.shapeFlag|=mt(s)?8:16),Ho>0&&!u&&Xt&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&Xt.push(d),d}var $e=kg;function kg(e,t=null,s=null,i=0,r=null,o=!1){if((!e||e===Yh)&&(e=pn),zo(e)){let p=Ws(e,t,!0);return s&&Zi(p,s),Ho>0&&!o&&Xt&&(p.shapeFlag&6?Xt[Xt.indexOf(e)]=p:Xt.push(p)),p.patchFlag=-2,p}if(Og(e)&&(e=e.__vccOpts),t){t=Cg(t);let{class:p,style:d}=t;p&&!mt(p)&&(t.class=T(p)),st(d)&&(Oo(d)&&!Ve(d)&&(d=yt({},d)),t.style=De(d))}let u=mt(e)?1:Bu(e)?128:er(e)?64:st(e)?4:Fe(e)?2:0;return n(e,t,s,i,r,u,o,!0)}function Cg(e){return e?Oo(e)||Iu(e)?yt({},e):e:null}function Ws(e,t,s=!1,i=!1){let{props:r,ref:o,patchFlag:u,children:p,transition:d}=e,g=t?Eg(r||{},t):r,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&ju(g),ref:t&&t.ref?s&&o?Ve(o)?o.concat(Wi(t)):[o,Wi(t)]:Wi(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==N?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ws(e.ssContent),ssFallback:e.ssFallback&&Ws(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return d&&i&&Bo(m,d.clone(m)),m}function h(e=" ",t=0){return $e(or,null,e,t)}function Pe(e,t){let s=$e(Fo,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Nt(pn,null,e)):$e(pn,null,e)}function Sn(e){return e==null||typeof e=="boolean"?$e(pn):Ve(e)?$e(N,null,e.slice()):zo(e)?Ln(e):$e(or,null,String(e))}function Ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ws(e)}function Zi(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ve(t))s=16;else if(typeof t=="object")if(i&65){let r=t.default;r&&(r._c&&(r._d=!1),Zi(e,r()),r._c&&(r._d=!0));return}else{s=32;let r=t._;!r&&!Iu(t)?t._ctx=Yt:r===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Fe(t)){if(i&65){Zi(e,{default:t});return}t={default:t,_ctx:Yt},s=32}else t=String(t),i&64?(s=16,t=[h(t)]):s=8;e.children=t,e.shapeFlag|=s}function Eg(...e){let t={};for(let s=0;sDt||Yt,xi,jo;{let e=Co(),t=(s,i)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(i),o=>{r.length>1?r.forEach(u=>u(o)):r[0](o)}};xi=t("__VUE_INSTANCE_SETTERS__",s=>Dt=s),jo=t("__VUE_SSR_SETTERS__",s=>Ks=s)}var Yo=e=>{let t=Dt;return xi(e),e.scope.on(),()=>{e.scope.off(),xi(t)}},nu=()=>{Dt&&Dt.scope.off(),xi(null)};function Gu(e){return e.vnode.shapeFlag&4}var Ks=!1;function Tg(e,t=!1,s=!1){t&&jo(t);let{props:i,children:r}=e.vnode,o=Gu(e);ug(e,i,o,t),mg(e,r,s||t);let u=o?Pg(e,t):void 0;return t&&jo(!1),u}function Pg(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xh);let{setup:i}=s;if(i){dn();let r=e.setupContext=i.length>1?Ag(e):null,o=Yo(e),u=_o(i,e,0,[e.props,r]),p=ua(u);if(un(),o(),(p||e.sp)&&!Lo(e)&&Ba(e),p){if(u.then(nu,nu),t)return u.then(d=>{jo(!0);try{su(e,d,t)}finally{jo(!1)}}).catch(d=>{Go(d,e,0)});e.asyncDep=u}else su(e,u,t)}else Wu(e,t)}function su(e,t,s){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=_i(t)),Wu(e,s)}var ou,iu;function Wu(e,t,s){let i=e.type;if(!e.render){if(!t&&ou&&!i.render){let r=i.template||Ha(e).template;if(r){let{isCustomElement:o,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:d}=i,g=yt(yt({isCustomElement:o,delimiters:p},u),d);i.render=ou(r,g)}}e.render=i.render||zt,iu&&iu(e)}{let r=Yo(e);dn();try{Qh(e)}finally{un(),r()}}}var Dg={get(e,t){return Pt(e,"get",""),e[t]}};function Ag(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Dg),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_i(kn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in $o)return $o[s](e)},has(t,s){return s in t||s in $o}})):e.proxy}function Ig(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function Og(e){return Fe(e)&&"__vccOpts"in e}var Ye=(e,t)=>zd(e,t,Ks);function we(e,t,s){try{Ji(-1);let i=arguments.length;return i===2?st(t)&&!Ve(t)?zo(t)?$e(e,null,[t]):$e(e,t):$e(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&zo(s)&&(s=[s]),$e(e,t,s))}finally{Ji(1)}}var Mg="3.5.44";var Ya,Ku=typeof window<"u"&&window.trustedTypes;if(Ku)try{Ya=Ku.createPolicy("vue",{createHTML:e=>e})}catch{}var ic=Ya?e=>Ya.createHTML(e):e=>e,Vg="http://www.w3.org/2000/svg",qg="http://www.w3.org/1998/Math/MathML",Un=typeof document<"u"?document:null,Yu=Un&&Un.createElement("template"),Lg={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let r=t==="svg"?Un.createElementNS(Vg,e):t==="mathml"?Un.createElementNS(qg,e):s?Un.createElement(e,{is:s}):Un.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Un.createTextNode(e),createComment:e=>Un.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Un.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,r,o){let u=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{Yu.innerHTML=ic(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=Yu.content;if(i==="svg"||i==="mathml"){let d=p.firstChild;for(;d.firstChild;)p.appendChild(d.firstChild);p.removeChild(d)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var $g=Symbol("_vtc");function Fg(e,t,s){let i=e[$g];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var lr=Symbol("_vod"),rc=Symbol("_vsh"),te={name:"show",beforeMount(e,{value:t},{transition:s}){e[lr]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Xo(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),Xo(e,!0),i.enter(e)):i.leave(e,()=>{Xo(e,!1)}):Xo(e,t))},beforeUnmount(e,{value:t}){Xo(e,t)}};function Xo(e,t){e.style.display=t?e[lr]:"none",e[rc]=!t}var Ug=Symbol("");var Bg=/(?:^|;)\s*display\s*:/;function Hg(e,t,s){let i=e.style,r=mt(s),o=!1;if(s&&!r){if(t)if(mt(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Qo(i,p,"")}else for(let u in t)s[u]==null&&Qo(i,u,"");for(let u in s){u==="display"&&(o=!0);let p=s[u];p!=null?jg(e,u,!mt(t)&&t?t[u]:void 0,p)||Qo(i,u,p):Qo(i,u,"")}}else if(r){if(t!==s){let u=i[Ug];u&&(s+=";"+u),i.cssText=s,o=Bg.test(s)}}else t&&e.removeAttribute("style");lr in e&&((!r||t!==s)&&(e[lr]=o?i.display:""),e[rc]&&(i.display="none"))}var rr=/\s*!important$/;function Qo(e,t,s){if(Ve(s))s.forEach(i=>Qo(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))rr.test(s)?e.setProperty(t,s.replace(rr,""),"important"):e.setProperty(t,s);else{let i=zg(e,t);rr.test(s)?e.setProperty(gn(i),s.replace(rr,""),"important"):e[i]=s}}var Xu=["Webkit","Moz","ms"],Ga={};function zg(e,t){let s=Ga[t];if(s)return s;let i=wt(t);if(i!=="filter"&&i in e)return Ga[t]=i;i=ds(i);for(let r=0;rWa||(Xg.then(()=>Wa=0),Wa=Date.now());function Jg(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let r=s.value;if(Ve(r)){let o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};let u=r.slice(),p=[i];for(let d=0;de.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zg=(e,t,s,i,r,o)=>{let u=r==="svg";t==="class"?Fg(e,i,u):t==="style"?Hg(e,s,i):$s(t)?Fs(t)||Gg(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xg(e,t,i,u))?(Zu(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ju(e,t,i,u,o,t!=="value")):e._isVueCE&&(ey(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!mt(i)))?Zu(e,wt(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ju(e,t,i,u))};function xg(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&ec(t)&&Fe(s));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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ec(t)&&mt(s)?!1:t in e}function ey(e,t){let s=e._def.props;if(!s)return!1;let i=wt(t);return Array.isArray(s)?s.some(r=>wt(r)===i):Object.keys(s).some(r=>wt(r)===i)}var Ys=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ve(t)?s=>Bs(t,s):t};function ty(e){e.target.composing=!0}function tc(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Nn=Symbol("_assign"),ar=Symbol("_initialValue");function Ka(e,t,s){return t&&(e=e.trim()),s&&(e=Hs(e)),e}var ft={created(e,{modifiers:{lazy:t,trim:s,number:i}},r){e.parentNode&&(e.type==="text"?e[ar]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[ar]=e.defaultValue.replace(/\r\n?/g,` -`))),e[Nn]=Ys(r);let o=i||r.props&&r.props.type==="number";Kn(e,t?"change":"input",u=>{u.target.composing||e[Nn](Ka(e.value,s,o))}),(s||o)&&Kn(e,"change",()=>{e.value=Ka(e.value,s,o)}),t||(Kn(e,"compositionstart",ty),Kn(e,"compositionend",tc),Kn(e,"change",tc))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let r=t??"",o=e[ar];delete e[ar],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Nn](Ka(e.value,s,i)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:r,number:o}},u){if(e[Nn]=Ys(u),e.composing)return;let p=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hs(e.value):e.value,d=t??"";if(p===d)return;let g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(i&&t===s||r&&e.value.trim()===d)||(e.value=d)}},Xa={deep:!0,created(e,t,s){e[Nn]=Ys(s),Kn(e,"change",()=>{let i=e._modelValue,r=Jo(e),o=e.checked,u=e[Nn];if(Ve(i)){let p=qi(i,r),d=p!==-1;if(o&&!d)u(i.concat(r));else if(!o&&d){let g=[...i];g.splice(p,1),u(g)}}else if(rn(i)){let p=new Set(i);o?p.add(r):p.delete(r),u(p)}else u(ac(e,o))})},mounted:nc,beforeUpdate(e,t,s){e[Nn]=Ys(s),nc(e,t,s)}};function nc(e,{value:t,oldValue:s},i){e._modelValue=t;let r;if(Ve(t))r=qi(t,i.props.value)>-1;else if(rn(t))r=t.has(i.props.value);else{if(t===s)return;r=an(t,ac(e,!0))}e.checked!==r&&(e.checked=r)}var qt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Kn(e,"change",()=>{let r=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>s?Hs(Jo(d)):Jo(d)),o=e.multiple,u=o?rn(e._modelValue)?new Set(r):r:r[0],p=e._pendingValue=[o,o?Ve(u)?r.slice():r:u];try{e[Nn](u)}finally{Je(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[Nn]=Ys(i)},mounted(e,{value:t}){sc(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Nn]=Ys(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!ny(t,s[1],s[0]))&&sc(e,t)}};function ny(e,t,s){if(!s)return an(e,t);if(Ve(e))return an(e,t);if(rn(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function sc(e,t){let s=e.multiple,i=Ve(t);if(!(s&&!i&&!rn(t))){for(let r=0,o=e.options.length;rString(g)===String(p)):u.selected=qi(t,p)>-1}else u.selected=t.has(p);else if(an(Jo(u),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jo(e){return"_value"in e?e._value:e.value}function ac(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var sy=["ctrl","shift","alt","meta"],oy={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)=>sy.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((r,...o)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(r=>{if(!("key"in r))return;let o=gn(r.key);if(t.some(u=>u===o||iy[u]===o))return e(r)}))},ry=yt({patchProp:Zg},Lg),oc;function ay(){return oc||(oc=$u(ry))}var dr=((...e)=>{let t=ay().createApp(...e),{mount:s}=t;return t.mount=i=>{let r=dy(i);if(!r)return;let o=t._component;!Fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");let u=s(r,!1,ly(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),u},t});function ly(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dy(e){return mt(e)?document.querySelector(e):e}var vs=typeof document<"u";function dc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&dc(e.default)}var ot=Object.assign;function ur(e,t){let s={};for(let i in t){let r=t[i];s[i]=on(r)?r.map(e):e(r)}return s}var Qs=()=>{},on=Array.isArray;function Za(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var uc=/#/g,cy=/&/g,py=/\//g,fy=/=/g,my=/\?/g,cc=/\+/g,hy=/%5B/g,gy=/%5D/g,pc=/%5E/g,yy=/%60/g,fc=/%7B/g,vy=/%7C/g,mc=/%7D/g,by=/%20/g;function xa(e){return e==null?"":encodeURI(""+e).replace(vy,"|").replace(hy,"[").replace(gy,"]")}function hc(e){return xa(e).replace(fc,"{").replace(mc,"}").replace(pc,"^")}function Qa(e){return xa(e).replace(cc,"%2B").replace(by,"+").replace(uc,"%23").replace(cy,"%26").replace(yy,"`").replace(fc,"{").replace(mc,"}").replace(pc,"^")}function wy(e){return Qa(e).replace(fy,"%3D")}function ky(e){return xa(e).replace(uc,"%23").replace(my,"%3F")}function gc(e){return ky(e).replace(py,"%2F")}function Xs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Cy=/\/$/,Ey=e=>e.replace(Cy,"");function cr(e,t,s="/"){let i,r={},o="",u="",p=t.indexOf("#"),d=t.indexOf("?");return d=p>=0&&d>p?-1:d,d>=0&&(i=t.slice(0,d),o=t.slice(d,p>0?p:t.length),r=e(o.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Ny(i??t,s),{fullPath:i+o+u,path:i,query:r,hash:Xs(u)}}function yc(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function el(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function vc(e,t,s){let i=t.matched.length-1,r=s.matched.length-1;return i>-1&&i===r&&gs(t.matched[i],s.matched[r])&&tl(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function gs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Sy(e[s],t[s]))return!1;return!0}function Sy(e,t){return on(e)?lc(e,t):on(t)?lc(t,e):e?.valueOf()===t?.valueOf()}function lc(e,t){return on(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Ny(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let o=s.length-1,u,p;for(u=0;u1&&o--;else break;return s.slice(0,o).join("/")+"/"+i.slice(u).join("/")}var Hn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pr=(function(e){return e.pop="pop",e.push="push",e})({}),fr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function bc(e){if(!e)if(vs){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ey(e)}var Ry=/^[^#]+#/;function wc(e,t){return e.replace(Ry,"#")+t}function Ty(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var Zo=()=>({left:window.scrollX,top:window.scrollY});function kc(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=Ty(r,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 nl(e,t){return(history.state?history.state.position-t:-1)+e}var Ja=new Map;function Cc(e,t){Ja.set(e,t)}function Ec(e){let t=Ja.get(e);return Ja.delete(e),t}function Py(e){return typeof e=="string"||e&&typeof e=="object"}function sl(e){return typeof e=="string"||typeof e=="symbol"}var gt=(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})({}),Sc=Symbol("");var qde={[gt.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for +"use strict";(()=>{var md=Object.defineProperty;var hd=e=>{throw TypeError(e)};var eh=(e,t,s)=>t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var th=(e,t)=>{for(var s in t)md(e,s,{get:t[s],enumerable:!0})};var lt=(e,t,s)=>eh(e,typeof t!="symbol"?t+"":t,s),da=(e,t,s)=>t.has(e)||hd("Cannot "+s);var ce=(e,t,s)=>(da(e,t,"read from private field"),s?s.call(e):t.get(e)),He=(e,t,s)=>t.has(e)?hd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Ke=(e,t,s,i)=>(da(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),ze=(e,t,s)=>(da(e,t,"access private method"),s);var gd=(e,t,s,i)=>({set _(r){Ke(e,t,r,s)},get _(){return ce(e,t,i)}});var be=["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 we={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",editor:"/script/editor.4f142d3adc.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function yd(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),r=s.get("intentId"),o=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{64}$/.test(o||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:r,token:o}}function vd(e,t){let{http:s,promises:i,window:r}=t,o=t.takeReviewHandoff(),u=o?{clientId:o.clientId,intentId:o.intentId}:null,p,d,g,m,v,y=!0,C,k=i.defer(),w=()=>[...r.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:o?"":"Open a new artifact link from your submission. This link is missing or invalid."});let R=()=>y&&e.user?.username===v;function b(){y=!1,o=p=d=void 0,k.resolve(),r.clearTimeout(C)}e.on("dispose",b),e.on("routeLeave",b),e.watch(()=>e.user?.username,L=>{!v&&L?v=L:v&&L!==v&&(b(),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 P=()=>({timeout:k.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":d}}),D=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(!y||!o||e.busy||e.uncertain||e.saved||!e.user?.username)return;v=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,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,r.clearTimeout(C),m||(m=w());try{let H=(await s.get("/api/review-consent/csrf",{timeout:k.promise})).data;if(!R())return;if(d=H.csrf,e.handoffEnabled=H.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(d||""))throw new Error("invalid_csrf");let _=(await s.post("/api/review-consent/preview",{repositoryId:L,intent:{...o,requestId:m}},P())).data;if(!R())return;if(!_||typeof _.ticket!="string"||!_.ticket||_.ticket.length>8192||typeof _.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(_.policy?.access)||!Number.isSafeInteger(_.policy.version)||!Number.isFinite(Date.parse(_.policy.retainUntil))||!Number.isFinite(Date.parse(_.expiresAt))||Date.parse(_.expiresAt)<=Date.now()||Date.parse(_.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=_.ticket,g=w(),e.preview={repositoryName:_.repositoryName,policy:{..._.policy},expiresAt:_.expiresAt},C=r.setTimeout(()=>{y&&(e.expired=!0)},Math.max(0,Date.parse(_.expiresAt)-Date.now()))}catch(H){R()&&(e.error=D(H))}finally{R()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!R()||e.busy||e.saved||!p||!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 s.post("/api/review-consent/confirm",{ticket:p,requestId:g,acceptAccess:!0,acceptRetention:!0},P())).data;if(!R())return;if(L?.requestId!==g||!Number.isFinite(Date.parse(L.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,o=void 0,e.handoffEnabled||(p=void 0)}catch{R()&&(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{R()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!R()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let L,H=()=>{L?.remove(),r.removeEventListener("securitypolicyviolation",_)},_=W=>{W.violatedDirective?.startsWith("form-action")&&(H(),R()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let W=(await s.post("/api/review-consent/handoff",{ticket:p},P())).data;if(!R())return;let ae=W?.completion,F=new URL(W?.callbackUrl);if(!ae||Object.keys(ae).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ae.contract!=="4open.artifacts/1"||ae.clientId!==u.clientId||ae.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(ae.code||"")||!Number.isFinite(Date.parse(ae.expiresAt))||Date.parse(ae.expiresAt)<=Date.now()||Date.parse(ae.expiresAt)>Date.now()+3e5||F.protocol!=="https:"||F.href!==W.callbackUrl||F.username||F.password||W.callbackUrl.includes("?")||W.callbackUrl.includes("#"))throw new Error("invalid_handoff");L=r.document.createElement("form"),L.method="POST",L.action=F.href;let V=r.document.createElement("input");V.type="hidden",V.name="completion",V.value=JSON.stringify(ae),L.appendChild(V),r.document.body.appendChild(L),r.addEventListener("securitypolicyviolation",_),e.on("dispose",H),L.submit()}catch{H(),R()&&(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 Di=new Map,oh=we;function ds(e){if(!Di.has(e)){let t=document.createElement("script");t.src=oh[e];let s=new Promise((i,r)=>{t.onload=i,t.onerror=()=>{Di.delete(e),t.remove(),r(new Error(`Unable to load ${e}. Please retry.`))}});Di.set(e,s),document.head.appendChild(t)}return Di.get(e)}async function Ai(){await ds("editor"),ace.config.set("basePath","/script/external/ace/")}function Ls(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var rt={},Wn=[],Ht=()=>{},ca=()=>!1,$s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Fs=e=>e.startsWith("onUpdate:"),vt=Object.assign,wo=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},ih=Object.prototype.hasOwnProperty,et=(e,t)=>ih.call(e,t),Ve=Array.isArray,On=e=>ko(e)==="[object Map]",rn=e=>ko(e)==="[object Set]",bd=e=>ko(e)==="[object Date]";var Fe=e=>typeof e=="function",ht=e=>typeof e=="string",Wt=e=>typeof e=="symbol",st=e=>e!==null&&typeof e=="object",pa=e=>(st(e)||Fe(e))&&Fe(e.then)&&Fe(e.catch),Ed=Object.prototype.toString,ko=e=>Ed.call(e),fa=e=>ko(e).slice(8,-1),Ii=e=>ko(e)==="[object Object]",Oi=e=>ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Us=Ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var Mi=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},rh=/-\w/g,kt=Mi(e=>e.replace(rh,t=>t.slice(1).toUpperCase())),ah=/\B([A-Z])/g,gn=Mi(e=>e.replace(ah,"-$1").toLowerCase()),us=Mi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=Mi(e=>e?`on${us(e)}`:""),tn=(e,t)=>!Object.is(e,t),Bs=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Hs=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var wd,Eo=()=>wd||(wd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function De(e){if(Ve(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(lh).forEach(s=>{if(s){let i=s.split(dh);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function T(e){let t="";if(ht(e))t=e;else if(Ve(e))for(let s=0;san(s,t))}var Rd=e=>!!(e&&e.__v_isRef===!0),c=e=>ht(e)?e:e==null?"":Ve(e)||st(e)&&(e.toString===Ed||!Fe(e.toString))?Rd(e)?c(e.value):JSON.stringify(e,Td,2):String(e),Td=(e,t)=>Rd(t)?Td(e,t.value):On(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,r],o)=>(s[ua(i,o)+" =>"]=r,s),{})}:rn(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ua(s))}:Wt(t)?ua(t):st(t)&&!Ve(t)&&!Ii(t)?String(t):t,ua=(e,t="")=>{var s;return Wt(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function hh(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Ct,To=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&&Ct&&(Ct.active?(this.parent=Ct,this.index=(Ct.scopes||(Ct.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(Ct===this)Ct=this.prevScope;else{let t=Ct;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 s,i;for(s=0,i=this.effects.length;s0)return;if(Ro){let t=Ro;for(Ro=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;No;){let t=No;for(No=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function Vd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qd(e){let t,s=e.depsTail,i=s;for(;i;){let r=i.prevDep;i.version===-1?(i===s&&(s=r),Ta(i),gh(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}e.deps=t,e.depsTail=s}function ya(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ld(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ld(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Po)||(e.globalVersion=Po,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ya(e))))return;e.flags|=2;let t=e.dep,s=pt,i=ln;pt=e,ln=!0;try{Vd(e);let r=e.fn(e._value);(t.version===0||tn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{pt=s,ln=i,qd(e),e.flags&=-3}}function Ta(e,t=!1){let{dep:s,prevSub:i,nextSub:r}=e;if(i&&(i.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)Ta(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function gh(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var ln=!0,$d=[];function dn(){$d.push(ln),ln=!1}function un(){let e=$d.pop();ln=e===void 0?!0:e}function Pd(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=pt;pt=void 0;try{t()}finally{pt=s}}}var Po=0,va=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Do=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(!pt||!ln||pt===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==pt)s=this.activeLink=new va(pt,this),pt.deps?(s.prevDep=pt.depsTail,pt.depsTail.nextDep=s,pt.depsTail=s):pt.deps=pt.depsTail=s,Fd(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=pt.depsTail,s.nextDep=void 0,pt.depsTail.nextDep=s,pt.depsTail=s,pt.deps===s&&(pt.deps=i)}return s}trigger(t){this.version++,Po++,this.notify(t)}notify(t){Na();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ra()}}};function Fd(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Fd(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var ba=new WeakMap,ps=Symbol(""),wa=Symbol(""),Ao=Symbol("");function Dt(e,t,s){if(ln&&pt){let i=ba.get(e);i||ba.set(e,i=new Map);let r=i.get(s);r||(i.set(s,r=new Do),r.map=i,r.key=s),r.track()}}function vn(e,t,s,i,r,o){let u=ba.get(e);if(!u){Po++;return}let p=d=>{d&&d.trigger()};if(Na(),t==="clear")u.forEach(p);else{let d=Ve(e),g=d&&Oi(s);if(d&&s==="length"){let m=Number(i);u.forEach((v,y)=>{(y==="length"||y===Ao||!Wt(y)&&y>=m)&&p(v)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),g&&p(u.get(Ao)),t){case"add":d?g&&p(u.get("length")):(p(u.get(ps)),On(e)&&p(u.get(wa)));break;case"delete":d||(p(u.get(ps)),On(e)&&p(u.get(wa)));break;case"set":On(e)&&p(u.get(ps));break}}Ra()}function zs(e){let t=nt(e);return t===e||(Dt(t,"iterate",Ao),zt(e))?t:nn(e)?wn(e)?t.map(s=>Vn(Kt(s))):t.map(Vn):t.map(Kt)}function Io(e){return Dt(e=nt(e),"iterate",Ao),e}function yn(e,t){return nn(e)?Vn(wn(e)?Kt(t):t):Kt(t)}var yh={__proto__:null,[Symbol.iterator](){return ha(this,Symbol.iterator,e=>yn(this,e))},concat(...e){return zs(this).concat(...e.map(t=>Ve(t)?zs(t):t))},entries(){return ha(this,"entries",e=>(e[1]=yn(this,e[1]),e))},every(e,t){return Mn(this,"every",e,t,void 0,arguments)},filter(e,t){return Mn(this,"filter",e,t,s=>s.map(i=>yn(this,i)),arguments)},find(e,t){return Mn(this,"find",e,t,s=>yn(this,s),arguments)},findIndex(e,t){return Mn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mn(this,"findLast",e,t,s=>yn(this,s),arguments)},findLastIndex(e,t){return Mn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mn(this,"forEach",e,t,void 0,arguments)},includes(...e){return ga(this,"includes",e)},indexOf(...e){return ga(this,"indexOf",e)},join(e){return zs(this).join(e)},lastIndexOf(...e){return ga(this,"lastIndexOf",e)},map(e,t){return Mn(this,"map",e,t,void 0,arguments)},pop(){return So(this,"pop")},push(...e){return So(this,"push",e)},reduce(e,...t){return Ad(this,"reduce",e,t)},reduceRight(e,...t){return Ad(this,"reduceRight",e,t)},shift(){return So(this,"shift")},some(e,t){return Mn(this,"some",e,t,void 0,arguments)},splice(...e){return So(this,"splice",e)},toReversed(){return zs(this).toReversed()},toSorted(e){return zs(this).toSorted(e)},toSpliced(...e){return zs(this).toSpliced(...e)},unshift(...e){return So(this,"unshift",e)},values(){return ha(this,"values",e=>yn(this,e))}};function ha(e,t,s){let i=Io(e),r=i[t],o=r.call(i);if(i!==e&&!zt(e)){if(o[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(o));return u.next=()=>Dd(o.next(),s),r!==Ud[t]&&Object.defineProperties(u,{return:{get(){let p=o.return;return typeof p=="function"?p.bind(o):p}},throw:{get(){let p=o.throw;return typeof p=="function"?p.bind(o):p}}}),u}o._next=o.next,o.next=()=>Dd(o._next(),s)}return o}function Dd(e,t){return e.done||(e.value=t(e.value)),e}var Ud=Array.prototype;function Mn(e,t,s,i,r,o){let u=Io(e),p=u!==e&&!zt(e),d=u[t];if(d!==Ud[t]){let v=d.apply(e,o);return p?Kt(v):v}let g=s;u!==e&&(p?g=function(v,y){return s.call(this,yn(e,v),y,e)}:s.length>2&&(g=function(v,y){return s.call(this,v,y,e)}));let m=d.call(u,g,i);return p&&r?r(m):m}function Ad(e,t,s,i){let r=Io(e),o=r!==e&&!zt(e),u=s,p=!1;r!==e&&(o?(p=i.length===0,u=function(g,m,v){return p&&(p=!1,g=yn(e,g)),s.call(this,g,yn(e,m),v,e)}):s.length>3&&(u=function(g,m,v){return s.call(this,g,m,v,e)}));let d=r[t](u,...i);return p?yn(e,d):d}function ga(e,t,s){let i=nt(e);Dt(i,"iterate",Ao);let r=i[t](...s);return(r===-1||r===!1)&&Mo(s[0])?(s[0]=nt(s[0]),i[t](...s)):r}function So(e,t,s=[]){dn(),Na();let i=nt(e)[t].apply(e,s);return Ra(),un(),i}var vh=Ls("__proto__,__v_isRef,__isVue"),Bd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt));function bh(e){Wt(e)||(e=String(e));let t=nt(this);return Dt(t,"has",e),t.hasOwnProperty(e)}var Bi=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let r=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return o;if(s==="__v_raw")return i===(r?o?Ph:jd:o?zd:Hd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ve(t);if(!r){let d;if(u&&(d=yh[s]))return d;if(s==="hasOwnProperty")return bh}let p=Reflect.get(t,s,Nt(t)?t:i);if((Wt(s)?Bd.has(s):vh(s))||(r||Dt(t,"get",s),o))return p;if(Nt(p)){let d=u&&Oi(s)?p:p.value;return r&&st(d)?zi(d):d}return st(p)?r?zi(p):ut(p):p}},Hi=class extends Bi{constructor(t=!1){super(!1,t)}set(t,s,i,r){let o=t[s],u=Ve(t)&&Oi(s);if(!this._isShallow){let g=nn(o);if(!zt(i)&&!nn(i)&&(o=nt(o),i=nt(i)),!u&&Nt(o)&&!Nt(i))return g||(o.value=i),!0}let p=u?Number(s)e,$i=e=>Reflect.getPrototypeOf(e);function Eh(e,t,s){return function(...i){let r=this.__v_raw,o=nt(r),u=On(o),p=e==="entries"||e===Symbol.iterator&&u,d=e==="keys"&&u,g=r[e](...i),m=s?Ca:t?Vn:Kt;return!t&&Dt(o,"iterate",d?wa:ps),vt(Object.create(g),{next(){let{value:v,done:y}=g.next();return y?{value:v,done:y}:{value:p?[m(v[0]),m(v[1])]:m(v),done:y}}})}}function Fi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sh(e,t){let s={get(r){let o=this.__v_raw,u=nt(o),p=nt(r);e||(tn(r,p)&&Dt(u,"get",r),Dt(u,"get",p));let{has:d}=$i(u),g=t?Ca:e?Vn:Kt;if(d.call(u,r))return g(o.get(r));if(d.call(u,p))return g(o.get(p));o!==u&&o.get(r)},get size(){let r=this.__v_raw;return!e&&Dt(nt(r),"iterate",ps),r.size},has(r){let o=this.__v_raw,u=nt(o),p=nt(r);return e||(tn(r,p)&&Dt(u,"has",r),Dt(u,"has",p)),r===p?o.has(r):o.has(r)||o.has(p)},forEach(r,o){let u=this,p=u.__v_raw,d=nt(p),g=t?Ca:e?Vn:Kt;return!e&&Dt(d,"iterate",ps),p.forEach((m,v)=>r.call(o,g(m),g(v),u))}};return vt(s,e?{add:Fi("add"),set:Fi("set"),delete:Fi("delete"),clear:Fi("clear")}:{add(r){let o=nt(this),u=$i(o),p=nt(r),d=!t&&!zt(r)&&!nn(r)?p:r;return u.has.call(o,d)||tn(r,d)&&u.has.call(o,r)||tn(p,d)&&u.has.call(o,p)||(o.add(d),vn(o,"add",d,d)),this},set(r,o){!t&&!zt(o)&&!nn(o)&&(o=nt(o));let u=nt(this),{has:p,get:d}=$i(u),g=p.call(u,r);g||(r=nt(r),g=p.call(u,r));let m=d.call(u,r);return u.set(r,o),g?tn(o,m)&&vn(u,"set",r,o,m):vn(u,"add",r,o),this},delete(r){let o=nt(this),{has:u,get:p}=$i(o),d=u.call(o,r);d||(r=nt(r),d=u.call(o,r));let g=p?p.call(o,r):void 0,m=o.delete(r);return d&&vn(o,"delete",r,void 0,g),m},clear(){let r=nt(this),o=r.size!==0,u=void 0,p=r.clear();return o&&vn(r,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Eh(r,e,t)}),s}function Pa(e,t){let s=Sh(e,t);return(i,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?i:Reflect.get(et(s,r)&&r in i?s:i,r,o)}var Nh={get:Pa(!1,!1)},Rh={get:Pa(!1,!0)},Th={get:Pa(!0,!1)};var Hd=new WeakMap,zd=new WeakMap,jd=new WeakMap,Ph=new WeakMap;function Dh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ut(e){return nn(e)?e:Da(e,!1,wh,Nh,Hd)}function Oo(e){return Da(e,!1,Ch,Rh,zd)}function zi(e){return Da(e,!0,kh,Th,jd)}function Da(e,t,s,i,r){if(!st(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let o=r.get(e);if(o)return o;let u=Dh(fa(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return r.set(e,p),p}function wn(e){return nn(e)?wn(e.__v_raw):!!(e&&e.__v_isReactive)}function nn(e){return!!(e&&e.__v_isReadonly)}function zt(e){return!!(e&&e.__v_isShallow)}function Mo(e){return e?!!e.__v_raw:!1}function nt(e){let t=e&&e.__v_raw;return t?nt(t):e}function kn(e){return!et(e,"__v_skip")&&Object.isExtensible(e)&&Vi(e,"__v_skip",!0),e}var Kt=e=>st(e)?ut(e):e,Vn=e=>st(e)?zi(e):e;function Nt(e){return e?e.__v_isRef===!0:!1}function bt(e){return _d(e,!1)}function _i(e){return _d(e,!0)}function _d(e,t){return Nt(e)?e:new Ea(e,t)}var Ea=class{constructor(t,s){this.dep=new Do,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:nt(t),this._value=s?t:Kt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||zt(t)||nn(t);t=i?t:nt(t),tn(t,s)&&(this._rawValue=t,this._value=i?t:Kt(t),this.dep.trigger())}};function Ln(e){return Nt(e)?e.value:e}var Ah={get:(e,t,s)=>t==="__v_raw"?e:Ln(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let r=e[t];return Nt(r)&&!Nt(s)?(r.value=s,!0):Reflect.set(e,t,s,i)}};function Gi(e){return wn(e)?e:new Proxy(e,Ah)}var Sa=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new Do(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Po-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&pt!==this)return Md(this,!0),!0}get value(){let t=this.dep.track();return Ld(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Gd(e,t,s=!1){let i,r;return Fe(e)?i=e:(i=e.get,r=e.set),new Sa(i,r,s)}var Ui={},ji=new WeakMap,cs;function Wd(e,t=!1,s=cs){if(s){let i=ji.get(s);i||ji.set(s,i=[]),i.push(e)}}function Kd(e,t,s=rt){let{immediate:i,deep:r,once:o,scheduler:u,augmentJob:p,call:d}=s,g=H=>{(s.onWarn||hh)("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=H=>r?H:zt(H)||r===!1||r===0?bn(H,1):bn(H),v,y,C,k,w=!1,R=!1;if(Nt(e)?(y=()=>e.value,w=zt(e)):wn(e)?(y=()=>m(e),w=!0):Ve(e)?(R=!0,w=e.some(H=>wn(H)||zt(H)),y=()=>e.map(H=>{if(Nt(H))return H.value;if(wn(H))return m(H);if(Fe(H))return d?d(H,2):H()})):Fe(e)?t?y=d?()=>d(e,2):e:y=()=>{if(C){dn();try{C()}finally{un()}}let H=cs;cs=v;try{return d?d(e,3,[k]):e(k)}finally{cs=H}}:y=Ht,t&&r){let H=y,_=r===!0?1/0:r;y=()=>bn(H(),_)}let b=Id(),P=()=>{v.stop(),b&&b.active&&wo(b.effects,v)};if(o&&t){let H=t;t=(..._)=>{try{return H(..._)}finally{P()}}}let D=R?new Array(e.length).fill(Ui):Ui,L=H=>{if(!(!(v.flags&1)||!v.dirty&&!H))if(t){let _=v.run();if(H||r||w||(R?_.some((W,ae)=>tn(W,D[ae])):tn(_,D))){let W=cs;dn();try{C&&C(),cs=v;let ae=[_,D===Ui?void 0:R&&D[0]===Ui?[]:D,k];D=_,d?d(t,3,ae):t(...ae)}finally{cs=W,un()}}}else v.run()};return p&&p(L),v=new js(y),v.scheduler=u?()=>u(L,!1):L,k=H=>Wd(H,!1,v),C=v.onStop=()=>{let H=ji.get(v);if(H){if(d)d(H,4);else for(let _ of H)_();ji.delete(v)}},t?i?L(!0):D=v.run():u?u(L.bind(null,!0),!0):v.run(),P.pause=v.pause.bind(v),P.resume=v.resume.bind(v),P.stop=P,P}function bn(e,t=1/0,s){if(t<=0||!st(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Nt(e))bn(e.value,t,s);else if(Ve(e))for(let i=0;i{bn(i,t,s)});else if(Ii(e)){for(let i in e)bn(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&bn(e[i],t,s)}return e}function Go(e,t,s,i){try{return i?e(...i):e()}catch(r){Wo(r,t,s)}}function sn(e,t,s,i){if(Fe(e)){let r=Go(e,t,s,i);return r&&pa(r)&&r.catch(o=>{Wo(o,t,s)}),r}if(Ve(e)){let r=[];for(let o=0;o>>1,r=Mt[i],o=Bo(r);o=Bo(s)?Mt.push(e):Mt.splice(qh(t),0,e),e.flags|=1,uu()}}function uu(){Yi||(Yi=du.then(mu))}function cu(e){if(!Ve(e))Kn&&e.id===-1?Kn.splice(_s+1,0,e):e.flags&1||(En.push(e),e.flags|=1);else for(let t=0;t=t))continue;Mt.splice(i,1),i=e?i-1:cn,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function fu(e,t,s=0){if(En.length){let i=En,r=0;if(t){i=[];for(let u=0;uBo(u)-Bo(p));if(En.length=r,Kn){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function mu(e){let t=Ht;try{for(cn=0;cn{i._d&&Zi(-1);let o=Xi(t),u=hs.length,p;try{p=e(...r)}finally{for(let d=hs.length;d>u;d--)_u();Xi(o),i._d&&Zi(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function O(e,t){if(Yt===null)return e;let s=rr(Yt),i=e.dirs||(e.dirs=[]);for(let r=0;r1)return s&&Fe(t)?t.call(i&&i.proxy):t}}var Fh=Symbol.for("v-scx"),Uh=()=>{{let e=_t(Fh);return e}};function dt(e,t,s){return gu(e,t,s)}function gu(e,t,s=rt){let{immediate:i,deep:r,flush:o,once:u}=s,p=vt({},s),d=t&&i||!t&&o!=="post",g;if(Ks){if(o==="sync"){let C=Uh();g=C.__watcherHandles||(C.__watcherHandles=[])}else if(!d){let C=()=>{};return C.stop=Ht,C.resume=Ht,C.pause=Ht,C}}let m=At;p.call=(C,k,w)=>sn(C,m,k,w);let v=!1;o==="post"?p.scheduler=C=>{C.i=m,jt(C,m&&m.suspense)}:o!=="sync"&&(v=!0,p.scheduler=(C,k)=>{k?C():Ha(C)}),p.augmentJob=C=>{t&&(C.flags|=4),v&&(C.flags|=2,m&&(C.id=m.uid,C.i=m))};let y=Kd(e,t,p);return Ks&&(g?g.push(y):d&&y()),y}function Bh(e,t,s){let i=this.proxy,r=ht(e)?e.includes(".")?yu(i,e):()=>i[e]:e.bind(i,i),o;Fe(t)?o=t:(o=t.handler,s=t);let u=Xo(this),p=gu(r,o.bind(i),s);return u(),p}function yu(e,t){let s=t.split(".");return()=>{let i=e;for(let r=0;re.__isTeleport;var Ia=Symbol("_leaveCb");function zh(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==pn){t=i,s=!0;break}}return t}function vu(e){if(!nr(e))return tr(e.type)&&e.children?zh(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Fe(s.default))return s.default()}}function Ho(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Ho(tr(s.type)&&vu(s)||s,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===N&&Ve(e.children)){let s=Au(e.children,!1);s&&Ho(s,t)}}function qa(e){if(e.component)return qa(e.component.subTree);if(e.type===N){let t=Ve(e.children)&&Au(e.children,!1);return t?qa(t):void 0}if(e.type!==pn)return e}function Ko(e,t){return Fe(e)?vt({name:e.name},t,{setup:e}):e}function za(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yd(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Qi=new WeakMap;function Lo(e,t,s,i,r=!1){if(Ve(e)){e.forEach((w,R)=>Lo(w,t&&(Ve(t)?t[R]:t),s,i,r));return}if($o(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Lo(e,t,s,i.component.subTree);return}let o=i.shapeFlag&4?rr(i.component):i.el,u=r?null:o,{i:p,r:d}=e,g=t&&t.r,m=p.refs===rt?p.refs={}:p.refs,v=p.setupState,y=nt(v),C=v===rt?ca:w=>Yd(m,w)?!1:et(y,w),k=(w,R)=>!(R&&Yd(m,R));if(g!=null&&g!==d){if(Xd(t),ht(g))m[g]=null,C(g)&&(v[g]=null);else if(Nt(g)){let w=t;k(g,w.k)&&(g.value=null),w.k&&(m[w.k]=null)}}if(Fe(d))Go(d,p,12,[u,m]);else{let w=ht(d),R=Nt(d);if(w||R){let b=()=>{if(e.f){let P=w?C(d)?v[d]:m[d]:k(d)||!e.k?d.value:m[e.k];if(r)Ve(P)&&wo(P,o);else if(Ve(P))P.includes(o)||P.push(o);else if(w)m[d]=[o],C(d)&&(v[d]=m[d]);else{let D=[o];k(d,e.k)&&(d.value=D),e.k&&(m[e.k]=D)}}else w?(m[d]=u,C(d)&&(v[d]=u)):R&&(k(d,e.k)&&(d.value=u),e.k&&(m[e.k]=u))};if(u){let P=()=>{b(),Qi.delete(e)};P.id=-1,Qi.set(e,P),jt(P,s)}else Xd(e),b()}}}function Xd(e){let t=Qi.get(e);t&&(t.flags|=8,Qi.delete(e))}var Qd=e=>e.nodeType===8;var ide=Eo().requestIdleCallback||(e=>setTimeout(e,1)),rde=Eo().cancelIdleCallback||(e=>clearTimeout(e));function jh(e,t){if(Qd(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Qd(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var $o=e=>!!e.type.__asyncLoader;function bu(e){Fe(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:r=200,hydrate:o,timeout:u,suspensible:p=!0,onError:d}=e,g=null,m,v=0,y=()=>(v++,g=null,C()),C=()=>{let k;return g||(k=g=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),d)return new Promise((R,b)=>{d(w,()=>R(y()),()=>b(w),v+1)});throw w}).then(w=>k!==g&&g?g:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),m=w,w)))};return Ko({name:"AsyncComponentWrapper",__asyncLoader:C,__asyncHydrate(k,w,R){let b=k.isConnected,P=!1;(w.bu||(w.bu=[])).push(()=>P=!0);let D=()=>{P||!k.parentNode||b&&!k.isConnected||R()},L=o?()=>{let H=o(D,_=>jh(k,_));H&&(w.bum||(w.bum=[])).push(H)}:D;m?L():C().then(()=>!w.isUnmounted&&L())},get __asyncResolved(){return m},setup(){let k=At;if(za(k),m)return()=>Wi(m,k);let w=H=>{g=null,Wo(H,k,13,!i)};if(p&&k.suspense||Ks)return C().then(H=>()=>Wi(H,k)).catch(H=>(w(H),()=>i?$e(i,{error:H}):null));let R=bt(!1),b=bt(),P=bt(!!r),D,L;return Yo(()=>{D!=null&&clearTimeout(D),L!=null&&clearTimeout(L)}),r&&(L=setTimeout(()=>{k.isUnmounted||(P.value=!1)},r)),u!=null&&(D=setTimeout(()=>{if(!k.isUnmounted&&!R.value&&!b.value){let H=new Error(`Async component timed out after ${u}ms.`);w(H),b.value=H}},u)),C().then(()=>{k.isUnmounted||(R.value=!0,k.parent&&nr(k.parent.vnode)&&k.parent.update())}).catch(H=>{if(k.isUnmounted){g=null;return}w(H),b.value=H}),()=>{if(R.value&&m)return Wi(m,k);if(b.value&&i)return $e(i,{error:b.value});if(s&&!P.value)return Wi(s,k)}}})}function Wi(e,t){let{ref:s,props:i,children:r,ce:o}=t.vnode,u=$e(e,i,r);return u.ref=s,u.ce=o,delete t.vnode.ce,u}var nr=e=>e.type.__isKeepAlive;function wu(e,t){Cu(e,"a",t)}function ku(e,t){Cu(e,"da",t)}function Cu(e,t,s=At){let i=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(sr(t,i,s),s){let r=s.parent;for(;r&&r.parent;)nr(r.parent.vnode)&&_h(i,t,s,r),r=r.parent}}function _h(e,t,s,i){let r=sr(t,e,i,!0);Yo(()=>{wo(i[t],r)},s)}function sr(e,t,s=At,i=!1){if(s){let r=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...u)=>{dn();let p=Xo(s),d=sn(t,s,e,u);return p(),un(),d});return i?r.unshift(o):r.push(o),o}}var Fn=e=>(t,s=At)=>{(!Ks||e==="sp")&&sr(e,(...i)=>t(...i),s)},Gh=Fn("bm"),Qt=Fn("m"),Eu=Fn("bu"),Su=Fn("u"),Un=Fn("bum"),Yo=Fn("um"),Wh=Fn("sp"),Kh=Fn("rtg"),Yh=Fn("rtc");function Xh(e,t=At){sr("ec",e,t)}var Nu="components",Qh="directives";function _e(e,t){return Ru(Nu,e,!0,t)||e}var Jh=Symbol.for("v-ndc");function Le(e){return Ru(Qh,e)}function Ru(e,t,s=!0,i=!1){let r=Yt||At;if(r){let o=r.type;if(e===Nu){let p=Vg(o,!1);if(p&&(p===t||p===kt(t)||p===us(kt(t))))return o}let u=Jd(r[e]||o[e],t)||Jd(r.appContext[e],t);return!u&&i?o:u}}function Jd(e,t){return e&&(e[t]||e[kt(t)]||e[us(kt(t))])}function U(e,t,s,i){let r,o=s&&s[i],u=Ve(e);if(u||ht(e)){let p=u&&wn(e),d=!1,g=!1;p&&(d=!zt(e),g=nn(e),e=Io(e)),r=new Array(e.length);for(let m=0,v=e.length;mt(p,d,void 0,o&&o[d]));else{let p=Object.keys(e);r=new Array(p.length);for(let d=0,g=p.length;de?Yu(e)?rr(e):La(e.parent):null;var Fo=vt(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=>La(e.parent),$root:e=>La(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ja(e),$forceUpdate:e=>e.f||(e.f=()=>{Ha(e.update)}),$nextTick:e=>e.n||(e.n=xe.bind(e.proxy)),$watch:e=>Bh.bind(e)});var Oa=(e,t)=>e!==rt&&!e.__isScriptSetup&&et(e,t),Zh={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:r,props:o,accessCache:u,type:p,appContext:d}=e;if(t[0]!=="$"){let y=u[t];if(y!==void 0)switch(y){case 1:return i[t];case 2:return r[t];case 4:return s[t];case 3:return o[t]}else{if(Oa(i,t))return u[t]=1,i[t];if(r!==rt&&et(r,t))return u[t]=2,r[t];if(et(o,t))return u[t]=3,o[t];if(s!==rt&&et(s,t))return u[t]=4,s[t];$a&&(u[t]=0)}}let g=Fo[t],m,v;if(g)return t==="$attrs"&&Dt(e.attrs,"get",""),g(e);if((m=p.__cssModules)&&(m=m[t]))return m;if(s!==rt&&et(s,t))return u[t]=4,s[t];if(v=d.config.globalProperties,et(v,t))return v[t]},set({_:e},t,s){let{data:i,setupState:r,ctx:o}=e;return Oa(r,t)?(r[t]=s,!0):i!==rt&&et(i,t)?(i[t]=s,!0):et(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:r,props:o,type:u}},p){let d;return!!(s[p]||e!==rt&&p[0]!=="$"&&et(e,p)||Oa(t,p)||et(o,p)||et(i,p)||et(Fo,p)||et(r.config.globalProperties,p)||(d=u.__cssModules)&&d[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:et(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Zd(e){return Ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var $a=!0;function xh(e){let t=ja(e),s=e.proxy,i=e.ctx;$a=!1,t.beforeCreate&&xd(t.beforeCreate,e,"bc");let{data:r,computed:o,methods:u,watch:p,provide:d,inject:g,created:m,beforeMount:v,mounted:y,beforeUpdate:C,updated:k,activated:w,deactivated:R,beforeDestroy:b,beforeUnmount:P,destroyed:D,unmounted:L,render:H,renderTracked:_,renderTriggered:W,errorCaptured:ae,serverPrefetch:F,expose:V,inheritAttrs:S,components:q,directives:G,filters:oe}=t;if(g&&eg(g,i,null),u)for(let le in u){let ye=u[le];Fe(ye)&&(i[le]=ye.bind(s))}if(r){let le=r.call(s,s);st(le)&&(e.data=ut(le))}if($a=!0,o)for(let le in o){let ye=o[le],Ae=Fe(ye)?ye.bind(s,s):Fe(ye.get)?ye.get.bind(s,s):Ht,Xe=!Fe(ye)&&Fe(ye.set)?ye.set.bind(s):Ht,tt=Ye({get:Ae,set:Xe});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Ge=>tt.value=Ge})}if(p)for(let le in p)Tu(p[le],i,s,le);if(d){let le=Fe(d)?d.call(s):d;Reflect.ownKeys(le).forEach(ye=>{gs(ye,le[ye])})}m&&xd(m,e,"c");function ne(le,ye){Ve(ye)?ye.forEach(Ae=>le(Ae.bind(s))):ye&&le(ye.bind(s))}if(ne(Gh,v),ne(Qt,y),ne(Eu,C),ne(Su,k),ne(wu,w),ne(ku,R),ne(Xh,ae),ne(Yh,_),ne(Kh,W),ne(Un,P),ne(Yo,L),ne(Wh,F),Ve(V))if(V.length){let le=e.exposed||(e.exposed={});V.forEach(ye=>{Object.defineProperty(le,ye,{get:()=>s[ye],set:Ae=>s[ye]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});H&&e.render===Ht&&(e.render=H),S!=null&&(e.inheritAttrs=S),q&&(e.components=q),G&&(e.directives=G),F&&za(e)}function eg(e,t,s=Ht){Ve(e)&&(e=Fa(e));for(let i in e){let r=e[i],o;st(r)?"default"in r?o=_t(r.from||i,r.default,!0):o=_t(r.from||i):o=_t(r),Nt(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:u=>o.value=u}):t[i]=o}}function xd(e,t,s){sn(Ve(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Tu(e,t,s,i){let r=i.includes(".")?yu(s,i):()=>s[i];if(ht(e)){let o=t[e];Fe(o)&&dt(r,o)}else if(Fe(e))dt(r,e.bind(s));else if(st(e))if(Ve(e))e.forEach(o=>Tu(o,t,s,i));else{let o=Fe(e.handler)?e.handler.bind(s):t[e.handler];Fe(o)&&dt(r,o,e)}}function ja(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:u}}=e.appContext,p=o.get(t),d;return p?d=p:!r.length&&!s&&!i?d=t:(d={},r.length&&r.forEach(g=>Ji(d,g,u,!0)),Ji(d,t,u)),st(t)&&o.set(t,d),d}function Ji(e,t,s,i=!1){let{mixins:r,extends:o}=t;o&&Ji(e,o,s,!0),r&&r.forEach(u=>Ji(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=tg[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var tg={data:eu,props:tu,emits:tu,methods:qo,computed:qo,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:qo,directives:qo,watch:sg,provide:eu,inject:ng};function eu(e,t){return t?e?function(){return vt(Fe(e)?e.call(this,this):e,Fe(t)?t.call(this,this):t)}:t:e}function ng(e,t){return qo(Fa(e),Fa(t))}function Fa(e){if(Ve(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${kt(t)}Modifiers`]||e[`${gn(t)}Modifiers`];function ag(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||rt,r=s,o=t.startsWith("update:"),u=o&&rg(i,t.slice(7));u&&(u.trim&&(r=s.map(m=>ht(m)?m.trim():m)),u.number&&(r=r.map(Hs)));let p,d=i[p=Co(t)]||i[p=Co(kt(t))];!d&&o&&(d=i[p=Co(gn(t))]),d&&sn(d,e,6,r);let g=i[p+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,sn(g,e,6,r)}}var lg=new WeakMap;function Du(e,t,s=!1){let i=s?lg:t.emitsCache,r=i.get(e);if(r!==void 0)return r;let o=e.emits,u={},p=!1;if(!Fe(e)){let d=g=>{let m=Du(g,t,!0);m&&(p=!0,vt(u,m))};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!o&&!p?(st(e)&&i.set(e,null),null):(Ve(o)?o.forEach(d=>u[d]=null):vt(u,o),st(e)&&i.set(e,u),u)}function or(e,t){return!e||!$s(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,gn(t))||et(e,t))}function Ma(e){let{type:t,vnode:s,proxy:i,withProxy:r,propsOptions:[o],slots:u,attrs:p,emit:d,render:g,renderCache:m,props:v,data:y,setupState:C,ctx:k,inheritAttrs:w}=e,R=Xi(e),b,P;try{if(s.shapeFlag&4){let H=r||i,_=H;b=Sn(g.call(_,H,m,v,C,y,k)),P=p}else{let H=t;b=Sn(H.length>1?H(v,{attrs:p,slots:u,emit:d}):H(v,null)),P=t.props?p:dg(p)}}catch(H){hs.length=0,Wo(H,e,1),b=$e(pn)}let D=b,L;if(P&&w!==!1){let H=Object.keys(P),{shapeFlag:_}=D;H.length&&_&7&&(o&&H.some(Fs)&&(P=ug(P,o)),D=Ws(D,P,!1,!0))}if(s.dirs&&(D=Ws(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(s.dirs):s.dirs),s.transition){let H=tr(D.type)&&vu(D)||D;Ho(H,s.transition)}return b=D,Xi(R),b}function Au(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||$s(s))&&((t||(t={}))[s]=e[s]);return t},ug=(e,t)=>{let s={};for(let i in e)(!Fs(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function cg(e,t,s){let{props:i,children:r,component:o}=e,{props:u,children:p,patchFlag:d}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&d>=0){if(d&1024)return!0;if(d&16)return i?nu(i,u,g):!!u;if(d&8){let m=t.dynamicProps;for(let v=0;vObject.create(Ou),Vu=e=>Object.getPrototypeOf(e)===Ou;function fg(e,t,s,i=!1){let r={},o=Mu();e.propsDefaults=Object.create(null),qu(e,t,r,o);for(let u in e.propsOptions[0])u in r||(r[u]=void 0);s?e.props=i?r:Oo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function mg(e,t,s,i){let{props:r,attrs:o,vnode:{patchFlag:u}}=e,p=nt(r),[d]=e.propsOptions,g=!1;if((i||u>0)&&!(u&16)){if(u&8){let m=e.vnode.dynamicProps;for(let v=0;v{d=!0;let[y,C]=Lu(v,t,!0);vt(u,y),C&&p.push(...C)};!s&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!o&&!d)return st(e)&&i.set(e,Wn),Wn;if(Ve(o))for(let m=0;me==="_"||e==="_ctx"||e==="$stable",Ga=e=>Ve(e)?e.map(Sn):[Sn(e)],gg=(e,t,s)=>{if(t._n)return t;let i=$h((...r)=>Ga(t(...r)),s);return i._c=!1,i},$u=(e,t,s)=>{let i=e._ctx;for(let r in e){if(_a(r))continue;let o=e[r];if(Fe(o))t[r]=gg(r,o,i);else if(o!=null){let u=Ga(o);t[r]=()=>u}}},Fu=(e,t)=>{let s=Ga(t);e.slots.default=()=>s},Uu=(e,t,s)=>{for(let i in t)(s||!_a(i))&&(e[i]=t[i])},yg=(e,t,s)=>{let i=e.slots=Mu();if(e.vnode.shapeFlag&32){let r=t._;r?(Uu(i,t,s),s&&Vi(i,"_",r,!0)):$u(t,i)}else t&&Fu(e,t)},vg=(e,t,s)=>{let{vnode:i,slots:r}=e,o=!0,u=rt;if(i.shapeFlag&32){let p=t._;p?s&&p===1?o=!1:Uu(r,t,s):(o=!t.$stable,$u(t,r)),u=t}else t&&(Fu(e,t),u={default:1});if(o)for(let p in r)!_a(p)&&u[p]==null&&delete r[p]};function bg(){let e=[]}var jt=Eg;function Bu(e){return wg(e)}function wg(e,t){bg();let s=Eo();s.__VUE__=!0;let{insert:i,remove:r,patchProp:o,createElement:u,createText:p,createComment:d,setText:g,setElementText:m,parentNode:v,nextSibling:y,setScopeId:C=Ht,insertStaticContent:k}=e,w=(A,I,z,Z=null,X=null,ee=null,ue=void 0,re=null,ie=!!I.dynamicChildren)=>{if(A===I)return;A&&!Vo(A,I)&&(Z=he(A),We(A,X,ee,!0),A=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null),I.dynamicChildren&&A&&A.dynamicChildren&&A.dynamicChildren.hasOnce&&(I.dynamicChildren===Wn&&(I.dynamicChildren=[]),I.dynamicChildren.hasOnce=!0);let{type:se,ref:Te,shapeFlag:fe}=I;switch(se){case ir:R(A,I,z,Z);break;case pn:b(A,I,z,Z);break;case Uo:A==null&&P(I,z,Z,ue);break;case N:G(A,I,z,Z,X,ee,ue,re,ie);break;default:fe&1?_(A,I,z,Z,X,ee,ue,re,ie):fe&6?oe(A,I,z,Z,X,ee,ue,re,ie):(fe&64||fe&128)&&se.process(A,I,z,Z,X,ee,ue,re,ie,ge)}Te!=null&&X?Lo(Te,A&&A.ref,ee,I||A,!I):Te==null&&A&&A.ref!=null&&Lo(A.ref,null,ee,A,!0)},R=(A,I,z,Z)=>{if(A==null)i(I.el=p(I.children),z,Z);else{let X=I.el=A.el;I.children!==A.children&&g(X,I.children)}},b=(A,I,z,Z)=>{A==null?i(I.el=d(I.children||""),z,Z):I.el=A.el},P=(A,I,z,Z)=>{[A.el,A.anchor]=k(A.children,I,z,Z,A.el,A.anchor)},D=(A,I,z,Z)=>{if(I.children!==A.children){let X=y(A.anchor);H(A),[I.el,I.anchor]=k(I.children,z,X,Z)}else I.el=A.el,I.anchor=A.anchor},L=({el:A,anchor:I},z,Z)=>{let X;for(;A&&A!==I;)X=y(A),i(A,z,Z),A=X;i(I,z,Z)},H=({el:A,anchor:I})=>{let z;for(;A&&A!==I;)z=y(A),r(A),A=z;r(I)},_=(A,I,z,Z,X,ee,ue,re,ie)=>{if(I.type==="svg"?ue="svg":I.type==="math"&&(ue="mathml"),A==null)W(I,z,Z,X,ee,ue,re,ie);else{let se=A.el&&A.el._isVueCE?A.el:null;try{se&&se._beginPatch(),V(A,I,X,ee,ue,re,ie)}finally{se&&se._endPatch()}}},W=(A,I,z,Z,X,ee,ue,re)=>{let ie,se,{props:Te,shapeFlag:fe,transition:Ee,dirs:Oe}=A;if(ie=A.el=u(A.type,ee,Te&&Te.is,Te),fe&8?m(ie,A.children):fe&16&&F(A.children,ie,null,Z,X,Va(A,ee),ue,re),Oe&&fs(A,null,Z,"created"),ae(ie,A,A.scopeId,ue,Z),Te){for(let Qe in Te)Qe!=="value"&&!Us(Qe)&&o(ie,Qe,null,Te[Qe],ee,Z);"value"in Te&&o(ie,"value",null,Te.value,ee),(se=Te.onVnodeBeforeMount)&&Cn(se,Z,A)}Oe&&fs(A,null,Z,"beforeMount");let Ue=kg(X,Ee);Ue&&Ee.beforeEnter(ie),i(ie,I,z),((se=Te&&Te.onVnodeMounted)||Ue||Oe)&&jt(()=>{let Je;se&&Cn(se,Z,A),Ue&&Ee.enter(ie),Oe&&fs(A,null,Z,"mounted")},X)},ae=(A,I,z,Z,X)=>{if(z&&C(A,z),Z)for(let ee=0;ee{for(let se=ie;se{let re=I.el=A.el,{patchFlag:ie,dynamicChildren:se,dirs:Te}=I;ie|=A.patchFlag&16;let fe=A.props||rt,Ee=I.props||rt,Oe;if(z&&ms(z,!1),(Oe=Ee.onVnodeBeforeUpdate)&&Cn(Oe,z,I,A),Te&&fs(I,A,z,"beforeUpdate"),z&&ms(z,!0),se&&(!A.dynamicChildren||A.dynamicChildren.length!==se.length)&&(ie=0,ue=!1,se=null),(fe.innerHTML&&Ee.innerHTML==null||fe.textContent&&Ee.textContent==null)&&m(re,""),se?S(A.dynamicChildren,se,re,z,Z,Va(I,X),ee):ue||Ae(A,I,re,null,z,Z,Va(I,X),ee,!1),ie>0){if(ie&16)q(re,fe,Ee,z,X);else if(ie&2&&fe.class!==Ee.class&&o(re,"class",null,Ee.class,X),ie&4&&o(re,"style",fe.style,Ee.style,X),ie&8){let Ue=I.dynamicProps;for(let Qe=0;Qe{Oe&&Cn(Oe,z,I,A),Te&&fs(I,A,z,"updated")},Z)},S=(A,I,z,Z,X,ee,ue)=>{for(let re=0;re{if(I!==z){if(I!==rt)for(let ee in I)!Us(ee)&&!(ee in z)&&o(A,ee,I[ee],null,X,Z);for(let ee in z){if(Us(ee))continue;let ue=z[ee],re=I[ee];ue!==re&&ee!=="value"&&o(A,ee,re,ue,X,Z)}"value"in z&&o(A,"value",I.value,z.value,X)}},G=(A,I,z,Z,X,ee,ue,re,ie)=>{let se=I.el=A?A.el:p(""),Te=I.anchor=A?A.anchor:p(""),{patchFlag:fe,dynamicChildren:Ee,slotScopeIds:Oe}=I;Oe&&(re=re?re.concat(Oe):Oe),A==null?(i(se,z,Z),i(Te,z,Z),F(I.children||[],z,Te,X,ee,ue,re,ie)):fe>0&&fe&64&&Ee&&A.dynamicChildren&&A.dynamicChildren.length===Ee.length?(S(A.dynamicChildren,Ee,z,X,ee,ue,re),(I.key!=null||X&&I===X.subTree)&&Hu(A,I,!0)):Ae(A,I,z,Te,X,ee,ue,re,ie)},oe=(A,I,z,Z,X,ee,ue,re,ie)=>{I.slotScopeIds=re,A==null?I.shapeFlag&512?X.ctx.activate(I,z,Z,ue,ie):K(I,z,Z,X,ee,ue,ie):ne(A,I,ie)},K=(A,I,z,Z,X,ee,ue)=>{let re=A.component=Dg(A,Z,X);if(nr(A)&&(re.ctx.renderer=ge),Ag(re,!1,ue),re.asyncDep){if(X&&X.registerDep(re,le,ue,ee),!A.el){let ie=re.subTree=$e(pn);b(null,ie,I,z),A.placeholder=ie.el}}else le(re,A,I,z,X,ee,ue)},ne=(A,I,z)=>{let Z=I.component=A.component;if(cg(A,I,z))if(Z.asyncDep&&!Z.asyncResolved){I.el=A.el,I.placeholder=A.placeholder,ye(Z,I,z);return}else Z.next=I,Z.update();else I.el=A.el,I.placeholder=A.placeholder,Z.vnode=I},le=(A,I,z,Z,X,ee,ue)=>{let re=()=>{if(A.isMounted){let{next:fe,bu:Ee,u:Oe,parent:Ue,vnode:Qe}=A;{let J=zu(A);if(J){fe&&(fe.el=Qe.el,ye(A,fe,ue)),J.asyncDep.then(()=>{jt(()=>{A.isUnmounted||se()},X)});return}}let Je=fe,Re;ms(A,!1),fe?(fe.el=Qe.el,ye(A,fe,ue)):fe=Qe,Ee&&Bs(Ee),(Re=fe.props&&fe.props.onVnodeBeforeUpdate)&&Cn(Re,Ue,fe,Qe),ms(A,!0);let Be=Ma(A),j=A.subTree;A.subTree=Be,w(j,Be,v(j.el),he(j),A,X,ee),fe.el=Be.el,Je===null&&pg(A,Be.el),Oe&&jt(Oe,X),(Re=fe.props&&fe.props.onVnodeUpdated)&&jt(()=>Cn(Re,Ue,fe,Qe),X)}else{let fe,{el:Ee,props:Oe}=I,{bm:Ue,m:Qe,parent:Je,root:Re,type:Be}=A,j=$o(I);if(ms(A,!1),Ue&&Bs(Ue),!j&&(fe=Oe&&Oe.onVnodeBeforeMount)&&Cn(fe,Je,I),ms(A,!0),Ee&&Ie){let J=()=>{A.subTree=Ma(A),Ie(Ee,A.subTree,A,X,null)};j&&Be.__asyncHydrate?Be.__asyncHydrate(Ee,A,J):J()}else{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Be,A.parent?A.parent.type:void 0);let J=A.subTree=Ma(A);w(null,J,z,Z,A,X,ee),I.el=J.el}if(Qe&&jt(Qe,X),!j&&(fe=Oe&&Oe.onVnodeMounted)){let J=I;jt(()=>Cn(fe,Je,J),X)}(I.shapeFlag&256||Je&&$o(Je.vnode)&&Je.vnode.shapeFlag&256)&&A.a&&jt(A.a,X),A.isMounted=!0,I=z=Z=null}};A.scope.on();let ie=A.effect=new js(re);A.scope.off();let se=A.update=ie.run.bind(ie),Te=A.job=ie.runIfDirty.bind(ie);Te.i=A,Te.id=A.uid,ie.scheduler=()=>Ha(Te),ms(A,!0),se()},ye=(A,I,z)=>{I.component=A;let Z=A.vnode.props;A.vnode=I,A.next=null,mg(A,I.props,Z,z),vg(A,I.children,z),dn(),pu(A),un()},Ae=(A,I,z,Z,X,ee,ue,re,ie=!1)=>{let se=A&&A.children,Te=A?A.shapeFlag:0,fe=I.children,{patchFlag:Ee,shapeFlag:Oe}=I;if(Ee>0){if(Ee&128){tt(se,fe,z,Z,X,ee,ue,re,ie);return}else if(Ee&256){Xe(se,fe,z,Z,X,ee,ue,re,ie);return}}Oe&8?(Te&16&&Q(se,X,ee),fe!==se&&m(z,fe)):Te&16?Oe&16?tt(se,fe,z,Z,X,ee,ue,re,ie):Q(se,X,ee,!0):(Te&8&&m(z,""),Oe&16&&F(fe,z,Z,X,ee,ue,re,ie))},Xe=(A,I,z,Z,X,ee,ue,re,ie)=>{A=A||Wn,I=I||Wn;let se=A.length,Te=I.length,fe=Math.min(se,Te),Ee;for(Ee=0;EeTe?Q(A,X,ee,!0,!1,fe):F(I,z,Z,X,ee,ue,re,ie,fe)},tt=(A,I,z,Z,X,ee,ue,re,ie)=>{let se=0,Te=I.length,fe=A.length-1,Ee=Te-1;for(;se<=fe&&se<=Ee;){let Oe=A[se],Ue=I[se]=ie?$n(I[se]):Sn(I[se]);if(Vo(Oe,Ue))w(Oe,Ue,z,null,X,ee,ue,re,ie);else break;se++}for(;se<=fe&&se<=Ee;){let Oe=A[fe],Ue=I[Ee]=ie?$n(I[Ee]):Sn(I[Ee]);if(Vo(Oe,Ue))w(Oe,Ue,z,null,X,ee,ue,re,ie);else break;fe--,Ee--}if(se>fe){if(se<=Ee){let Oe=Ee+1,Ue=OeEe)for(;se<=fe;)We(A[se],X,ee,!0),se++;else{let Oe=se,Ue=se,Qe=new Map;for(se=Ue;se<=Ee;se++){let ve=I[se]=ie?$n(I[se]):Sn(I[se]);ve.key!=null&&Qe.set(ve.key,se)}let Je,Re=0,Be=Ee-Ue+1,j=!1,J=0,me=new Array(Be);for(se=0;se=Be){We(ve,X,ee,!0);continue}let qe;if(ve.key!=null)qe=Qe.get(ve.key);else for(Je=Ue;Je<=Ee;Je++)if(me[Je-Ue]===0&&Vo(ve,I[Je])){qe=Je;break}qe===void 0?We(ve,X,ee,!0):(me[qe-Ue]=se+1,qe>=J?J=qe:j=!0,w(ve,I[qe],z,null,X,ee,ue,re,ie),Re++)}let Ne=j?Cg(me):Wn;for(Je=Ne.length-1,se=Be-1;se>=0;se--){let ve=Ue+se,qe=I[ve],ct=I[ve+1],Ft=ve+1{let{el:ee,type:ue,transition:re,children:ie,shapeFlag:se}=A;if(se&6){Ge(A.component.subTree,I,z,Z);return}if(se&128){A.suspense.move(I,z,Z);return}if(se&64){ue.move(A,I,z,ge);return}if(ue===N){i(ee,I,z);for(let fe=0;fere.enter(ee),X));else{let{leave:fe,delayLeave:Ee,afterLeave:Oe}=re,Ue=()=>{A.ctx.isUnmounted?r(ee):i(ee,I,z)},Qe=()=>{let Je=ee._isLeaving||!!ee[Ia];ee._isLeaving&&ee[Ia](!0),re.persisted&&!Je?Ue():fe(ee,()=>{Ue(),Oe&&Oe()})};Ee?Ee(ee,Ue,Qe):Qe()}else i(ee,I,z)},We=(A,I,z,Z=!1,X=!1)=>{let{type:ee,props:ue,ref:re,children:ie,dynamicChildren:se,shapeFlag:Te,patchFlag:fe,dirs:Ee,cacheIndex:Oe,memo:Ue}=A;if((fe===-2||se&&se.hasOnce)&&(X=!1),re!=null&&(dn(),Lo(re,null,z,A,!0),un()),Oe!=null&&(!A.ctx||A.ctx===I)&&(I.renderCache[Oe]=void 0),Te&256){I.ctx.deactivate(A);return}let Qe=Te&1&&Ee,Je=!$o(A),Re;if(Je&&(Re=ue&&ue.onVnodeBeforeUnmount)&&Cn(Re,I,A),Te&6)Me(A.component,z,Z);else{if(Te&128){A.suspense.unmount(z,Z);return}Qe&&fs(A,null,I,"beforeUnmount"),Te&64?A.type.remove(A,I,z,ge,Z):se&&!se.hasOnce&&(ee!==N||fe>0&&fe&64)?Q(se,I,z,!1,!0):(ee===N&&fe&384||!X&&Te&16)&&Q(ie,I,z),Z&&it(A)}let Be=Ue!=null&&Oe==null;(Je&&(Re=ue&&ue.onVnodeUnmounted)||Qe||Be)&&jt(()=>{Re&&Cn(Re,I,A),Qe&&fs(A,null,I,"unmounted"),Be&&(A.el=null)},z)},it=A=>{let{type:I,el:z,anchor:Z,transition:X}=A,ee=I===N;if(ee&&!X){gt(z,Z);return}if(I===Uo){H(A),X&&!X.persisted&&X.afterLeave&&X.afterLeave();return}let ue=ee?qa(A):A,re=()=>{ee?v(z)&>(z,Z):r(z),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(ue&&ue.shapeFlag&1&&X&&!X.persisted){let{leave:ie,delayLeave:se}=X,Te=ue.el,fe=()=>ie(Te,re);se?se(Te,re,fe):fe()}else re()},gt=(A,I)=>{let z;for(;A!==I;)z=y(A),r(A),A=z;r(I)},Me=(A,I,z)=>{let{bum:Z,scope:X,job:ee,subTree:ue,um:re,m:ie,a:se}=A;ou(ie),ou(se),Z&&Bs(Z),X.stop(),ee?(ee.flags|=8,We(ue,A,I,z)):A.vnode.el&&ue&&(ue.transition=A.vnode.transition,We(ue,A,I,z)),re&&jt(re,I),jt(()=>{A.isUnmounted=!0},I)},Q=(A,I,z,Z=!1,X=!1,ee=0)=>{for(let ue=ee;ue{if(A.shapeFlag&6)return he(A.component.subTree);if(A.shapeFlag&128)return A.suspense.next();let I=y(A.anchor||A.el),z=I&&I[Hh];return z?y(z):I},x=(A,I,z)=>{let Z=A&&I._vnode?void 0:A&&A.component?A.component.uid:Pg();Lh(()=>{A==null?I._vnode&&We(I._vnode,null,null,!0):w(I._vnode||null,A,I,null,null,null,z),I._vnode=A},Z)},ge={p:w,um:We,m:Ge,r:it,mt:K,mc:F,pc:Ae,pbc:S,n:he,o:e},Se,Ie;return t&&([Se,Ie]=t(ge)),{render:x,hydrate:Se,createApp:ig(x,Se)}}function Va({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function ms({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function kg(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hu(e,t,s=!1){let i=e.children,r=t.children;if(Ve(i)&&Ve(r))for(let o=0;o>1,e[s[p]]0&&(t[i]=s[o-1]),s[o]=i)}}for(o=s.length,u=s[o-1];o-- >0;)s[o]=u,u=t[u];return s}function zu(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:zu(t)}function ou(e){if(e)for(let t=0;te.__isSuspense;function Eg(e,t){t&&t.pendingBranch?Ve(e)?t.effects.push(...e):t.effects.push(e):cu(e)}var N=Symbol.for("v-fgt"),ir=Symbol.for("v-txt"),pn=Symbol.for("v-cmt"),Uo=Symbol.for("v-stc"),hs=[],Xt=null;function a(e=!1){hs.push(Xt=e?null:[])}function _u(){hs.pop(),Xt=hs[hs.length-1]||null}var zo=1;function Zi(e,t=!1){zo+=e,e<0&&Xt&&t&&(Xt.hasOnce=!0)}function Gu(e){return e.dynamicChildren=zo>0?Xt||Wn:null,_u(),zo>0&&Xt&&Xt.push(e),e}function l(e,t,s,i,r,o){return Gu(n(e,t,s,i,r,o,!0))}function Rt(e,t,s,i,r){return Gu($e(e,t,s,i,r,!0))}function jo(e){return e?e.__v_isVNode===!0:!1}function Vo(e,t){return e.type===t.type&&e.key===t.key}var Wu=({key:e})=>e??null,Ki=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ht(e)||Nt(e)||Fe(e)?{i:Yt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,r=null,o=e===N?0:1,u=!1,p=!1){let d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wu(t),ref:t&&Ki(t),scopeId:hu,slotScopeIds:null,children:s,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:o,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Yt};return p?(xi(d,s),o&128&&e.normalize(d)):s&&(d.shapeFlag|=ht(s)?8:16),zo>0&&!u&&Xt&&(d.patchFlag>0||o&6)&&d.patchFlag!==32&&Xt.push(d),d}var $e=Sg;function Sg(e,t=null,s=null,i=0,r=null,o=!1){if((!e||e===Jh)&&(e=pn),jo(e)){let p=Ws(e,t,!0);return s&&xi(p,s),zo>0&&!o&&Xt&&(p.shapeFlag&6?Xt[Xt.indexOf(e)]=p:Xt.push(p)),p.patchFlag=-2,p}if(qg(e)&&(e=e.__vccOpts),t){t=Ng(t);let{class:p,style:d}=t;p&&!ht(p)&&(t.class=T(p)),st(d)&&(Mo(d)&&!Ve(d)&&(d=vt({},d)),t.style=De(d))}let u=ht(e)?1:ju(e)?128:tr(e)?64:st(e)?4:Fe(e)?2:0;return n(e,t,s,i,r,u,o,!0)}function Ng(e){return e?Mo(e)||Vu(e)?vt({},e):e:null}function Ws(e,t,s=!1,i=!1){let{props:r,ref:o,patchFlag:u,children:p,transition:d}=e,g=t?Rg(r||{},t):r,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&Wu(g),ref:t&&t.ref?s&&o?Ve(o)?o.concat(Ki(t)):[o,Ki(t)]:Ki(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==N?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:d,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ws(e.ssContent),ssFallback:e.ssFallback&&Ws(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return d&&i&&Ho(m,d.clone(m)),m}function h(e=" ",t=0){return $e(ir,null,e,t)}function Pe(e,t){let s=$e(Uo,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Rt(pn,null,e)):$e(pn,null,e)}function Sn(e){return e==null||typeof e=="boolean"?$e(pn):Ve(e)?$e(N,null,e.slice()):jo(e)?$n(e):$e(ir,null,String(e))}function $n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ws(e)}function xi(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ve(t))s=16;else if(typeof t=="object")if(i&65){let r=t.default;r&&(r._c&&(r._d=!1),xi(e,r()),r._c&&(r._d=!0));return}else{s=32;let r=t._;!r&&!Vu(t)?t._ctx=Yt:r===3&&Yt&&(Yt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Fe(t)){if(i&65){xi(e,{default:t});return}t={default:t,_ctx:Yt},s=32}else t=String(t),i&64?(s=16,t=[h(t)]):s=8;e.children=t,e.shapeFlag|=s}function Rg(...e){let t={};for(let s=0;sAt||Yt,er,_o;{let e=Eo(),t=(s,i)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(i),o=>{r.length>1?r.forEach(u=>u(o)):r[0](o)}};er=t("__VUE_INSTANCE_SETTERS__",s=>At=s),_o=t("__VUE_SSR_SETTERS__",s=>Ks=s)}var Xo=e=>{let t=At;return er(e),e.scope.on(),()=>{e.scope.off(),er(t)}},iu=()=>{At&&At.scope.off(),er(null)};function Yu(e){return e.vnode.shapeFlag&4}var Ks=!1;function Ag(e,t=!1,s=!1){t&&_o(t);let{props:i,children:r}=e.vnode,o=Yu(e);fg(e,i,o,t),yg(e,r,s||t);let u=o?Ig(e,t):void 0;return t&&_o(!1),u}function Ig(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Zh);let{setup:i}=s;if(i){dn();let r=e.setupContext=i.length>1?Mg(e):null,o=Xo(e),u=Go(i,e,0,[e.props,r]),p=pa(u);if(un(),o(),(p||e.sp)&&!$o(e)&&za(e),p){if(u.then(iu,iu),t)return u.then(d=>{_o(!0);try{ru(e,d,t)}finally{_o(!1)}}).catch(d=>{Wo(d,e,0)});e.asyncDep=u}else ru(e,u,t)}else Xu(e,t)}function ru(e,t,s){Fe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:st(t)&&(e.setupState=Gi(t)),Xu(e,s)}var au,lu;function Xu(e,t,s){let i=e.type;if(!e.render){if(!t&&au&&!i.render){let r=i.template||ja(e).template;if(r){let{isCustomElement:o,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:d}=i,g=vt(vt({isCustomElement:o,delimiters:p},u),d);i.render=au(r,g)}}e.render=i.render||Ht,lu&&lu(e)}{let r=Xo(e);dn();try{xh(e)}finally{un(),r()}}}var Og={get(e,t){return Dt(e,"get",""),e[t]}};function Mg(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Og),slots:e.slots,emit:e.emit,expose:t}}function rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gi(kn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Fo)return Fo[s](e)},has(t,s){return s in t||s in Fo}})):e.proxy}function Vg(e,t=!0){return Fe(e)?e.displayName||e.name:e.name||t&&e.__name}function qg(e){return Fe(e)&&"__vccOpts"in e}var Ye=(e,t)=>Gd(e,t,Ks);function ke(e,t,s){try{Zi(-1);let i=arguments.length;return i===2?st(t)&&!Ve(t)?jo(t)?$e(e,null,[t]):$e(e,t):$e(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&jo(s)&&(s=[s]),$e(e,t,s))}finally{Zi(1)}}var Lg="3.5.44";var Qa,Qu=typeof window<"u"&&window.trustedTypes;if(Qu)try{Qa=Qu.createPolicy("vue",{createHTML:e=>e})}catch{}var lc=Qa?e=>Qa.createHTML(e):e=>e,$g="http://www.w3.org/2000/svg",Fg="http://www.w3.org/1998/Math/MathML",Bn=typeof document<"u"?document:null,Ju=Bn&&Bn.createElement("template"),Ug={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let r=t==="svg"?Bn.createElementNS($g,e):t==="mathml"?Bn.createElementNS(Fg,e):s?Bn.createElement(e,{is:s}):Bn.createElement(e);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>Bn.createTextNode(e),createComment:e=>Bn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Bn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,r,o){let u=s?s.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===o||!(r=r.nextSibling)););else{Ju.innerHTML=lc(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=Ju.content;if(i==="svg"||i==="mathml"){let d=p.firstChild;for(;d.firstChild;)p.appendChild(d.firstChild);p.removeChild(d)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Bg=Symbol("_vtc");function Hg(e,t,s){let i=e[Bg];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var dr=Symbol("_vod"),dc=Symbol("_vsh"),te={name:"show",beforeMount(e,{value:t},{transition:s}){e[dr]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Qo(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),Qo(e,!0),i.enter(e)):i.leave(e,()=>{Qo(e,!1)}):Qo(e,t))},beforeUnmount(e,{value:t}){Qo(e,t)}};function Qo(e,t){e.style.display=t?e[dr]:"none",e[dc]=!t}var zg=Symbol("");var jg=/(?:^|;)\s*display\s*:/;function _g(e,t,s){let i=e.style,r=ht(s),o=!1;if(s&&!r){if(t)if(ht(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Jo(i,p,"")}else for(let u in t)s[u]==null&&Jo(i,u,"");for(let u in s){u==="display"&&(o=!0);let p=s[u];p!=null?Wg(e,u,!ht(t)&&t?t[u]:void 0,p)||Jo(i,u,p):Jo(i,u,"")}}else if(r){if(t!==s){let u=i[zg];u&&(s+=";"+u),i.cssText=s,o=jg.test(s)}}else t&&e.removeAttribute("style");dr in e&&((!r||t!==s)&&(e[dr]=o?i.display:""),e[dc]&&(i.display="none"))}var ar=/\s*!important$/;function Jo(e,t,s){if(Ve(s))s.forEach(i=>Jo(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))ar.test(s)?e.setProperty(t,s.replace(ar,""),"important"):e.setProperty(t,s);else{let i=Gg(e,t);ar.test(s)?e.setProperty(gn(i),s.replace(ar,""),"important"):e[i]=s}}var Zu=["Webkit","Moz","ms"],Ka={};function Gg(e,t){let s=Ka[t];if(s)return s;let i=kt(t);if(i!=="filter"&&i in e)return Ka[t]=i;i=us(i);for(let r=0;rYa||(Zg.then(()=>Ya=0),Ya=Date.now());function ey(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let r=s.value;if(Ve(r)){let o=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{o.call(i),i._stopped=!0};let u=r.slice(),p=[i];for(let d=0;de.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ty=(e,t,s,i,r,o)=>{let u=r==="svg";t==="class"?Hg(e,i,u):t==="style"?_g(e,s,i):$s(t)?Fs(t)||Yg(e,t,s,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ny(e,t,i,u))?(tc(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ec(e,t,i,u,o,t!=="value")):e._isVueCE&&(sy(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ht(i)))?tc(e,kt(t),i,o,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),ec(e,t,i,u))};function ny(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&sc(t)&&Fe(s));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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return sc(t)&&ht(s)?!1:t in e}function sy(e,t){let s=e._def.props;if(!s)return!1;let i=kt(t);return Array.isArray(s)?s.some(r=>kt(r)===i):Object.keys(s).some(r=>kt(r)===i)}var Ys=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ve(t)?s=>Bs(t,s):t};function oy(e){e.target.composing=!0}function oc(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Nn=Symbol("_assign"),lr=Symbol("_initialValue");function Xa(e,t,s){return t&&(e=e.trim()),s&&(e=Hs(e)),e}var ft={created(e,{modifiers:{lazy:t,trim:s,number:i}},r){e.parentNode&&(e.type==="text"?e[lr]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[lr]=e.defaultValue.replace(/\r\n?/g,` +`))),e[Nn]=Ys(r);let o=i||r.props&&r.props.type==="number";Yn(e,t?"change":"input",u=>{u.target.composing||e[Nn](Xa(e.value,s,o))}),(s||o)&&Yn(e,"change",()=>{e.value=Xa(e.value,s,o)}),t||(Yn(e,"compositionstart",oy),Yn(e,"compositionend",oc),Yn(e,"change",oc))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let r=t??"",o=e[lr];delete e[lr],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[Nn](Xa(e.value,s,i)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:r,number:o}},u){if(e[Nn]=Ys(u),e.composing)return;let p=(o||e.type==="number")&&!/^0\d/.test(e.value)?Hs(e.value):e.value,d=t??"";if(p===d)return;let g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(i&&t===s||r&&e.value.trim()===d)||(e.value=d)}},Ja={deep:!0,created(e,t,s){e[Nn]=Ys(s),Yn(e,"change",()=>{let i=e._modelValue,r=Zo(e),o=e.checked,u=e[Nn];if(Ve(i)){let p=Li(i,r),d=p!==-1;if(o&&!d)u(i.concat(r));else if(!o&&d){let g=[...i];g.splice(p,1),u(g)}}else if(rn(i)){let p=new Set(i);o?p.add(r):p.delete(r),u(p)}else u(uc(e,o))})},mounted:ic,beforeUpdate(e,t,s){e[Nn]=Ys(s),ic(e,t,s)}};function ic(e,{value:t,oldValue:s},i){e._modelValue=t;let r;if(Ve(t))r=Li(t,i.props.value)>-1;else if(rn(t))r=t.has(i.props.value);else{if(t===s)return;r=an(t,uc(e,!0))}e.checked!==r&&(e.checked=r)}var Vt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Yn(e,"change",()=>{let r=Array.prototype.filter.call(e.options,d=>d.selected).map(d=>s?Hs(Zo(d)):Zo(d)),o=e.multiple,u=o?rn(e._modelValue)?new Set(r):r:r[0],p=e._pendingValue=[o,o?Ve(u)?r.slice():r:u];try{e[Nn](u)}finally{xe(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[Nn]=Ys(i)},mounted(e,{value:t}){rc(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Nn]=Ys(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!iy(t,s[1],s[0]))&&rc(e,t)}};function iy(e,t,s){if(!s)return an(e,t);if(Ve(e))return an(e,t);if(rn(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function rc(e,t){let s=e.multiple,i=Ve(t);if(!(s&&!i&&!rn(t))){for(let r=0,o=e.options.length;rString(g)===String(p)):u.selected=Li(t,p)>-1}else u.selected=t.has(p);else if(an(Zo(u),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zo(e){return"_value"in e?e._value:e.value}function uc(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var ry=["ctrl","shift","alt","meta"],ay={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)=>ry.some(s=>e[`${s}Key`]&&!t.includes(s))},de=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((r,...o)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(r=>{if(!("key"in r))return;let o=gn(r.key);if(t.some(u=>u===o||ly[u]===o))return e(r)}))},dy=vt({patchProp:ty},Ug),ac;function uy(){return ac||(ac=Bu(dy))}var ur=((...e)=>{let t=uy().createApp(...e),{mount:s}=t;return t.mount=i=>{let r=py(i);if(!r)return;let o=t._component;!Fe(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");let u=s(r,!1,cy(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),u},t});function cy(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function py(e){return ht(e)?document.querySelector(e):e}var bs=typeof document<"u";function pc(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&pc(e.default)}var ot=Object.assign;function cr(e,t){let s={};for(let i in t){let r=t[i];s[i]=on(r)?r.map(e):e(r)}return s}var Qs=()=>{},on=Array.isArray;function el(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var fc=/#/g,my=/&/g,hy=/\//g,gy=/=/g,yy=/\?/g,mc=/\+/g,vy=/%5B/g,by=/%5D/g,hc=/%5E/g,wy=/%60/g,gc=/%7B/g,ky=/%7C/g,yc=/%7D/g,Cy=/%20/g;function tl(e){return e==null?"":encodeURI(""+e).replace(ky,"|").replace(vy,"[").replace(by,"]")}function vc(e){return tl(e).replace(gc,"{").replace(yc,"}").replace(hc,"^")}function Za(e){return tl(e).replace(mc,"%2B").replace(Cy,"+").replace(fc,"%23").replace(my,"%26").replace(wy,"`").replace(gc,"{").replace(yc,"}").replace(hc,"^")}function Ey(e){return Za(e).replace(gy,"%3D")}function Sy(e){return tl(e).replace(fc,"%23").replace(yy,"%3F")}function bc(e){return Sy(e).replace(hy,"%2F")}function Xs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Ny=/\/$/,Ry=e=>e.replace(Ny,"");function pr(e,t,s="/"){let i,r={},o="",u="",p=t.indexOf("#"),d=t.indexOf("?");return d=p>=0&&d>p?-1:d,d>=0&&(i=t.slice(0,d),o=t.slice(d,p>0?p:t.length),r=e(o.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Py(i??t,s),{fullPath:i+o+u,path:i,query:r,hash:Xs(u)}}function wc(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function nl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kc(e,t,s){let i=t.matched.length-1,r=s.matched.length-1;return i>-1&&i===r&&ys(t.matched[i],s.matched[r])&&sl(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ys(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Ty(e[s],t[s]))return!1;return!0}function Ty(e,t){return on(e)?cc(e,t):on(t)?cc(t,e):e?.valueOf()===t?.valueOf()}function cc(e,t){return on(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Py(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let o=s.length-1,u,p;for(u=0;u1&&o--;else break;return s.slice(0,o).join("/")+"/"+i.slice(u).join("/")}var zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},fr=(function(e){return e.pop="pop",e.push="push",e})({}),mr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Cc(e){if(!e)if(bs){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ry(e)}var Dy=/^[^#]+#/;function Ec(e,t){return e.replace(Dy,"#")+t}function Ay(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var xo=()=>({left:window.scrollX,top:window.scrollY});function Sc(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),r=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!r)return;t=Ay(r,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 ol(e,t){return(history.state?history.state.position-t:-1)+e}var xa=new Map;function Nc(e,t){xa.set(e,t)}function Rc(e){let t=xa.get(e);return xa.delete(e),t}function Iy(e){return typeof e=="string"||e&&typeof e=="object"}function il(e){return typeof e=="string"||typeof e=="symbol"}var yt=(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})({}),Tc=Symbol("");var $de={[yt.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for ${JSON.stringify(e)}${t?` while being at -`+JSON.stringify(t):""}`},[gt.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Ay(t)}" via a navigation guard.`},[gt.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[gt.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[gt.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ys(e,t){return ot(new Error,{type:e,[Sc]:!0},t)}function Rn(e,t){return e instanceof Error&&Sc in e&&(t==null||!!(e.type&t))}var Dy=["params","query","hash"];function Ay(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Dy)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Nc(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ir&&Qa(r)):[i&&Qa(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function Rc(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=on(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}var Tc=Symbol(""),il=Symbol(""),mr=Symbol(""),hr=Symbol(""),gr=Symbol("");function Js(){let e=[];function t(i){return e.push(i),()=>{let r=e.indexOf(i);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Bn(e,t,s,i,r,o=u=>u()){let u=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((p,d)=>{let g=y=>{y===!1?d(ys(gt.NAVIGATION_ABORTED,{from:s,to:t})):y instanceof Error?d(y):Py(y)?d(ys(gt.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[r]===u&&typeof y=="function"&&u.push(y),p())},m=o(()=>e.call(i&&i.instances[r],t,s,g)),v=Promise.resolve(m);e.length<3&&(v=v.then(g)),v.catch(y=>d(y))})}function yr(e,t,s,i,r=o=>o()){let o=[];for(let u of e)for(let p in u.components){let d=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(dc(d)){let g=(d.__vccOpts||d)[t];g&&o.push(Bn(g,s,i,u,p,r))}else{let g=d();o.push(()=>g.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let v=uy(m)?m.default:m;u.mods[p]=m,u.components[p]=v;let y=(v.__vccOpts||v)[t];return y&&Bn(y,s,i,u,p,r)()}))}}return o}function Pc(e,t){let s=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let u=0;ugs(g,p))?i.push(p):s.push(p));let d=e.matched[u];d&&(t.matched.find(g=>gs(g,d))||r.push(d))}return[s,i,r]}var Iy=()=>location.protocol+"//"+location.host;function Uc(e,t){let{pathname:s,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let u=r.includes(e.slice(o))?e.slice(o).length:1,p=r.slice(u);return p[0]!=="/"&&(p="/"+p),el(p,"")}return el(s,e)+i+r}function Oy(e,t,s,i){let r=[],o=[],u=null,p=({state:y})=>{let C=Uc(e,location),k=s.value,w=t.value,R=0;if(y){if(s.value=C,t.value=y,u&&u===k){u=null;return}R=w?y.position-w.position:0}else i(C);r.forEach(b=>{b(s.value,k,{delta:R,type:pr.pop,direction:R?R>0?fr.forward:fr.back:fr.unknown})})};function d(){u=s.value}function g(y){r.push(y);let C=()=>{let k=r.indexOf(y);k>-1&&r.splice(k,1)};return o.push(C),C}function m(){if(document.visibilityState==="hidden"){let{history:y}=window;if(!y.state)return;y.replaceState(ot({},y.state,{scroll:Zo()}),"")}}function v(){for(let y of o)y();o=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:d,listen:g,destroy:v}}function Dc(e,t,s,i=!1,r=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:r?Zo():null}}function My(e){let{history:t,location:s}=window,i={value:Uc(e,s)},r={value:t.state};r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(d,g,m){let v=e.indexOf("#"),y=v>-1?(s.host&&document.querySelector("base")?e:e.slice(v))+d:Iy()+e+d;try{t[m?"replaceState":"pushState"](g,"",y),r.value=g}catch(C){console.error(C),s[m?"replace":"assign"](y)}}function u(d,g){o(d,ot({},t.state,Dc(r.value.back,d,r.value.forward,!0),g,{position:r.value.position}),!0),i.value=d}function p(d,g){let m=ot({},r.value,t.state,{forward:d,scroll:Zo()});o(m.current,m,!0),o(d,ot({},Dc(i.value,d,null),{position:m.position+1},g),!1),i.value=d}return{location:i,state:r,push:p,replace:u}}function Bc(e){e=bc(e);let t=My(e),s=Oy(e,t.state,t.location,t.replace);function i(o,u=!0){u||s.pauseListeners(),history.go(o)}let r=ot({location:"",base:e,go:i,createHref:wc.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}var bs=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Ct=(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})(Ct||{}),Vy={type:bs.Static,value:""},qy=/[a-zA-Z0-9_]/;function Ly(e){if(!e)return[[]];if(e==="/")return[[Vy]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${s})/"${g}": ${C}`)}let s=Ct.Static,i=s,r=[],o;function u(){o&&r.push(o),o=[]}let p=0,d,g="",m="";function v(){g&&(s===Ct.Static?o.push({type:bs.Static,value:g}):s===Ct.Param||s===Ct.ParamRegExp||s===Ct.ParamRegExpEnd?(o.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),o.push({type:bs.Param,value:g,regexp:m,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),g="")}function y(){g+=d}for(;pt.length?t.length===1&&t[0]===Lt.Static+Lt.Segment?1:-1:0}function Hc(e,t){let s=0,i=e.score,r=t.score;for(;s0&&t[t.length-1]<0}var Hy={strict:!1,end:!0,sensitive:!1};function zy(e,t,s){let i=Uy(Ly(e.path),s),r=ot(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function jy(e,t){let s=[],i=new Map;t=Za(Hy,t);function r(v){return i.get(v)}function o(v,y,C){let k=!C,w=Mc(v);w.aliasOf=C&&C.record;let R=Za(t,v),b=[w];if("alias"in v){let L=typeof v.alias=="string"?[v.alias]:v.alias;for(let H of L)b.push(Mc(ot({},w,{components:C?C.record.components:w.components,path:H,aliasOf:C?C.record:w})))}let P,D;for(let L of b){let{path:H}=L;if(y&&H[0]!=="/"){let _=y.record.path,W=_[_.length-1]==="/"?"":"/";L.path=y.record.path+(H&&W+H)}if(P=zy(L,y,R),C?C.alias.push(P):(D=D||P,D!==P&&D.alias.push(P),k&&v.name&&!Vc(P)&&u(v.name)),zc(P)&&d(P),w.children){let _=w.children;for(let W=0;W<_.length;W++)o(_[W],P,C&&C.children[W])}C=C||P}return D?()=>{u(D)}:Qs}function u(v){if(sl(v)){let y=i.get(v);y&&(i.delete(v),s.splice(s.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{let y=s.indexOf(v);y>-1&&(s.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function p(){return s}function d(v){let y=Wy(v,s);s.splice(y,0,v),v.record.name&&!Vc(v)&&i.set(v.record.name,v)}function g(v,y){let C,k={},w,R;if("name"in v&&v.name){if(C=i.get(v.name),!C)throw ys(gt.MATCHER_NOT_FOUND,{location:v});R=C.record.name,k=ot(Oc(y.params,C.keys.filter(D=>!D.optional).concat(C.parent?C.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Oc(v.params,C.keys.map(D=>D.name))),w=C.stringify(k)}else if(v.path!=null)w=v.path,C=s.find(D=>D.re.test(w)),C&&(k=C.parse(w),R=C.record.name);else{if(C=y.name?i.get(y.name):s.find(D=>D.re.test(y.path)),!C)throw ys(gt.MATCHER_NOT_FOUND,{location:v,currentLocation:y});R=C.record.name,k=ot({},y.params,v.params),w=C.stringify(k)}let b=[],P=C;for(;P;)b.unshift(P.record),P=P.parent;return{name:R,path:w,params:k,matched:b,meta:Gy(b)}}e.forEach(v=>o(v));function m(){s.length=0,i.clear()}return{addRoute:o,resolve:g,removeRoute:u,clearRoutes:m,getRoutes:p,getRecordMatcher:r}}function Oc(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Mc(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_y(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 _y(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function Vc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Gy(e){return e.reduce((t,s)=>ot(t,s.meta),{})}function Wy(e,t){let s=0,i=t.length;for(;s!==i;){let o=s+i>>1;Hc(e,t[o])<0?i=o:s=o+1}let r=Ky(e);return r&&(i=t.lastIndexOf(r,i-1)),i}function Ky(e){let t=e;for(;t=t.parent;)if(zc(t)&&Hc(e,t)===0)return t}function zc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qc(e){let t=Gt(mr),s=Gt(hr),i=!1,r=null,o=Ye(()=>{let m=qn(e.to);return t.resolve(m)}),u=Ye(()=>{let{matched:m}=o.value,{length:v}=m,y=m[v-1],C=s.matched;if(!y||!C.length)return-1;let k=C.findIndex(gs.bind(null,y));if(k>-1)return k;let w=Lc(m[v-2]);return v>1&&Lc(y)===w&&C[C.length-1].path!==w?C.findIndex(gs.bind(null,m[v-2])):k}),p=Ye(()=>u.value>-1&&Zy(s.params,o.value.params)),d=Ye(()=>u.value>-1&&u.value===s.matched.length-1&&tl(s.params,o.value.params));function g(m={}){if(Jy(m)){let v=t[qn(e.replace)?"replace":"push"](qn(e.to)).catch(Qs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>v),v}return Promise.resolve()}return{route:o,href:Ye(()=>o.value.href),isActive:p,isExactActive:d,navigate:g}}function Yy(e){return e.length===1?e[0]:e}var Xy=Wo({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:qc,setup(e,{slots:t}){let s=ut(qc(e)),{options:i}=Gt(mr),r=Ye(()=>({[$c(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[$c(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let o=t.default&&Yy(t.default(s));return e.custom?o:we("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},o)}}}),Qy=Xy;function Jy(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 Zy(e,t){for(let s in t){let i=t[s],r=e[s];if(typeof i=="string"){if(i!==r)return!1}else if(!on(r)||r.length!==i.length||i.some((o,u)=>o.valueOf()!==r[u].valueOf()))return!1}return!0}function Lc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var $c=(e,t,s)=>e??t??s,xy=Wo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=Gt(gr),r=Ye(()=>e.route||i.value),o=Gt(il,0),u=Ye(()=>{let g=qn(o),{matched:m}=r.value,v;for(;(v=m[g])&&!v.components;)g++;return g}),p=Ye(()=>r.value.matched[u.value]);hs(il,Ye(()=>u.value+1)),hs(Tc,p),hs(gr,r);let d=bt();return dt(()=>[d.value,p.value,e.name],([g,m,v],[y,C,k])=>{m&&(m.instances[v]=g,C&&C!==m&&g&&g===y&&(m.leaveGuards.size||(m.leaveGuards=C.leaveGuards),m.updateGuards.size||(m.updateGuards=C.updateGuards))),g&&m&&(!C||!gs(m,C)||!y)&&(m.enterCallbacks[v]||[]).forEach(w=>w(g))},{flush:"post"}),()=>{let g=r.value,m=e.name,v=p.value,y=v&&v.components[m];if(!y)return Fc(s.default,{Component:y,route:g});let C=v.props[m],k=C?C===!0?g.params:typeof C=="function"?C(g):C:null,R=we(y,ot({},k,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(v.instances[m]=null)},ref:d}));return Fc(s.default,{Component:R,route:g})||R}}});function Fc(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var rl=xy;function jc(e){let t=jy(e.routes,e),s=e.parseQuery||Nc,i=e.stringifyQuery||ol,r=e.history,o=Js(),u=Js(),p=Js(),d=ji(Hn),g=Hn;vs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let m=ur.bind(null,Q=>""+Q),v=ur.bind(null,gc),y=ur.bind(null,Xs);function C(Q,he){let ee,ge;return sl(Q)?(ee=t.getRecordMatcher(Q),ge=he):ge=Q,t.addRoute(ge,ee)}function k(Q){let he=t.getRecordMatcher(Q);he&&t.removeRoute(he)}function w(){return t.getRoutes().map(Q=>Q.record)}function R(Q){return!!t.getRecordMatcher(Q)}function b(Q,he){if(he=ot({},he||d.value),typeof Q=="string"){let I=cr(s,Q,he.path),z=t.resolve({path:I.path},he),x=r.createHref(I.fullPath);return ot(I,z,{params:y(z.params),hash:Xs(I.hash),redirectedFrom:void 0,href:x})}let ee;if(Q.path!=null)ee=ot({},Q,{path:cr(s,Q.path,he.path).path});else{let I=ot({},Q.params);for(let z in I)I[z]==null&&delete I[z];ee=ot({},Q,{params:v(I)}),he.params=v(he.params)}let ge=t.resolve(ee,he),Ee=Q.hash||"";ge.params=m(y(ge.params));let Ie=yc(i,ot({},Q,{hash:hc(Ee),path:ge.path})),A=r.createHref(Ie);return ot({fullPath:Ie,hash:Ee,query:i===ol?Rc(Q.query):Q.query||{}},ge,{redirectedFrom:void 0,href:A})}function P(Q){return typeof Q=="string"?cr(s,Q,d.value.path):ot({},Q)}function D(Q,he){if(g!==Q)return ys(gt.NAVIGATION_CANCELLED,{from:he,to:Q})}function L(Q){return W(Q)}function H(Q){return L(ot(P(Q),{replace:!0}))}function _(Q,he){let ee=Q.matched[Q.matched.length-1];if(ee&&ee.redirect){let{redirect:ge}=ee,Ee=typeof ge=="function"?ge(Q,he):ge;return typeof Ee=="string"&&(Ee=Ee.includes("?")||Ee.includes("#")?Ee=P(Ee):{path:Ee},Ee.params={}),ot({query:Q.query,hash:Q.hash,params:Ee.path!=null?{}:Q.params},Ee)}}function W(Q,he){let ee=g=b(Q),ge=d.value,Ee=Q.state,Ie=Q.force,A=Q.replace===!0,I=_(ee,ge);if(I)return W(ot(P(I),{state:typeof I=="object"?ot({},Ee,I.state):Ee,force:Ie,replace:A}),he||ee);let z=ee;z.redirectedFrom=he;let x;return!Ie&&vc(i,ge,ee)&&(x=ys(gt.NAVIGATION_DUPLICATED,{to:z,from:ge}),tt(ge,ge,!0,!1)),(x?Promise.resolve(x):V(z,ge)).catch(X=>Rn(X)?Rn(X,gt.NAVIGATION_GUARD_REDIRECT)?X:Xe(X):ye(X,z,ge)).then(X=>{if(X){if(Rn(X,gt.NAVIGATION_GUARD_REDIRECT))return W(ot({replace:A},P(X.to),{state:typeof X.to=="object"?ot({},Ee,X.to.state):Ee,force:Ie}),he||z)}else X=q(z,ge,!0,A,Ee);return S(z,ge,X),X})}function re(Q,he){let ee=D(Q,he);return ee?Promise.reject(ee):Promise.resolve()}function F(Q){let he=it.values().next().value;return he&&typeof he.runWithContext=="function"?he.runWithContext(Q):Q()}function V(Q,he){let ee,[ge,Ee,Ie]=Pc(Q,he);ee=yr(ge.reverse(),"beforeRouteLeave",Q,he);for(let I of ge)I.leaveGuards.forEach(z=>{ee.push(Bn(z,Q,he))});let A=re.bind(null,Q,he);return ee.push(A),Oe(ee).then(()=>{ee=[];for(let I of o.list())ee.push(Bn(I,Q,he));return ee.push(A),Oe(ee)}).then(()=>{ee=yr(Ee,"beforeRouteUpdate",Q,he);for(let I of Ee)I.updateGuards.forEach(z=>{ee.push(Bn(z,Q,he))});return ee.push(A),Oe(ee)}).then(()=>{ee=[];for(let I of Ie)if(I.beforeEnter)if(on(I.beforeEnter))for(let z of I.beforeEnter)ee.push(Bn(z,Q,he));else ee.push(Bn(I.beforeEnter,Q,he));return ee.push(A),Oe(ee)}).then(()=>(Q.matched.forEach(I=>I.enterCallbacks={}),ee=yr(Ie,"beforeRouteEnter",Q,he,F),ee.push(A),Oe(ee))).then(()=>{ee=[];for(let I of u.list())ee.push(Bn(I,Q,he));return ee.push(A),Oe(ee)}).catch(I=>Rn(I,gt.NAVIGATION_CANCELLED)?I:Promise.reject(I))}function S(Q,he,ee){p.list().forEach(ge=>F(()=>ge(Q,he,ee)))}function q(Q,he,ee,ge,Ee){let Ie=D(Q,he);if(Ie)return Ie;let A=he===Hn,I=vs?history.state:{};ee&&(ge||A?r.replace(Q.fullPath,ot({scroll:A&&I&&I.scroll},Ee)):r.push(Q.fullPath,Ee)),d.value=Q,tt(Q,he,ee,A),Xe()}let G;function ie(){G||(G=r.listen((Q,he,ee)=>{if(!ht.listening)return;let ge=b(Q),Ee=_(ge,ht.currentRoute.value);if(Ee){W(ot(Ee,{replace:!0,force:!0}),ge).catch(Qs);return}g=ge;let Ie=d.value;vs&&Cc(nl(Ie.fullPath,ee.delta),Zo()),V(ge,Ie).catch(A=>Rn(A,gt.NAVIGATION_ABORTED|gt.NAVIGATION_CANCELLED)?A:Rn(A,gt.NAVIGATION_GUARD_REDIRECT)?(W(ot(P(A.to),{force:!0}),ge).then(I=>{Rn(I,gt.NAVIGATION_ABORTED|gt.NAVIGATION_DUPLICATED)&&!ee.delta&&ee.type===pr.pop&&r.go(-1,!1)}).catch(Qs),Promise.reject()):(ee.delta&&r.go(-ee.delta,!1),ye(A,ge,Ie))).then(A=>{A=A||q(ge,Ie,!1),A&&(ee.delta&&!Rn(A,gt.NAVIGATION_CANCELLED)?r.go(-ee.delta,!1):ee.type===pr.pop&&Rn(A,gt.NAVIGATION_ABORTED|gt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),S(ge,Ie,A)}).catch(Qs)}))}let K=Js(),ne=Js(),le;function ye(Q,he,ee){Xe(Q);let ge=ne.list();return ge.length?ge.forEach(Ee=>Ee(Q,he,ee)):console.error(Q),Promise.reject(Q)}function Ae(){return le&&d.value!==Hn?Promise.resolve():new Promise((Q,he)=>{K.add([Q,he])})}function Xe(Q){return le||(le=!Q,ie(),K.list().forEach(([he,ee])=>Q?ee(Q):he()),K.reset()),Q}function tt(Q,he,ee,ge){let{scrollBehavior:Ee}=e;if(!vs||!Ee)return Promise.resolve();let Ie=!ee&&Ec(nl(Q.fullPath,0))||(ge||!ee)&&history.state&&history.state.scroll||null;return Je().then(()=>Ee(Q,he,Ie)).then(A=>A&&kc(A)).catch(A=>ye(A,Q,he))}let Ge=Q=>r.go(Q),We,it=new Set,ht={currentRoute:d,listening:!0,addRoute:C,removeRoute:k,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:w,resolve:b,options:e,push:L,replace:H,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:o.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:Ae,install(Q){Q.component("RouterLink",Qy),Q.component("RouterView",rl),Q.config.globalProperties.$router=ht,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>qn(d)}),vs&&!We&&d.value===Hn&&(We=!0,L(r.location).catch(ge=>{}));let he={};for(let ge in Hn)Object.defineProperty(he,ge,{get:()=>d.value[ge],enumerable:!0});Q.provide(mr,ht),Q.provide(hr,Io(he)),Q.provide(gr,d);let ee=Q.unmount;it.add(Q),Q.unmount=function(){it.delete(Q),it.size<1&&(g=Hn,G&&G(),G=null,d.value=Hn,We=!1,le=!1),ee()}}};function Oe(Q){return Q.reduce((he,ee)=>he.then(()=>F(ee)),Promise.resolve())}return ht}function _c(e){return Gt(hr)}function br(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var vr=new WeakMap;function wr(e){if(!vr.has(e)){let t=e.get("/api/billing/").finally(()=>vr.delete(e));vr.set(e,t)}return vr.get(e)}function kr(e,t,s=()=>{},i={}){let r=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=r==="success",e.billingRepository="";let o={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=d=>d?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:d.currency,minimumFractionDigits:d.amount%100?2:0,maximumFractionDigits:2}).format(d.amount/100),e.billingPrice=d=>d.amount==null?"Price shown at checkout":e.billingAmount(d)+(d.interval?` / ${d.intervalCount>1?d.intervalCount+" ":""}${d.interval}`:" once"),e.billingPerMonth=d=>d?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:d.currency}).format(d.amount/1200),e.billingBytes=d=>{let g=Number(d)||0;if(g<1024)return`${g} B`;let m=Math.min(4,Math.floor(Math.log2(g)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(g/1024**m)} ${["B","KB","MB","GB","TB"][m]}`},e.billingDate=d=>d?new Date(d).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,wr(t).then(d=>{e.billing=d.data,e.emit?.("billing:updated",d.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(d,g,m=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let v=await t.post(`/api/billing/${d}`,g,{headers:{"x-csrf-token":e.billing.csrf}});if(m)window.location.assign(v.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!v.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=v.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",v.data}catch(v){e.billingError=o[v.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(d,g="",m={})=>u("checkout",{planId:d,target:g,...m}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let d=0;d<5;d++){let g=await e.refreshBilling();if(!g||!g.pending)return;await new Promise(m=>window.setTimeout(m,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{r==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):r==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):r==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Jt(e){let t=[],s=/\bXXXX-(\d+)\b/g,i=0,r;for(e=String(e??"");r=s.exec(e);)r.index>i&&t.push({t:e.slice(i,r.index)}),t.push({n:r[1]}),i=r.index+r[0].length;return i{let t=e.cloneNode(!0);return t.querySelectorAll("mark.redact-chip[data-term]").forEach(s=>s.replaceWith(s.dataset.term)),t.querySelectorAll("a.anchor, .heading-anchor").forEach(s=>s.remove()),t.textContent.replace(/\s+/g," ").trim()};function Cr(e,{max:t=40}={}){if(typeof e=="string"){if(typeof window.DOMParser!="function")return[];e=new window.DOMParser().parseFromString("
"+e+"
","text/html").body}if(!e?.querySelectorAll)return[];let s=[...e.querySelectorAll("h1[id], h2[id], h3[id]")].slice(0,t).map(r=>({id:r.id,level:Number(r.tagName[1]),parts:Jt(ev(r))})).filter(r=>r.parts.length),i=Math.min(...s.map(r=>r.level));return s.forEach(r=>{r.depth=r.level-i}),s}function Er(e,{offset:t=0,doc:s=window.document,view:i=window,scroller:r=null}={}){let o=Math.max(t+24,i.innerHeight*.2),u="",p=[];for(let m of e){let v=s.getElementById(m);if(!v)continue;let y=v.getBoundingClientRect().top;p.push([m,y]),y<=o&&(u=m)}let d=r&&r.scrollHeight>r.clientHeight+4?r:s.scrollingElement||s.documentElement;if(!!d&&d.scrollTop>0&&d.scrollTop+d.clientHeight>=d.scrollHeight-4){let m=p.filter(([,v])=>vnv,date:()=>Tr,dateEcho:()=>Pr,diff:()=>iv,duration:()=>Yn,filter:()=>dv,hangIndent:()=>Zs,humanFileSize:()=>tv,humanTime:()=>al,limitTo:()=>lv,money:()=>rv,number:()=>ll,orderBy:()=>uv,parseDelimited:()=>xo,parseDiff:()=>Rr,plural:()=>cv,shortDate:()=>Dr,statusLabel:()=>ov,statusMsg:()=>Nr,title:()=>sv,uppercase:()=>av});var tv=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),nv=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),al=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).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],o=["year","month","week","day","hour","minute","second"],u=0;u1&&(d+="s"),p>=1)return p+" "+d+" "+i}return"0 seconds "+i}})(),sv=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),ov=(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 s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),Nr=(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",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Hosting allowance exceeded",quota_repository_limit:"Repository limit reached",quota_storage_limit:"Storage allowance exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var r=Math.floor(i/60),o=i%60;return"Rate limited \u2014 retrying in "+(r>0?r+"m "+o+"s":o+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var d=t.replace(/_/g," ");return d.charAt(0).toUpperCase()+d.slice(1)}return t}})();function Rr(e){let t=[];if(!e)return t;let s=null,i=0,r=0,o=0,u=0,p=()=>{if(!s||!(s.lines.length||s.oldPath||s.newPath)){s=null;return}s.status=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified",s.path=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",s.additions=s.lines.filter(m=>m.kind==="add").length,s.deletions=s.lines.filter(m=>m.kind==="remove").length,t.push(s),s=null},d=()=>s=s||{oldPath:"",newPath:"",lines:[]},g=e.replace(/\n$/,"").split(` -`);for(let m of g){if(s&&(o>0||u>0)&&/^([-+ ]|$)/.test(m)){m.startsWith("+")?(s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)}),u--):m.startsWith("-")?(s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)}),o--):(s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.slice(1)}),o--,u--);continue}if(m.startsWith("diff --git")){p(),d();continue}if(m.startsWith("--- ")){s&&s.lines.length&&p(),d().oldPath=m.replace(/^--- (a\/)?/,"").trim();continue}if(m.startsWith("+++ ")){d().newPath=m.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!/^(index |similarity index|rename |new file mode|deleted file mode|Binary files)/.test(m)){if(m.startsWith("@@")){let v=m.match(/@@\s+-(\d+)(?:,(\d+))?\s+\+(\d+)(?:,(\d+))?\s+@@/);v&&(i=parseInt(v[1],10),r=parseInt(v[3],10),o=v[2]==null?1:parseInt(v[2],10),u=v[4]==null?1:parseInt(v[4],10)),d().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}if(s)if(m.startsWith("+"))s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)});else if(m.startsWith("-"))s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)});else{if(m.startsWith("\\"))continue;s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.startsWith(" ")?m.slice(1):m})}}}return p(),t}var xo=(e,t)=>{let s=[],i=[],r="",o=!1;for(let u=0;ur&&Za(r)):[i&&Za(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+s,r!=null&&(t+="="+r))})}return t}function Dc(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=on(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return t}var Ac=Symbol(""),al=Symbol(""),hr=Symbol(""),gr=Symbol(""),yr=Symbol("");function Js(){let e=[];function t(i){return e.push(i),()=>{let r=e.indexOf(i);r>-1&&e.splice(r,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Hn(e,t,s,i,r,o=u=>u()){let u=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((p,d)=>{let g=y=>{y===!1?d(vs(yt.NAVIGATION_ABORTED,{from:s,to:t})):y instanceof Error?d(y):Iy(y)?d(vs(yt.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[r]===u&&typeof y=="function"&&u.push(y),p())},m=o(()=>e.call(i&&i.instances[r],t,s,g)),v=Promise.resolve(m);e.length<3&&(v=v.then(g)),v.catch(y=>d(y))})}function vr(e,t,s,i,r=o=>o()){let o=[];for(let u of e)for(let p in u.components){let d=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(pc(d)){let g=(d.__vccOpts||d)[t];g&&o.push(Hn(g,s,i,u,p,r))}else{let g=d();o.push(()=>g.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let v=fy(m)?m.default:m;u.mods[p]=m,u.components[p]=v;let y=(v.__vccOpts||v)[t];return y&&Hn(y,s,i,u,p,r)()}))}}return o}function Ic(e,t){let s=[],i=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let u=0;uys(g,p))?i.push(p):s.push(p));let d=e.matched[u];d&&(t.matched.find(g=>ys(g,d))||r.push(d))}return[s,i,r]}var Vy=()=>location.protocol+"//"+location.host;function zc(e,t){let{pathname:s,search:i,hash:r}=t,o=e.indexOf("#");if(o>-1){let u=r.includes(e.slice(o))?e.slice(o).length:1,p=r.slice(u);return p[0]!=="/"&&(p="/"+p),nl(p,"")}return nl(s,e)+i+r}function qy(e,t,s,i){let r=[],o=[],u=null,p=({state:y})=>{let C=zc(e,location),k=s.value,w=t.value,R=0;if(y){if(s.value=C,t.value=y,u&&u===k){u=null;return}R=w?y.position-w.position:0}else i(C);r.forEach(b=>{b(s.value,k,{delta:R,type:fr.pop,direction:R?R>0?mr.forward:mr.back:mr.unknown})})};function d(){u=s.value}function g(y){r.push(y);let C=()=>{let k=r.indexOf(y);k>-1&&r.splice(k,1)};return o.push(C),C}function m(){if(document.visibilityState==="hidden"){let{history:y}=window;if(!y.state)return;y.replaceState(ot({},y.state,{scroll:xo()}),"")}}function v(){for(let y of o)y();o=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",m),document.removeEventListener("visibilitychange",m)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",m),document.addEventListener("visibilitychange",m),{pauseListeners:d,listen:g,destroy:v}}function Oc(e,t,s,i=!1,r=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:r?xo():null}}function Ly(e){let{history:t,location:s}=window,i={value:zc(e,s)},r={value:t.state};r.value||o(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(d,g,m){let v=e.indexOf("#"),y=v>-1?(s.host&&document.querySelector("base")?e:e.slice(v))+d:Vy()+e+d;try{t[m?"replaceState":"pushState"](g,"",y),r.value=g}catch(C){console.error(C),s[m?"replace":"assign"](y)}}function u(d,g){o(d,ot({},t.state,Oc(r.value.back,d,r.value.forward,!0),g,{position:r.value.position}),!0),i.value=d}function p(d,g){let m=ot({},r.value,t.state,{forward:d,scroll:xo()});o(m.current,m,!0),o(d,ot({},Oc(i.value,d,null),{position:m.position+1},g),!1),i.value=d}return{location:i,state:r,push:p,replace:u}}function jc(e){e=Cc(e);let t=Ly(e),s=qy(e,t.state,t.location,t.replace);function i(o,u=!0){u||s.pauseListeners(),history.go(o)}let r=ot({location:"",base:e,go:i,createHref:Ec.bind(null,e)},t,s);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}var ws=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Et=(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})(Et||{}),$y={type:ws.Static,value:""},Fy=/[a-zA-Z0-9_]/;function Uy(e){if(!e)return[[]];if(e==="/")return[[$y]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${s})/"${g}": ${C}`)}let s=Et.Static,i=s,r=[],o;function u(){o&&r.push(o),o=[]}let p=0,d,g="",m="";function v(){g&&(s===Et.Static?o.push({type:ws.Static,value:g}):s===Et.Param||s===Et.ParamRegExp||s===Et.ParamRegExpEnd?(o.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${g}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ws.Param,value:g,regexp:m,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),g="")}function y(){g+=d}for(;pt.length?t.length===1&&t[0]===qt.Static+qt.Segment?1:-1:0}function _c(e,t){let s=0,i=e.score,r=t.score;for(;s0&&t[t.length-1]<0}var _y={strict:!1,end:!0,sensitive:!1};function Gy(e,t,s){let i=zy(Uy(e.path),s),r=ot(i,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Wy(e,t){let s=[],i=new Map;t=el(_y,t);function r(v){return i.get(v)}function o(v,y,C){let k=!C,w=Lc(v);w.aliasOf=C&&C.record;let R=el(t,v),b=[w];if("alias"in v){let L=typeof v.alias=="string"?[v.alias]:v.alias;for(let H of L)b.push(Lc(ot({},w,{components:C?C.record.components:w.components,path:H,aliasOf:C?C.record:w})))}let P,D;for(let L of b){let{path:H}=L;if(y&&H[0]!=="/"){let _=y.record.path,W=_[_.length-1]==="/"?"":"/";L.path=y.record.path+(H&&W+H)}if(P=Gy(L,y,R),C?C.alias.push(P):(D=D||P,D!==P&&D.alias.push(P),k&&v.name&&!$c(P)&&u(v.name)),Gc(P)&&d(P),w.children){let _=w.children;for(let W=0;W<_.length;W++)o(_[W],P,C&&C.children[W])}C=C||P}return D?()=>{u(D)}:Qs}function u(v){if(il(v)){let y=i.get(v);y&&(i.delete(v),s.splice(s.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{let y=s.indexOf(v);y>-1&&(s.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function p(){return s}function d(v){let y=Xy(v,s);s.splice(y,0,v),v.record.name&&!$c(v)&&i.set(v.record.name,v)}function g(v,y){let C,k={},w,R;if("name"in v&&v.name){if(C=i.get(v.name),!C)throw vs(yt.MATCHER_NOT_FOUND,{location:v});R=C.record.name,k=ot(qc(y.params,C.keys.filter(D=>!D.optional).concat(C.parent?C.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&qc(v.params,C.keys.map(D=>D.name))),w=C.stringify(k)}else if(v.path!=null)w=v.path,C=s.find(D=>D.re.test(w)),C&&(k=C.parse(w),R=C.record.name);else{if(C=y.name?i.get(y.name):s.find(D=>D.re.test(y.path)),!C)throw vs(yt.MATCHER_NOT_FOUND,{location:v,currentLocation:y});R=C.record.name,k=ot({},y.params,v.params),w=C.stringify(k)}let b=[],P=C;for(;P;)b.unshift(P.record),P=P.parent;return{name:R,path:w,params:k,matched:b,meta:Yy(b)}}e.forEach(v=>o(v));function m(){s.length=0,i.clear()}return{addRoute:o,resolve:g,removeRoute:u,clearRoutes:m,getRoutes:p,getRecordMatcher:r}}function qc(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Lc(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ky(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 Ky(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function $c(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yy(e){return e.reduce((t,s)=>ot(t,s.meta),{})}function Xy(e,t){let s=0,i=t.length;for(;s!==i;){let o=s+i>>1;_c(e,t[o])<0?i=o:s=o+1}let r=Qy(e);return r&&(i=t.lastIndexOf(r,i-1)),i}function Qy(e){let t=e;for(;t=t.parent;)if(Gc(t)&&_c(e,t)===0)return t}function Gc({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Fc(e){let t=_t(hr),s=_t(gr),i=!1,r=null,o=Ye(()=>{let m=Ln(e.to);return t.resolve(m)}),u=Ye(()=>{let{matched:m}=o.value,{length:v}=m,y=m[v-1],C=s.matched;if(!y||!C.length)return-1;let k=C.findIndex(ys.bind(null,y));if(k>-1)return k;let w=Uc(m[v-2]);return v>1&&Uc(y)===w&&C[C.length-1].path!==w?C.findIndex(ys.bind(null,m[v-2])):k}),p=Ye(()=>u.value>-1&&tv(s.params,o.value.params)),d=Ye(()=>u.value>-1&&u.value===s.matched.length-1&&sl(s.params,o.value.params));function g(m={}){if(ev(m)){let v=t[Ln(e.replace)?"replace":"push"](Ln(e.to)).catch(Qs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>v),v}return Promise.resolve()}return{route:o,href:Ye(()=>o.value.href),isActive:p,isExactActive:d,navigate:g}}function Jy(e){return e.length===1?e[0]:e}var Zy=Ko({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:Fc,setup(e,{slots:t}){let s=ut(Fc(e)),{options:i}=_t(hr),r=Ye(()=>({[Bc(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Bc(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let o=t.default&&Jy(t.default(s));return e.custom?o:ke("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:r.value},o)}}}),xy=Zy;function ev(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 tv(e,t){for(let s in t){let i=t[s],r=e[s];if(typeof i=="string"){if(i!==r)return!1}else if(!on(r)||r.length!==i.length||i.some((o,u)=>o.valueOf()!==r[u].valueOf()))return!1}return!0}function Uc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Bc=(e,t,s)=>e??t??s,nv=Ko({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=_t(yr),r=Ye(()=>e.route||i.value),o=_t(al,0),u=Ye(()=>{let g=Ln(o),{matched:m}=r.value,v;for(;(v=m[g])&&!v.components;)g++;return g}),p=Ye(()=>r.value.matched[u.value]);gs(al,Ye(()=>u.value+1)),gs(Ac,p),gs(yr,r);let d=bt();return dt(()=>[d.value,p.value,e.name],([g,m,v],[y,C,k])=>{m&&(m.instances[v]=g,C&&C!==m&&g&&g===y&&(m.leaveGuards.size||(m.leaveGuards=C.leaveGuards),m.updateGuards.size||(m.updateGuards=C.updateGuards))),g&&m&&(!C||!ys(m,C)||!y)&&(m.enterCallbacks[v]||[]).forEach(w=>w(g))},{flush:"post"}),()=>{let g=r.value,m=e.name,v=p.value,y=v&&v.components[m];if(!y)return Hc(s.default,{Component:y,route:g});let C=v.props[m],k=C?C===!0?g.params:typeof C=="function"?C(g):C:null,R=ke(y,ot({},k,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(v.instances[m]=null)},ref:d}));return Hc(s.default,{Component:R,route:g})||R}}});function Hc(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var ll=nv;function Wc(e){let t=Wy(e.routes,e),s=e.parseQuery||Pc,i=e.stringifyQuery||rl,r=e.history,o=Js(),u=Js(),p=Js(),d=_i(zn),g=zn;bs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let m=cr.bind(null,Q=>""+Q),v=cr.bind(null,bc),y=cr.bind(null,Xs);function C(Q,he){let x,ge;return il(Q)?(x=t.getRecordMatcher(Q),ge=he):ge=Q,t.addRoute(ge,x)}function k(Q){let he=t.getRecordMatcher(Q);he&&t.removeRoute(he)}function w(){return t.getRoutes().map(Q=>Q.record)}function R(Q){return!!t.getRecordMatcher(Q)}function b(Q,he){if(he=ot({},he||d.value),typeof Q=="string"){let I=pr(s,Q,he.path),z=t.resolve({path:I.path},he),Z=r.createHref(I.fullPath);return ot(I,z,{params:y(z.params),hash:Xs(I.hash),redirectedFrom:void 0,href:Z})}let x;if(Q.path!=null)x=ot({},Q,{path:pr(s,Q.path,he.path).path});else{let I=ot({},Q.params);for(let z in I)I[z]==null&&delete I[z];x=ot({},Q,{params:v(I)}),he.params=v(he.params)}let ge=t.resolve(x,he),Se=Q.hash||"";ge.params=m(y(ge.params));let Ie=wc(i,ot({},Q,{hash:vc(Se),path:ge.path})),A=r.createHref(Ie);return ot({fullPath:Ie,hash:Se,query:i===rl?Dc(Q.query):Q.query||{}},ge,{redirectedFrom:void 0,href:A})}function P(Q){return typeof Q=="string"?pr(s,Q,d.value.path):ot({},Q)}function D(Q,he){if(g!==Q)return vs(yt.NAVIGATION_CANCELLED,{from:he,to:Q})}function L(Q){return W(Q)}function H(Q){return L(ot(P(Q),{replace:!0}))}function _(Q,he){let x=Q.matched[Q.matched.length-1];if(x&&x.redirect){let{redirect:ge}=x,Se=typeof ge=="function"?ge(Q,he):ge;return typeof Se=="string"&&(Se=Se.includes("?")||Se.includes("#")?Se=P(Se):{path:Se},Se.params={}),ot({query:Q.query,hash:Q.hash,params:Se.path!=null?{}:Q.params},Se)}}function W(Q,he){let x=g=b(Q),ge=d.value,Se=Q.state,Ie=Q.force,A=Q.replace===!0,I=_(x,ge);if(I)return W(ot(P(I),{state:typeof I=="object"?ot({},Se,I.state):Se,force:Ie,replace:A}),he||x);let z=x;z.redirectedFrom=he;let Z;return!Ie&&kc(i,ge,x)&&(Z=vs(yt.NAVIGATION_DUPLICATED,{to:z,from:ge}),tt(ge,ge,!0,!1)),(Z?Promise.resolve(Z):V(z,ge)).catch(X=>Rn(X)?Rn(X,yt.NAVIGATION_GUARD_REDIRECT)?X:Xe(X):ye(X,z,ge)).then(X=>{if(X){if(Rn(X,yt.NAVIGATION_GUARD_REDIRECT))return W(ot({replace:A},P(X.to),{state:typeof X.to=="object"?ot({},Se,X.to.state):Se,force:Ie}),he||z)}else X=q(z,ge,!0,A,Se);return S(z,ge,X),X})}function ae(Q,he){let x=D(Q,he);return x?Promise.reject(x):Promise.resolve()}function F(Q){let he=it.values().next().value;return he&&typeof he.runWithContext=="function"?he.runWithContext(Q):Q()}function V(Q,he){let x,[ge,Se,Ie]=Ic(Q,he);x=vr(ge.reverse(),"beforeRouteLeave",Q,he);for(let I of ge)I.leaveGuards.forEach(z=>{x.push(Hn(z,Q,he))});let A=ae.bind(null,Q,he);return x.push(A),Me(x).then(()=>{x=[];for(let I of o.list())x.push(Hn(I,Q,he));return x.push(A),Me(x)}).then(()=>{x=vr(Se,"beforeRouteUpdate",Q,he);for(let I of Se)I.updateGuards.forEach(z=>{x.push(Hn(z,Q,he))});return x.push(A),Me(x)}).then(()=>{x=[];for(let I of Ie)if(I.beforeEnter)if(on(I.beforeEnter))for(let z of I.beforeEnter)x.push(Hn(z,Q,he));else x.push(Hn(I.beforeEnter,Q,he));return x.push(A),Me(x)}).then(()=>(Q.matched.forEach(I=>I.enterCallbacks={}),x=vr(Ie,"beforeRouteEnter",Q,he,F),x.push(A),Me(x))).then(()=>{x=[];for(let I of u.list())x.push(Hn(I,Q,he));return x.push(A),Me(x)}).catch(I=>Rn(I,yt.NAVIGATION_CANCELLED)?I:Promise.reject(I))}function S(Q,he,x){p.list().forEach(ge=>F(()=>ge(Q,he,x)))}function q(Q,he,x,ge,Se){let Ie=D(Q,he);if(Ie)return Ie;let A=he===zn,I=bs?history.state:{};x&&(ge||A?r.replace(Q.fullPath,ot({scroll:A&&I&&I.scroll},Se)):r.push(Q.fullPath,Se)),d.value=Q,tt(Q,he,x,A),Xe()}let G;function oe(){G||(G=r.listen((Q,he,x)=>{if(!gt.listening)return;let ge=b(Q),Se=_(ge,gt.currentRoute.value);if(Se){W(ot(Se,{replace:!0,force:!0}),ge).catch(Qs);return}g=ge;let Ie=d.value;bs&&Nc(ol(Ie.fullPath,x.delta),xo()),V(ge,Ie).catch(A=>Rn(A,yt.NAVIGATION_ABORTED|yt.NAVIGATION_CANCELLED)?A:Rn(A,yt.NAVIGATION_GUARD_REDIRECT)?(W(ot(P(A.to),{force:!0}),ge).then(I=>{Rn(I,yt.NAVIGATION_ABORTED|yt.NAVIGATION_DUPLICATED)&&!x.delta&&x.type===fr.pop&&r.go(-1,!1)}).catch(Qs),Promise.reject()):(x.delta&&r.go(-x.delta,!1),ye(A,ge,Ie))).then(A=>{A=A||q(ge,Ie,!1),A&&(x.delta&&!Rn(A,yt.NAVIGATION_CANCELLED)?r.go(-x.delta,!1):x.type===fr.pop&&Rn(A,yt.NAVIGATION_ABORTED|yt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),S(ge,Ie,A)}).catch(Qs)}))}let K=Js(),ne=Js(),le;function ye(Q,he,x){Xe(Q);let ge=ne.list();return ge.length?ge.forEach(Se=>Se(Q,he,x)):console.error(Q),Promise.reject(Q)}function Ae(){return le&&d.value!==zn?Promise.resolve():new Promise((Q,he)=>{K.add([Q,he])})}function Xe(Q){return le||(le=!Q,oe(),K.list().forEach(([he,x])=>Q?x(Q):he()),K.reset()),Q}function tt(Q,he,x,ge){let{scrollBehavior:Se}=e;if(!bs||!Se)return Promise.resolve();let Ie=!x&&Rc(ol(Q.fullPath,0))||(ge||!x)&&history.state&&history.state.scroll||null;return xe().then(()=>Se(Q,he,Ie)).then(A=>A&&Sc(A)).catch(A=>ye(A,Q,he))}let Ge=Q=>r.go(Q),We,it=new Set,gt={currentRoute:d,listening:!0,addRoute:C,removeRoute:k,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:w,resolve:b,options:e,push:L,replace:H,go:Ge,back:()=>Ge(-1),forward:()=>Ge(1),beforeEach:o.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:Ae,install(Q){Q.component("RouterLink",xy),Q.component("RouterView",ll),Q.config.globalProperties.$router=gt,Object.defineProperty(Q.config.globalProperties,"$route",{enumerable:!0,get:()=>Ln(d)}),bs&&!We&&d.value===zn&&(We=!0,L(r.location).catch(ge=>{}));let he={};for(let ge in zn)Object.defineProperty(he,ge,{get:()=>d.value[ge],enumerable:!0});Q.provide(hr,gt),Q.provide(gr,Oo(he)),Q.provide(yr,d);let x=Q.unmount;it.add(Q),Q.unmount=function(){it.delete(Q),it.size<1&&(g=zn,G&&G(),G=null,d.value=zn,We=!1,le=!1),x()}}};function Me(Q){return Q.reduce((he,x)=>he.then(()=>F(x)),Promise.resolve())}return gt}function Kc(e){return _t(gr)}function wr(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var br=new WeakMap;function kr(e){if(!br.has(e)){let t=e.get("/api/billing/").finally(()=>br.delete(e));br.set(e,t)}return br.get(e)}function Cr(e,t,s=()=>{},i={}){let r=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=r==="success",e.billingRepository="";let o={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=d=>d?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:d.currency,minimumFractionDigits:d.amount%100?2:0,maximumFractionDigits:2}).format(d.amount/100),e.billingPrice=d=>d.amount==null?"Price shown at checkout":e.billingAmount(d)+(d.interval?` / ${d.intervalCount>1?d.intervalCount+" ":""}${d.interval}`:" once"),e.billingPerMonth=d=>d?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:d.currency}).format(d.amount/1200),e.billingBytes=d=>{let g=Number(d)||0;if(g<1024)return`${g} B`;let m=Math.min(4,Math.floor(Math.log2(g)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(g/1024**m)} ${["B","KB","MB","GB","TB"][m]}`},e.billingDate=d=>d?new Date(d).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,kr(t).then(d=>{e.billing=d.data,e.emit?.("billing:updated",d.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(d,g,m=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let v=await t.post(`/api/billing/${d}`,g,{headers:{"x-csrf-token":e.billing.csrf}});if(m)window.location.assign(v.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!v.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=v.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",v.data}catch(v){e.billingError=o[v.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(d,g="",m={})=>u("checkout",{planId:d,target:g,...m}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let d=0;d<5;d++){let g=await e.refreshBilling();if(!g||!g.pending)return;await new Promise(m=>window.setTimeout(m,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{r==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):r==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):r==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Jt(e){let t=[],s=/\bXXXX-(\d+)\b/g,i=0,r;for(e=String(e??"");r=s.exec(e);)r.index>i&&t.push({t:e.slice(i,r.index)}),t.push({n:r[1]}),i=r.index+r[0].length;return i{let t=e.cloneNode(!0);return t.querySelectorAll("mark.redact-chip[data-term]").forEach(s=>s.replaceWith(s.dataset.term)),t.querySelectorAll("a.anchor, .heading-anchor").forEach(s=>s.remove()),t.textContent.replace(/\s+/g," ").trim()};function Er(e,{max:t=40}={}){if(typeof e=="string"){if(typeof window.DOMParser!="function")return[];e=new window.DOMParser().parseFromString("
"+e+"
","text/html").body}if(!e?.querySelectorAll)return[];let s=[...e.querySelectorAll("h1[id], h2[id], h3[id]")].slice(0,t).map(r=>({id:r.id,level:Number(r.tagName[1]),parts:Jt(sv(r))})).filter(r=>r.parts.length),i=Math.min(...s.map(r=>r.level));return s.forEach(r=>{r.depth=r.level-i}),s}function Sr(e,{offset:t=0,doc:s=window.document,view:i=window,scroller:r=null}={}){let o=Math.max(t+24,i.innerHeight*.2),u="",p=[];for(let m of e){let v=s.getElementById(m);if(!v)continue;let y=v.getBoundingClientRect().top;p.push([m,y]),y<=o&&(u=m)}let d=r&&r.scrollHeight>r.clientHeight+4?r:s.scrollingElement||s.documentElement;if(!!d&&d.scrollTop>0&&d.scrollTop+d.clientHeight>=d.scrollHeight-4){let m=p.filter(([,v])=>viv,date:()=>Pr,dateEcho:()=>Dr,diff:()=>lv,duration:()=>Xn,filter:()=>pv,hangIndent:()=>Zs,humanFileSize:()=>ov,humanTime:()=>dl,limitTo:()=>cv,money:()=>dv,number:()=>ul,orderBy:()=>fv,parseDelimited:()=>ei,parseDiff:()=>Tr,plural:()=>mv,shortDate:()=>Ar,statusLabel:()=>av,statusMsg:()=>Rr,title:()=>rv,uppercase:()=>uv});var ov=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),iv=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),dl=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).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],o=["year","month","week","day","hour","minute","second"],u=0;u1&&(d+="s"),p>=1)return p+" "+d+" "+i}return"0 seconds "+i}})(),rv=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),av=(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 s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),Rr=(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",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Hosting allowance exceeded",quota_repository_limit:"Repository limit reached",quota_storage_limit:"Storage allowance exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var r=Math.floor(i/60),o=i%60;return"Rate limited \u2014 retrying in "+(r>0?r+"m "+o+"s":o+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var d=t.replace(/_/g," ");return d.charAt(0).toUpperCase()+d.slice(1)}return t}})();function Tr(e){let t=[];if(!e)return t;let s=null,i=0,r=0,o=0,u=0,p=()=>{if(!s||!(s.lines.length||s.oldPath||s.newPath)){s=null;return}s.status=s.oldPath==="/dev/null"?"added":s.newPath==="/dev/null"?"deleted":s.oldPath&&s.newPath&&s.oldPath!==s.newPath?"renamed":"modified",s.path=s.newPath&&s.newPath!=="/dev/null"?s.newPath:s.oldPath||"",s.additions=s.lines.filter(m=>m.kind==="add").length,s.deletions=s.lines.filter(m=>m.kind==="remove").length,t.push(s),s=null},d=()=>s=s||{oldPath:"",newPath:"",lines:[]},g=e.replace(/\n$/,"").split(` +`);for(let m of g){if(s&&(o>0||u>0)&&/^([-+ ]|$)/.test(m)){m.startsWith("+")?(s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)}),u--):m.startsWith("-")?(s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)}),o--):(s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.slice(1)}),o--,u--);continue}if(m.startsWith("diff --git")){p(),d();continue}if(m.startsWith("--- ")){s&&s.lines.length&&p(),d().oldPath=m.replace(/^--- (a\/)?/,"").trim();continue}if(m.startsWith("+++ ")){d().newPath=m.replace(/^\+\+\+ (b\/)?/,"").trim();continue}if(!/^(index |similarity index|rename |new file mode|deleted file mode|Binary files)/.test(m)){if(m.startsWith("@@")){let v=m.match(/@@\s+-(\d+)(?:,(\d+))?\s+\+(\d+)(?:,(\d+))?\s+@@/);v&&(i=parseInt(v[1],10),r=parseInt(v[3],10),o=v[2]==null?1:parseInt(v[2],10),u=v[4]==null?1:parseInt(v[4],10)),d().lines.push({kind:"hunk",oldNo:"",newNo:"",text:m});continue}if(s)if(m.startsWith("+"))s.lines.push({kind:"add",oldNo:"",newNo:r++,text:m.slice(1)});else if(m.startsWith("-"))s.lines.push({kind:"remove",oldNo:i++,newNo:"",text:m.slice(1)});else{if(m.startsWith("\\"))continue;s.lines.push({kind:"ctx",oldNo:i++,newNo:r++,text:m.startsWith(" ")?m.slice(1):m})}}}return p(),t}var ei=(e,t)=>{let s=[],i=[],r="",o=!1;for(let u=0;uu.length>1||u[0]!=="")},Zs=e=>Math.min(((e||"").match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length+4,24),iv=(function(){let e=s=>s.replace(/&/g,"&").replace(//g,">"),t=s=>{let i=['
','
'+e(s.path)+''+s.status+"
"];if(s.lines.length){i.push('');for(let r of s.lines)i.push('");i.push("
'+(r.oldNo||"")+''+(r.newNo||"")+''+(r.kind==="add"?"+":r.kind==="remove"?"-":"")+''+e(r.text)+"
")}return i.push("
"),i.join("")};return s=>s&&Rr(s).map(t).join("")})();function ll(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function rv(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function av(e){return String(e??"").toUpperCase()}function lv(e,t,s=0){return(e||[]).slice(s,s+t)}function dv(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function uv(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,r)=>{for(let o of s){let u=o[0]==="-"?-1:1;o=o.replace(/^[+-]/,"");let p=o.split(".").reduce((g,m)=>g?.[m],i),d=o.split(".").reduce((g,m)=>g?.[m],r);if(typeof p=="string"&&(p=p.toLowerCase()),typeof d=="string"&&(d=d.toLowerCase()),p!==d)return(p==null?-1:d==null?1:pi[r])}function cv(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Pr(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),r=new Date;r.setHours(0,0,0,0);let o=Math.round((s-r)/864e5),u;if(o===0)u="today";else if(o===1)u="tomorrow";else if(o===-1)u="yesterday";else{let p=Math.abs(o),d=Math.round(p/30.44),g=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:d<18?[d,"month"]:[Math.round(p/365.25),"year"],m=g[0]+" "+g[1]+(g[0]===1?"":"s");u=o>0?"in "+m:m+" ago"}return i+" \xB7 "+u}function Yn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=o=>String(o).padStart(2,"0"),r=Math.round(s);return r<3600?Math.floor(r/60)+"m "+i(r%60)+"s":Math.floor(r/3600)+"h "+i(Math.floor(r%3600/60))+"m"}function Dr(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}function Gc(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ei(e=null,t=new Map){let s=ut({}),i=[],r=!1,o=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>o}),o.watch=(u,p,d=!1,g=!0)=>{let m=typeof u=="function"?()=>u(o):()=>Gc(o,u),v=dt(m,p,{deep:d,flush:"post"});return i.push(v),g&&Je(()=>{r||p(m(),m())}),v},o.watchGroup=(u,p,d=!0)=>o.watch(()=>u.map(g=>Gc(o,g)),p,!0,d),o.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let d=()=>t.get(u)?.delete(p);return i.push(d),d},o.emit=(u,...p)=>{for(let d of[...t.get(u)||[]])d({},...p)},o.dispose=()=>{r=!0,i.splice(0).reverse().forEach(u=>u())},Vn(o.dispose),o}function Tt(){let e=new Set,t=new Set,s=!1,i=(o,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),o()},u);return e.add(p),p};i.cancel=o=>{clearTimeout(o),e.delete(o)};let r=(o,u)=>{if(s)return;let p=setInterval(o,u);return t.add(p),p};return r.cancel=o=>{clearInterval(o),t.delete(o)},Vn(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:r}}function $t(){let e=new Set;return Vn(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,r)=>{t.addEventListener(s,i,r);let o=()=>{t.removeEventListener(s,i,r),e.delete(o)};return e.add(o),o}}var ni=[["mean","Average"],["sum","Sum"],["median","Median"],["min","Min"],["max","Max"],["count","Count"],["std","Std dev"]],ti=Object.fromEntries(ni),pv={mean:"Avg",sum:"Sum",median:"Median",min:"Min",max:"Max",count:"Count",std:"Std dev"},Or=e=>pv[e]||e,fv=/^(?:na|n\/a|nan|null|none|-|—|–)$/i,Qc=e=>e==null||String(e).trim()==="",Wc=e=>Qc(e)||fv.test(String(e).trim()),mv=/^([-+]?)(\d{1,3}(?:,\d{3})+|\d*)(?:\.(\d+))?(?:e([-+]?\d+))?(%?)$/i;function hv(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)?{value:e,decimals:0,percent:!1}:null;let t=String(e).trim();t.charCodeAt(0)===8722&&(t="-"+t.slice(1));let s=mv.exec(t);if(!s||!s[2]&&!s[3])return null;let i=+(s[1]+(s[2]?s[2].replace(/,/g,""):"0")+(s[3]?"."+s[3]:"")+(s[4]?"e"+s[4]:""));return Number.isFinite(i)?{value:i,decimals:Math.max(0,Math.min(10,(s[3]||"").length-(s[4]?Number(s[4]):0))),percent:s[5]==="%",exponent:!!s[4],mantissa:(s[3]||"").length}:null}var gv=/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})(?:[T ](\d{1,2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})?)?$/i,Kc="jan|feb|mar|apr|may|jun|jul|aug|sep|sept|oct|nov|dec",yv=new RegExp(`^(?:\\d{1,2}\\s+(?:${Kc})[a-z]*\\.?,?\\s+\\d{4}|(?:${Kc})[a-z]*\\.?\\s+\\d{1,2},?\\s+\\d{4})$`,"i");function vv(e){if(e==null)return null;let t=String(e).trim();if(!t)return null;let s=gv.exec(t);if(s){let[,i,r,o,u="0",p="0",d="0",g]=s;if(+r<1||+r>12||+o<1||+o>31)return null;if(g){let m=Date.parse(`${i}-${r.padStart(2,"0")}-${o.padStart(2,"0")}T${u.padStart(2,"0")}:${p}:${d.padStart(2,"0")}${g.length===5?g.slice(0,3)+":"+g.slice(3):g}`);return Number.isFinite(m)?m:null}return Date.UTC(+i,+r-1,+o,+u,+p,+d)}if(yv.test(t)){let i=Date.parse(t.replace(/\./g,"")+" UTC");return Number.isFinite(i)?i:null}return null}var Yc=typeof Intl<"u"?new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}):null,Jc=Yc?Yc.compare:(e,t)=>et?1:0;function Mr(e){let t=e&&e[0]||[],s=e?e.slice(1):[],i=Math.max(t.length,...s.slice(0,2e3).map(o=>o.length),0),r=[];for(let o=0;op[o]??"");r.push(Ir(String(t[o]??"").trim()||"Column "+(o+1),o,u))}for(let o of r)o.identifier=wv(o);return{header:r.map(o=>o.name),body:s,columns:r,size:s.length}}var bv=/(?:^|[\s_.\-/(])(?:seed|id|ids|run|runs|run_id|fold|folds|index|idx|year|trial|trials|rep|reps|repeat|split|#|no)s?(?:$|[\s_.\-/)])|^(?:seed|id|run|fold|index|idx|year|trial|rep|repeat)s?$|[a-z]Id$/i;function wv(e){if(!e||e.type!=="number")return!1;if(bv.test(e.name.trim()))return e.decimals===0;if(e.decimals!==0||e.unit)return!1;let t=1/0,s=-1/0,i=0,r=new Set;for(let o of e.keys)if(o!=null&&(o<0||!Number.isInteger(o)||(i++,r.add(o),os&&(s=o),r.size>12)))return!1;return r.size>=2&&i>=2*r.size&&s-t+1===r.size&&t<=1}function Ir(e,t,s,i){let r=s.length,o=new Array(r),u=i?.type,p=0,d=0,g=0,m=0,v=0,y=0;for(let C=0;C0||u==="number";for(let k=0;C&&kp&&(p=w.decimals),w.percent&&g++,w.exponent&&(v++,w.mantissa>y&&(y=w.mantissa))}C&&(u="number")}if(!u||u==="date"){let C=m>0||u==="date";for(let k=0;C&&k=m&&v>0?y:null)}}var ul=new WeakMap;function xs(e,t){let s=!t;if(s&&ul.has(e))return ul.get(e);let i=new Map,r=t||e.keys.map((o,u)=>u);for(let o of r){let u=e.keys[o];u!=null&&i.set(u,(i.get(u)||0)+1)}return s&&ul.set(e,i),i}function Vr(e,t,s,i){let r=e.columns[s];if(!r||!i)return t.slice();let o=i==="desc"?-1:1,u=r.keys,p=r.type!=="text",d=t.map((g,m)=>({row:g,position:m}));return d.sort((g,m)=>{let v=u[g.row],y=u[m.row];if(v==null||y==null)return v==null&&y==null?g.position-m.position:v==null?1:-1;let C=p?v-y:Jc(v,y);return C?C*o:g.position-m.position}),d.map(g=>g.row)}function Zc(e,{query:t="",ranges:s={},values:i={}}={}){let r=String(t||"").trim().toLowerCase(),o=Object.entries(s||{}).map(([g,m])=>[e.columns[g],m]).filter(([g,m])=>g&&m&&(m[0]!=null||m[1]!=null)),u=Object.entries(i||{}).map(([g,m])=>[e.columns[g],new Set(m)]).filter(([g,m])=>g&&m.size),p=[],d=r?kv(e):null;for(let g=0;gC){m=!1;break}}if(m){for(let[v,y]of u)if(!y.has(v.keys[g]==null?"":String(v.keys[g]))){m=!1;break}m&&p.push(g)}}return p}var cl=new WeakMap;function kv(e){return cl.has(e)||cl.set(e,e.body.map(t=>t.join("").toLowerCase())),cl.get(e)}function Xn(e,t,s){let i=[];for(let o of t){let u=e[o];u!=null&&Number.isFinite(u)&&i.push(u)}let r=i.length;if(s==="count")return r;if(!r)return null;if(s==="sum")return i.reduce((o,u)=>o+u,0);if(s==="mean")return i.reduce((o,u)=>o+u,0)/r;if(s==="min")return i.reduce((o,u)=>uu>o?u:o,-1/0);if(s==="median")return i.sort((o,u)=>o-u),r%2?i[(r-1)/2]:(i[r/2-1]+i[r/2])/2;if(s==="std"){if(r<2)return null;let o=i.reduce((u,p)=>u+p,0)/r;return Math.sqrt(i.reduce((u,p)=>u+(p-o)**2,0)/(r-1))}return null}var xc=(e,t)=>t==="count"?0:["mean","median","std"].includes(t)?Math.max(e.decimals,1):e.decimals,pl=new Map,Cv=e=>(pl.has(e)||pl.set(e,new Intl.NumberFormat("en-US",{minimumFractionDigits:e,maximumFractionDigits:e})),pl.get(e));function Ot(e,t=0,s=""){if(e==null||!Number.isFinite(e))return"\u2014";let i=Math.max(0,Math.min(10,t)),r=Math.abs(e);return r!==0&&(r>=1e15||r<1e-6&&i<=6)?e.toExponential(Math.min(i,3))+s:Cv(i).format(e)+s}var Ar=e=>String(e).padStart(2,"0");function ml(e,t){if(e==null||!Number.isFinite(e))return"\u2014";let s=new Date(e),i=`${s.getUTCFullYear()}-${Ar(s.getUTCMonth()+1)}-${Ar(s.getUTCDate())}`;return t?`${i} ${Ar(s.getUTCHours())}:${Ar(s.getUTCMinutes())}`:i}var Ev=e=>e.keys.some(t=>t!=null&&t%864e5!==0);function Ft(e,t,s){return e.type==="number"&&e.scientific!=null&&s!=="count"&&t!=null&&Number.isFinite(t)&&t!==0?t.toExponential(e.scientific+(["mean","median","std"].includes(s)?1:0))+e.unit:e.type==="date"?s==="count"?Ot(t,0):ml(t,Ev(e)):e.type==="number"||s?Ot(t,s?xc(e,s):e.decimals,s==="count"?"":e.unit):t==null?"":String(t)}function si(e,t,s="mean",i=r=>!r.identifier){if(e.type!=="number"){let o=xs(e,t).size;return{kind:"distinct",value:o,text:o===1?"1 distinct":Ot(o)+" distinct"}}if(!i(e))return{kind:"none",text:""};let r=Xn(e.keys,t,s);return{kind:"number",fn:s,value:r,text:Ft(e,r,s)}}function ep(e,t,s,i="mean",r=o=>!o.identifier){let o=e.columns[s];if(!o)return null;let u=new Map;for(let w of t){let R=o.keys[w]==null?"":o.keys[w];u.has(R)||u.set(R,[]),u.get(R).push(w)}let p=e.columns.filter(w=>w.type==="number"&&w.index!==s&&r(w)),d=[...u.entries()],g=d.map(([w,R])=>w===""?"(empty)":o.type==="text"?e.body[R[0]][s].trim():Ft(o,w)),m=Ir(o.name,0,g,{type:o.type,decimals:o.decimals,unit:o.unit});m.keys=d.map(([w])=>w===""?null:w),m.source=s,m.identifier=o.type==="number";let v=Ir("Rows",1,d.map(([,w])=>w.length),{type:"number",decimals:0,unit:""}),y=p.map((w,R)=>{let b=d.map(([,D])=>Xn(w.keys,D,i)),P=Ir(w.name,R+2,b,{type:"number",decimals:xc(w,i),unit:i==="count"?"":w.unit,scientific:i==="count"||w.scientific==null?null:w.scientific+(["mean","median","std"].includes(i)?1:0)});return P.source=w.index,P.agg=i,P}),C=[m,v,...y],k=d.map((w,R)=>C.map(b=>b===m?g[R]:Ft(b,b.keys[R])));return{header:C.map(w=>w.name),body:k,columns:C,size:k.length,grouped:{by:o.name,fn:i}}}function tp(e,t,s=12){let i={type:e.type,count:0,empty:0,distinct:xs(e,t).size};for(let r of t)e.keys[r]==null?i.empty++:i.count++;if(e.type==="text")return i.top=[...xs(e,t).entries()].sort((r,o)=>o[1]-r[1]||Jc(r[0],o[0])).slice(0,5),i;if(i.min=Xn(e.keys,t,"min"),i.max=Xn(e.keys,t,"max"),e.type==="number"&&(i.mean=Xn(e.keys,t,"mean"),i.std=Xn(e.keys,t,"std")),i.count&&i.min!=null){let r=i.min===i.max?1:s,o=(i.max-i.min)/r||1,u=new Array(r).fill(0);for(let p of t){let d=e.keys[p];d!=null&&u[Math.min(r-1,Math.floor((d-i.min)/o))]++}i.histogram=u.map((p,d)=>({count:p,from:i.min+d*o,to:i.min+(d+1)*o}))}return i}var Sv=(e,t)=>{let s=String(e??"");return s.includes(t)||/["\r\n]/.test(s)||/^\s|\s$/.test(s)?'"'+s.replace(/"/g,'""')+'"':s},hl=(e,t,s=",")=>[e,...t].map(i=>i.map(r=>Sv(r,s)).join(s)).join(` +`&&u++,i.push(r),s.push(i),i=[],r=""):r+=p}return(r!==""||i.length)&&(i.push(r),s.push(i)),s.filter(u=>u.length>1||u[0]!=="")},Zs=e=>Math.min(((e||"").match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length+4,24),lv=(function(){let e=s=>s.replace(/&/g,"&").replace(//g,">"),t=s=>{let i=['
','
'+e(s.path)+''+s.status+"
"];if(s.lines.length){i.push('');for(let r of s.lines)i.push('");i.push("
'+(r.oldNo||"")+''+(r.newNo||"")+''+(r.kind==="add"?"+":r.kind==="remove"?"-":"")+''+e(r.text)+"
")}return i.push("
"),i.join("")};return s=>s&&Tr(s).map(t).join("")})();function ul(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function dv(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function uv(e){return String(e??"").toUpperCase()}function cv(e,t,s=0){return(e||[]).slice(s,s+t)}function pv(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function fv(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,r)=>{for(let o of s){let u=o[0]==="-"?-1:1;o=o.replace(/^[+-]/,"");let p=o.split(".").reduce((g,m)=>g?.[m],i),d=o.split(".").reduce((g,m)=>g?.[m],r);if(typeof p=="string"&&(p=p.toLowerCase()),typeof d=="string"&&(d=d.toLowerCase()),p!==d)return(p==null?-1:d==null?1:pi[r])}function mv(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function Dr(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),r=new Date;r.setHours(0,0,0,0);let o=Math.round((s-r)/864e5),u;if(o===0)u="today";else if(o===1)u="tomorrow";else if(o===-1)u="yesterday";else{let p=Math.abs(o),d=Math.round(p/30.44),g=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:d<18?[d,"month"]:[Math.round(p/365.25),"year"],m=g[0]+" "+g[1]+(g[0]===1?"":"s");u=o>0?"in "+m:m+" ago"}return i+" \xB7 "+u}function Xn(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=o=>String(o).padStart(2,"0"),r=Math.round(s);return r<3600?Math.floor(r/60)+"m "+i(r%60)+"s":Math.floor(r/3600)+"h "+i(Math.floor(r%3600/60))+"m"}function Ar(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}function Yc(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ti(e=null,t=new Map){let s=ut({}),i=[],r=!1,o=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>o}),o.watch=(u,p,d=!1,g=!0)=>{let m=typeof u=="function"?()=>u(o):()=>Yc(o,u),v=dt(m,p,{deep:d,flush:"post"});return i.push(v),g&&xe(()=>{r||p(m(),m())}),v},o.watchGroup=(u,p,d=!0)=>o.watch(()=>u.map(g=>Yc(o,g)),p,!0,d),o.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let d=()=>t.get(u)?.delete(p);return i.push(d),d},o.emit=(u,...p)=>{for(let d of[...t.get(u)||[]])d({},...p)},o.dispose=()=>{r=!0,i.splice(0).reverse().forEach(u=>u())},qn(o.dispose),o}function Pt(){let e=new Set,t=new Set,s=!1,i=(o,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),o()},u);return e.add(p),p};i.cancel=o=>{clearTimeout(o),e.delete(o)};let r=(o,u)=>{if(s)return;let p=setInterval(o,u);return t.add(p),p};return r.cancel=o=>{clearInterval(o),t.delete(o)},qn(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:r}}function Lt(){let e=new Set;return qn(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,r)=>{t.addEventListener(s,i,r);let o=()=>{t.removeEventListener(s,i,r),e.delete(o)};return e.add(o),o}}var si=[["mean","Average"],["sum","Sum"],["median","Median"],["min","Min"],["max","Max"],["count","Count"],["std","Std dev"]],ni=Object.fromEntries(si),hv={mean:"Avg",sum:"Sum",median:"Median",min:"Min",max:"Max",count:"Count",std:"Std dev"},Mr=e=>hv[e]||e,gv=/^(?:na|n\/a|nan|null|none|-|—|–)$/i,xc=e=>e==null||String(e).trim()==="",Xc=e=>xc(e)||gv.test(String(e).trim()),yv=/^([-+]?)(\d{1,3}(?:,\d{3})+|\d*)(?:\.(\d+))?(?:e([-+]?\d+))?(%?)$/i;function vv(e){if(e==null)return null;if(typeof e=="number")return Number.isFinite(e)?{value:e,decimals:0,percent:!1}:null;let t=String(e).trim();t.charCodeAt(0)===8722&&(t="-"+t.slice(1));let s=yv.exec(t);if(!s||!s[2]&&!s[3])return null;let i=+(s[1]+(s[2]?s[2].replace(/,/g,""):"0")+(s[3]?"."+s[3]:"")+(s[4]?"e"+s[4]:""));return Number.isFinite(i)?{value:i,decimals:Math.max(0,Math.min(10,(s[3]||"").length-(s[4]?Number(s[4]):0))),percent:s[5]==="%",exponent:!!s[4],mantissa:(s[3]||"").length}:null}var bv=/^(\d{4})[-/](\d{1,2})[-/](\d{1,2})(?:[T ](\d{1,2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})?)?$/i,Qc="jan|feb|mar|apr|may|jun|jul|aug|sep|sept|oct|nov|dec",wv=new RegExp(`^(?:\\d{1,2}\\s+(?:${Qc})[a-z]*\\.?,?\\s+\\d{4}|(?:${Qc})[a-z]*\\.?\\s+\\d{1,2},?\\s+\\d{4})$`,"i");function kv(e){if(e==null)return null;let t=String(e).trim();if(!t)return null;let s=bv.exec(t);if(s){let[,i,r,o,u="0",p="0",d="0",g]=s;if(+r<1||+r>12||+o<1||+o>31)return null;if(g){let m=Date.parse(`${i}-${r.padStart(2,"0")}-${o.padStart(2,"0")}T${u.padStart(2,"0")}:${p}:${d.padStart(2,"0")}${g.length===5?g.slice(0,3)+":"+g.slice(3):g}`);return Number.isFinite(m)?m:null}return Date.UTC(+i,+r-1,+o,+u,+p,+d)}if(wv.test(t)){let i=Date.parse(t.replace(/\./g,"")+" UTC");return Number.isFinite(i)?i:null}return null}var Jc=typeof Intl<"u"?new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}):null,ep=Jc?Jc.compare:(e,t)=>et?1:0;function Vr(e){let t=e&&e[0]||[],s=e?e.slice(1):[],i=Math.max(t.length,...s.slice(0,2e3).map(o=>o.length),0),r=[];for(let o=0;op[o]??"");r.push(Or(String(t[o]??"").trim()||"Column "+(o+1),o,u))}for(let o of r)o.identifier=Ev(o);return{header:r.map(o=>o.name),body:s,columns:r,size:s.length}}var Cv=/(?:^|[\s_.\-/(])(?:seed|id|ids|run|runs|run_id|fold|folds|index|idx|year|trial|trials|rep|reps|repeat|split|#|no)s?(?:$|[\s_.\-/)])|^(?:seed|id|run|fold|index|idx|year|trial|rep|repeat)s?$|[a-z]Id$/i;function Ev(e){if(!e||e.type!=="number")return!1;if(Cv.test(e.name.trim()))return e.decimals===0;if(e.decimals!==0||e.unit)return!1;let t=1/0,s=-1/0,i=0,r=new Set;for(let o of e.keys)if(o!=null&&(o<0||!Number.isInteger(o)||(i++,r.add(o),os&&(s=o),r.size>12)))return!1;return r.size>=2&&i>=2*r.size&&s-t+1===r.size&&t<=1}function Or(e,t,s,i){let r=s.length,o=new Array(r),u=i?.type,p=0,d=0,g=0,m=0,v=0,y=0;for(let C=0;C0||u==="number";for(let k=0;C&&kp&&(p=w.decimals),w.percent&&g++,w.exponent&&(v++,w.mantissa>y&&(y=w.mantissa))}C&&(u="number")}if(!u||u==="date"){let C=m>0||u==="date";for(let k=0;C&&k=m&&v>0?y:null)}}var pl=new WeakMap;function xs(e,t){let s=!t;if(s&&pl.has(e))return pl.get(e);let i=new Map,r=t||e.keys.map((o,u)=>u);for(let o of r){let u=e.keys[o];u!=null&&i.set(u,(i.get(u)||0)+1)}return s&&pl.set(e,i),i}function qr(e,t,s,i){let r=e.columns[s];if(!r||!i)return t.slice();let o=i==="desc"?-1:1,u=r.keys,p=r.type!=="text",d=t.map((g,m)=>({row:g,position:m}));return d.sort((g,m)=>{let v=u[g.row],y=u[m.row];if(v==null||y==null)return v==null&&y==null?g.position-m.position:v==null?1:-1;let C=p?v-y:ep(v,y);return C?C*o:g.position-m.position}),d.map(g=>g.row)}function tp(e,{query:t="",ranges:s={},values:i={}}={}){let r=String(t||"").trim().toLowerCase(),o=Object.entries(s||{}).map(([g,m])=>[e.columns[g],m]).filter(([g,m])=>g&&m&&(m[0]!=null||m[1]!=null)),u=Object.entries(i||{}).map(([g,m])=>[e.columns[g],new Set(m)]).filter(([g,m])=>g&&m.size),p=[],d=r?Sv(e):null;for(let g=0;gC){m=!1;break}}if(m){for(let[v,y]of u)if(!y.has(v.keys[g]==null?"":String(v.keys[g]))){m=!1;break}m&&p.push(g)}}return p}var fl=new WeakMap;function Sv(e){return fl.has(e)||fl.set(e,e.body.map(t=>t.join("").toLowerCase())),fl.get(e)}function Qn(e,t,s){let i=[];for(let o of t){let u=e[o];u!=null&&Number.isFinite(u)&&i.push(u)}let r=i.length;if(s==="count")return r;if(!r)return null;if(s==="sum")return i.reduce((o,u)=>o+u,0);if(s==="mean")return i.reduce((o,u)=>o+u,0)/r;if(s==="min")return i.reduce((o,u)=>uu>o?u:o,-1/0);if(s==="median")return i.sort((o,u)=>o-u),r%2?i[(r-1)/2]:(i[r/2-1]+i[r/2])/2;if(s==="std"){if(r<2)return null;let o=i.reduce((u,p)=>u+p,0)/r;return Math.sqrt(i.reduce((u,p)=>u+(p-o)**2,0)/(r-1))}return null}var np=(e,t)=>t==="count"?0:["mean","median","std"].includes(t)?Math.max(e.decimals,1):e.decimals,ml=new Map,Nv=e=>(ml.has(e)||ml.set(e,new Intl.NumberFormat("en-US",{minimumFractionDigits:e,maximumFractionDigits:e})),ml.get(e));function It(e,t=0,s=""){if(e==null||!Number.isFinite(e))return"\u2014";let i=Math.max(0,Math.min(10,t)),r=Math.abs(e);return r!==0&&(r>=1e15||r<1e-6&&i<=6)?e.toExponential(Math.min(i,3))+s:Nv(i).format(e)+s}var Ir=e=>String(e).padStart(2,"0");function gl(e,t){if(e==null||!Number.isFinite(e))return"\u2014";let s=new Date(e),i=`${s.getUTCFullYear()}-${Ir(s.getUTCMonth()+1)}-${Ir(s.getUTCDate())}`;return t?`${i} ${Ir(s.getUTCHours())}:${Ir(s.getUTCMinutes())}`:i}var Rv=e=>e.keys.some(t=>t!=null&&t%864e5!==0);function $t(e,t,s){return e.type==="number"&&e.scientific!=null&&s!=="count"&&t!=null&&Number.isFinite(t)&&t!==0?t.toExponential(e.scientific+(["mean","median","std"].includes(s)?1:0))+e.unit:e.type==="date"?s==="count"?It(t,0):gl(t,Rv(e)):e.type==="number"||s?It(t,s?np(e,s):e.decimals,s==="count"?"":e.unit):t==null?"":String(t)}function oi(e,t,s="mean",i=r=>!r.identifier){if(e.type!=="number"){let o=xs(e,t).size;return{kind:"distinct",value:o,text:o===1?"1 distinct":It(o)+" distinct"}}if(!i(e))return{kind:"none",text:""};let r=Qn(e.keys,t,s);return{kind:"number",fn:s,value:r,text:$t(e,r,s)}}function sp(e,t,s,i="mean",r=o=>!o.identifier){let o=e.columns[s];if(!o)return null;let u=new Map;for(let w of t){let R=o.keys[w]==null?"":o.keys[w];u.has(R)||u.set(R,[]),u.get(R).push(w)}let p=e.columns.filter(w=>w.type==="number"&&w.index!==s&&r(w)),d=[...u.entries()],g=d.map(([w,R])=>w===""?"(empty)":o.type==="text"?e.body[R[0]][s].trim():$t(o,w)),m=Or(o.name,0,g,{type:o.type,decimals:o.decimals,unit:o.unit});m.keys=d.map(([w])=>w===""?null:w),m.source=s,m.identifier=o.type==="number";let v=Or("Rows",1,d.map(([,w])=>w.length),{type:"number",decimals:0,unit:""}),y=p.map((w,R)=>{let b=d.map(([,D])=>Qn(w.keys,D,i)),P=Or(w.name,R+2,b,{type:"number",decimals:np(w,i),unit:i==="count"?"":w.unit,scientific:i==="count"||w.scientific==null?null:w.scientific+(["mean","median","std"].includes(i)?1:0)});return P.source=w.index,P.agg=i,P}),C=[m,v,...y],k=d.map((w,R)=>C.map(b=>b===m?g[R]:$t(b,b.keys[R])));return{header:C.map(w=>w.name),body:k,columns:C,size:k.length,grouped:{by:o.name,fn:i}}}function op(e,t,s=12){let i={type:e.type,count:0,empty:0,distinct:xs(e,t).size};for(let r of t)e.keys[r]==null?i.empty++:i.count++;if(e.type==="text")return i.top=[...xs(e,t).entries()].sort((r,o)=>o[1]-r[1]||ep(r[0],o[0])).slice(0,5),i;if(i.min=Qn(e.keys,t,"min"),i.max=Qn(e.keys,t,"max"),e.type==="number"&&(i.mean=Qn(e.keys,t,"mean"),i.std=Qn(e.keys,t,"std")),i.count&&i.min!=null){let r=i.min===i.max?1:s,o=(i.max-i.min)/r||1,u=new Array(r).fill(0);for(let p of t){let d=e.keys[p];d!=null&&u[Math.min(r-1,Math.floor((d-i.min)/o))]++}i.histogram=u.map((p,d)=>({count:p,from:i.min+d*o,to:i.min+(d+1)*o}))}return i}var Tv=(e,t)=>{let s=String(e??"");return s.includes(t)||/["\r\n]/.test(s)||/^\s|\s$/.test(s)?'"'+s.replace(/"/g,'""')+'"':s},yl=(e,t,s=",")=>[e,...t].map(i=>i.map(r=>Tv(r,s)).join(s)).join(` `)+` -`,Xc=e=>String(e??"").replace(/\\/g,"\\\\").replace(/\|/g,"\\|").replace(/\r?\n/g," ");function np(e,t,s=[]){return["| "+e.map(Xc).join(" | ")+" |","| "+e.map((r,o)=>s[o]?"---:":"---").join(" | ")+" |",...t.map(r=>"| "+e.map((o,u)=>Xc(r[u])).join(" | ")+" |")].join(` +`,Zc=e=>String(e??"").replace(/\\/g,"\\\\").replace(/\|/g,"\\|").replace(/\r?\n/g," ");function ip(e,t,s=[]){return["| "+e.map(Zc).join(" | ")+" |","| "+e.map((r,o)=>s[o]?"---:":"---").join(" | ")+" |",...t.map(r=>"| "+e.map((o,u)=>Zc(r[u])).join(" | ")+" |")].join(` `)+` -`}var Nv=Object.freeze({view:"table",query:"",sort:null,group:null,agg:"mean",sum:"mean",ranges:{},values:{},sums:{},numeric:[],chart:null,x:null,y:[]});function Rv(e){let t=new URLSearchParams;e.view&&e.view!=="table"&&t.set("view",e.view),e.query&&t.set("q",e.query),e.sort?.column&&t.set("sort",e.sort.column+(e.sort.dir==="desc"?":desc":"")),e.group&&t.set("group",e.group),e.group&&e.agg&&e.agg!=="mean"&&t.set("agg",e.agg);for(let[s,[i,r]]of Object.entries(e.ranges||{}))(i!=null||r!=null)&&t.set("range."+s,(i??"")+"~"+(r??""));for(let[s,i]of Object.entries(e.values||{}))for(let r of i||[])t.append("in."+s,r);e.sum&&e.sum!=="mean"&&t.set("sum",e.sum);for(let[s,i]of Object.entries(e.sums||{}))i&&i!==(e.sum||"mean")&&t.set("sum."+s,i);return e.numeric?.length&&t.set("num",e.numeric.join("|")),e.chart&&t.set("chart",e.chart),e.x&&t.set("x",e.x),e.y?.length&&t.set("y",e.y.join("|")),t.toString()}function Tv(e){var d,g;let t=new URLSearchParams(e||""),s={...Nv,ranges:{},values:{},sums:{},numeric:[],y:[]},i=t.get("view");["table","chart","raw"].includes(i)&&(s.view=i),s.query=t.get("q")||"";let r=t.get("sort");if(r){let m=/^(.*?)(?::(asc|desc))?$/.exec(r);s.sort={column:m[1],dir:m[2]||"asc"}}s.group=t.get("group")||null;let o=t.get("agg");o&&ti[o]&&(s.agg=o);for(let[m,v]of t.entries())if(m.startsWith("range.")){let[y,C]=v.split("~").map(k=>k===""||k==null?null:Number(k));s.ranges[m.slice(6)]=[Number.isFinite(y)?y:null,Number.isFinite(C)?C:null]}else m.startsWith("in.")?((d=s.values)[g=m.slice(3)]||(d[g]=[])).push(v):m.startsWith("sum.")&&ti[v]&&(s.sums[m.slice(4)]=v);let u=t.get("sum");u&&ti[u]&&(s.sum=u),s.numeric=(t.get("num")||"").split("|").filter(Boolean);let p=t.get("chart");return["bar","line","scatter"].includes(p)&&(s.chart=p),s.x=t.get("x")||null,s.y=(t.get("y")||"").split("|").filter(Boolean),s}var fl=e=>"#"+e+":";function eo(e,t){if(!t||typeof e!="string"||!e.startsWith(fl(t)))return null;try{return Tv(e.slice(fl(t).length))}catch{return null}}function sp(e,t){let s=Rv(t);return s?fl(e)+s.replace(/%3A/gi,":").replace(/%7C/gi,"|").replace(/%7E/gi,"~").replace(/%2C/gi,","):""}var gl=e=>/^#table(?:-\d+)?:/.test(e||"");var yl=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(V,S)=>{e.aceOption&&(e.aceOption.theme=S?"nord_dark":"chrome")});let i=Tt(),r=$t();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let o={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],d=["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.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let m=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(m??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function v(){return window.document.querySelector(".reading-layout .markdown-body")}function y(){let V=v();V&&(V.querySelectorAll("mark.md-find").forEach(S=>{S.replaceWith(window.document.createTextNode(S.textContent))}),V.normalize())}e.runMdFind=function(){y(),e.mdFindTotal=0,e.mdFindIndex=0;let V=(e.mdFindQuery||"").trim(),S=v();if(!V||!S)return;let q=!!e.mdFindCase,G=q?V:V.toLowerCase(),ie=window.document.createTreeWalker(S,4),K=[];for(;ie.nextNode();)(q?ie.currentNode.nodeValue:ie.currentNode.nodeValue.toLowerCase()).includes(G)&&K.push(ie.currentNode);let ne=0;for(let le of K){let ye=le.nodeValue,Ae=q?ye:ye.toLowerCase(),Xe=window.document.createDocumentFragment(),tt=0,Ge;for(;(Ge=Ae.indexOf(G,tt))!==-1;){Xe.appendChild(window.document.createTextNode(ye.slice(tt,Ge)));let We=window.document.createElement("mark");We.className="md-find",We.textContent=ye.slice(Ge,Ge+V.length),Xe.appendChild(We),ne++,tt=Ge+V.length}Xe.appendChild(window.document.createTextNode(ye.slice(tt))),le.parentNode.replaceChild(Xe,le)}e.mdFindTotal=ne,ne&&e.stepMdFind(0)},e.stepMdFind=function(V){let S=v();if(!S||!e.mdFindTotal)return;let q=S.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+V+q.length)%q.length,q.forEach((G,ie)=>G.classList.toggle("is-current",ie===e.mdFindIndex)),q[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(V){if(e.mdFindOpen=V===void 0?!e.mdFindOpen:V,!e.mdFindOpen){y(),e.mdFindTotal=0;return}Je(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let V=e.codeEditor;if(!V)return;V.focus(),V.execCommand("find");let S=()=>{let q=V.searchBox?.element;q&&(V.renderer.setScrollMargin(52,12,0,0),!q._dockObserver&&(q._dockObserver=new MutationObserver(()=>{V.renderer.setScrollMargin(q.style.display!=="none"?52:12,12,0,0)}),q._dockObserver.observe(q,{attributes:!0,attributeFilter:["style"]})))};S(),setTimeout(S,150)};let C=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],k={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(k.content===e.content)return k.list;let V=[];return e.content.split(` -`).forEach((S,q)=>{for(let[G,ie]of C){let K=G.exec(S);if(K&&!/^(if|for|while|switch|return|catch)$/.test(K[1])){V.push({name:K[1],kind:ie,line:q+1});break}}}),k={content:e.content,list:V.slice(0,300)},k.list},e.goToSymbol=function(V){e.symbolsOpen=!1;let S=e.codeEditor;S&&(S.scrollToLine(V-1,!0,!0,()=>{}),S.gotoLine(V,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+V),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let V=window.document.getElementById("goto-input");V&&(V.focus(),V.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let V=e.codeEditor;if(!V)return;let S=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),q=V.session.getLength();if(!S||+S[1]<1||+S[1]>q){e.gotoError="Enter a line from 1 to "+q;return}V.gotoLine(+S[1],S[2]?Math.max(0,+S[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",V.focus()},e.rootEntries=function(){return[...e.files||[]].sort((V,S)=>{let q=V.size==null,G=S.size==null;return q!==G?q?-1:1:V.name.localeCompare(S.name)})},e.formatSize=function(V){if(V==null)return"";if(V<1024)return V+" B";let S=V/1024,q=G=>G.toFixed(1).replace(/\.0$/,"");return S<1024?q(S)+" KB":S<1024*1024?q(S/1024)+" MB":q(S/1024/1024)+" GB"},e.fileSize=function(V){if(!V)return null;let S=V.replace(/^\/+/,""),q=(e.files||[]).find(G=>(G.path?G.path+"/":"")+G.name===S);return q&&q.size!=null?q.size:null},e.revealFolder=function(V){e.sidebarHidden=!1,e.sidebarCollapsed=!1,Je(()=>{let S=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(V):V)+'"]');S&&(S.closest("li")?.classList.contains("open")||S.click(),S.scrollIntoView({block:"nearest"}),S.focus())})};let w={content:null,n:0},R=V=>{if(w.content===V)return w.n;let S=V;if(typeof S=="string")try{S=JSON.parse(S)}catch{S=null}let q=[],G=K=>{Array.isArray(K)?q.push(K.join("")):typeof K=="string"&&q.push(K)};(S&&(S.cells||(S.worksheets||[]).flatMap(K=>K.cells||[]))||[]).forEach(K=>{G(K?.source??K?.input),(K?.outputs||[]).forEach(ne=>{G(ne?.text),ne?.data&&(G(ne.data["text/plain"]),G(ne.data["text/markdown"]),G(ne.data["text/html"])),G(ne?.traceback)})});let ie=q.reduce((K,ne)=>K+(ne.match(s)||[]).length,0);return w={content:V,n:ie},ie};e.redactionCount=function(){return e.type==="IPython"?R(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=to;let b=V=>V.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(V){let S=e.renderRedacted(V);if(!S||typeof window.DOMParser!="function")return S;let q=new window.DOMParser().parseFromString("
"+S+"
","text/html"),G={};return q.querySelectorAll("h1, h2, h3").forEach(ie=>{let K=ie.id||b(ie.textContent);G[K]?K+="-"+ ++G[K]:G[K]=1,ie.id=K}),q.body.firstChild.innerHTML};let P={content:null,list:[],title:null,count:0},D=()=>{if(e.type!=="html"||typeof e.content!="string")return{list:[],title:null,count:0};if(P.content===e.content)return P;let V=Cr(e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)),S=V.length,q=null;if(V[0]?.level===1&&V.filter(G=>G.level===1).length===1){q=V[0],V=V.slice(1);let G=Math.min(...V.map(ie=>ie.level));V=V.map(ie=>({...ie,depth:ie.level-G}))}return P={content:e.content,list:V,title:q,count:S},P};e.readmeToc=()=>D().list,e.tocTitle=()=>D().title,e.tocCount=()=>D().count,e.activeHeading=null,r(window,"scroll",()=>{let V=e.readmeToc?e.readmeToc():[];if(e.tocCount()<3)return;let S=Er(V.map(q=>q.id),{offset:120,scroller:window.document.querySelector(".explorer-content")});e.activeHeading!==S&&(e.activeHeading=S)},{capture:!0,passive:!0}),e.scrollToHeading=function(V){if(!V){(window.document.querySelector(".explorer-content, .file-card-body, .main-pane")||window).scrollTo({top:0,behavior:"smooth"}),e.activeHeading="";return}Sr(V),e.activeHeading=V};let L=()=>!e.preview&&eo(window.location.hash,"table")?.view||"table";e.csvView=L();let H={content:null,rows:[]};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(H.content!==e.content){let V=/\.tsv$/i.test(e.filePath||"")?" ":",";H={content:e.content,rows:xo(e.content,V)}}return H.rows},e.redactParts=Jt,e.pathCopied=!1,e.copyPath=async function(){window.navigator.clipboard?.writeText&&(await window.navigator.clipboard.writeText(e.filePath||""),e.pathCopied=!0,setTimeout(()=>{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let V=e.content;if(e.type==="html"&&e.url)if(e.preview)V=e.sourceContent;else try{V=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(V),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function _(V){return o[V]?o[V]:V}function W(V){return V=="pdf"?"pdf":V=="html"||V=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(V)?"md":V=="org"?"org":V=="ipynb"?"IPython":u.indexOf(V)>-1?"text":p.indexOf(V)>-1?"image":g.indexOf(V)>-1?"media":d.indexOf(V)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(V){e.showSource=!1,e.allowScripts=!1,e.csvView=L(),e.imageSize="",e.filePath=V,e.paths=V.split("/").filter(Boolean);let S=e.filePath.toLowerCase(),q=S.lastIndexOf(".");q>-1&&(S=S.substring(q+1));let G={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},ie=_(S);e.languageName=G[ie]??(ie?ie.charAt(0).toUpperCase()+ie.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:_(S),onLoad:function(K){e.codeEditor=kn(K);{let Oe=K.session,Q=Oe.getTokens.bind(Oe),he=/\bXXXX-\d+\b/g;if(Oe.getTokens=function(ee){let ge=Q(ee);if(!ge.some(Ie=>Ie.value.indexOf("XXXX-")!==-1))return ge;let Ee=[];for(let Ie of ge){if(Ie.value.indexOf("XXXX-")===-1){Ee.push(Ie);continue}let A=0;he.lastIndex=0;let I;for(;I=he.exec(Ie.value);)I.index>A&&Ee.push({type:Ie.type,value:Ie.value.slice(A,I.index)}),Ee.push({type:"redacted.n"+I[0].slice(5),value:I[0]}),A=I.index+I[0].length;A`.ace_redacted.ace_n${Ee+1}::after{content:"${Ee+1}"}`).join(""),window.document.head.appendChild(ee)}K.renderer.updateFull(!0)}K.session.setUseWrapMode(e.wrapLines!==!1);let ne=K.container.closest?.(".file-card"),le=()=>{if(!ne)return;let Oe=K.renderer,Q=(Oe.layerConfig?.width||0)-(Oe.$size?.scrollerWidth||0);ne.classList.toggle("at-right-edge",Q<=2||Oe.getScrollLeft()>=Q-2)};K.session.on("changeScrollLeft",le),K.renderer.on("afterRender",le),window.matchMedia?.("(max-width: 767px)").matches&&K.setOption("hScrollBarAlwaysVisible",!0);let ye=ace.require("ace/range").Range,Ae=null;function Xe(Oe,Q){Ae!==null&&(K.session.removeMarker(Ae),Ae=null),Oe!=null&&(Ae=K.session.addMarker(new ye(Oe,0,Q,1),"highlighted-line","fullLine"))}function tt(Oe){let Q=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Q){Xe(null);return}let he=parseInt(Q[1])-1,ee=Q[2]?parseInt(Q[2])-1:he;Xe(he,ee),Oe&&i.timeout(()=>{K.scrollToLine(he,!0,!0,function(){})},100)}tt(!0);let Ge=null;K.on("guttermousedown",function(Oe){let Q=Oe.getDocumentPosition().row,he=Oe.domEvent&&Oe.domEvent.shiftKey,ee=Q,ge=Q;he&&Ge!==null?(ee=Math.min(Ge,Q),ge=Math.max(Ge,Q)):Ge=Q;let Ee=ee===ge?`#L${ee+1}`:`#L${ee+1}-L${ge+1}`,Ie=window.location.pathname+window.location.search+Ee;e.preview||window.history.replaceState(null,"",Ie),Xe(ee,ge),Oe.stop()});let We=r(window,"hashchange",()=>tt(!1));K.setFontSize(e.aceOption.fontSize),K.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),K.container.style.lineHeight="20px",K.renderer.setPadding(16),K.renderer.setScrollMargin(12,12,0,0),K.renderer.updateFontSize(),K.setReadOnly(e.aceOption.readOnly),K.setKeyboardHandler(e.aceOption.keyBinding),K.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),K.setOption("displayIndentGuides",!1),K.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(K.renderer.$cursorLayer.element.style.display="none"),K.setHighlightGutterLine(e.aceOption.highlightGutterLine),K.setShowInvisibles(e.aceOption.showInvisibles),K.setDisplayIndentGuides(e.aceOption.showIndentGuides),K.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),K.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),K.session.setUseSoftTabs(e.aceOption.useSoftTab),K.session.setTabSize(e.aceOption.tabSize),K.setBehavioursEnabled(e.aceOption.enableBehaviours),K.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let it=()=>!e.preview||K.isFocused(),ht=r(window,"keydown",Oe=>{if((Oe.ctrlKey||Oe.metaKey)&&!Oe.altKey&&Oe.key.toLowerCase()==="g"&&document.body.contains(K.container)&&it()){Oe.preventDefault(),e.gotoLine();return}if(Oe.altKey&&!Oe.ctrlKey&&!Oe.metaKey&&Oe.key.toLowerCase()==="z"&&document.body.contains(K.container)&&it()){Oe.preventDefault(),e.toggleWrap();return}(Oe.ctrlKey||Oe.metaKey)&&!Oe.altKey&&Oe.key.toLowerCase()==="f"&&document.body.contains(K.container)&&it()&&(Oe.preventDefault(),e.findInFile())});return()=>{We(),ht()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=W(S)},e.renderFileContent=function(V,S,q,G){if(e.type=S,e.content=V,e.sourceContent=V,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(V,q),e.type="html"),e.type=="org"){let K=contentAbs2Relative(V);var ie=new Org.Parser().parse(K).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ie.toString()),e.type="html"}e.type=="code"&&G=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let re=["image","media","audio","pdf","IPython","binary"],F=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?re.includes(e.type)?e.content!=null:e.type==="error"?F.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let V=(e.paths||[])[(e.paths||[]).length-1]||"",S=V.lastIndexOf("."),q=S>0?V.slice(S+1).toUpperCase():"";if(e.type==="image")return(q==="JPG"?"JPEG":q)+" image";let G={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(G[q]||q)+" video":e.type==="audio"?q+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(q?q+" file":"File")},e.imageSize="",e.onImageLoad=V=>{let S=V.target;S?.naturalWidth&&(e.imageSize=`${S.naturalWidth} \xD7 ${S.naturalHeight}`)},r(document,"click",V=>{e.preview&&(V.target.closest?.(".symbols")||(e.symbolsOpen=!1),V.target.closest?.(".tb-more")||(e.moreOpen=!1),V.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),V.target.isConnected&&!V.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};var Pv=e=>e?String(e).replace(/\n$/,"").split(` -`).length:0,Dv=e=>/\.(md|markdown|mdx)$/i.test(e?.filename||"")||e?.language==="Markdown";function ip(e,t){let s=$t();e.redactParts=Jt,e.hangIndent=Zs,e.isRedactedName=r=>/^XXXX-\d+$/.test(String(r||"").trim()),e.tocOpen=!1,e.activeAnchor="";let i=()=>{let r=t();if(!r.length)return;let o=Er(r,{offset:64,scroller:window.document.querySelector("main.app-view")});e.activeAnchor!==o&&(e.activeAnchor=o)};return s(window,"scroll",i,{capture:!0,passive:!0}),s(window,"resize",i,{passive:!0}),s(window.document,"click",r=>{e.tocOpen&&!r.target.closest?.(".toc-menu")&&(e.tocOpen=!1)}),s(window.document,"keydown",r=>{r.key==="Escape"&&e.tocOpen&&(e.tocOpen=!1)}),e.jumpToAnchor=r=>{e.tocOpen=!1,Sr(r)&&(e.activeAnchor=r)},i}var qr=e=>(String(e||"").split(".").pop()||"").toLowerCase(),Av={md:"markdown",markdown:"markdown",mdx:"markdown",ipynb:"notebook",csv:"csv",tsv:"csv",svg:"svg",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",ico:"image",avif:"image",pdf:"pdf",mp4:"video",webm:"video",mov:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",flac:"audio",aac:"audio"},Iv={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",m4v:"video/mp4",ogv:"video/ogg",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",flac:"audio/flac",aac:"audio/aac"},Ov=1024*1024;function no(e){if(e?.tooLarge)return"too-large";if(e?.hidden)return"hidden";let t=Av[qr(e?.filename)]||(e?.language==="Markdown"?"markdown":null);return e?.encoding==="base64"?["image","pdf","video","audio"].includes(t)&&e.content?t:"binary":e?.content?t==="csv"&&e.content.length>Ov?"code":["markdown","notebook","csv","svg"].includes(t)?t:"code":"empty"}var Mv=e=>["markdown","notebook","csv","svg"].includes(e),op={markdown:"Markdown",notebook:"Jupyter notebook",csv:"Table",svg:"SVG",image:"Image",pdf:"PDF",video:"Video",audio:"Audio",binary:"Binary","too-large":"Too large",hidden:"Image"};function Vv(e,t){return t==="markdown"?"markdown":t==="notebook"?"json":t==="svg"?"markup":t==="csv"?"none":e?.language||qr(e?.filename)||"none"}var qv=e=>{let t=window.atob(e||""),s=new Uint8Array(t.length);for(let i=0;ino(e.details?.files?.[u]),e.gistHasRendered=u=>Mv(e.gistKind(u)),e.gistView=u=>!e.gistHasRendered(u)||e.gistViews[u]==="raw"?"raw":e.gistViews[u]==="chart"&&e.gistKind(u)==="csv"?"chart":"rendered",e.setGistView=(u,p)=>{e.gistViews={...e.gistViews,[u]:p}},e.gistSourceFile=u=>{let p=e.details?.files?.[u];return{...p,language:Vv(p,e.gistKind(u)),filename:"source.txt"}};let s=new Map;Vn(()=>{s.forEach(u=>window.URL.revokeObjectURL?.(u)),s.clear()});let i=(u,p)=>{if(!u||!window.URL?.createObjectURL)return null;let d=u.encoding==="base64",g=!p||d?Iv[qr(u.filename)]||(d?"application/octet-stream":"text/plain"):"text/plain",m=(u.filename||"")+"\0"+g+"\0"+(u.content||"").length;if(!s.has(m)){let v=d?qv(u.content):u.content||"";s.set(m,window.URL.createObjectURL(new window.Blob([v],{type:g+(d?"":";charset=utf-8")})))}return s.get(m)};e.gistMediaUrl=u=>i(u,!1),e.gistRawUrl=u=>i(u,!0);let r=new WeakMap;e.gistCsvRows=u=>{if(!u)return[];let p=r.get(u);return(!p||p.content!==u.content||p.filename!==u.filename)&&(p={content:u.content,filename:u.filename,rows:xo(u.content||"",qr(u.filename)==="tsv"?" ":",")},r.set(u,p)),p.rows},e.gistCopied=null,e.copyGistFile=async u=>{let p=e.details?.files?.[u];!p||p.encoding==="base64"||!window.navigator.clipboard?.writeText||(await window.navigator.clipboard.writeText(p.content||""),e.gistCopied=u,window.setTimeout(()=>{e.gistCopied===u&&(e.gistCopied=null)},1600))},e.fileOutlines={},e.gistFileId=u=>"file-"+(u+1),e.setFileOutline=(u,p)=>{let d=e.fileOutlines[u];d&&d.map(g=>g.id).join()===p.map(g=>g.id).join()||(e.fileOutlines={...e.fileOutlines,[u]:p})},e.gistToc=()=>(e.details?.files||[]).map((u,p)=>({id:e.gistFileId(p),index:p,parts:Jt(u.filename),kind:no(u),language:op[no(u)]&&no(u)!=="csv"?op[no(u)]:u.language||(no(u)==="csv"?"CSV":"Text"),lines:u.encoding==="base64"?null:Pv(u.content),size:u.size,headings:Dv(u)&&e.gistView(p)==="rendered"?e.fileOutlines[p]||[]:[]}));let o=()=>e.gistToc().flatMap(u=>[u.id,...u.headings.map(p=>p.id)]);e.showGistToc=()=>{let u=e.gistToc();return e.tabState?.active==="files"&&(u.length>=2||(u[0]?.headings.length||0)>=3)},e.activeFileIndex=()=>{let p=e.gistToc().find(d=>d.id===e.activeAnchor||d.headings.some(g=>g.id===e.activeAnchor));return p?p.index:0},ip(e,o)}var Lv=e=>e?.merged?"merged":e?.draft&&e?.state==="open"?"draft":e?.state==="closed"?"closed":"open";function ap(e){let t={diff:null,threads:null,files:[]};e.prFiles=()=>{let s=e.details?.diff,i=e.details?.reviewComments||[];if(t.diff===s&&t.threads===i)return t.files;let r=Rr(s).map((o,u)=>{let p=i.filter(m=>m.path===o.path),d=new Set,g=o.lines.map(m=>{let v=p.filter(y=>!d.has(y)&&y.line!=null&&(y.side==="LEFT"?m.kind==="remove"&&y.line===m.oldNo:m.kind!=="remove"&&m.kind!=="hunk"&&y.line===m.newNo));return v.forEach(y=>d.add(y)),v.length?{...m,threads:v}:m});return{...o,index:u,id:"diff-"+(u+1),lines:g,parts:Jt(o.path),dir:o.path.includes("/")?o.path.slice(0,o.path.lastIndexOf("/")+1):"",name:o.path.slice(o.path.lastIndexOf("/")+1),threads:p.length,looseThreads:p.filter(m=>!d.has(m))}});return t={diff:s,threads:i,files:r},r},e.prStats=()=>e.prFiles().reduce((s,i)=>({files:s.files+1,additions:s.additions+i.additions,deletions:s.deletions+i.deletions}),{files:0,additions:0,deletions:0}),e.diffBar=s=>{let i=s.additions+s.deletions,r=i?Math.round(s.additions/i*5):0,o=i?Math.min(5-r,Math.round(s.deletions/i*5)):0;return[...Array(r).fill("add"),...Array(o).fill("del"),...Array(5-r-o).fill("none")]},e.prState=()=>Lv(e.details),e.prStateLabel=()=>({merged:"Merged",draft:"Draft",closed:"Closed",open:"Open"})[e.prState()],e.collapsedFiles={},e.toggleFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s]:!e.collapsedFiles[s]}},e.allCollapsed=()=>e.prFiles().length>0&&e.prFiles().every(s=>e.collapsedFiles[s.index]),e.toggleAllFiles=()=>{let s=!e.allCollapsed();e.collapsedFiles=Object.fromEntries(e.prFiles().map(i=>[i.index,s]))},e.reviewThreadCount=()=>(e.details?.reviewComments||[]).length,e.conversationCount=()=>(e.details?.comments?.length||0)+e.reviewThreadCount(),e.prTimeline=()=>{let s=[...(e.details?.comments||[]).map((i,r)=>({key:"c"+r,kind:"comment",date:i.creationDate||i.updatedDate,comments:[i]})),...(e.details?.reviewComments||[]).map((i,r)=>({key:"r"+r,kind:"review",date:i.comments?.[0]?.creationDate,thread:i,comments:i.comments||[],file:e.prFiles().find(o=>o.path===i.path)}))];return s.every(i=>i.date)&&s.sort((i,r)=>new Date(i.date)-new Date(r.date)),s},e.commitGroups=()=>{let s=[];return(e.details?.commits||[]).forEach((i,r)=>{let[o,...u]=String(i.message||"").split(` +`}var Pv=Object.freeze({view:"table",query:"",sort:null,group:null,agg:"mean",sum:"mean",ranges:{},values:{},sums:{},numeric:[],chart:null,x:null,y:[]});function Dv(e){let t=new URLSearchParams;e.view&&e.view!=="table"&&t.set("view",e.view),e.query&&t.set("q",e.query),e.sort?.column&&t.set("sort",e.sort.column+(e.sort.dir==="desc"?":desc":"")),e.group&&t.set("group",e.group),e.group&&e.agg&&e.agg!=="mean"&&t.set("agg",e.agg);for(let[s,[i,r]]of Object.entries(e.ranges||{}))(i!=null||r!=null)&&t.set("range."+s,(i??"")+"~"+(r??""));for(let[s,i]of Object.entries(e.values||{}))for(let r of i||[])t.append("in."+s,r);e.sum&&e.sum!=="mean"&&t.set("sum",e.sum);for(let[s,i]of Object.entries(e.sums||{}))i&&i!==(e.sum||"mean")&&t.set("sum."+s,i);return e.numeric?.length&&t.set("num",e.numeric.join("|")),e.chart&&t.set("chart",e.chart),e.x&&t.set("x",e.x),e.y?.length&&t.set("y",e.y.join("|")),t.toString()}function Av(e){var d,g;let t=new URLSearchParams(e||""),s={...Pv,ranges:{},values:{},sums:{},numeric:[],y:[]},i=t.get("view");["table","chart","raw"].includes(i)&&(s.view=i),s.query=t.get("q")||"";let r=t.get("sort");if(r){let m=/^(.*?)(?::(asc|desc))?$/.exec(r);s.sort={column:m[1],dir:m[2]||"asc"}}s.group=t.get("group")||null;let o=t.get("agg");o&&ni[o]&&(s.agg=o);for(let[m,v]of t.entries())if(m.startsWith("range.")){let[y,C]=v.split("~").map(k=>k===""||k==null?null:Number(k));s.ranges[m.slice(6)]=[Number.isFinite(y)?y:null,Number.isFinite(C)?C:null]}else m.startsWith("in.")?((d=s.values)[g=m.slice(3)]||(d[g]=[])).push(v):m.startsWith("sum.")&&ni[v]&&(s.sums[m.slice(4)]=v);let u=t.get("sum");u&&ni[u]&&(s.sum=u),s.numeric=(t.get("num")||"").split("|").filter(Boolean);let p=t.get("chart");return["bar","line","scatter"].includes(p)&&(s.chart=p),s.x=t.get("x")||null,s.y=(t.get("y")||"").split("|").filter(Boolean),s}var hl=e=>"#"+e+":";function eo(e,t){if(!t||typeof e!="string"||!e.startsWith(hl(t)))return null;try{return Av(e.slice(hl(t).length))}catch{return null}}function rp(e,t){let s=Dv(t);return s?hl(e)+s.replace(/%3A/gi,":").replace(/%7C/gi,"|").replace(/%7E/gi,"~").replace(/%2C/gi,","):""}var vl=e=>/^#table(?:-\d+)?:/.test(e||"");var bl=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(V,S)=>{e.aceOption&&(e.aceOption.theme=S?"nord_dark":"chrome")});let i=Pt(),r=Lt();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let o={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],d=["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.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let m=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(m??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function v(){return window.document.querySelector(".reading-layout .markdown-body")}function y(){let V=v();V&&(V.querySelectorAll("mark.md-find").forEach(S=>{S.replaceWith(window.document.createTextNode(S.textContent))}),V.normalize())}e.runMdFind=function(){y(),e.mdFindTotal=0,e.mdFindIndex=0;let V=(e.mdFindQuery||"").trim(),S=v();if(!V||!S)return;let q=!!e.mdFindCase,G=q?V:V.toLowerCase(),oe=window.document.createTreeWalker(S,4),K=[];for(;oe.nextNode();)(q?oe.currentNode.nodeValue:oe.currentNode.nodeValue.toLowerCase()).includes(G)&&K.push(oe.currentNode);let ne=0;for(let le of K){let ye=le.nodeValue,Ae=q?ye:ye.toLowerCase(),Xe=window.document.createDocumentFragment(),tt=0,Ge;for(;(Ge=Ae.indexOf(G,tt))!==-1;){Xe.appendChild(window.document.createTextNode(ye.slice(tt,Ge)));let We=window.document.createElement("mark");We.className="md-find",We.textContent=ye.slice(Ge,Ge+V.length),Xe.appendChild(We),ne++,tt=Ge+V.length}Xe.appendChild(window.document.createTextNode(ye.slice(tt))),le.parentNode.replaceChild(Xe,le)}e.mdFindTotal=ne,ne&&e.stepMdFind(0)},e.stepMdFind=function(V){let S=v();if(!S||!e.mdFindTotal)return;let q=S.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+V+q.length)%q.length,q.forEach((G,oe)=>G.classList.toggle("is-current",oe===e.mdFindIndex)),q[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(V){if(e.mdFindOpen=V===void 0?!e.mdFindOpen:V,!e.mdFindOpen){y(),e.mdFindTotal=0;return}xe(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let V=e.codeEditor;if(!V)return;V.focus(),V.execCommand("find");let S=()=>{let q=V.searchBox?.element;q&&(V.renderer.setScrollMargin(52,12,0,0),!q._dockObserver&&(q._dockObserver=new MutationObserver(()=>{V.renderer.setScrollMargin(q.style.display!=="none"?52:12,12,0,0)}),q._dockObserver.observe(q,{attributes:!0,attributeFilter:["style"]})))};S(),setTimeout(S,150)};let C=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],k={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(k.content===e.content)return k.list;let V=[];return e.content.split(` +`).forEach((S,q)=>{for(let[G,oe]of C){let K=G.exec(S);if(K&&!/^(if|for|while|switch|return|catch)$/.test(K[1])){V.push({name:K[1],kind:oe,line:q+1});break}}}),k={content:e.content,list:V.slice(0,300)},k.list},e.goToSymbol=function(V){e.symbolsOpen=!1;let S=e.codeEditor;S&&(S.scrollToLine(V-1,!0,!0,()=>{}),S.gotoLine(V,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+V),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let V=window.document.getElementById("goto-input");V&&(V.focus(),V.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let V=e.codeEditor;if(!V)return;let S=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),q=V.session.getLength();if(!S||+S[1]<1||+S[1]>q){e.gotoError="Enter a line from 1 to "+q;return}V.gotoLine(+S[1],S[2]?Math.max(0,+S[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",V.focus()},e.rootEntries=function(){return[...e.files||[]].sort((V,S)=>{let q=V.size==null,G=S.size==null;return q!==G?q?-1:1:V.name.localeCompare(S.name)})},e.formatSize=function(V){if(V==null)return"";if(V<1024)return V+" B";let S=V/1024,q=G=>G.toFixed(1).replace(/\.0$/,"");return S<1024?q(S)+" KB":S<1024*1024?q(S/1024)+" MB":q(S/1024/1024)+" GB"},e.fileSize=function(V){if(!V)return null;let S=V.replace(/^\/+/,""),q=(e.files||[]).find(G=>(G.path?G.path+"/":"")+G.name===S);return q&&q.size!=null?q.size:null},e.revealFolder=function(V){e.sidebarHidden=!1,e.sidebarCollapsed=!1,xe(()=>{let S=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(V):V)+'"]');S&&(S.closest("li")?.classList.contains("open")||S.click(),S.scrollIntoView({block:"nearest"}),S.focus())})};let w={content:null,n:0},R=V=>{if(w.content===V)return w.n;let S=V;if(typeof S=="string")try{S=JSON.parse(S)}catch{S=null}let q=[],G=K=>{Array.isArray(K)?q.push(K.join("")):typeof K=="string"&&q.push(K)};(S&&(S.cells||(S.worksheets||[]).flatMap(K=>K.cells||[]))||[]).forEach(K=>{G(K?.source??K?.input),(K?.outputs||[]).forEach(ne=>{G(ne?.text),ne?.data&&(G(ne.data["text/plain"]),G(ne.data["text/markdown"]),G(ne.data["text/html"])),G(ne?.traceback)})});let oe=q.reduce((K,ne)=>K+(ne.match(s)||[]).length,0);return w={content:V,n:oe},oe};e.redactionCount=function(){return e.type==="IPython"?R(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=to;let b=V=>V.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(V){let S=e.renderRedacted(V);if(!S||typeof window.DOMParser!="function")return S;let q=new window.DOMParser().parseFromString("
"+S+"
","text/html"),G={};return q.querySelectorAll("h1, h2, h3").forEach(oe=>{let K=oe.id||b(oe.textContent);G[K]?K+="-"+ ++G[K]:G[K]=1,oe.id=K}),q.body.firstChild.innerHTML};let P={content:null,list:[],title:null,count:0},D=()=>{if(e.type!=="html"||typeof e.content!="string")return{list:[],title:null,count:0};if(P.content===e.content)return P;let V=Er(e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)),S=V.length,q=null;if(V[0]?.level===1&&V.filter(G=>G.level===1).length===1){q=V[0],V=V.slice(1);let G=Math.min(...V.map(oe=>oe.level));V=V.map(oe=>({...oe,depth:oe.level-G}))}return P={content:e.content,list:V,title:q,count:S},P};e.readmeToc=()=>D().list,e.tocTitle=()=>D().title,e.tocCount=()=>D().count,e.activeHeading=null,r(window,"scroll",()=>{let V=e.readmeToc?e.readmeToc():[];if(e.tocCount()<3)return;let S=Sr(V.map(q=>q.id),{offset:120,scroller:window.document.querySelector(".explorer-content")});e.activeHeading!==S&&(e.activeHeading=S)},{capture:!0,passive:!0}),e.scrollToHeading=function(V){if(!V){(window.document.querySelector(".explorer-content, .file-card-body, .main-pane")||window).scrollTo({top:0,behavior:"smooth"}),e.activeHeading="";return}Nr(V),e.activeHeading=V};let L=()=>!e.preview&&eo(window.location.hash,"table")?.view||"table";e.csvView=L();let H={content:null,rows:[]};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(H.content!==e.content){let V=/\.tsv$/i.test(e.filePath||"")?" ":",";H={content:e.content,rows:ei(e.content,V)}}return H.rows},e.redactParts=Jt,e.pathCopied=!1,e.copyPath=async function(){window.navigator.clipboard?.writeText&&(await window.navigator.clipboard.writeText(e.filePath||""),e.pathCopied=!0,setTimeout(()=>{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let V=e.content;if(e.type==="html"&&e.url)if(e.preview)V=e.sourceContent;else try{V=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(V),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function _(V){return o[V]?o[V]:V}function W(V){return V=="pdf"?"pdf":V=="html"||V=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(V)?"md":V=="org"?"org":V=="ipynb"?"IPython":u.indexOf(V)>-1?"text":p.indexOf(V)>-1?"image":g.indexOf(V)>-1?"media":d.indexOf(V)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(V){e.showSource=!1,e.allowScripts=!1,e.csvView=L(),e.imageSize="",e.filePath=V,e.paths=V.split("/").filter(Boolean);let S=e.filePath.toLowerCase(),q=S.lastIndexOf(".");q>-1&&(S=S.substring(q+1));let G={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},oe=_(S);e.languageName=G[oe]??(oe?oe.charAt(0).toUpperCase()+oe.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:_(S),onLoad:function(K){e.codeEditor=kn(K);{let Me=K.session,Q=Me.getTokens.bind(Me),he=/\bXXXX-\d+\b/g;if(Me.getTokens=function(x){let ge=Q(x);if(!ge.some(Ie=>Ie.value.indexOf("XXXX-")!==-1))return ge;let Se=[];for(let Ie of ge){if(Ie.value.indexOf("XXXX-")===-1){Se.push(Ie);continue}let A=0;he.lastIndex=0;let I;for(;I=he.exec(Ie.value);)I.index>A&&Se.push({type:Ie.type,value:Ie.value.slice(A,I.index)}),Se.push({type:"redacted.n"+I[0].slice(5),value:I[0]}),A=I.index+I[0].length;A`.ace_redacted.ace_n${Se+1}::after{content:"${Se+1}"}`).join(""),window.document.head.appendChild(x)}K.renderer.updateFull(!0)}K.session.setUseWrapMode(e.wrapLines!==!1);let ne=K.container.closest?.(".file-card"),le=()=>{if(!ne)return;let Me=K.renderer,Q=(Me.layerConfig?.width||0)-(Me.$size?.scrollerWidth||0);ne.classList.toggle("at-right-edge",Q<=2||Me.getScrollLeft()>=Q-2)};K.session.on("changeScrollLeft",le),K.renderer.on("afterRender",le),window.matchMedia?.("(max-width: 767px)").matches&&K.setOption("hScrollBarAlwaysVisible",!0);let ye=ace.require("ace/range").Range,Ae=null;function Xe(Me,Q){Ae!==null&&(K.session.removeMarker(Ae),Ae=null),Me!=null&&(Ae=K.session.addMarker(new ye(Me,0,Q,1),"highlighted-line","fullLine"))}function tt(Me){let Q=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Q){Xe(null);return}let he=parseInt(Q[1])-1,x=Q[2]?parseInt(Q[2])-1:he;Xe(he,x),Me&&i.timeout(()=>{K.scrollToLine(he,!0,!0,function(){})},100)}tt(!0);let Ge=null;K.on("guttermousedown",function(Me){let Q=Me.getDocumentPosition().row,he=Me.domEvent&&Me.domEvent.shiftKey,x=Q,ge=Q;he&&Ge!==null?(x=Math.min(Ge,Q),ge=Math.max(Ge,Q)):Ge=Q;let Se=x===ge?`#L${x+1}`:`#L${x+1}-L${ge+1}`,Ie=window.location.pathname+window.location.search+Se;e.preview||window.history.replaceState(null,"",Ie),Xe(x,ge),Me.stop()});let We=r(window,"hashchange",()=>tt(!1));K.setFontSize(e.aceOption.fontSize),K.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),K.container.style.lineHeight="20px",K.renderer.setPadding(16),K.renderer.setScrollMargin(12,12,0,0),K.renderer.updateFontSize(),K.setReadOnly(e.aceOption.readOnly),K.setKeyboardHandler(e.aceOption.keyBinding),K.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),K.setOption("displayIndentGuides",!1),K.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(K.renderer.$cursorLayer.element.style.display="none"),K.setHighlightGutterLine(e.aceOption.highlightGutterLine),K.setShowInvisibles(e.aceOption.showInvisibles),K.setDisplayIndentGuides(e.aceOption.showIndentGuides),K.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),K.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),K.session.setUseSoftTabs(e.aceOption.useSoftTab),K.session.setTabSize(e.aceOption.tabSize),K.setBehavioursEnabled(e.aceOption.enableBehaviours),K.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let it=()=>!e.preview||K.isFocused(),gt=r(window,"keydown",Me=>{if((Me.ctrlKey||Me.metaKey)&&!Me.altKey&&Me.key.toLowerCase()==="g"&&document.body.contains(K.container)&&it()){Me.preventDefault(),e.gotoLine();return}if(Me.altKey&&!Me.ctrlKey&&!Me.metaKey&&Me.key.toLowerCase()==="z"&&document.body.contains(K.container)&&it()){Me.preventDefault(),e.toggleWrap();return}(Me.ctrlKey||Me.metaKey)&&!Me.altKey&&Me.key.toLowerCase()==="f"&&document.body.contains(K.container)&&it()&&(Me.preventDefault(),e.findInFile())});return()=>{We(),gt()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=W(S)},e.renderFileContent=function(V,S,q,G){if(e.type=S,e.content=V,e.sourceContent=V,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(V,q),e.type="html"),e.type=="org"){let K=contentAbs2Relative(V);var oe=new Org.Parser().parse(K).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(oe.toString()),e.type="html"}e.type=="code"&&G=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let ae=["image","media","audio","pdf","IPython","binary"],F=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?ae.includes(e.type)?e.content!=null:e.type==="error"?F.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let V=(e.paths||[])[(e.paths||[]).length-1]||"",S=V.lastIndexOf("."),q=S>0?V.slice(S+1).toUpperCase():"";if(e.type==="image")return(q==="JPG"?"JPEG":q)+" image";let G={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(G[q]||q)+" video":e.type==="audio"?q+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(q?q+" file":"File")},e.imageSize="",e.onImageLoad=V=>{let S=V.target;S?.naturalWidth&&(e.imageSize=`${S.naturalWidth} \xD7 ${S.naturalHeight}`)},r(document,"click",V=>{e.preview&&(V.target.closest?.(".symbols")||(e.symbolsOpen=!1),V.target.closest?.(".tb-more")||(e.moreOpen=!1),V.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),V.target.isConnected&&!V.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};var Iv=e=>e?String(e).replace(/\n$/,"").split(` +`).length:0,Ov=e=>/\.(md|markdown|mdx)$/i.test(e?.filename||"")||e?.language==="Markdown";function lp(e,t){let s=Lt();e.redactParts=Jt,e.hangIndent=Zs,e.isRedactedName=r=>/^XXXX-\d+$/.test(String(r||"").trim()),e.tocOpen=!1,e.activeAnchor="";let i=()=>{let r=t();if(!r.length)return;let o=Sr(r,{offset:64,scroller:window.document.querySelector("main.app-view")});e.activeAnchor!==o&&(e.activeAnchor=o)};return s(window,"scroll",i,{capture:!0,passive:!0}),s(window,"resize",i,{passive:!0}),s(window.document,"click",r=>{e.tocOpen&&!r.target.closest?.(".toc-menu")&&(e.tocOpen=!1)}),s(window.document,"keydown",r=>{r.key==="Escape"&&e.tocOpen&&(e.tocOpen=!1)}),e.jumpToAnchor=r=>{e.tocOpen=!1,Nr(r)&&(e.activeAnchor=r)},i}var Lr=e=>(String(e||"").split(".").pop()||"").toLowerCase(),Mv={md:"markdown",markdown:"markdown",mdx:"markdown",ipynb:"notebook",csv:"csv",tsv:"csv",svg:"svg",png:"image",jpg:"image",jpeg:"image",gif:"image",webp:"image",bmp:"image",ico:"image",avif:"image",pdf:"pdf",mp4:"video",webm:"video",mov:"video",m4v:"video",ogv:"video",mp3:"audio",wav:"audio",ogg:"audio",oga:"audio",m4a:"audio",flac:"audio",aac:"audio"},Vv={svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",m4v:"video/mp4",ogv:"video/ogg",mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",m4a:"audio/mp4",flac:"audio/flac",aac:"audio/aac"},qv=1024*1024;function no(e){if(e?.tooLarge)return"too-large";if(e?.hidden)return"hidden";let t=Mv[Lr(e?.filename)]||(e?.language==="Markdown"?"markdown":null);return e?.encoding==="base64"?["image","pdf","video","audio"].includes(t)&&e.content?t:"binary":e?.content?t==="csv"&&e.content.length>qv?"code":["markdown","notebook","csv","svg"].includes(t)?t:"code":"empty"}var Lv=e=>["markdown","notebook","csv","svg"].includes(e),ap={markdown:"Markdown",notebook:"Jupyter notebook",csv:"Table",svg:"SVG",image:"Image",pdf:"PDF",video:"Video",audio:"Audio",binary:"Binary","too-large":"Too large",hidden:"Image"};function $v(e,t){return t==="markdown"?"markdown":t==="notebook"?"json":t==="svg"?"markup":t==="csv"?"none":e?.language||Lr(e?.filename)||"none"}var Fv=e=>{let t=window.atob(e||""),s=new Uint8Array(t.length);for(let i=0;ino(e.details?.files?.[u]),e.gistHasRendered=u=>Lv(e.gistKind(u)),e.gistView=u=>!e.gistHasRendered(u)||e.gistViews[u]==="raw"?"raw":e.gistViews[u]==="chart"&&e.gistKind(u)==="csv"?"chart":"rendered",e.setGistView=(u,p)=>{e.gistViews={...e.gistViews,[u]:p}},e.gistSourceFile=u=>{let p=e.details?.files?.[u];return{...p,language:$v(p,e.gistKind(u)),filename:"source.txt"}};let s=new Map;qn(()=>{s.forEach(u=>window.URL.revokeObjectURL?.(u)),s.clear()});let i=(u,p)=>{if(!u||!window.URL?.createObjectURL)return null;let d=u.encoding==="base64",g=!p||d?Vv[Lr(u.filename)]||(d?"application/octet-stream":"text/plain"):"text/plain",m=(u.filename||"")+"\0"+g+"\0"+(u.content||"").length;if(!s.has(m)){let v=d?Fv(u.content):u.content||"";s.set(m,window.URL.createObjectURL(new window.Blob([v],{type:g+(d?"":";charset=utf-8")})))}return s.get(m)};e.gistMediaUrl=u=>i(u,!1),e.gistRawUrl=u=>i(u,!0);let r=new WeakMap;e.gistCsvRows=u=>{if(!u)return[];let p=r.get(u);return(!p||p.content!==u.content||p.filename!==u.filename)&&(p={content:u.content,filename:u.filename,rows:ei(u.content||"",Lr(u.filename)==="tsv"?" ":",")},r.set(u,p)),p.rows},e.gistCopied=null,e.copyGistFile=async u=>{let p=e.details?.files?.[u];!p||p.encoding==="base64"||!window.navigator.clipboard?.writeText||(await window.navigator.clipboard.writeText(p.content||""),e.gistCopied=u,window.setTimeout(()=>{e.gistCopied===u&&(e.gistCopied=null)},1600))},e.fileOutlines={},e.gistFileId=u=>"file-"+(u+1),e.setFileOutline=(u,p)=>{let d=e.fileOutlines[u];d&&d.map(g=>g.id).join()===p.map(g=>g.id).join()||(e.fileOutlines={...e.fileOutlines,[u]:p})},e.gistToc=()=>(e.details?.files||[]).map((u,p)=>({id:e.gistFileId(p),index:p,parts:Jt(u.filename),kind:no(u),language:ap[no(u)]&&no(u)!=="csv"?ap[no(u)]:u.language||(no(u)==="csv"?"CSV":"Text"),lines:u.encoding==="base64"?null:Iv(u.content),size:u.size,headings:Ov(u)&&e.gistView(p)==="rendered"?e.fileOutlines[p]||[]:[]}));let o=()=>e.gistToc().flatMap(u=>[u.id,...u.headings.map(p=>p.id)]);e.showGistToc=()=>{let u=e.gistToc();return e.tabState?.active==="files"&&(u.length>=2||(u[0]?.headings.length||0)>=3)},e.activeFileIndex=()=>{let p=e.gistToc().find(d=>d.id===e.activeAnchor||d.headings.some(g=>g.id===e.activeAnchor));return p?p.index:0},lp(e,o)}var Uv=e=>e?.merged?"merged":e?.draft&&e?.state==="open"?"draft":e?.state==="closed"?"closed":"open";function up(e){let t={diff:null,threads:null,files:[]};e.prFiles=()=>{let s=e.details?.diff,i=e.details?.reviewComments||[];if(t.diff===s&&t.threads===i)return t.files;let r=Tr(s).map((o,u)=>{let p=i.filter(m=>m.path===o.path),d=new Set,g=o.lines.map(m=>{let v=p.filter(y=>!d.has(y)&&y.line!=null&&(y.side==="LEFT"?m.kind==="remove"&&y.line===m.oldNo:m.kind!=="remove"&&m.kind!=="hunk"&&y.line===m.newNo));return v.forEach(y=>d.add(y)),v.length?{...m,threads:v}:m});return{...o,index:u,id:"diff-"+(u+1),lines:g,parts:Jt(o.path),dir:o.path.includes("/")?o.path.slice(0,o.path.lastIndexOf("/")+1):"",name:o.path.slice(o.path.lastIndexOf("/")+1),threads:p.length,looseThreads:p.filter(m=>!d.has(m))}});return t={diff:s,threads:i,files:r},r},e.prStats=()=>e.prFiles().reduce((s,i)=>({files:s.files+1,additions:s.additions+i.additions,deletions:s.deletions+i.deletions}),{files:0,additions:0,deletions:0}),e.diffBar=s=>{let i=s.additions+s.deletions,r=i?Math.round(s.additions/i*5):0,o=i?Math.min(5-r,Math.round(s.deletions/i*5)):0;return[...Array(r).fill("add"),...Array(o).fill("del"),...Array(5-r-o).fill("none")]},e.prState=()=>Uv(e.details),e.prStateLabel=()=>({merged:"Merged",draft:"Draft",closed:"Closed",open:"Open"})[e.prState()],e.collapsedFiles={},e.toggleFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s]:!e.collapsedFiles[s]}},e.allCollapsed=()=>e.prFiles().length>0&&e.prFiles().every(s=>e.collapsedFiles[s.index]),e.toggleAllFiles=()=>{let s=!e.allCollapsed();e.collapsedFiles=Object.fromEntries(e.prFiles().map(i=>[i.index,s]))},e.reviewThreadCount=()=>(e.details?.reviewComments||[]).length,e.conversationCount=()=>(e.details?.comments?.length||0)+e.reviewThreadCount(),e.prTimeline=()=>{let s=[...(e.details?.comments||[]).map((i,r)=>({key:"c"+r,kind:"comment",date:i.creationDate||i.updatedDate,comments:[i]})),...(e.details?.reviewComments||[]).map((i,r)=>({key:"r"+r,kind:"review",date:i.comments?.[0]?.creationDate,thread:i,comments:i.comments||[],file:e.prFiles().find(o=>o.path===i.path)}))];return s.every(i=>i.date)&&s.sort((i,r)=>new Date(i.date)-new Date(r.date)),s},e.commitGroups=()=>{let s=[];return(e.details?.commits||[]).forEach((i,r)=>{let[o,...u]=String(i.message||"").split(` `),p=i.date?e.fmt?.date(i.date):"",d=s[s.length-1];(!d||d.day!==p)&&s.push(d={day:p,commits:[]}),d.commits.push({...i,index:r+1,headline:o,detail:u.join(` -`).trim()})}),s},e.showFileToc=()=>e.tabState?.active==="files"&&e.prFiles().length>=2,e.activeFileIndex=()=>{let s=e.prFiles().find(i=>i.id===e.activeAnchor);return s?s.index:0},e.openTab=s=>{e.tabState={active:s},e.tocOpen=!1},e.showInDiff=s=>{s&&(e.openTab("files"),e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},Je(()=>e.jumpToAnchor(s.id)))},e.jumpToFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},e.jumpToAnchor(s.id)},ip(e,()=>e.tabState?.active==="files"?e.prFiles().map(s=>s.id):[])}function lp(e){return e?.body||e?.comments?.length||e?.reviewComments?.length?"conversation":e?.diff?"files":e?.commits?.length?"commits":"conversation"}function vl(e,t,s){let i,r=!1,o="form-draft:"+s,u=()=>Object.fromEntries(t.map(y=>[y,e[y]])),p=()=>JSON.stringify(u()),d=y=>{for(let C of t)Object.prototype.hasOwnProperty.call(y,C)&&(e[C]=y[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},g=()=>{try{window.sessionStorage.removeItem(o)}catch{}},m=(y=!1)=>{if(i!==void 0){if(y&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){g();return}try{window.sessionStorage.setItem(o,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},v=()=>m(!0);return e.on("routeLeave",v),window.addEventListener("beforeunload",v),e.on("dispose",()=>window.removeEventListener("beforeunload",v)),{restore(){i=p();let y;try{y=JSON.parse(window.sessionStorage.getItem(o)||"null")}catch{}let C=y&&y.account===(e.user?.username||null)&&Date.now()-y.savedAt<30*6e4&&y.values;return C&&(d(y.values),e.draftRestored=!0),r||(r=!0,e.watch(()=>u(),()=>m(),!0)),e.unsavedChanges=p()!==i,!!C},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state===e&&y._field.timer&&y._field.commit()}),JSON.parse(p())},accept(y){i=JSON.stringify(y),e.draftRestored=!1,m()},discard(){document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state!==e||!y._field.timer||(clearTimeout(y._field.timer),y._field.timer=null,y.value=y._field.binding.value??"")}),i!==void 0&&d(JSON.parse(i)),e.draftRestored=!1,m()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,g()}}}var dp={"15m":"last 15 min","1h":"last hour","6h":"last 6 h","24h":"last 24 h"},Lr=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,$v=/^[A-Za-z0-9_-]{3,200}$/,Fv=/^[a-f0-9]{24}$/,bl={owner:"Owner",coauthor:"Co-author",admin:"Admin"};function Uv(e){let t={repoId:"",userId:"",free:"",invalid:""},s=[];for(let i of String(e||"").trim().split(/\s+/).filter(Boolean)){let r=i.match(/^(repo|user):(.*)$/i);if(!r){s.push(i);continue}let o=r[2];r[1].toLowerCase()==="repo"&&$v.test(o)?t.repoId=o:r[1].toLowerCase()==="user"&&Fv.test(o)?t.userId=o:t.invalid=i}return t.free=s.join(" ").toLowerCase(),t}function Bv(e,t){if(!t)return!0;let s=[e.title,e.code,e.service,e.route,e.method,e.queue,e.status,e.cause?.label,e.cause?.summary].filter(i=>i!=null).join(" ").toLowerCase();return t.split(" ").every(i=>s.includes(i))}var up=e=>Number(e?.status||e?.httpStatus)||0,wl=e=>Date.parse(e),Hv=e=>e?.event==="external_request",zv=new Set(["mongodb","redis"]);function jv(e,t){let s=(e||[]).filter(u=>Number.isFinite(wl(u.timestamp))).map((u,p)=>{let d=wl(u.timestamp),g=Number(u.ms),m=Number.isFinite(g)&&g>=0?d-g:d,v=Hv(u),y=String(u.upstreamHost||""),C=v?"external":zv.has(u.service)?"data":u.service==="nginx"?"edge":"app",k=v?`${y==="storage"?"Storage":/github/.test(y)?"GitHub":"External"}${u.upstreamMethod?" \xB7 "+u.upstreamMethod:""}`:u.errorCode||u.errorType||String(u.event||"event").replace(/_/g," "),w=v?u.upstreamEndpoint||y||"endpoint not recorded":[u.service,u.route||(u.queue?"job "+u.queue:"")].filter(Boolean).join(" \xB7 "),R=v?Number(u.upstreamStatus)||u.errorCode||"":up(u)||"",b=v?Number(u.upstreamStatus)>=400||!!u.errorCode:up(u)>=500||u.severity==="error",P=!v&&!!t&&!["edge_request","request_completed"].includes(u.event)&&(t.errorCode&&u.errorCode===t.errorCode||!t.errorCode&&t.errorType&&u.errorType===t.errorType);return{key:p,event:u,start:m,end:d,ms:Number.isFinite(g)?g:null,kind:C,label:k,sub:w,status:R,failed:b,failure:P}});if(!s.length)return{rows:s,span:0};s.sort((u,p)=>u.start-p.start||p.end-p.start-(u.end-u.start)),s.forEach((u,p)=>{u.key=p});let i=Math.min(...s.map(u=>u.start)),r=Math.max(...s.map(u=>u.end)),o=Math.max(1,r-i);for(let u of s)u.left=(u.start-i)/o*100,u.width=Math.max(.6,(u.end-u.start)/o*100),u.left+u.width>100&&(u.left=Math.max(0,100-u.width)),u.offset=Math.round(u.start-i);if(!s.some(u=>u.failure)){let u=[...s].reverse().find(p=>p.failed&&p.kind==="app");u&&(u.failure=!0)}return{rows:s,span:Math.round(o)}}function _v(e){return e?e==="visitor"||e==="anonymous"?"Viewer not signed in":`Viewer: ${(bl[e]||e).toLowerCase()}`:""}function Gv(e){return e?bl[e]?`Signed in as ${bl[e].toLowerCase()}`:"Viewer not signed in":""}var Wv=(e,t=Date.now())=>{let s=wl(e);if(!Number.isFinite(s))return"";let i=Math.max(0,Math.floor((t-s)/1e3));if(i<60)return"just now";let r=Math.floor(i/60);if(r<60)return`${r} min ago`;let o=Math.floor(r/60);return o<24?`${o} h ago`:`${Math.floor(o/24)} d ago`},pp=(e,t=!1)=>{let s=new Date(e);return Number.isNaN(s.getTime())?"":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",...t?{second:"2-digit"}:{},hour12:!1})},Kv=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?"":(new Date().toDateString()===t.toDateString()?"Today ":t.toLocaleDateString(void 0,{month:"short",day:"numeric"})+" \xB7 ")+pp(e,!0)};function fp(e){let t=e&&typeof e=="object"&&!Array.isArray(e)?e:{};return{source:"central",window:"24h",filters:{},names:{repos:{},users:{}},captured:0,...t,issues:Array.isArray(t.issues)?t.issues:[],expected:{count:0,groups:[],...t.expected||{}},excluded:{slow:0,interrupted:0,...t.excluded||{}},summary:{issues:0,failingNow:0,failedRecords:0,repositories:0,users:0,upstreamShare:0,...t.summary||{}}}}var cp=e=>Number(e||0).toLocaleString("en-US");function mp(e){e.errRelTime=t=>Wv(t),e.errClock=(t,s)=>pp(t,s),e.errDayTime=t=>Kv(t),e.errNumber=cp,e.errPlural=(t,s,i)=>`${cp(t)} ${t===1?s:i||s+"s"}`,e.errStatusClass=t=>Number(t)>=500?"is-error":Number(t)>=400?"is-warn":"is-neutral",e.errIssueHref=(t,s="")=>`/admin/errors?issue=${encodeURIComponent(t)}${s}`,e.errRepoHref=t=>`/admin/repositories?search=${encodeURIComponent(t)}`,e.errUserHref=t=>`/admin/users/id:${encodeURIComponent(t)}`,e.errTrendMax=t=>Math.max(1,...t||[0]),e.viewerLabel=Gv,e.viewerChip=_v}function kl(e,t,s,{onScopeDispose:i}={}){mp(e),e.entityErrors={loading:!1,failed:!1,data:null,key:""};let r=0,o=!1;e.loadEntityErrors=async(p=!1)=>{let d=s(),g=d?JSON.stringify(d):"";if(!p&&g===e.entityErrors.key)return;let m=++r;if(e.entityErrors={loading:!!d,failed:!1,data:null,key:g},!!d)try{let v=await t.get("/api/admin/errors/issues",{params:{window:"24h",...d}});if(o||m!==r)return;e.entityErrors={loading:!1,failed:!1,data:fp(v.data),key:g}}catch{!o&&m===r&&(e.entityErrors={loading:!1,failed:!0,data:null,key:g})}},e.entityIssues=()=>e.entityErrors.data?.issues||[],e.entityFailingNow=()=>e.entityIssues().filter(p=>p.failingNow),e.entityExpected=()=>e.entityErrors.data?.expected?.groups||[];let u=()=>{o=!0,r++};i?i(u):e.on?.("dispose",u)}var Cl=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),mp(e);let r=0,o=0,u=0,p=!1,d=null,g=null;e.issueData=null,e.issueLoading=!0,e.issueFailure="",e.issueFilters={window:"24h",service:"",source:"auto"};let m=s.search?.()||{};e.issueSearch=typeof m.q=="string"?m.q.slice(0,200):"",e.errView="list",e.selectedIssue=null,e.missingIssue="",e.showAllOccurrences=!1,e.occurrenceIndex=-1,e.requestTab="timeline",e.trace=null,e.traceLoading=!1,e.expandedSteps={},e.copyStatus="",e.settingsOpen=!1,e.telemetry=null,e.telemetryState="idle",e.stats=null,e.statsState="idle",e.redisCollecting=null,e.windowLabels=dp;let v=()=>Uv(e.issueSearch);e.searchFilters=v,e.visibleIssues=()=>{let{free:F}=v();return(e.issueData?.issues||[]).filter(V=>Bv(V,F))},e.sourceLine=()=>{let F=e.issueData;return F?`${F.source==="central"?"From central logs":"From application history (Redis)"} \xB7 ${dp[F.window]||F.window}`:""},e.sourceNote=()=>{let F=e.issueData;return F?F.source==="history"&&F.centralState==="skipped"?"Central logs are not used while this switch is on.":F.source==="history"?{disabled:"Central logs are not configured.",unreachable:"Central logs did not answer.",busy:"Central logs are busy.",misconfigured:"Central log configuration is invalid."}[F.centralState]||"":F.state==="partial"?"Partial: a record limit or an invalid record reduced coverage.":"":""},e.ownerOf=F=>e.issueData?.names?.repos?.[F]||e.entityErrors?.data?.names?.repos?.[F]||null,e.userName=F=>e.issueData?.names?.users?.[F]||null;async function y({quiet:F=!1}={}){let V=++r,S=v(),q={window:e.issueFilters.window};e.issueFilters.service&&(q.service=e.issueFilters.service),e.issueFilters.source==="history"&&(q.source="history"),S.repoId&&(q.repoId=S.repoId),S.userId&&(q.userId=S.userId),F||(e.issueLoading=!0),e.issueFailure="";try{let G=await t.get("/api/admin/errors/issues",{params:q});if(p||V!==r)return;e.issueData=fp(G.data),e.redisCollecting=G.data?.redisCollecting!==!1,e.issueLoading=!1,b(!1)}catch(G){if(p||V!==r)return;e.issueFailure=G?.status===400?"These filters are not valid. Check repo: and user: values.":"Could not load errors. Check the connection and retry."}finally{!p&&V===r&&(e.issueLoading=!1)}}e.refreshIssues=()=>y();let C="",k=()=>{let F=v();return[e.issueFilters.window,e.issueFilters.service,e.issueFilters.source,F.repoId,F.userId].join("|")};e.applyFilters=()=>{let F=k();F!==C&&(C=F,y())},C=k(),e.setSource=F=>{e.issueFilters.source=F,e.applyFilters()},e.watch("issueFilters.window",()=>e.applyFilters(),!1,!1),e.watch("issueFilters.service",()=>e.applyFilters(),!1,!1);let w=null;e.watch("issueSearch",()=>{window.clearTimeout(w),w=window.setTimeout(()=>{p||e.applyFilters()},300)},!1,!1);let R=()=>s.search?.()||{};function b(F=!0){let V=R(),S=typeof V.issue=="string"?V.issue:"";if(!S){let le=e.errView;e.errView="list",e.selectedIssue=null,e.occurrenceIndex=-1,e.missingIssue="",L(),F&&le!=="list"&&D();return}let q=(e.issueData?.issues||[]).find(le=>le.id===S)||null;q?.id!==e.selectedIssue?.id&&(e.showAllOccurrences=!1),e.selectedIssue=q,e.missingIssue=q||e.issueLoading?"":S;let G=Number.parseInt(V.occurrence,10),ie=q&&Number.isInteger(G)&&G>=0&&G=0?"request":"issue",ne=K!==e.errView||S!==d||ie!==e.occurrenceIndex;e.errView=K,d=S,ie!==e.occurrenceIndex&&(e.occurrenceIndex=ie,e.expandedSteps={},ie>=0?H():L()),K==="request"&&["timeline","request","exception","fields"].includes(V.tab)&&(e.requestTab=V.tab),F&&ne&&P()}async function P(){if(await Je(),p)return;document.getElementById("errs-detail-title")?.focus({preventScroll:!0});let V=document.querySelector(".app-view");V&&(V.scrollTop=0)}async function D(){if(await Je(),p)return;let F=d&&document.querySelector(`[data-issue-link="${d}"]`);F?(F.focus({preventScroll:!0}),F.scrollIntoView?.({block:"nearest"})):document.getElementById("errs-search")?.focus()}e.on("routeUpdate",()=>b(!0)),e.currentOccurrence=()=>e.selectedIssue?.occurrences?.[e.occurrenceIndex]||null,e.occurrenceHref=F=>e.errIssueHref(e.selectedIssue?.id||"",`&occurrence=${F}`),e.openOccurrence=F=>{e.selectedIssue&&(g=F,s.url(e.occurrenceHref(F)))},e.lastOccurrence=()=>g;function L(){o++,e.trace=null,e.traceLoading=!1}async function H(){let F=e.currentOccurrence();L();let V=Lr.test(F?.requestId||"")?"requestId":Lr.test(F?.jobId||"")?"jobId":"";if(!V||e.issueData?.source!=="central")return;let S=o;e.traceLoading=!0;try{let q=await t.get("/api/admin/errors/correlation",{params:{kind:V,id:F[V],window:e.issueData?.window||"24h"}});!p&&S===o&&(e.trace=q.data)}catch{!p&&S===o&&(e.trace={state:"unreachable",events:[]})}finally{!p&&S===o&&(e.traceLoading=!1)}}e.traceKind=()=>{let F=e.currentOccurrence();return Lr.test(F?.requestId||"")?"request":Lr.test(F?.jobId||"")?"job":""},e.waterfall=()=>jv(e.trace?.events?.length?e.trace.events:[e.occurrenceRecord()].filter(Boolean),e.selectedIssue),e.occurrenceRecord=()=>{let F=e.currentOccurrence();if(!F)return null;let V=e.selectedIssue,S=e.trace?.events||[],q=S.find(G=>G.timestamp===F.timestamp&&G.service===F.service)||S.find(G=>!["edge_request","request_completed","external_request"].includes(G.event)&&(V?.errorCode&&G.errorCode===V.errorCode||!V?.errorCode&&V?.errorType&&G.errorType===V.errorType));return q||(e.occurrenceIndex===0&&V?.sample?V.sample:F)},e.exceptionRecord=()=>{let F=e.occurrenceRecord();if(F?.errorStack||F?.errorType)return{record:F,fromSample:!1};let V=e.selectedIssue?.sample;return V?.errorStack||V?.errorType?{record:V,fromSample:!0}:{record:null,fromSample:!1}},e.toggleStep=F=>{e.expandedSteps={...e.expandedSteps,[F]:!e.expandedSteps[F]}},e.requestTabs=[["timeline","Timeline"],["request","Request"],["exception","Exception"],["fields","All fields"]],e.selectRequestTab=(F,V=!1)=>{e.requestTab=F,V&&Je(()=>document.getElementById("errs-tab-"+F)?.focus())},e.requestTabKey=(F,V)=>{let S=e.requestTabs.map(([ie])=>ie),q=S.indexOf(V),G={ArrowRight:q+1,ArrowLeft:q-1,Home:0,End:S.length-1}[F.key];G!==void 0&&(F.preventDefault(),e.selectRequestTab(S[(G+S.length)%S.length],!0))},e.requestTitle=()=>{let F=e.currentOccurrence();if(!F)return"";let V=F.requestPath||F.route||e.selectedIssue?.route;return V?`${F.method||e.selectedIssue?.method||""} ${V}`.trim():F.jobId?`Job ${e.selectedIssue?.queue||""}`.trim():`${e.selectedIssue?.code||"Record"} \xB7 route not recorded`},e.requestMs=()=>{let F=e.currentOccurrence();if(Number.isFinite(Number(F?.ms))&&F.ms!==void 0)return Number(F.ms);let V=(e.trace?.events||[]).find(S=>S.event==="request_completed"&&Number.isFinite(Number(S.ms)));return V?Number(V.ms):null},e.curlFor=F=>F?.requestPath&&["GET","HEAD"].includes(F.method||"GET")?`curl -i ${F.method==="HEAD"?"-I ":""}'${window.location.origin}${F.requestPath}'`:"",e.copyValue=async(F,V)=>{try{await navigator.clipboard.writeText(String(F)),e.copyStatus=`${V} copied.`}catch{e.copyStatus="Copy is not available in this browser. Select the text instead."}},e.recordJson=F=>JSON.stringify(F||{},null,2),e.toggleSettings=F=>{e.settingsOpen=!!F?.target?.open,e.settingsOpen&&(e.statsState==="idle"&&_(),e.telemetryState==="idle"&&W())};async function _(){let F=++u;e.statsState="loading";try{let V=await t.get("/api/admin/errors/stats");if(p||F!==u)return;e.stats=V.data,e.statsState=V.data?.available===!1?"unavailable":"ready"}catch{!p&&F===u&&(e.statsState="unavailable")}}async function W(){e.telemetryState="loading";try{let F=await t.get("/api/admin/errors/investigation",{params:{window:"1h"}});if(p)return;e.telemetry=F.data,e.telemetryState="ready"}catch{p||(e.telemetryState="unavailable")}}e.telemetryText=F=>({ready:"Central logs answer.",empty:"Central logs answer; nothing to report in the last hour.",partial:"Central logs answer with partial coverage.",stale:"Central logs answer, but expected application telemetry is stale or missing.",disabled:"Central logs are not configured.",misconfigured:"Central log configuration is invalid.",unreachable:"Central logs did not answer.",busy:"Central logs are busy. Retry shortly."})[F]||"Central log status is unknown.",e.statBarHeight=(F,V)=>{let S=Math.max(1,...(e.stats?.buckets||[]).map(q=>(q.error||0)+(q.warn||0)+(q.info||0)));return Math.round((F[V]||0)/S*40)},e.clearHistory=async()=>{if(window.confirm("Clear the Redis error history? Central logs are not affected."))try{await t.delete("/api/admin/errors"),e.copyStatus="Redis history cleared.",e.statsState="idle",_(),y()}catch{e.copyStatus="Could not clear the Redis history."}},e.exportHistory=async()=>{try{let F=await t.get("/api/admin/errors",{params:{offset:0,limit:5e3}}),V=["ts","level","module","message","service","status","route","repoId","userId","viewer","requestId"],S=[V.join(",")];for(let ie of F.data?.entries||[]){let K={...ie.raw?.[0]||{},...ie};S.push(V.map(ne=>{let le=K[ne]==null?"":String(K[ne]);return/[",\n]/.test(le)?`"${le.replace(/"/g,'""')}"`:le}).join(","))}let q=URL.createObjectURL(new Blob([S.join(` -`)],{type:"text/csv;charset=utf-8"})),G=document.createElement("a");G.href=q,G.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(G),G.click(),G.remove(),URL.revokeObjectURL(q),e.copyStatus="Redis history exported."}catch{e.copyStatus="Could not export the Redis history."}},y().then(()=>{e.errView!=="list"&&P()});let re=i(()=>{e.errView==="list"&&!e.issueLoading&&document.visibilityState!=="hidden"&&y({quiet:!0})},6e4);e.on("dispose",()=>{p=!0,window.clearTimeout(w),r++,o++,u++,i.cancel(re)})};function so(e){e.listLoading=!0,e.listLoaded===void 0&&(e.listLoaded=!1)}function El(e){e.listLoading=!1,e.listLoaded=!0}var Fr=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function Ur(e,{flags:t,keys:s,count:i,onChange:r=()=>{}}){if(e.segView=()=>{let o=t()||{};if(s.every(p=>!!o[p]))return"all";let u=s.filter(p=>!!o[p]);return u.length===1?u[0]:"custom"},e.setSegView=o=>{let u=t();if(u){for(let p of s)u[p]=o==="all"?!0:p===o;r()}},e.segCount=o=>o==="all"?s.reduce((u,p)=>u+i(p),0):i(o),t()&&e.segView()==="custom")for(let o of s)t()[o]=!0}var hp=function(e,t,s){let i=Tt(),r=$t();kp(i,r),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let o=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let R=document.querySelector('.admin-filter-toolbar input[type="search"]');R&&R.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];e.query.owner&&w.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&w.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=w};e.showStatusMessage=w=>{let R=w.statusMessage||"(no message)";window.prompt(`Status message for ${w.repoId} (${w.status}):`,R)},e.fetchGithubInfo=w=>{let R=window.open("","_blank");R&&R.document.write("
Loading GitHub info for "+w.repoId+"...
"),t.get("/api/admin/repos/"+w.repoId+"/github").then(b=>{R&&(R.document.open(),R.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,P=>P==="<"?"<":">")+"
"),R.document.close())},b=>{let P=b&&b.data?JSON.stringify(b.data,null,2):String(b);R&&(R.document.body.innerHTML='
'+P+"
")})},e.statusCountFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.count:0},e.statusStorageFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.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=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",d={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.owner&&(e.query.owner=m.owner),m.conference&&(e.query.conference=m.conference),m.search&&(e.query.search=m.search);let v="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let R=Object.assign({},e.query);delete R.page,e.presets=(e.presets||[]).filter(b=>b.name!==w),e.presets.push({name:w,query:R}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(R=>R.name!==w.name),localStorage.setItem(v,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(w=>{e.selected[w.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(w=>e.selected[w.repoId]),e.bulkRefresh=()=>{let w=e.selectedRepos();w.length&&confirm(`Force refresh ${w.length} repositories?`)&&w.forEach(R=>e.updateRepository(R))},e.bulkRemoveCache=()=>{let w=e.selectedRepos();w.length&&confirm(`Purge cache for ${w.length} repositories?`)&&w.forEach(R=>e.removeCache(R))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,R])=>R!==""&&R!==!1&&R!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/repos?"+w.toString(),"_blank")},e.removeCache=w=>{confirm("Remove cached files for "+w.repoId+"?")&&t.delete("/api/admin/repos/"+w.repoId).then(()=>y(),R=>console.error(R))},e.removeRepository=w=>{confirm("Remove repository "+w.repoId+"?")&&t.delete("/api/repo/"+w.repoId+"/").then(()=>y(),R=>console.error(R))},e.updateRepository=w=>{let R=ut({title:`Refreshing ${w.repoId}...`,date:new Date,body:`The repository ${w.repoId} is going to be refreshed.`});e.toasts.push(R),t.post(`/api/repo/${w.repoId}/refresh`).then(b=>{b.data.status=="ready"?R.title=`${w.repoId} is refreshed.`:R.title=`Refreshing of ${w.repoId}.`},b=>{R.title=`Error during the refresh of ${w.repoId}.`,R.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function y(){e.fetchError=null,so(e),t.get("/api/admin/repos",{params:e.query}).finally(()=>El(e)).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.repositories=w.data.results,e.allSelected=!1,e.loadEntityErrors()},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load repositories",console.error(w)})}function C(){let w=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:w}).then(R=>{e.statusCounts=R.data.statusCounts||[],e.totalSize=R.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),Ur(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>w==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):w==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):w==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(w),onChange:()=>{e.query.page=1}}),e.errorRepoId=()=>{let w=String(e.query.search||"").trim();return/^[A-Za-z0-9_-]{3,200}$/.test(w)&&(e.repositories||[]).some(R=>R.repoId===w)?w:""},kl(e,t,()=>e.errorRepoId()?{repoId:e.errorRepoId()}:null),y(),C();let k=null;e.watch("query",()=>{i.timeout.cancel(k),so(e),k=i.timeout(()=>{y(),C()},500);let{page:w,search:R,...b}=e.query;saveFilterPrefs(p,b),u()},!0),u()},gp=function(e,t,s){let i=Tt(),r=$t();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let o=y=>{if(y.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){y.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=y=>{y==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[y]="",e.query.page=1},e.chips=[];let u=()=>{let y=[];e.query.role&&y.push({key:"role",label:"Role",value:e.query.role}),e.chips=y};e.statusCountFor=y=>{let C=(e.statusCounts||[]).find(k=>k._id===y);return C?C.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 p="admin.users.filterPrefs",d={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(y=>{e.selected[y.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(y=>e.selected[y.username]),e.banUser=y=>{confirm(`Ban user ${y.username}?`)&&t.post(`/api/admin/users/${y.username}/ban`).then(m,C=>console.error(C))},e.activateUser=y=>{t.post(`/api/admin/users/${y.username}/activate`).then(m,C=>console.error(C))},e.bulkBan=()=>{let y=e.selectedUsers();y.length&&confirm(`Ban ${y.length} users?`)&&y.forEach(C=>e.banUser(C))},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/users?"+y.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,so(e),t.get("/api/admin/users",{params:e.query}).finally(()=>El(e)).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.users=y.data.results,e.statusCounts=y.data.statusCounts||[],e.allSelected=!1},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load users",console.error(y)})}m();let v=null;e.watch("query",()=>{i.timeout.cancel(v),so(e),v=i.timeout(m,500);let{page:y,search:C,...k}=e.query;saveFilterPrefs(p,k),u()},!0),u()},yp=function(e,t,s,i){let r=Tt();kp(r,$t()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let o="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(o)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,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.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(o,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(o,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=y=>(e.repositories||[]).filter(C=>Fr(C.status)===y).length,Ur(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:y=>e.statusCountFor(y)}),e.repoFiler=y=>e.filters.status[Fr(y.status)]==!1?!1:!!(e.search.trim().length==0||y.source.fullName.indexOf(e.search)>-1||y.repoId.indexOf(e.search)>-1||y.statusMessage&&y.statusMessage.indexOf(e.search)>-1||y.conference&&y.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||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(C=>e.updateRepository(C))},e.bulkRemoveCache=()=>{let y=e.selectedRepos();y.length&&confirm(`Purge cache for ${y.length} repositories?`)&&y.forEach(C=>e.removeCache(C))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let y=e.filteredRepositories||e.repositories,k=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),w=y.map(P=>[P.repoId,P.status,P.statusMessage||"",P.pageView||0,P.anonymizeDate||"",P.source&&P.source.fullName||"",P.conference||"",P.size&&P.size.storage||0].map(D=>{let L=String(D??"");return/[",\n\r]/.test(L)?'"'+L.replace(/"/g,'""')+'"':L}).join(",")),R=new Blob([k+` +`).trim()})}),s},e.showFileToc=()=>e.tabState?.active==="files"&&e.prFiles().length>=2,e.activeFileIndex=()=>{let s=e.prFiles().find(i=>i.id===e.activeAnchor);return s?s.index:0},e.openTab=s=>{e.tabState={active:s},e.tocOpen=!1},e.showInDiff=s=>{s&&(e.openTab("files"),e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},xe(()=>e.jumpToAnchor(s.id)))},e.jumpToFile=s=>{e.collapsedFiles={...e.collapsedFiles,[s.index]:!1},e.jumpToAnchor(s.id)},lp(e,()=>e.tabState?.active==="files"?e.prFiles().map(s=>s.id):[])}function cp(e){return e?.body||e?.comments?.length||e?.reviewComments?.length?"conversation":e?.diff?"files":e?.commits?.length?"commits":"conversation"}function wl(e,t,s){let i,r=!1,o="form-draft:"+s,u=()=>Object.fromEntries(t.map(y=>[y,e[y]])),p=()=>JSON.stringify(u()),d=y=>{for(let C of t)Object.prototype.hasOwnProperty.call(y,C)&&(e[C]=y[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},g=()=>{try{window.sessionStorage.removeItem(o)}catch{}},m=(y=!1)=>{if(i!==void 0){if(y&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){g();return}try{window.sessionStorage.setItem(o,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},v=()=>m(!0);return e.on("routeLeave",v),window.addEventListener("beforeunload",v),e.on("dispose",()=>window.removeEventListener("beforeunload",v)),{restore(){i=p();let y;try{y=JSON.parse(window.sessionStorage.getItem(o)||"null")}catch{}let C=y&&y.account===(e.user?.username||null)&&Date.now()-y.savedAt<30*6e4&&y.values;return C&&(d(y.values),e.draftRestored=!0),r||(r=!0,e.watch(()=>u(),()=>m(),!0)),e.unsavedChanges=p()!==i,!!C},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state===e&&y._field.timer&&y._field.commit()}),JSON.parse(p())},accept(y){i=JSON.stringify(y),e.draftRestored=!1,m()},discard(){document.querySelectorAll("input, select, textarea").forEach(y=>{y._field?.binding.state!==e||!y._field.timer||(clearTimeout(y._field.timer),y._field.timer=null,y.value=y._field.binding.value??"")}),i!==void 0&&d(JSON.parse(i)),e.draftRestored=!1,m()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,g()}}}var pp={"15m":"last 15 min","1h":"last hour","6h":"last 6 h","24h":"last 24 h"},$r=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,Bv=/^[A-Za-z0-9_-]{3,200}$/,Hv=/^[a-f0-9]{24}$/,kl={owner:"Owner",coauthor:"Co-author",admin:"Admin"};function zv(e){let t={repoId:"",userId:"",free:"",invalid:""},s=[];for(let i of String(e||"").trim().split(/\s+/).filter(Boolean)){let r=i.match(/^(repo|user):(.*)$/i);if(!r){s.push(i);continue}let o=r[2];r[1].toLowerCase()==="repo"&&Bv.test(o)?t.repoId=o:r[1].toLowerCase()==="user"&&Hv.test(o)?t.userId=o:t.invalid=i}return t.free=s.join(" ").toLowerCase(),t}function jv(e,t){if(!t)return!0;let s=[e.title,e.code,e.service,e.route,e.method,e.queue,e.status,e.cause?.label,e.cause?.summary].filter(i=>i!=null).join(" ").toLowerCase();return t.split(" ").every(i=>s.includes(i))}var fp=e=>Number(e?.status||e?.httpStatus)||0,Cl=e=>Date.parse(e),_v=e=>e?.event==="external_request",Gv=new Set(["mongodb","redis"]);function Wv(e,t){let s=(e||[]).filter(u=>Number.isFinite(Cl(u.timestamp))).map((u,p)=>{let d=Cl(u.timestamp),g=Number(u.ms),m=Number.isFinite(g)&&g>=0?d-g:d,v=_v(u),y=String(u.upstreamHost||""),C=v?"external":Gv.has(u.service)?"data":u.service==="nginx"?"edge":"app",k=v?`${y==="storage"?"Storage":/github/.test(y)?"GitHub":"External"}${u.upstreamMethod?" \xB7 "+u.upstreamMethod:""}`:u.errorCode||u.errorType||String(u.event||"event").replace(/_/g," "),w=v?u.upstreamEndpoint||y||"endpoint not recorded":[u.service,u.route||(u.queue?"job "+u.queue:"")].filter(Boolean).join(" \xB7 "),R=v?Number(u.upstreamStatus)||u.errorCode||"":fp(u)||"",b=v?Number(u.upstreamStatus)>=400||!!u.errorCode:fp(u)>=500||u.severity==="error",P=!v&&!!t&&!["edge_request","request_completed"].includes(u.event)&&(t.errorCode&&u.errorCode===t.errorCode||!t.errorCode&&t.errorType&&u.errorType===t.errorType);return{key:p,event:u,start:m,end:d,ms:Number.isFinite(g)?g:null,kind:C,label:k,sub:w,status:R,failed:b,failure:P}});if(!s.length)return{rows:s,span:0};s.sort((u,p)=>u.start-p.start||p.end-p.start-(u.end-u.start)),s.forEach((u,p)=>{u.key=p});let i=Math.min(...s.map(u=>u.start)),r=Math.max(...s.map(u=>u.end)),o=Math.max(1,r-i);for(let u of s)u.left=(u.start-i)/o*100,u.width=Math.max(.6,(u.end-u.start)/o*100),u.left+u.width>100&&(u.left=Math.max(0,100-u.width)),u.offset=Math.round(u.start-i);if(!s.some(u=>u.failure)){let u=[...s].reverse().find(p=>p.failed&&p.kind==="app");u&&(u.failure=!0)}return{rows:s,span:Math.round(o)}}function Kv(e){return e?e==="anonymous"?"Viewer not signed in":e==="visitor"?"Viewer: signed-in visitor":`Viewer: ${(kl[e]||e).toLowerCase()}`:""}function Yv(e){return e?kl[e]?`Signed in as ${kl[e].toLowerCase()}`:e==="visitor"?"Signed-in visitor (no role on the repository)":"Viewer not signed in":""}var Xv=(e,t=Date.now())=>{let s=Cl(e);if(!Number.isFinite(s))return"";let i=Math.max(0,Math.floor((t-s)/1e3));if(i<60)return"just now";let r=Math.floor(i/60);if(r<60)return`${r} min ago`;let o=Math.floor(r/60);return o<24?`${o} h ago`:`${Math.floor(o/24)} d ago`},hp=(e,t=!1)=>{let s=new Date(e);return Number.isNaN(s.getTime())?"":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",...t?{second:"2-digit"}:{},hour12:!1})},Qv=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?"":(new Date().toDateString()===t.toDateString()?"Today ":t.toLocaleDateString(void 0,{month:"short",day:"numeric"})+" \xB7 ")+hp(e,!0)};function gp(e){let t=e&&typeof e=="object"&&!Array.isArray(e)?e:{};return{source:"central",window:"24h",filters:{},names:{repos:{},users:{}},captured:0,...t,issues:Array.isArray(t.issues)?t.issues:[],expected:{count:0,groups:[],...t.expected||{}},excluded:{slow:0,interrupted:0,...t.excluded||{}},summary:{issues:0,failingNow:0,failedRecords:0,repositories:0,users:0,upstreamShare:0,...t.summary||{}}}}var mp=e=>Number(e||0).toLocaleString("en-US");function yp(e){e.errRelTime=t=>Xv(t),e.errClock=(t,s)=>hp(t,s),e.errDayTime=t=>Qv(t),e.errNumber=mp,e.errPlural=(t,s,i)=>`${mp(t)} ${t===1?s:i||s+"s"}`,e.errStatusClass=t=>Number(t)>=500?"is-error":Number(t)>=400?"is-warn":"is-neutral",e.errIssueHref=(t,s="")=>`/admin/errors?issue=${encodeURIComponent(t)}${s}`,e.errRepoHref=t=>`/admin/repositories?search=${encodeURIComponent(t)}`,e.errUserHref=t=>`/admin/users/id:${encodeURIComponent(t)}`,e.errTrendMax=t=>Math.max(1,...t||[0]),e.viewerLabel=Yv,e.viewerChip=Kv}function El(e,t,s,{onScopeDispose:i}={}){yp(e),e.entityErrors={loading:!1,failed:!1,data:null,key:""};let r=0,o=!1;e.loadEntityErrors=async(p=!1)=>{let d=s(),g=d?JSON.stringify(d):"";if(!p&&g===e.entityErrors.key)return;let m=++r;if(e.entityErrors={loading:!!d,failed:!1,data:null,key:g},!!d)try{let v=await t.get("/api/admin/errors/issues",{params:{window:"24h",...d}});if(o||m!==r)return;e.entityErrors={loading:!1,failed:!1,data:gp(v.data),key:g}}catch{!o&&m===r&&(e.entityErrors={loading:!1,failed:!0,data:null,key:g})}},e.entityIssues=()=>e.entityErrors.data?.issues||[],e.entityFailingNow=()=>e.entityIssues().filter(p=>p.failingNow),e.entityExpected=()=>e.entityErrors.data?.expected?.groups||[];let u=()=>{o=!0,r++};i?i(u):e.on?.("dispose",u)}var Sl=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),yp(e);let r=0,o=0,u=0,p=!1,d=null,g=null;e.issueData=null,e.issueLoading=!0,e.issueFailure="",e.issueFilters={window:"24h",service:"",source:"auto"};let m=s.search?.()||{};e.issueSearch=typeof m.q=="string"?m.q.slice(0,200):"",e.errView="list",e.selectedIssue=null,e.missingIssue="",e.showAllOccurrences=!1,e.occurrenceIndex=-1,e.requestTab="timeline",e.trace=null,e.traceLoading=!1,e.expandedSteps={},e.copyStatus="",e.settingsOpen=!1,e.telemetry=null,e.telemetryState="idle",e.stats=null,e.statsState="idle",e.redisCollecting=null,e.windowLabels=pp;let v=()=>zv(e.issueSearch);e.searchFilters=v,e.visibleIssues=()=>{let{free:F}=v();return(e.issueData?.issues||[]).filter(V=>jv(V,F))},e.sourceLine=()=>{let F=e.issueData;return F?`${F.source==="central"?"From central logs":"From application history (Redis)"} \xB7 ${pp[F.window]||F.window}`:""},e.sourceNote=()=>{let F=e.issueData;return F?F.source==="history"&&F.centralState==="skipped"?"Central logs are not used while this switch is on.":F.source==="history"?{disabled:"Central logs are not configured.",unreachable:"Central logs did not answer.",busy:"Central logs are busy.",misconfigured:"Central log configuration is invalid."}[F.centralState]||"":F.faultLimitReached?"Showing the newest 2,000 failures: older issues in this window may be missing. Narrow the window or filter by service.":F.state==="partial"?"Partial: a record limit or an invalid record reduced coverage.":"":""},e.ownerOf=F=>e.issueData?.names?.repos?.[F]||e.entityErrors?.data?.names?.repos?.[F]||null,e.userName=F=>e.issueData?.names?.users?.[F]||null;async function y({quiet:F=!1}={}){let V=++r,S=v(),q={window:e.issueFilters.window};e.issueFilters.service&&(q.service=e.issueFilters.service),e.issueFilters.source==="history"&&(q.source="history"),S.repoId&&(q.repoId=S.repoId),S.userId&&(q.userId=S.userId),F||(e.issueLoading=!0),e.issueFailure="";try{let G=await t.get("/api/admin/errors/issues",{params:q});if(p||V!==r)return;e.issueData=gp(G.data),e.redisCollecting=G.data?.redisCollecting!==!1,e.issueLoading=!1,b(!1)}catch(G){if(p||V!==r)return;e.issueFailure=G?.status===400?"These filters are not valid. Check repo: and user: values.":"Could not load errors. Check the connection and retry."}finally{!p&&V===r&&(e.issueLoading=!1)}}e.refreshIssues=()=>y();let C="",k=()=>{let F=v();return[e.issueFilters.window,e.issueFilters.service,e.issueFilters.source,F.repoId,F.userId].join("|")};e.applyFilters=()=>{let F=k();F!==C&&(C=F,y())},C=k(),e.setSource=F=>{e.issueFilters.source=F,e.applyFilters()},e.watch("issueFilters.window",()=>e.applyFilters(),!1,!1),e.watch("issueFilters.service",()=>e.applyFilters(),!1,!1);let w=null;e.watch("issueSearch",()=>{window.clearTimeout(w),w=window.setTimeout(()=>{p||e.applyFilters()},300)},!1,!1);let R=()=>s.search?.()||{};function b(F=!0){let V=R(),S=typeof V.issue=="string"?V.issue:"";if(!S){let le=e.errView;e.errView="list",e.selectedIssue=null,e.occurrenceIndex=-1,e.missingIssue="",L(),F&&le!=="list"&&D();return}let q=(e.issueData?.issues||[]).find(le=>le.id===S)||null;q?.id!==e.selectedIssue?.id&&(e.showAllOccurrences=!1),e.selectedIssue=q,e.missingIssue=q||e.issueLoading?"":S;let G=Number.parseInt(V.occurrence,10),oe=q&&Number.isInteger(G)&&G>=0&&G=0?"request":"issue",ne=K!==e.errView||S!==d||oe!==e.occurrenceIndex;e.errView=K,d=S,oe!==e.occurrenceIndex&&(e.occurrenceIndex=oe,e.expandedSteps={},oe>=0?H():L()),K==="request"&&["timeline","request","exception","fields"].includes(V.tab)&&(e.requestTab=V.tab),F&&ne&&P()}async function P(){if(await xe(),p)return;document.getElementById("errs-detail-title")?.focus({preventScroll:!0});let V=document.querySelector(".app-view");V&&(V.scrollTop=0)}async function D(){if(await xe(),p)return;let F=d&&document.querySelector(`[data-issue-link="${d}"]`);F?(F.focus({preventScroll:!0}),F.scrollIntoView?.({block:"nearest"})):document.getElementById("errs-search")?.focus()}e.on("routeUpdate",()=>b(!0)),e.currentOccurrence=()=>e.selectedIssue?.occurrences?.[e.occurrenceIndex]||null,e.occurrenceHref=F=>e.errIssueHref(e.selectedIssue?.id||"",`&occurrence=${F}`),e.openOccurrence=F=>{e.selectedIssue&&(g=F,s.url(e.occurrenceHref(F)))},e.lastOccurrence=()=>g;function L(){o++,e.trace=null,e.traceLoading=!1}async function H(){let F=e.currentOccurrence();L();let V=$r.test(F?.requestId||"")?"requestId":$r.test(F?.jobId||"")?"jobId":"";if(!V||e.issueData?.source!=="central")return;let S=o;e.traceLoading=!0;try{let q=await t.get("/api/admin/errors/correlation",{params:{kind:V,id:F[V],window:e.issueData?.window||"24h"}});!p&&S===o&&(e.trace=q.data)}catch{!p&&S===o&&(e.trace={state:"unreachable",events:[]})}finally{!p&&S===o&&(e.traceLoading=!1)}}e.traceKind=()=>{let F=e.currentOccurrence();return $r.test(F?.requestId||"")?"request":$r.test(F?.jobId||"")?"job":""},e.waterfall=()=>Wv(e.trace?.events?.length?e.trace.events:[e.occurrenceRecord()].filter(Boolean),e.selectedIssue),e.occurrenceRecord=()=>{let F=e.currentOccurrence();if(!F)return null;let V=e.selectedIssue,S=e.trace?.events||[],q=S.find(G=>G.timestamp===F.timestamp&&G.service===F.service)||S.find(G=>!["edge_request","request_completed","external_request"].includes(G.event)&&(V?.errorCode&&G.errorCode===V.errorCode||!V?.errorCode&&V?.errorType&&G.errorType===V.errorType));return q||(e.occurrenceIndex===0&&V?.sample?V.sample:F)},e.exceptionRecord=()=>{let F=e.occurrenceRecord();if(F?.errorStack||F?.errorType)return{record:F,fromSample:!1};let V=e.selectedIssue?.sample;return V?.errorStack||V?.errorType?{record:V,fromSample:!0}:{record:null,fromSample:!1}},e.toggleStep=F=>{e.expandedSteps={...e.expandedSteps,[F]:!e.expandedSteps[F]}},e.requestTabs=[["timeline","Timeline"],["request","Request"],["exception","Exception"],["fields","All fields"]],e.selectRequestTab=(F,V=!1)=>{e.requestTab=F,V&&xe(()=>document.getElementById("errs-tab-"+F)?.focus())},e.requestTabKey=(F,V)=>{let S=e.requestTabs.map(([oe])=>oe),q=S.indexOf(V),G={ArrowRight:q+1,ArrowLeft:q-1,Home:0,End:S.length-1}[F.key];G!==void 0&&(F.preventDefault(),e.selectRequestTab(S[(G+S.length)%S.length],!0))},e.requestTitle=()=>{let F=e.currentOccurrence();if(!F)return"";let V=F.requestPath||F.route||e.selectedIssue?.route;return V?`${F.method||e.selectedIssue?.method||""} ${V}`.trim():F.jobId?`Job ${e.selectedIssue?.queue||""}`.trim():`${e.selectedIssue?.code||"Record"} \xB7 route not recorded`},e.requestMs=()=>{let F=e.currentOccurrence();if(Number.isFinite(Number(F?.ms))&&F.ms!==void 0)return Number(F.ms);let V=(e.trace?.events||[]).find(S=>S.event==="request_completed"&&Number.isFinite(Number(S.ms)));return V?Number(V.ms):null},e.curlFor=F=>F?.requestPath&&["GET","HEAD"].includes(F.method||"GET")?`curl -i ${F.method==="HEAD"?"-I ":""}'${window.location.origin}${F.requestPath}'`:"",e.copyValue=async(F,V)=>{try{await navigator.clipboard.writeText(String(F)),e.copyStatus=`${V} copied.`}catch{e.copyStatus="Copy is not available in this browser. Select the text instead."}},e.recordJson=F=>JSON.stringify(F||{},null,2),e.toggleSettings=F=>{e.settingsOpen=!!F?.target?.open,e.settingsOpen&&(e.statsState==="idle"&&_(),e.telemetryState==="idle"&&W())};async function _(){let F=++u;e.statsState="loading";try{let V=await t.get("/api/admin/errors/stats");if(p||F!==u)return;e.stats=V.data,e.statsState=V.data?.available===!1?"unavailable":"ready"}catch{!p&&F===u&&(e.statsState="unavailable")}}async function W(){e.telemetryState="loading";try{let F=await t.get("/api/admin/errors/investigation",{params:{window:"1h"}});if(p)return;e.telemetry=F.data,e.telemetryState="ready"}catch{p||(e.telemetryState="unavailable")}}e.telemetryText=F=>({ready:"Central logs answer.",empty:"Central logs answer; nothing to report in the last hour.",partial:"Central logs answer with partial coverage.",stale:"Central logs answer, but expected application telemetry is stale or missing.",disabled:"Central logs are not configured.",misconfigured:"Central log configuration is invalid.",unreachable:"Central logs did not answer.",busy:"Central logs are busy. Retry shortly."})[F]||"Central log status is unknown.",e.statBarHeight=(F,V)=>{let S=Math.max(1,...(e.stats?.buckets||[]).map(q=>(q.error||0)+(q.warn||0)+(q.info||0)));return Math.round((F[V]||0)/S*40)},e.clearHistory=async()=>{if(window.confirm("Clear the Redis error history? Central logs are not affected."))try{await t.delete("/api/admin/errors"),e.copyStatus="Redis history cleared.",e.statsState="idle",_(),y()}catch{e.copyStatus="Could not clear the Redis history."}},e.exportHistory=async()=>{try{let F=await t.get("/api/admin/errors",{params:{offset:0,limit:5e3}}),V=["ts","level","module","message","service","status","route","repoId","userId","viewer","requestId"],S=[V.join(",")];for(let oe of F.data?.entries||[]){let K={...oe.raw?.[0]||{},...oe};S.push(V.map(ne=>{let le=K[ne]==null?"":String(K[ne]);return/[",\n]/.test(le)?`"${le.replace(/"/g,'""')}"`:le}).join(","))}let q=URL.createObjectURL(new Blob([S.join(` +`)],{type:"text/csv;charset=utf-8"})),G=document.createElement("a");G.href=q,G.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(G),G.click(),G.remove(),URL.revokeObjectURL(q),e.copyStatus="Redis history exported."}catch{e.copyStatus="Could not export the Redis history."}},y().then(()=>{e.errView!=="list"&&P()});let ae=i(()=>{e.errView==="list"&&!e.issueLoading&&document.visibilityState!=="hidden"&&y({quiet:!0})},6e4);e.on("dispose",()=>{p=!0,window.clearTimeout(w),r++,o++,u++,i.cancel(ae)})};function so(e){e.listLoading=!0,e.listLoaded===void 0&&(e.listLoaded=!1)}function Nl(e){e.listLoading=!1,e.listLoaded=!0}var Ur=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function Br(e,{flags:t,keys:s,count:i,onChange:r=()=>{}}){if(e.segView=()=>{let o=t()||{};if(s.every(p=>!!o[p]))return"all";let u=s.filter(p=>!!o[p]);return u.length===1?u[0]:"custom"},e.setSegView=o=>{let u=t();if(u){for(let p of s)u[p]=o==="all"?!0:p===o;r()}},e.segCount=o=>o==="all"?s.reduce((u,p)=>u+i(p),0):i(o),t()&&e.segView()==="custom")for(let o of s)t()[o]=!0}var vp=function(e,t,s){let i=Pt(),r=Lt();Sp(i,r),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let o=w=>{if(w.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){w.preventDefault();let R=document.querySelector('.admin-filter-toolbar input[type="search"]');R&&R.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=w=>{w==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[w]="",e.query.page=1},e.chips=[];let u=()=>{let w=[];e.query.owner&&w.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&w.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=w};e.showStatusMessage=w=>{let R=w.statusMessage||"(no message)";window.prompt(`Status message for ${w.repoId} (${w.status}):`,R)},e.fetchGithubInfo=w=>{let R=window.open("","_blank");R&&R.document.write("
Loading GitHub info for "+w.repoId+"...
"),t.get("/api/admin/repos/"+w.repoId+"/github").then(b=>{R&&(R.document.open(),R.document.write('
'+JSON.stringify(b.data,null,2).replace(/[<>]/g,P=>P==="<"?"<":">")+"
"),R.document.close())},b=>{let P=b&&b.data?JSON.stringify(b.data,null,2):String(b);R&&(R.document.body.innerHTML='
'+P+"
")})},e.statusCountFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.count:0},e.statusStorageFor=w=>{let R=(e.statusCounts||[]).find(b=>b._id===w);return R?R.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=w=>{e.query.sort===w?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=w,e.query.direction="desc"),e.query.page=1},e.sortIcon=w=>e.query.sort===w?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",d={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.owner&&(e.query.owner=m.owner),m.conference&&(e.query.conference=m.conference),m.search&&(e.query.search=m.search);let v="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let w=window.prompt("Preset name:");if(!w)return;let R=Object.assign({},e.query);delete R.page,e.presets=(e.presets||[]).filter(b=>b.name!==w),e.presets.push({name:w,query:R}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=w=>{Object.assign(e.query,w.query,{page:1})},e.deletePreset=w=>{e.presets=(e.presets||[]).filter(R=>R.name!==w.name),localStorage.setItem(v,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(w=>{e.selected[w.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(w=>e.selected[w.repoId]),e.bulkRefresh=()=>{let w=e.selectedRepos();w.length&&confirm(`Force refresh ${w.length} repositories?`)&&w.forEach(R=>e.updateRepository(R))},e.bulkRemoveCache=()=>{let w=e.selectedRepos();w.length&&confirm(`Purge cache for ${w.length} repositories?`)&&w.forEach(R=>e.removeCache(R))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let w=new URLSearchParams(Object.entries(e.query).filter(([,R])=>R!==""&&R!==!1&&R!=null));w.set("format","csv"),w.set("limit","10000"),window.open("/api/admin/repos?"+w.toString(),"_blank")},e.removeCache=w=>{confirm("Remove cached files for "+w.repoId+"?")&&t.delete("/api/admin/repos/"+w.repoId).then(()=>y(),R=>console.error(R))},e.removeRepository=w=>{confirm("Remove repository "+w.repoId+"?")&&t.delete("/api/repo/"+w.repoId+"/").then(()=>y(),R=>console.error(R))},e.updateRepository=w=>{let R=ut({title:`Refreshing ${w.repoId}...`,date:new Date,body:`The repository ${w.repoId} is going to be refreshed.`});e.toasts.push(R),t.post(`/api/repo/${w.repoId}/refresh`).then(b=>{b.data.status=="ready"?R.title=`${w.repoId} is refreshed.`:R.title=`Refreshing of ${w.repoId}.`},b=>{R.title=`Error during the refresh of ${w.repoId}.`,R.body=b.body})},e.filtersOpen=!1,e.fetchError=null;function y(){e.fetchError=null,so(e),t.get("/api/admin/repos",{params:e.query}).finally(()=>Nl(e)).then(w=>{e.total=w.data.total,e.totalPage=Math.ceil(w.data.total/e.query.limit),e.repositories=w.data.results,e.allSelected=!1,e.loadEntityErrors()},w=>{e.fetchError=w&&w.data&&w.data.error||"Failed to load repositories",console.error(w)})}function C(){let w=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:w}).then(R=>{e.statusCounts=R.data.statusCounts||[],e.totalSize=R.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),Br(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:w=>w==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):w==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):w==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(w),onChange:()=>{e.query.page=1}}),e.errorRepoId=()=>{let w=String(e.query.search||"").trim();return/^[A-Za-z0-9_-]{3,200}$/.test(w)&&(e.repositories||[]).some(R=>R.repoId===w)?w:""},El(e,t,()=>e.errorRepoId()?{repoId:e.errorRepoId()}:null),y(),C();let k=null;e.watch("query",()=>{i.timeout.cancel(k),so(e),k=i.timeout(()=>{y(),C()},500);let{page:w,search:R,...b}=e.query;saveFilterPrefs(p,b),u()},!0),u()},bp=function(e,t,s){let i=Pt(),r=Lt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let o=y=>{if(y.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){y.preventDefault();let C=document.querySelector('.admin-filter-toolbar input[type="search"]');C&&C.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=y=>{y==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[y]="",e.query.page=1},e.chips=[];let u=()=>{let y=[];e.query.role&&y.push({key:"role",label:"Role",value:e.query.role}),e.chips=y};e.statusCountFor=y=>{let C=(e.statusCounts||[]).find(k=>k._id===y);return C?C.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 p="admin.users.filterPrefs",d={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(y=>{e.selected[y.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(y=>e.selected[y.username]),e.banUser=y=>{confirm(`Ban user ${y.username}?`)&&t.post(`/api/admin/users/${y.username}/ban`).then(m,C=>console.error(C))},e.activateUser=y=>{t.post(`/api/admin/users/${y.username}/activate`).then(m,C=>console.error(C))},e.bulkBan=()=>{let y=e.selectedUsers();y.length&&confirm(`Ban ${y.length} users?`)&&y.forEach(C=>e.banUser(C))},e.exportCsv=()=>{let y=new URLSearchParams(Object.entries(e.query).filter(([,C])=>C!==""&&C!==!1&&C!=null));y.set("format","csv"),y.set("limit","10000"),window.open("/api/admin/users?"+y.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,so(e),t.get("/api/admin/users",{params:e.query}).finally(()=>Nl(e)).then(y=>{e.total=y.data.total,e.totalPage=Math.ceil(y.data.total/e.query.limit),e.users=y.data.results,e.statusCounts=y.data.statusCounts||[],e.allSelected=!1},y=>{e.fetchError=y&&y.data&&y.data.error||"Failed to load users",console.error(y)})}m();let v=null;e.watch("query",()=>{i.timeout.cancel(v),so(e),v=i.timeout(m,500);let{page:y,search:C,...k}=e.query;saveFilterPrefs(p,k),u()},!0),u()},wp=function(e,t,s,i){let r=Pt();Sp(r,Lt()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let o="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(o)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,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.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=y=>e.query.sort===y?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(o,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(o,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=y=>(e.repositories||[]).filter(C=>Ur(C.status)===y).length,Br(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:y=>e.statusCountFor(y)}),e.repoFiler=y=>e.filters.status[Ur(y.status)]==!1?!1:!!(e.search.trim().length==0||y.source.fullName.indexOf(e.search)>-1||y.repoId.indexOf(e.search)>-1||y.statusMessage&&y.statusMessage.indexOf(e.search)>-1||y.conference&&y.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||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(C=>e.updateRepository(C))},e.bulkRemoveCache=()=>{let y=e.selectedRepos();y.length&&confirm(`Purge cache for ${y.length} repositories?`)&&y.forEach(C=>e.removeCache(C))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let y=e.filteredRepositories||e.repositories,k=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),w=y.map(P=>[P.repoId,P.status,P.statusMessage||"",P.pageView||0,P.anonymizeDate||"",P.source&&P.source.fullName||"",P.conference||"",P.size&&P.size.storage||0].map(D=>{let L=String(D??"");return/[",\n\r]/.test(L)?'"'+L.replace(/"/g,'""')+'"':L}).join(",")),R=new Blob([k+` `+w.join(` -`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(R),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=y=>{let C=y.statusMessage||"(no message)";window.prompt(`Status message for ${y.repoId} (${y.status}):`,C)},e.fetchGithubInfo=y=>{let C=window.open("","_blank");C&&C.document.write("
Loading GitHub info for "+y.repoId+"...
"),t.get("/api/admin/repos/"+y.repoId+"/github").then(k=>{C&&(C.document.open(),C.document.write('
'+JSON.stringify(k.data,null,2).replace(/[<>]/g,w=>w==="<"?"<":">")+"
"),C.document.close())},k=>{let w=k&&k.data?JSON.stringify(k.data,null,2):String(k);C&&(C.document.body.innerHTML='
'+w+"
")})};function d(y){t.get("/api/admin/users/"+y+"/repos",{}).then(C=>{e.repositories=C.data},C=>{console.error(C)})}function g(y){t.get("/api/admin/users/"+y,{}).then(C=>{e.userInfo=C.data,e.loadEntityErrors()},C=>{console.error(C)})}kl(e,t,()=>/^[a-f0-9]{24}$/.test(e.userInfo?._id||"")?{userId:e.userInfo._id}:null),g(i.username),d(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>g(i.username),y=>console.error(y))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>g(i.username),y=>console.error(y))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>g(i.username),y=>console.error(y))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>g(i.username),y=>console.error(y))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function m(){t.get("/api/admin/tokens").then(y=>{e.tokens=y.data||[]},y=>{y.status!==401&&y.status!==403&&console.error(y)})}m(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(y=>{e.tokenForm.plaintext=y.data.token,e.tokenForm.name="",m()},y=>console.error(y))},e.revokeToken=y=>{confirm(`Revoke token "${y.name}"?`)&&t.delete("/api/admin/tokens/"+y.id).then(()=>m(),C=>console.error(C))},e.removeCache=y=>{confirm("Remove cached files for "+y.repoId+"?")&&t.delete("/api/admin/repos/"+y.repoId).then(()=>d(i.username),C=>console.error(C))},e.removeRepository=y=>{confirm("Remove repository "+y.repoId+"?")&&t.delete("/api/repo/"+y.repoId+"/").then(()=>d(i.username),C=>console.error(C))},e.updateRepository=y=>{let C=ut({title:`Refreshing ${y.repoId}...`,date:new Date,body:`The repository ${y.repoId} is going to be refreshed.`});e.toasts.push(C),t.post(`/api/repo/${y.repoId}/refresh`).then(k=>{k.data.status=="ready"?C.title=`${y.repoId} is refreshed.`:C.title=`Refreshing of ${y.repoId}.`},k=>{C.title=`Error during the refresh of ${y.repoId}.`,C.body=k.body})},e.getGitHubRepositories=y=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(C=>{e.userInfo.repositories=C.data})};let v=null;e.watch("query",()=>{r.timeout.cancel(v),v=r.timeout(()=>{d(i.username)},500)},!0)},vp=function(e,t,s){let i=Tt(),r=$t();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[];let o=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let u=()=>{let k=[];(e.query.dateFrom||e.query.dateTo)&&k.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=k};e.statusCountFor=k=>{let w=(e.statusCounts||[]).find(R=>R._id===k);return w?w.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",d={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.search&&(e.query.search=m.search);let v="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let w=Object.assign({},e.query);delete w.page,e.presets=(e.presets||[]).filter(R=>R.name!==k),e.presets.push({name:k,query:w}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=k=>{Object.assign(e.query,k.query,{page:1})},e.deletePreset=k=>{e.presets=(e.presets||[]).filter(w=>w.name!==k.name),localStorage.setItem(v,JSON.stringify(e.presets))},e.removeConference=k=>{confirm("Remove conference "+k.conferenceID+"?")&&t.delete("/api/admin/conferences/"+k.conferenceID).then(()=>y(),w=>console.error(w))},e.exportCsv=()=>{let k=new URLSearchParams(Object.entries(e.query).filter(([,w])=>w!==""&&w!==!1&&w!=null));k.set("format","csv"),k.set("limit","10000"),window.open("/api/admin/conferences?"+k.toString(),"_blank")},e.fetchError=null;function y(){e.fetchError=null,so(e),t.get("/api/admin/conferences",{params:e.query}).finally(()=>El(e)).then(k=>{e.total=k.data.total,e.totalPage=Math.ceil(k.data.total/e.query.limit),e.conferences=k.data.results,e.statusCounts=k.data.statusCounts||[]},k=>{e.fetchError=k&&k.data&&k.data.error||"Failed to load conferences",console.error(k)})}Ur(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:k=>e.statusCountFor(k),onChange:()=>{e.query.page=1}}),y();let C=null;e.watch("query",()=>{i.timeout.cancel(C),so(e),C=i.timeout(y,500);let{page:k,search:w,...R}=e.query;saveFilterPrefs(p,R),u()},!0),u()},bp=function(e,t,s,i,r){let o=Tt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},Ur(e,{flags:()=>e.stateFilter,keys:e.allStates,count:R=>(e.jobs||[]).filter(b=>b._state===R).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(R=>e.stateFilter[R._state]),e.jobProgressPct=R=>R?._state==="completed"?100:R&&R.progress&&typeof R.progress=="object"&&typeof R.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(R.progress.percent))):typeof R.progress=="number"?Math.max(0,Math.min(100,Math.round(R.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=R=>{if(R?._state==="failed")return Nr(R.failedReason||"")||"Failed";let b=R?.progress&&typeof R.progress=="object"?R.progress.status:null;return R?._state==="active"&&b?u[b]||Nr(b):"\u2014"},e.jobDuration=R=>{if(!R.processedOn)return"\u2014";let b=R.finishedOn||Date.now();return Yn(b-R.processedOn)},e.metricsPoints=[],e.selectQueue=R=>{e.selectedQueue=R,p(),d()},e.setRange=R=>{e.range=R,d()};function p(){let R={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:R}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(P=>P.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function d(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(R=>{e.metricsPoints=R.data.points||[],r(C,0)},R=>console.error(R))}p(),d();let g=i(()=>{e.query.autoRefresh&&(p(),d())},15e3);e.on("dispose",()=>i.cancel(g)),e.refreshNow=function(){p(),d()};function m(R){let b=R&&R.data&&(R.data.message||R.data.error)||"Request failed";e.actionError=b,r(()=>{e.actionError=null},5e3),console.error(R)}e.actionError=null,e.removeJob=R=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${R.id}`).then(p,m)},e.retryJob=R=>{t.post(`/api/admin/queue/${e.selectedQueue}/${R.id}`).then(p,m)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,R=>console.error(R))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,R=>console.error(R))},e.togglePause=()=>{let R=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${R}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,R=>console.error(R))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,R=>console.error(R))};let v=null;e.watch("query.search",()=>{o.timeout.cancel(v),v=o.timeout(p,350)}),e.expanded={},e.toggleJob=R=>{e.expanded[R.id]=!e.expanded[R.id]},e.humanTime=R=>{if(!R)return"";let b=new Date(R);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=R=>{if(!R)return"";var b=Math.max(0,Math.ceil((R-Date.now())/1e3));if(b<=0)return"resuming soon";var P=Math.floor(b/60),D=b%60;return"in "+(P>0?P+"m "+D+"s":D+"s")};function y(R){if(R<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(R))),P=b;R/P<2?P=b/2:R/P>5&&(P=b*2);let D=Math.ceil(R/P)*P,L=[];for(let H=0;H<=D;H+=P)L.push(H);return{ticks:L,niceMax:D}}function C(){var R=document.getElementById("q-throughput-chart");if(!R)return;var b=R.getContext("2d"),P=window.devicePixelRatio||1,D=R.parentElement.getBoundingClientRect(),L=44,H=44,_=22,W=Math.max(200,Math.round(D.width)),re=Math.max(180,Math.min(420,Math.round(D.height)||180)),F=W-L-H,V=re-_;R.width=W*P,R.height=re*P,R.style.width=W+"px",R.style.height=re+"px",b.setTransform(P,0,0,P,0,0);var S=document.body.classList.contains("dark-mode"),q="#8A857C",G=S?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",ie=S?"#6FBF8A":"#2F7D4F",K=S?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=S?"#F08A82":"#B42318",le=S?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ye=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(S?"#E0A94A":"#946512"),Ae=e.metricsPoints||[];if(Ae.length===0){b.fillStyle=q,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",W/2,re/2),k=null;return}var Xe=Ae.map(function(Re){return Re.completed}),tt=Ae.map(function(Re){return Re.failed}),Ge=Ae.map(function(Re){return Re.avgMs});if(!Xe.some(Boolean)&&!tt.some(Boolean)){b.strokeStyle=S?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,re-18.5),b.lineTo(W,re-18.5),b.stroke(),b.fillStyle=S?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",W/2,re/2-6),b.fillStyle=q,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",W/2,re/2+16),k=null;return}var We=Ae.length,it=F/(We-1||1),ht=Math.max(1,Math.max.apply(null,Xe),Math.max.apply(null,tt)),Oe=y(ht),Q=Math.max.apply(null,Ge),he=Q>0?y(Q):{ticks:[0],niceMax:1},ee=function(Re){return V-Re/Oe.niceMax*(V-10)},ge=function(Re){return V-Re/he.niceMax*(V-10)},Ee=function(Re){return L+Re*it};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",Oe.ticks.forEach(function(Re){var Be=ee(Re);b.strokeStyle=G,b.lineWidth=1,b.beginPath(),b.moveTo(L,Be),b.lineTo(W-H,Be),b.stroke(),b.fillStyle=q,Re!==0&&b.fillText(Re>=1e3?(Re/1e3).toFixed(1)+"k":String(Re),L-6,Be)}),Q>0&&(b.textAlign="left",he.ticks.forEach(function(Re){var Be=ge(Re);b.fillStyle=ye,Re!==0&&b.fillText(Yn(Re),W-H+6,Be)}));var Ie=Ae[We-1].ts,A=Ae[0].ts,I=Math.max(0,(Ie-A)/6e4),z=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],x=z.find(function(Re){return I/Re<=4})||z[z.length-1],X=function(Re){return Re<60?Re+"m":Re<1440?Re/60+"h":Re/1440+"d"},se=function(Re){for(var Be=0,j=1;j0&&Math.abs(Ae[Ne].ts-(Ie-Z*6e4))>ce+1)){var fe=Ee(Ne),Te=Z===0?"now":X(Z)+" ago",Me=b.measureText(Te).width,Ue=oe===0?"right":Ne===0?"left":"center",Ze=Ue==="right"?fe:Ue==="left"?fe+Me:fe+Me/2;Ze>ae-12||(b.textAlign=Ue,b.fillText(Te,fe,V+6),ae=Ue==="right"?fe-Me:Ue==="left"?fe:fe-Me/2)}}function Qe(Re,Be,j,J){Re.length!==0&&(b.beginPath(),b.moveTo(Ee(0),V),Re.forEach(function(me,Se){var ke=Ee(Se),qe=Be(me);if(Se===0)b.lineTo(ke,qe);else{var ct=(Ee(Se-1)+ke)/2;b.bezierCurveTo(ct,Be(Re[Se-1]),ct,qe,ke,qe)}}),b.lineTo(Ee(Re.length-1),V),b.closePath(),b.fillStyle=j,b.fill(),b.beginPath(),Re.forEach(function(me,Se){var ke=Ee(Se),qe=Be(me);if(Se===0)b.moveTo(ke,qe);else{var ct=(Ee(Se-1)+ke)/2;b.bezierCurveTo(ct,Be(Re[Se-1]),ct,qe,ke,qe)}}),b.strokeStyle=J,b.lineWidth=1.5,b.stroke())}Qe(Xe,ee,K,ie),Qe(tt,ee,le,ne),Q>0&&(b.beginPath(),Ge.forEach(function(Re,Be){var j=Ee(Be),J=ge(Re);if(Be===0)b.moveTo(j,J);else{var me=(Ee(Be-1)+j)/2;b.bezierCurveTo(me,ge(Ge[Be-1]),me,J,j,J)}}),b.strokeStyle=ye,b.lineWidth=1,b.setLineDash([4,3]),b.stroke(),b.setLineDash([])),k={pts:Ae,maxLen:We,marginLeft:L,step:it,totalW:W,toX:Ee}}var k=null;function w(){var R=document.getElementById("q-throughput-chart");if(!(!R||R._tipBound)){R._tipBound=!0;var b=document.getElementById("q-chart-tooltip"),P=document.getElementById("q-chart-crosshair");R.addEventListener("mousemove",function(D){if(!(!k||!b||!P)){var L=k,H=R.getBoundingClientRect(),_=D.clientX-H.left,W=Math.round((_-L.marginLeft)/L.step);if(W<0||W>=L.maxLen){b.style.display="none",P.style.display="none";return}var re=L.pts[W],F=L.pts[L.pts.length-1].ts,V=Math.round((F-re.ts)/6e4),S;if(V<=0)S="now";else if(V<60)S=V+"m ago";else if(V<1440){var q=Math.floor(V/60),G=V%60;S=q+"h"+(G?" "+G+"m":"")+" ago"}else S=Math.round(V/1440)+"d ago";var ie='
'+S+'
● completed: '+re.completed+'/min
● failed: '+re.failed+"/min
";if(re.avgMs>0){var K=Yn(re.avgMs);ie+='
● avg time: '+K+"
"}b.innerHTML=ie;var ne=L.toX(W),le=b.offsetWidth,ye=ne+10;ye+le>L.totalW&&(ye=ne-le-10),b.style.display="block",b.style.left=ye+"px",b.style.top="8px",P.style.display="block",P.style.left=ne+"px"}}),R.addEventListener("mouseleave",function(){b&&(b.style.display="none"),P&&(P.style.display="none")})}}e.watch("metricsPoints",function(){r(w,50)})},wp=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(b){e.ovView=b;try{window.history.replaceState(null,"",b==="summary"?window.location.pathname:"#"+b)}catch{}};var r=!1;e.loadCache=function(){if(!r){r=!0;var b=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:b}}).then(function(P){b===e.cacheMinutes&&(e.cacheReport=P.data,e.cacheError=P.data.available?null:P.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){r=!1,b!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(b){return e.cacheTraffic==="all"||b.traffic===e.cacheTraffic})},e.cacheRate=function(b,P){var D=e.cacheRows(),L=function(W){return D.filter(function(re){return re.name===W}).reduce(function(re,F){return re+F[P]},0)},H=L(b+"_hit"),_=L(b+"_miss");return H+_?(100*H/(H+_)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(b){return b.replaceAll("_"," ")},e.cacheP95=function(b){var P=0,D=e.cacheReport?.latencyBucketsMs||[];if(!b.count)return"No samples";if(!b.ms)return"Not timed";for(var L=0;L<=D.length;L++)if(P+=b["b"+L]||0,P>=Math.ceil(b.count*.95))return L 10\u202Fs";return"No samples"},e.healthAlert=function(){let b=e.data&&e.data.system||{},P=[["Memory",b.memPercent],["Disk",b.diskPercent]].filter(([,L])=>L>90);return P.length?P.map(([L,H])=>L+" is at "+H+"%").join(" and ")+". New anonymizations may fail until "+(P.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(b){return b==null?"":Yn(b)},e.latencyBound=function(b,P){return b.count?b[P]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(b[P]):"No samples"},e.firstByteBound=function(b){return e.latencyBound({count:b.firstByteCount,p95UpperMs:b.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(b){return Math.max(0,Math.round((Date.now()-b.sampledAt)/1e3))},e.peakRss=function(b){return(e.performance.runtimeSeries||[]).filter(function(P){return P.instance===b.instance}).reduce(function(P,D){return Math.max(P,D.rss)},b.memory.rss)},e.performanceWarning=function(b){return e.sampleAge(b)>45||b.droppedBatches||b.droppedMetrics||b.sockets?.closeWait>0||b.eventLoop?.p95Ms>100||b.memoryLimitBytes&&b.memory.rss>b.memoryLimitBytes*.8};var o=!1;e.loadPerformance=function(){var b=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==b&&(e.performance=null),!o&&(o=!0,t.get("/api/admin/performance",{params:{minutes:b}}).then(function(P){b===e.performanceMinutes&&(e.performance=P.data,e.performanceError=P.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){b===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){o=!1,b!==e.performanceMinutes&&e.loadPerformance()}))};function u(b){if(b==null)return"\u2014";for(var P=["B","KB","MB","GB","TB"],D=0,L=b;L>=1024&&D0?1:0).replace(/\.0$/,"")+" "+P[D]}e.humanBytes=u;function p(b){if(!b)return"\u2014";var P=Math.floor(b/86400),D=Math.floor(b%86400/3600),L=Math.floor(b%3600/60);return P>0?P+"d "+(D<10?"0":"")+D+"h":D>0?D+"h "+(L<10?"0":"")+L+"m":L+"m"}e.humanDuration=p;function d(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=d,e.queueTotal=function(b){return b?(b.waiting||0)+(b.active||0)+(b.delayed||0)+(b.failed||0):0},e.statusCount=function(b){if(!e.data||!e.data.repos)return 0;for(var P=e.data.repos.statusBreakdown||[],D=0;D0,zero:!L,title:String(H.getHours()).padStart(2,"0")+":00 \xB7 "+(D.error||0)+" 5xx, "+(D.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var b=e.errorStats&&e.errorStats.buckets||[];return b.reduce(function(P,D){return Math.max(P,(D.error||0)+(D.warn||0))},0)};function g(b){var P=b||[];return P.map(function(D,L){var H=P[L-1]||{},_=Object.assign({},D);return _.dailyRepositories=L?Math.max(0,(D.nbRepositories||0)-(H.nbRepositories||0)):0,_.dailyUsers=L?Math.max(0,(D.nbUsers||0)-(H.nbUsers||0)):0,_.dailyPageViews=L?Math.max(0,(D.nbPageViews||0)-(H.nbPageViews||0)):0,_})}function m(b){var P=b&&b.length?b[b.length-1]:{};return{repositories:P.dailyRepositories||0,users:P.dailyUsers||0,pageViews:P.dailyPageViews||0}}function v(b,P){if(!b||!b.length)return b;var D=new Date(b[b.length-1].date);if(isNaN(D))return b;var L={};b.forEach(function(F){L[new Date(F.date).toISOString().slice(0,10)]=F});for(var H=[],_=P-1;_>=0;_--){var W=new Date(D.getTime()-_*864e5),re=W.toISOString().slice(0,10);H.push(L[re]||{date:W.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return H}var y={};e.historyMax=function(b){return y[b]||0};var C={};e.axisMax=function(b){var P=y[b]||0;if(P<=2)return 2;if(P<=10)return Math.ceil(P/2)*2;var D=Math.pow(10,Math.floor(Math.log10(P)));return Math.ceil(P/D)*D},e.historyBarH=function(b,P){return!b||!y[P]||!b[P]?0:Math.max(1,Math.round(b[P]/e.axisMax(P)*140))},e.historyRange=function(b){return{min:C[b],max:y[b]}};var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(b){if(!b||!b.date)return"";var P=new Date(b.date);return k[P.getUTCMonth()]+" "+P.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(b){return b&&b._empty})},e.firstDataIndex=function(){for(var b=e.data&&e.data.history||[],P=0;P=D)return{lo:re,hi:re+2*_[W]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(b){var P=e.data&&e.data.history||[],D=e.userAxis(),L=y.nbUsers?D.hi-D.lo:0,H=e.firstDataIndex();if(!L||H>=P.length)return"";for(var _=function(V){return(140-((V||0)-D.lo)/L*140).toFixed(2)},W=b?"M"+H+" 140":"",re=H;rey[D])&&(y[D]=P[D]),(C[D]==null||P[D] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(r=>{r.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let r=s.length-1;r>=0&&e.scrollWidth>e.clientWidth+1;r--)if(s[r].setAttribute("data-meta-hidden",""),i.unshift(s[r]),t){let o=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=o.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+o.join(", "))}e.classList.remove("is-fitting")}function kp(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,r=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Yv),i.takeRecords())},o=()=>{!s&&i&&(s=!0,e.timeout(r,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&o()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),Vn(()=>{i.disconnect(),i=null}),t(window,"resize",o),document.fonts?.ready&&document.fonts.ready.then(o),o()}var Xv=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],$r=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository add-ons"},{id:"conference",label:"Conferences"}],Qv={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function ws(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Xv.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var Cp=function(e,t,s){let i=Tt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=$r,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let r=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(k=>k.id===r)?r:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(k=>k.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=k=>ws(k),e.moneyText=(k,w="\u2014")=>ws(k).join(" \xB7 ")||w,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=k=>((e.summary?.plans||[]).find(w=>w.planId===k)||{}).name||Qv[k]||k,e.bucketTotal=k=>k?k.subscription+k.repository+k.conference:0,e.chartMax=()=>{let k=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(k<=4)return 4;let w=Math.pow(10,Math.floor(Math.log10(k)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(R=>R*w).find(R=>R>=k&&R%2===0)||10*w},e.segmentPct=(k,w)=>k&&k[w]?k[w]/e.chartMax()*100:0,e.familyTotal=k=>(e.summary?.series||[]).reduce((w,R)=>w+R[k],0);let o=(k,w)=>{for(let[R,b]of Object.entries(w||{}))k[R]=(k[R]||0)+b;return k};e.familyRevenue=k=>(e.summary?.series||[]).reduce((w,R)=>o(w,R.revenue?.[k]),{}),e.seriesMissing=()=>(e.summary?.series||[]).reduce((k,w)=>k+(w.missing||0),0),e.legendText=k=>{let w=ll(e.familyTotal(k));if(!e.revenueOn()||e.seriesMissing())return w;let R=ws(e.familyRevenue(k));return R.length?w+" \xB7 "+R.join(" \xB7 "):w},e.bucketLabel=k=>{if(!k)return"";let w=new Date(k.date),R={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?w.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||w.getUTCFullYear()!==new Date().getUTCFullYear())&&(R.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+w.toLocaleDateString(void 0,R))},e.bucketTip=k=>{let w=e.bucketTotal(k),R=e.bucketLabel(k)+" \xB7 "+(w?w+(w===1?" sale":" sales"):"no sales");if(!w)return R;let b=e.revenueOn(),P=$r.filter(W=>k[W.id]).map(W=>[W.label,String(k[W.id]),b?ws(k.revenue?.[W.id]).join(" \xB7 "):""]),D=$r.reduce((W,re)=>o(W,k.revenue?.[re.id]),{}),L=b?[...ws(D).length?["Total "+ws(D).join(" \xB7 ")]:[],...k.missing?[k.missing+(k.missing===1?" sale":" sales")+" without a known price"]:[]]:["Revenue unavailable"],H=W=>Math.max(...P.map(re=>re[W].length)),_=P.map(W=>(W[0].padEnd(H(0))+" "+W[1].padStart(H(1))+(W[2]?" "+W[2]:"")).trimEnd());return[R,..._,...L].join(` -`)},e.tipSide=k=>{let w=(e.summary?.series||[]).length;return w<3?"":k=w*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((k,w)=>k+e.bucketTotal(w),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(k=>k.active||k.allTimeSales||k.sales),e.familyLabel=k=>($r.find(w=>w.id===k)||{}).label||"",e.familyPlans=k=>(e.summary?.plans||[]).filter(w=>w.family===k),e.familySum=(k,w)=>e.familyPlans(k).reduce((R,b)=>R+(b[w]||0),0),e.familyMoney=(k,w,R)=>{if(!e.revenueOn())return"\u2014";let b=e.familyPlans(k);return b.some(P=>P[R]===!1)?"Incomplete":e.moneyText(b.reduce((P,D)=>o(P,D[w]),{}))},e.planTotals=()=>{let k=w=>(e.summary?.plans||[]).reduce((R,b)=>R+(b[w]||0),0);return{active:k("active"),sales:k("sales"),allTimeSales:k("allTimeSales")}},e.webhookState=()=>{let k=e.summary?.webhooks;return k?k.failed||k.reconciliationFailed?"bad":k.oldestPendingSeconds>900||k.unreviewedRevocations?"warn":"ok":"ok"},e.age=k=>k?Yn(k*1e3):"\u2014";let u=0;e.loadSummary=()=>{let k=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(w=>{if(k!==u)return;e.summaryLoading=!1;let R=w.data;if(!R||!R.subscriptions||!R.sales||!Array.isArray(R.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=R},w=>{k===u&&(e.summaryLoading=!1,e.summaryError=w&&w.data&&w.data.error||"Could not load billing figures.")})},e.setPeriod=k=>{if(e.period!==k){e.period=k;try{localStorage.setItem("admin.billing.period",k)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=k=>{e.query.state=k==="all"?"":k,e.query.page=1},e.stateCount=k=>k==="all"?["active","expired","revoked"].reduce((w,R)=>w+(e.stateCounts[R]||0),0):e.stateCounts[k]||0,e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let d=()=>{let k=[];e.query.plan&&k.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&k.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&k.push({key:"period",label:"Started",value:"last "+((e.periods.find(w=>w.id===e.query.period)||{}).label||e.query.period)}),e.chips=k};e.clearFilter=k=>{e.query[k]="",e.query.page=1},e.filterPlan=k=>{Object.assign(e.query,{plan:k,page:1});let w=document.getElementById("bl-grants");w&&w.scrollIntoView&&w.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(k=>e.query[k]).length,e.amountText=k=>{if(!k.amount)return"\u2014";let w=ws({[k.amount.currency]:k.amount.value})[0]||"\u2014";if(!k.amount.interval)return w;let R=k.amount.intervalCount>1?k.amount.intervalCount+" "+k.amount.interval+"s":k.amount.interval;return w+" / "+R},e.amountTitle=k=>k.amount?"Stripe list price"+(k.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[k.amountMissing]||"Revenue unavailable.",e.endText=k=>{if(k.never)return"Never ends";if(!k.until)return"\u2014";let w=Tr(k.until);return k.state!=="active"?(new Date(k.until){let w=(k.parts||[]).find(R=>R.planId==="author_pass");return!k.pack||!w||!w.until?"":(new Date(w.until)(k.parts||[]).map(w=>g[w.planId]||e.planName(w.planId)).join(", ").replace(/^./,w=>w.toUpperCase()),e.packPartsTitle=k=>"Paper pack: "+(k.parts||[]).map(w=>e.planName(w.planId)).join(", "),e.statusText=k=>(k.status||"unknown").replace(/_/g," "),e.revocationText=k=>k==="dispute"?"Disputed":k==="full_refund"?"Refunded":"Revoked",e.scopeHref=k=>k?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(k.id):k?.kind==="conference"?"/conference/"+encodeURIComponent(k.id):null;let m=0;function v(){let k=++m;e.grantsError=null;let w=Object.fromEntries(Object.entries(e.query).filter(([,R])=>R!==""&&R!=null));t.get("/api/admin/billing/grants",{params:w}).then(R=>{k===m&&(e.total=R.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=R.data?.results||[],e.stateCounts=R.data.stateCounts||{},e.statuses=R.data.statuses||[])},R=>{k===m&&(e.grantsError=R&&R.data&&R.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=v,e.loadSummary(),v(),d();let y=null,C=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let k=JSON.stringify({...e.query,page:0});if(k!==C&&e.query.page!==1){C=k,e.query.page=1;return}C=k,i.timeout.cancel(y),y=i.timeout(v,300),d()},!0)},Ep=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,r=i?new URLSearchParams(i.location.search):null,o=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(r?.get("state"))?r.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(r?.get("kind"))?r.get("kind"):"",e.emailPeriod=o.includes(r?.get("period"))?r.get("period"):"7d",e.emailSearch=r?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=D=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[D]||D,e.emailKindLabel=D=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[D]||D,e.emailTime=D=>D?new Date(D).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=D=>{if(!D)return"Not recorded";let L=new Date(D);return L.toLocaleString(void 0,{...e.emailPeriod==="all"||L.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=D=>D.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":D.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":D.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[D.httpStatus]||(D.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=D=>{e.selectedEmailId=e.selectedEmailId===D._id?null:D._id,e.emailCopyMessage="",e.emailCopiedValue=null};let d=!1,g=0,m=0,v="",y="",C=!1,k=null;e.copyEmail=async D=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(D)),d||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(D))}catch{d||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let w=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),R=()=>{if(i)try{let D=new URL(i.location.href);for(let[L,H]of Object.entries({...w(),state:e.emailState}))H?D.searchParams.set(L,H):D.searchParams.delete(L);i.history.replaceState(null,"",D.pathname+D.search+D.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=D=>u.reduce((L,H)=>L+(Number(D[H])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((D,L)=>D+e.emailDayTotal(L),0),e.jumpToEmailHistory=()=>{let D=i?.document?.querySelector("#email-history-title");D&&(D.focus({preventScroll:!0}),D.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=D=>{let L=typeof D=="string"?D:D?.date;if(!L)return"";let H=new Date(L+"T12:00:00Z");return Number.isNaN(H.getTime())?"":H.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let b=D=>{e.emailPage=D,e.selectedEmailId=null,k=null;let L=(D-1)*25+1,H=Math.min(D*25,e.emailRows.length);e.emailAnnouncement=`Page ${D}. Showing attempts ${L} to ${H}.`;let _=i?.document?.querySelector("#email-history-title");_&&(_.setAttribute("tabindex","-1"),_.focus({preventScroll:!0}),_.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let D=JSON.stringify(w());D!==y&&(e.emailSummary=null),y=D;let L=++m;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let H=await t.get("/api/admin/emails/summary",{params:w()});L===m&&(e.emailSummary=H.data)}catch{L===m&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{L===m&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(C),e.loadEmails=async(D=!1)=>{let L=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),H=L!==v;if(v=L,H&&(D=!1),D&&(e.emailLoading||!e.emailNextCursor))return;let _=++g;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=D?"Loading older emails.":"Loading email history.",H&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,k=null),D||(k=null),R();try{let W=await t.get("/api/admin/emails",{params:{...w(),state:e.emailState||void 0,before:D?e.emailNextCursor:void 0}});return _!==g?void 0:(e.emailRows=D?e.emailRows.concat(W.data.entries):W.data.entries,e.emailNextCursor=W.data.nextCursor,D||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,D&&k&&e.emailRows.length>(k-1)*25&&b(k),!0)}catch{_===g&&(C=D,e.emailError=D?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{_===g&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&b(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let D=e.emailPage+1,L=v;e.emailRows.length<=(D-1)*25&&e.emailNextCursor&&(k=D,await e.loadEmails(!0)),!d&&L===v&&e.emailPage!==D&&e.emailRows.length>(D-1)*25&&b(D)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=D=>(e.emailState=u.includes(D)?D:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let P;i?.setTimeout&&(P=i.setTimeout(()=>{let D=i.document?.querySelector(".emails-page .admin-nav"),L=D?.querySelector('[aria-current="page"]');D&&L&&(D.scrollLeft=Math.max(0,L.offsetLeft-D.offsetLeft-(D.clientWidth-L.offsetWidth)/2))},0)),e.on("dispose",()=>{d=!0,g++,m++,P!=null&&i.clearTimeout(P)}),e.refreshEmails()};var Sl=(e,t,s)=>{let i=e instanceof RegExp?Sp(e,s):e,r=t instanceof RegExp?Sp(t,s):t,o=i!==null&&r!=null&&Zv(i,r,s);return o&&{start:o[0],end:o[1],pre:s.slice(0,o[0]),body:s.slice(o[0]+i.length,o[1]),post:s.slice(o[1]+r.length)}},Sp=(e,t)=>{let s=t.match(e);return s?s[0]:null},Zv=(e,t,s)=>{let i,r,o,u,p,d=s.indexOf(e),g=s.indexOf(t,d+1),m=d;if(d>=0&&g>0){if(e===t)return[d,g];for(i=[],o=s.length;m>=0&&!p;){if(m===d)i.push(m),d=s.indexOf(e,m+1);else if(i.length===1){let v=i.pop();v!==void 0&&(p=[v,g])}else r=i.pop(),r!==void 0&&r=0?d:g}i.length&&u!==void 0&&(p=[o,u])}return p};var Np="\0SLASH"+Math.random()+"\0",Rp="\0OPEN"+Math.random()+"\0",Pl="\0CLOSE"+Math.random()+"\0",Tp="\0COMMA"+Math.random()+"\0",Pp="\0PERIOD"+Math.random()+"\0",xv=new RegExp(Np,"g"),eb=new RegExp(Rp,"g"),tb=new RegExp(Pl,"g"),sb=new RegExp(Tp,"g"),ob=new RegExp(Pp,"g"),ib=/\\\\/g,rb=/\\{/g,ab=/\\}/g,lb=/\\,/g,db=/\\\./g,ub=1e5,cb=4e6,pb=1e3,fb=1e3;function Nl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function mb(e){return e.replace(ib,Np).replace(rb,Rp).replace(ab,Pl).replace(lb,Tp).replace(db,Pp)}function hb(e){return e.replace(xv,"\\").replace(eb,"{").replace(tb,"}").replace(sb,",").replace(ob,".")}function Rl(e,t){for(let s=0;s=t}function oi(e,t,s,i,r,o){let u=[],p=0;for(let d=0;d=i)return u;let m=e[d]+t+s[g];if(!(o&&!m)){if(p+m.length>r)return u;u.push(m),p+=m.length}}return u}function kb(e,t,s,i){let r=e.split(/\.\./),o=[];if(r[0]===void 0||r[1]===void 0)return o;let u=Nl(r[0]),p=Nl(r[1]),d=Math.max(r[0].length,r[1].length),g=r.length===3&&r[2]!==void 0?Math.max(Math.abs(Nl(r[2])),1):1,m=bb;p0){let b=new Array(R+1).join("0");k<0?w="-"+b+w.slice(1):w=b+w}}if(C+w.length>i)break;o.push(w),C+=w.length}return o}function Tl(e,t,s,i,r,o,u){if(r>i)return[e];let p=[""],d=0,g=!1,m=!0;for(;;){let v=Sl("{","}",e);if(!v)return oi(p,e,[""],t,s,g);let y=v.pre;if(/\$$/.test(y)){if(p=oi(p,y+"{"+v.body+"}",[""],t,s,g&&!v.post.length),m=!1,!v.post.length)break;e=v.post;continue}let C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(v.body),k=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(v.body),w=C||k,R=v.body.indexOf(",")>=0;if(!w&&!R){if(d=t||L+re.length>s)break e;b.push(re),L+=re.length}}}}if(p=oi(p,y,b,t,s,g&&!v.post.length),!v.post.length)break;e=v.post}return p}var Cb={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},ii=e=>e.replace(/[[\]\\-]/g,"\\$&"),Dl=/$./,Ap=(e,t,s=!1,i)=>{let r=b=>{let P=i?b.normalize(i):b;return[...P].length===1?P:b},o=t;if(e.charAt(o)!=="[")throw new Error("not in a brace expression");let u=[],p=[],d=o+1,g=!1,m=!1,v=!1,y=o,C="";e:for(;dC.codePointAt(0)?u.push(ii(C)+"-"+ii(P)):P===C&&u.push(ii(P)),C="",d+=b.length;continue}if(e.startsWith("-]",d+b.length)){u.push(ii(P+"-")),d+=b.length+1;continue}if(e.startsWith("-",d+b.length)){C=P,d+=b.length+1;continue}u.push(ii(P)),d+=b.length}if(y({t:"lit",ch:e}),Sb=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),Vp=e=>new RegExp(`^${Sb(e)}$`,"iu"),Br=new Map,qp=e=>{let t=Br.get(e);return t||(t=Vp(e),Br.size>=1e3&&Br.clear(),Br.set(e,t)),t},Ll=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},Nb=(e,t,s,i)=>{let r=[];for(let o=0;o{let t=new Map,s=[];return e.forEach((i,r)=>{i.t==="open"?s.push(r):i.t==="close"&&s.length&&t.set(s.pop(),r)}),t},Lp=(e,t,s,i,r)=>{let o=[],u=[o];for(let p=s;p{let s=[],i="",r=()=>{for(let o of i.normalize(t))s.push(ks(o));i=""};for(let o of e){if(o.t==="lit"){i+=o.ch;continue}r(),s.push(o.t==="ext"?{...o,alts:o.alts.map(u=>$p(u,t))}:o)}return r(),s},Tb=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),r=(p,d)=>p.reduceRight((g,m)=>o(m,g),d),o=(p,d)=>{switch(p.t){case"lit":let y=t?qp(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:y,next:d};case"any":case"star":return{t:p.t,id:s++,next:d};case"class":return{t:"class",id:s++,re:p.re,next:d}}let g=y=>p.alts.map(C=>r(C,y));switch(p.type){case"@":return i(g(d));case"?":return i([d,...g(d)]);case"!":return{t:"neg",id:s++,sub:i(g(Al)),next:d}}let m=i([]),v=i(g(m));return m.out.push(d,v),p.type==="*"?m:v};return[r(e,Al),s]},Pb=e=>{let t=[],s=new Set,i=o=>o.t==="match"?"match":String(o.id),r=(o,u)=>{if(o.t==="match"||s.has(o))return;s.add(o);let p=d=>t.push(`${u}${o.id}: ${d}`);switch(o.t){case"split":p(`split -> ${o.out.map(i).join(", ")}`);for(let d of o.out)r(d,u);return;case"neg":return p(`!(${i(o.sub)}) -> ${i(o.next)}`),r(o.sub,u+" "),r(o.next,u);case"lit":p(`${JSON.stringify(o.ch)} -> ${i(o.next)}`);break;case"class":p(`${o.re} -> ${i(o.next)}`);break;default:p(`${o.t==="any"?"?":"*"} -> ${i(o.next)}`)}r(o.next,u)};return r(e,""),[`start -> ${i(e)}`,...t].join(` -`)},Il=class{constructor(t){lt(this,"gen");lt(this,"threads",[]);lt(this,"match",!1);lt(this,"runs",[]);lt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Fp=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&Fp(i.state,s.state))),Ip=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),Cs,ts,Ol,Ml,ai=class{constructor(t,s,i){He(this,ts);lt(this,"dots");lt(this,"dotStart");He(this,Cs);this.dots=t,this.dotStart=s,Ke(this,Cs,i)}state(){return new Il(++ue(this,Cs).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Al.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,r){switch(s.t){case"split":if(!ze(this,ts,Ol).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,r);return;case"neg":if(!ze(this,ts,Ol).call(this,t,s))return;let o=this.state();return this.add(o,s.sub,i,!1),this.done(o),this.addRun(t,{t:"run",neg:s,state:o},i,r);case"star":if(this.restricted(i,r))return;ze(this,ts,Ml).call(this,t,s)&&this.add(t,s.next,i,r);return;case"match":t.match=!0;return;default:ze(this,ts,Ml).call(this,t,s)}}addRun(t,s,i,r){for(let o of t.runs)if(o.neg===s.neg&&Fp(o.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,r)}step(t,s,i,r){let o=this.state();for(let u of t.threads)switch(u.t){case"lit":Ll(u,s)&&this.add(o,u.next,i+1,r);break;case"any":this.restricted(i,r)||this.add(o,u.next,i+1,r);break;case"class":!this.restricted(i,r)&&u.re.test(s)&&this.add(o,u.next,i+1,r);break;case"star":this.restricted(i,r)||this.add(o,u,i+1,r)}if(!this.restricted(i,r))for(let u of t.runs){if(u.state.dead){this.addRun(o,u,i+1,r);continue}let p=this.step(u.state,s,i,!1);this.addRun(o,{t:"run",neg:u.neg,state:p},i+1,r)}return this.done(o)}};Cs=new WeakMap,ts=new WeakSet,Ol=function(t,s){let{seen:i}=ue(this,Cs);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Ml=function(t,s){let{has:i}=ue(this,Cs);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var Up=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${Up(i.state)})`);return`${t}|${s.sort().join("|")}`},Db=1<<18,oo,io,Qn,Es,Jn,Zn,xn,mn,ql,zr,Bp,Vl=class{constructor(t,s){He(this,mn);He(this,oo);He(this,io,new Map);He(this,Qn,0);He(this,Es);He(this,Jn);He(this,Zn);He(this,xn);Ke(this,oo,t),Ke(this,Zn,new ai(!1,!1,s)),Ke(this,xn,new ai(!1,!0,s))}start(t){if(t){if(ue(this,Jn))return ue(this,Jn);let i=ue(this,xn).state();return ue(this,xn).add(i,ue(this,oo),0,!0),Ke(this,Jn,ze(this,mn,ql).call(this,ue(this,xn).done(i)))}if(ue(this,Es))return ue(this,Es);let s=ue(this,Zn).state();return ue(this,Zn).add(s,ue(this,oo),0,!0),Ke(this,Es,ze(this,mn,zr).call(this,ue(this,Zn).done(s)))}next(t,s){let i=s.charCodeAt(0),r=i<128?void 0:t.next.get(s);if(r)return r;let o=t===ue(this,Jn)?ze(this,mn,zr).call(this,ue(this,xn).step(t.state,s,0,!0)):ze(this,mn,zr).call(this,ue(this,Zn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Ke(this,Qn,ue(this,Qn)+128)),t.ascii[i]=o):t.next.set(s,o),fd(this,Qn)._++,o}};oo=new WeakMap,io=new WeakMap,Qn=new WeakMap,Es=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,xn=new WeakMap,mn=new WeakSet,ql=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},zr=function(t){let s=Up(t),i=ue(this,io).get(s);if(i)return i;ue(this,Qn)>Db&&ze(this,mn,Bp).call(this);let r=ze(this,mn,ql).call(this,t);return ue(this,io).set(s,r),Ke(this,Qn,ue(this,Qn)+(s.length+1)),r},Bp=function(){ue(this,io).clear(),Ke(this,Qn,0),Ke(this,Es,void 0),Ke(this,Jn,void 0)};var Ab=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},Ib=(e,t,s,i)=>{let r=0,o=s,u=-1,p=0;for(;o{let t=0,s=0;for(let i of e){let[r,o]=Ob(i);t+=r,s+=o}return[t,s]},Ob=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(Hp),s=Math.min(...t.map(o=>o[0])),i=Math.max(...t.map(o=>o[1])),r=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,r]:[s,r]},Op=(e,t,s)=>{for(let i=0;iVb.test(e)?[...e]:e,Mp=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},es,ro,Ss,jr,Ns,di,_r,Rs,ui,ci,pi,zn,Tn,ao,lo,fi,Gr,fn,Ts,ri,li=class{constructor(t,s={}){He(this,Ts);lt(this,"pattern");lt(this,"options");He(this,es);He(this,ro);He(this,Ss);He(this,jr);He(this,Ns);He(this,di,!1);He(this,_r);He(this,Rs);He(this,ui,!1);He(this,ci,0);He(this,pi,1/0);He(this,zn,[]);He(this,Tn,[]);He(this,ao);He(this,lo);He(this,fi,!1);He(this,Gr);He(this,fn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:r=!1,normalize:o}=s;Ke(this,fn,o===!0?"NFC":o||void 0);let u=/^[?*+@]\(\)$/.test(t),p=Nb(t,i,r||u,ue(this,fn)),[d]=Lp(p,Rb(p),0,p.length,!0);ue(this,fn)&&(d=$p(d,ue(this,fn)));let[g,m]=Tb(d,i);if(Ke(this,es,g),Ke(this,ro,m),d.every(v=>v.t==="lit"))Ke(this,Ns,d.map(v=>v.ch).join("")),Ke(this,di,i);else{let v=k=>k.t!=="lit"?void 0:i?{ch:k.ch,re:qp(k.ch)}:{ch:k.ch};for(let k of d){let w=v(k);if(!w)break;ue(this,zn).push(w)}for(let k=d.length-1;k>=0;k--){let w=v(d[k]);if(!w)break;ue(this,Tn).unshift(w)}Ke(this,fi,!!(ue(this,zn).length||ue(this,Tn).length)),i||(Ke(this,ao,ue(this,zn).map(k=>k.ch).join("")),Ke(this,lo,ue(this,Tn).map(k=>k.ch).join(""))),Ke(this,Rs,Ab(ue(this,es))?.slice(ue(this,zn).length,-ue(this,Tn).length||void 0)),Ke(this,ui,!!ue(this,Rs)?.every(k=>k.t==="star"||k.t==="any"));let[y,C]=Hp(d);Ke(this,ci,y),Ke(this,pi,C)}}test(t){return ue(this,fn)?(Mp(t),ze(this,Ts,ri).call(this,t.normalize(ue(this,fn)))):Mb.test(t)?(Mp(t),ze(this,Ts,ri).call(this,t,[...t])):ze(this,Ts,ri).call(this,t,t)}testUnchecked(t){return ze(this,Ts,ri).call(this,ue(this,fn)?t.normalize(ue(this,fn)):t)}toString(){return Pb(ue(this,es))}};es=new WeakMap,ro=new WeakMap,Ss=new WeakMap,jr=new WeakMap,Ns=new WeakMap,di=new WeakMap,_r=new WeakMap,Rs=new WeakMap,ui=new WeakMap,ci=new WeakMap,pi=new WeakMap,zn=new WeakMap,Tn=new WeakMap,ao=new WeakMap,lo=new WeakMap,fi=new WeakMap,Gr=new WeakMap,fn=new WeakMap,Ts=new WeakSet,ri=function(t,s){if(ue(this,Ns)!==void 0)return ue(this,di)?(ue(this,_r)??Ke(this,_r,Vp(ue(this,Ns)))).test(t):t===ue(this,Ns);let i=ue(this,ci),r=ue(this,pi);if(s===void 0){let m=t.length,v=m+1>>1;if(mr)return!1;(vr)&&(s=Hr(t))}if(s!==void 0&&(s.lengthr))return!1;let o=ue(this,zn).length;if(ue(this,fi))if(ue(this,ao)!==void 0&&ue(this,lo)!==void 0){if(!t.startsWith(ue(this,ao))||!t.endsWith(ue(this,lo)))return!1}else{s??(s=Hr(t));let m=s.length-ue(this,Tn).length;if(!Op(ue(this,zn),s,0)||!Op(ue(this,Tn),s,m))return!1}let u=!this.options.dot&&t.startsWith(".");if(ue(this,Rs)){if(t==="."||t===".."||u&&!o)return!1;if(ue(this,ui))return!0;s??(s=Hr(t));let m=s.length-ue(this,Tn).length;return Ib(ue(this,Rs),s,o,m)}if(s??(s=Hr(t)),t==="."||t===".."){ue(this,Ss)??Ke(this,Ss,Ip(ue(this,ro)));let m=ue(this,jr)??Ke(this,jr,new ai(!0,!1,ue(this,Ss))),v=m.state();m.add(v,ue(this,es),0,!0);let y=m.done(v);for(let C=0;C{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var ns=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var Ps=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Zt=(e,t,s={})=>(mi(t),!s.nocomment&&t.charAt(0)==="#"?!1:Lb(t,s).match(e)),uo=new Map,qb=256,Lb=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=uo.get(s);return i?uo.delete(s):(i=new Ds(e,{...t}),uo.size>=qb&&uo.delete(uo.keys().next().value)),uo.set(s,i),i},Kp=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",zp={win32:{sep:"\\"},posix:{sep:"/"}},$b=Kp==="win32"?zp.win32.sep:zp.posix.sep;Zt.sep=$b;var Et=Symbol("globstar **");Zt.GLOBSTAR=Et;var Fb=(e,t={})=>s=>Zt(s,e,t);Zt.filter=Fb;var jn=(e,t={})=>Object.assign({},e,t),Ub=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;let t=Zt;return Object.assign((i,r,o={})=>t(i,r,jn(e,o)),{Minimatch:class extends t.Minimatch{constructor(r,o={}){super(r,jn(e,o))}static defaults(r){return t.defaults(jn(e,r)).Minimatch}},unescape:(i,r={})=>t.unescape(i,jn(e,r)),escape:(i,r={})=>t.escape(i,jn(e,r)),filter:(i,r={})=>t.filter(i,jn(e,r)),defaults:i=>t.defaults(jn(e,i)),braceExpand:(i,r={})=>t.braceExpand(i,jn(e,r)),match:(i,r,o={})=>t.match(i,r,jn(e,o)),sep:t.sep,GLOBSTAR:Et})};Zt.defaults=Ub;var Yp=(e,t={})=>(mi(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Dp(e,{max:t.braceExpandMax}));Zt.braceExpand=Yp;var Bb=(e,t,s={})=>{let i=new Ds(t,s);return e=e.filter(r=>i.match(r)),i.options.nonull&&!e.length&&e.push(t),e};Zt.match=Bb;var jp=/[?*]|[+@!]\(.*?\)|\[|\]/,Xp=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),Gp=(e,t,s,i,r)=>ss(e,t)?s:i!==void 0&&ss(e,i)?r:-1,Hl=e=>e==="."||e==="..",Fl=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),Kr=e=>typeof e=="string"&&/^unc$/i.test(e),Ul=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:Kr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==Et&&i!==void 0&&i!==""&&i!==Et?t:-1},Wr=(e,t)=>!Hl(e)&&(t||!e.startsWith(".")),hi=(e,t,s,i,r)=>{for(let o=t;o=s||Xr(e.charCodeAt(p),r))return!0}let u=zl(e,o,r);if(u===-1)return!1;for(o=u+1;ot==="/"?e===47:t==="\\"?e===92:e===47||e===92,zl=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),r=e.indexOf("\\",t);return i===-1?r:r===-1?i:Math.min(i,r)},Wp=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),Bl={},os,po,is,_n,fo,mo,rs,yi,ho,vi,je,Yr,gi,Qp,Jp,Zp,xp,ef,tf,jl,nf,sf,_l,co,Gl,Ds=class{constructor(t,s={}){He(this,je);lt(this,"options");lt(this,"set");lt(this,"pattern");lt(this,"windowsPathsNoEscape");lt(this,"nonegate");lt(this,"negate");lt(this,"comment");lt(this,"empty");lt(this,"preserveMultipleSlashes");lt(this,"partial");lt(this,"globSet");lt(this,"globParts");lt(this,"nocase");lt(this,"isWindows");lt(this,"platform");lt(this,"windowsNoMagicRoot");lt(this,"maxGlobstarRecursion");He(this,os);He(this,po);He(this,is);He(this,_n);He(this,fo,[]);He(this,mo,[]);He(this,rs,[]);He(this,yi,new Map);He(this,ho,!1);He(this,vi,new WeakMap);mi(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||Kp,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],Ke(this,os,!this.preserveMultipleSlashes),Ke(this,is,(s.optimizationLevel??1)>=2);let r=s.normalize;Ke(this,_n,r===!0?"NFC":r||void 0),this.make();let o=this.set.map(u=>ze(this,je,gi).call(this,u));Ke(this,rs,this.set.map((u,p)=>ue(this,os)&&u.length-1>o[p])),Ke(this,fo,this.set.map((u,p)=>{let d=ue(this,rs)[p]?u.length-1:u.length,g=u.slice(o[p]+1,d).filter(m=>typeof m=="string"&&!!m);return[...new Set(g)]})),Ke(this,po,ue(this,fo).some(u=>u.length)),Ke(this,mo,this.set.map((u,p)=>{let[d,g,m]=u;if(ue(this,rs)[p]&&u.length===2&&d===Et&&g!==Et)return"tail";if(ue(this,rs)[p]&&s.matchBase&&u.length===1&&d!==Et&&d!=="")return"base";if(!(!ue(this,os)||o[p]!==-1)){if(u.length===3&&d===Et&&m===Et&&g!==Et&&g!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&g===Et&&d!==Et&&d!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(o=>ze(this,je,Gl).call(this,o));this.globParts=this.preprocess(i),Ke(this,ho,!0);let r=this.globParts.map((o,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let d=o[2]==="?"&&Kr(o[3])?6:4,g=o[0]===""&&o[1]===""&&(o[2]==="?"||!jp.test(o[2]))&&o.slice(3,d).every(v=>!jp.test(v)),m=/^[a-z]:/i.test(o[0]);if(g)return[...o.slice(0,d).map(v=>ze(this,je,Yr).call(this,v)),...o.slice(d).map(v=>this.parse(v))];if(m)return[ze(this,je,Yr).call(this,o[0]),...o.slice(1).map(v=>this.parse(v))]}return o.map(d=>this.parse(d))});if(this.set=r.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof li||u[i]===Bl)||!zb(this.globParts[p][i]))return;let d=[...this.globParts[p]];d[i]="";let g=`${u.length}/${d.join("/")}`,m=r.get(g);m?m.push(p):r.set(g,[p])});let o=new Set;for(let u of r.values()){if(u.length<2)continue;let[p,...d]=u,m=`@(${u.map(v=>this.globParts[v][i]).join("|")})`;this.globParts[p][i]=m,this.set[p][i]=this.parse(m);for(let v of d)o.add(v)}o.size&&(t=!0,this.set=this.set.filter((u,p)=>!o.has(p)),this.globParts=this.globParts.filter((u,p)=>!o.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let r=0;r=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let r=i;for(;s[r+1]==="**";)r++;r!==i&&s.splice(i,r-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=ze(this,je,gi).call(this,s)+1;return s=s.reduce((r,o)=>{let u=r[r.length-1];return o==="**"&&u==="**"?r:o===".."&&r.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(r.pop(),r):(r.push(o),r)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let r of t){let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let d=o;for(;r[d+1]==="**";)d++;d>o&&r.splice(o+1,d-o);let g=r[o+1],m=r[o+2],v=r[o+3];if(g!==".."||!m||m==="."||m===".."||!v||v==="."||v===".."||t.length>=s)continue;i=!0,r.splice(o,1);let y=r.slice(0);y[o]="**",t.push(y),o--}if(!this.preserveMultipleSlashes){for(let d=1;d1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let r=0,o=0,u=[],p="";for(;r=0;g--)d=o[g];for(let g=0;g=0){let b=w;for(;b>0&&Xr(t.charCodeAt(b-1),s);)b--;p=b===0?0:Wp(t,b-1,s)+1,u=t.slice(p,b)}let R=ue(this,is)&&(Hl(r)||r===""&&u!==void 0&&Hl(u));i=R?-1:1,y=!R}let C=-1;if(y&&typeof v=="string"&&(C=Gp(v,r,o,u,p),C===-1))continue;if(ue(this,po)){for(let w of ue(this,fo)[g])if(!t.includes(w))continue e}if(y&&typeof v=="object"&&(C=Gp(v,r,o,u,p),C===-1))continue;let k=ue(this,mo)[g];if(k==="base"&&y)return"yes";if(k==="tail"&&y){if(ue(this,is)&&hi(t,0,C,!0,s))return"maybe";if(!hi(t,0,C,d,s))return"yes";continue}if(k==="mid"||k==="head"){let w=ze(this,je,Zp).call(this,t,m,k==="head",d,s);if(w!=="no")return w;continue}return"maybe"}return"no"},Jp=function(t,s,i){let r=!!this.options.dot,o=t.length;if(i==="head"){if(o<2||!ss(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,d)))&&!hi(t,g,t.length,r,o))return"yes";if(i||hi(t,p,g,r,o))return"no";p=g}return"no"},xp=function(t){let s=$l;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===ue(this,_n)?s:void 0},ef=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,r=ze(this,je,Gl).call(this,s?t.split("\\").join("/"):t),o=ue(this,_n);return o&&(r=r.map(u=>u.normalize(o))),$l={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:o,parts:r},$l},tf=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let v=t.length-d.length;if(ze(this,je,co).call(this,t,d,i,v,0))m=d.length;else{if(t[t.length-1]!==""||r+d.length===t.length||(v--,!ze(this,je,co).call(this,t,d,i,v,0)))return!1;m=d.length+1}}if(!p.length){let v=!!m;for(let y=r;y{b[1]=k-w[P]});let R={head:g,body:m,tail:v,segments:y};return r[o]=R,R},_l=function(t,s,i,r,o,u,p,d,g){let m=s[o];if(!m){if(u)return r>=i||r===i-1&&t[r]==="";for(let k=r;ke.lastIndexOf(t)===s)}function Kl(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:r,directoryOnly:o,body:u}=jb(s);return{negated:i,directoryOnly:o,matcher:new Ds(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!r&&!u.includes("/")})}});return(s,i=!1)=>{let r=(s||"").replace(/^\/+/,"");if(!r)return!1;let o=r.split("/"),u=o.slice(0,-1).map((d,g)=>o.slice(0,g+1).join("/")),p=i;for(let d of t){if(d.negated?!p:p)continue;(d.directoryOnly?u:[...u,r]).some(m=>d.matcher.match(m))&&(p=!d.negated)}return p}}var Mce=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function Yl(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var of=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function rf(e){let t=[];return String(e||"").split(` -`).forEach((s,i)=>{let{term:r}=Yl(s.trim());if(!r)return;let o=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,r=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||r>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function Qr(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(as.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var Jr="XXXX",Gb=e=>{Jr=e||"XXXX"},Wb=(e=Jr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},lf=(e,t=Jr)=>{let s=Wb(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,r=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=[];for(;r.nextNode();)o.push(r.currentNode);for(let u of o){let p=u.nodeValue,d=u.parentElement;if(!p.includes(t)||!d||d.closest("script, style, mark.redaction, .mermaid"))continue;let g=d.closest('code[class*="language-"]');if(g&&!g.contains(e))continue;let m=i.createDocumentFragment(),v=0;for(let y of p.matchAll(s)){m.append(p.slice(v,y.index));let C=i.createElement("mark");C.className="redaction",C.title="Redacted by Anonymous GitHub",C.textContent=y[0],m.append(C),v=y.index+y[0].length}m.append(p.slice(v)),u.replaceWith(m)}},bi=/\bXXXX-\d+\b/g,to=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)bi.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&bi.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let r of i){bi.lastIndex=0;let o=t.createDocumentFragment(),u=0,p,d=r.nodeValue;for(;p=bi.exec(d);){o.appendChild(t.createTextNode(d.slice(u,p.index)));let g=t.createElement("mark");g.className="redact-chip",g.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let m=p[0].slice(5);g.textContent="";let v=t.createElement("i");v.textContent=m,g.appendChild(v),g.dataset.term=p[0],g.setAttribute("aria-label","Redacted term "+m);let y=/^[.,;:!?)\]]+/.exec(d.slice(p.index+p[0].length));if(y){let C=t.createElement("span");C.className="redact-glue",C.appendChild(g),C.appendChild(t.createTextNode(y[0])),o.appendChild(C),u=p.index+p[0].length+y[0].length}else o.appendChild(g),u=p.index+p[0].length}o.appendChild(t.createTextNode(d.slice(u))),r.parentNode.replaceChild(o,r)}return t.body.firstChild.innerHTML},Zr=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{lf(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let r=t.ownerDocument.createElement("i");r.textContent=s[1],t.appendChild(r)})}),window.Prism.redactionHook=!0)},df=(e,t=Jr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return lf(s.body,t),s.body.innerHTML};async function Xl(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 s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Kb(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var uf=function(e,t,s,i){e.previewTabKeydown=Kb,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let r=R=>{e.headerShowSupport=!(R?.grants||[]).some(P=>["active","paid","past_due"].includes(P.status)&&new Date(P.until).getTime()>Date.now());let b=(R?.grants||[]).some(P=>["author_monthly","author_annual"].includes(P.planId)&&["active","paid","past_due"].includes(P.status)&&new Date(P.until).getTime()>Date.now());e.headerCanUpgrade=!!R?.enabled&&R.checkoutEnabled!==!1&&!b&&(R.plans||[]).some(P=>["author_monthly","author_annual"].includes(P.id))};e.on("billing:updated",(R,b)=>r(b)),e.on("billing:pending",(R,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let o=$t(),u=Tt(),p=!1,d=()=>{p=!1;let R=document.querySelector("nav.navbar.navbar-expand-lg");if(!R||(R.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=R.querySelector(".navbar-collapse"),P=()=>R.scrollWidth>R.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;P()&&R.classList.add("nav-fit-1"),P()&&R.classList.add("nav-fit-2")},g=()=>{p||(p=!0,Je(()=>u.timeout(d,0)))};o(window,"resize",g),e.on("routeChange",g),e.on("billing:updated",g),document.fonts?.ready&&document.fonts.ready.then(g).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(R){let b=e.toasts.indexOf(R);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(R){return e.toasts.push(R),i(function(){e.removeToast(R)},8e3),R};let m=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=m.test(s.path()),e.darkMode=function(R){localStorage.setItem("darkMode",R),e.isDarkMode=R;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),R)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let P=document.createElement("link");P.href=b,P.rel="stylesheet",document.head.append(P)}e.emit("dark-mode",R)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let v;e.respondToEmailPrompt=async R=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:R,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});R==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,v?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function y(){t.get("/api/user").then(R=>{R&&(e.user=R.data),g(),e.user?.username?wr(t).then(b=>r(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(v=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}y();function C(){t.get("/api/options").then(R=>{R&&(e.site_options=R.data),Gb(R?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}C();function k(){t.get("/api/message").then(R=>{R&&(e.generalMessage=R.data)},()=>{e.generalMessage=null})}k();function w(R,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=m.test(s.path())}e.on("routeChange",w),e.on("routeUpdate",w)},cf=function(e,t){let s=$t(),i=Tt();e.faqQuery="",e.faqResults=0;let r=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=r(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(d=>{let g=0;d.querySelectorAll(":scope > .panel").forEach(y=>{let C=y.dataset.faqText||(y.dataset.faqText=r(y.textContent)),k=u.every(w=>C.includes(w));y.classList.toggle("faq-hit",u.length>0&&k),y.hidden=u.length>0&&!k,k&&g++});let m=u.length>0&&g===0;d.hidden=m;let v=d.previousElementSibling;v?.classList.contains("faq-cat")&&(v.hidden=m),p+=g}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let o=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let d=document.getElementById(p.getAttribute("aria-labelledby"));d?.setAttribute("tabindex","-1"),d?.focus({preventScroll:!0}),d?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(o,0)),s(window,"hashchange",o),i.timeout(o,0)},pf=function(e,t,s,i,r){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(m=>["author_monthly","author_annual"].includes(m.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Je(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(m=>["author_monthly","author_annual"].includes(m.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(m=>m.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(m=>br(m.id)).sort((m,v)=>+(v.id==="repo_pack")-+(m.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(m=>m.status!=="removed"),e.openProfileAddon=m=>{m&&(e.profileAddonId=m),e.showRepositoryPass=!0,e.billingRepository="",Je(()=>{let v=document.getElementById("settings-addons-title");v?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),v?.focus?.({preventScroll:!0})})};let o=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(m=>m.id!=="repo_pack").sort((m,v)=>o.indexOf(m.id)-o.indexOf(v.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(m=>m.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((m,v)=>(m.amount??1/0)-(v.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((m,v)=>+(m.interval==="year")-+(v.interval==="year")),e.profilePackSummary=m=>m.parts.map(v=>v.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(v)} until ${e.billingDate(v.until)}`).join(" \xB7 "),e.profileAddonFeatures=m=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[m]||[],e.profileAddonBlurb=m=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[m]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(m=>m.recurring&&["active","overdue"].includes(m.status)),e.profileRepositoryExpiry=m=>m.status==="expired"?"expired":m.expirationMode==="never"?"never expires":m.expirationDate?"expires "+e.billingDate(m.expirationDate):"no date",e.profileAnnualSavings=()=>{let m=e.profileAuthorPlans().find(y=>y.interval==="month")?.amount,v=e.profileAuthorPlans().find(y=>y.interval==="year")?.amount;return m&&v&&v(e.billing?.purchases||[]).filter(v=>["active","overdue"].includes(v.status)===m),e.profilePurchaseStatus=m=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[m.status]||m.status,e.profilePurchaseTerm=m=>{let v=m.status&&!["active","overdue"].includes(m.status);if(m.recurring)return v?m.until?"Ended "+e.billingDate(m.until):"":(m.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(m.until);if(m.planId==="repo_pack"){let y=m.parts.map(C=>C.until).filter(Boolean).map(C=>new Date(C).getTime());return v||!y.length?"":"Until "+e.billingDate(new Date(Math.max(...y)))}return m.until?(v||new Date(m.until).getTime()e.profileAddonPlans().find(m=>m.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(m=>["author_monthly","author_annual"].includes(m.planId)&&["active","paid","past_due"].includes(m.status)&&new Date(m.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(m=>["conference_workshop","conference","conference_large"].includes(m.id)&&m.amount!=null).sort((m,v)=>m.amount-v.amount)[0],e.profileGrantName=m=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[m.planId]||m.planId,kr(e,t,()=>r.load().then(m=>{e.quota=m},console.error),{portalMessage:()=>{let m=e.profileAuthorGrant();return m?m.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(m.until)}.`:`Your subscription renews on ${e.billingDate(m.until)}.`:"Your billing details are up to date."}}),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 u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let m=await t.get("/github/connections/email");e.accountEmail=m.data.notificationEmail||"",u=m.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let m=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=m.data.notificationEmail,e.user&&(e.user.notificationEmail=m.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(),r.load().then(m=>{e.quota=m},console.error);let p=vl(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function d(){t.get("/api/user/default").then(m=>{let v=m.data||{};v.terms&&(e.terms=v.terms.join(` +`)],{type:"text/csv"}),b=document.createElement("a");b.href=URL.createObjectURL(R),b.download=i.username+"-repositories.csv",b.click()},e.showStatusMessage=y=>{let C=y.statusMessage||"(no message)";window.prompt(`Status message for ${y.repoId} (${y.status}):`,C)},e.fetchGithubInfo=y=>{let C=window.open("","_blank");C&&C.document.write("
Loading GitHub info for "+y.repoId+"...
"),t.get("/api/admin/repos/"+y.repoId+"/github").then(k=>{C&&(C.document.open(),C.document.write('
'+JSON.stringify(k.data,null,2).replace(/[<>]/g,w=>w==="<"?"<":">")+"
"),C.document.close())},k=>{let w=k&&k.data?JSON.stringify(k.data,null,2):String(k);C&&(C.document.body.innerHTML='
'+w+"
")})};function d(y){t.get("/api/admin/users/"+y+"/repos",{}).then(C=>{e.repositories=C.data},C=>{console.error(C)})}function g(y){t.get("/api/admin/users/"+y,{}).then(C=>{e.userInfo=C.data,e.loadEntityErrors()},C=>{console.error(C)})}El(e,t,()=>/^[a-f0-9]{24}$/.test(e.userInfo?._id||"")?{userId:e.userInfo._id}:null),g(i.username),d(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>g(i.username),y=>console.error(y))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>g(i.username),y=>console.error(y))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>g(i.username),y=>console.error(y))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>g(i.username),y=>console.error(y))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function m(){t.get("/api/admin/tokens").then(y=>{e.tokens=y.data||[]},y=>{y.status!==401&&y.status!==403&&console.error(y)})}m(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(y=>{e.tokenForm.plaintext=y.data.token,e.tokenForm.name="",m()},y=>console.error(y))},e.revokeToken=y=>{confirm(`Revoke token "${y.name}"?`)&&t.delete("/api/admin/tokens/"+y.id).then(()=>m(),C=>console.error(C))},e.removeCache=y=>{confirm("Remove cached files for "+y.repoId+"?")&&t.delete("/api/admin/repos/"+y.repoId).then(()=>d(i.username),C=>console.error(C))},e.removeRepository=y=>{confirm("Remove repository "+y.repoId+"?")&&t.delete("/api/repo/"+y.repoId+"/").then(()=>d(i.username),C=>console.error(C))},e.updateRepository=y=>{let C=ut({title:`Refreshing ${y.repoId}...`,date:new Date,body:`The repository ${y.repoId} is going to be refreshed.`});e.toasts.push(C),t.post(`/api/repo/${y.repoId}/refresh`).then(k=>{k.data.status=="ready"?C.title=`${y.repoId} is refreshed.`:C.title=`Refreshing of ${y.repoId}.`},k=>{C.title=`Error during the refresh of ${y.repoId}.`,C.body=k.body})},e.getGitHubRepositories=y=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(C=>{e.userInfo.repositories=C.data})};let v=null;e.watch("query",()=>{r.timeout.cancel(v),v=r.timeout(()=>{d(i.username)},500)},!0)},kp=function(e,t,s){let i=Pt(),r=Lt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.listLoaded=!1,e.listLoading=!0,e.totalPage=0,e.statusCounts=[];let o=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};r(document,"keydown",o),e.on("dispose",()=>document.removeEventListener("keydown",o)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let u=()=>{let k=[];(e.query.dateFrom||e.query.dateTo)&&k.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=k};e.statusCountFor=k=>{let w=(e.statusCounts||[]).find(R=>R._id===k);return w?w.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",d={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},g=loadFilterPrefs(p)||{};e.query=Object.assign({},d,g,{page:1,search:""});let m=s.search();m.search&&(e.query.search=m.search);let v="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(v)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let w=Object.assign({},e.query);delete w.page,e.presets=(e.presets||[]).filter(R=>R.name!==k),e.presets.push({name:k,query:w}),localStorage.setItem(v,JSON.stringify(e.presets))},e.applyPreset=k=>{Object.assign(e.query,k.query,{page:1})},e.deletePreset=k=>{e.presets=(e.presets||[]).filter(w=>w.name!==k.name),localStorage.setItem(v,JSON.stringify(e.presets))},e.removeConference=k=>{confirm("Remove conference "+k.conferenceID+"?")&&t.delete("/api/admin/conferences/"+k.conferenceID).then(()=>y(),w=>console.error(w))},e.exportCsv=()=>{let k=new URLSearchParams(Object.entries(e.query).filter(([,w])=>w!==""&&w!==!1&&w!=null));k.set("format","csv"),k.set("limit","10000"),window.open("/api/admin/conferences?"+k.toString(),"_blank")},e.fetchError=null;function y(){e.fetchError=null,so(e),t.get("/api/admin/conferences",{params:e.query}).finally(()=>Nl(e)).then(k=>{e.total=k.data.total,e.totalPage=Math.ceil(k.data.total/e.query.limit),e.conferences=k.data.results,e.statusCounts=k.data.statusCounts||[]},k=>{e.fetchError=k&&k.data&&k.data.error||"Failed to load conferences",console.error(k)})}Br(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:k=>e.statusCountFor(k),onChange:()=>{e.query.page=1}}),y();let C=null;e.watch("query",()=>{i.timeout.cancel(C),so(e),C=i.timeout(y,500);let{page:k,search:w,...R}=e.query;saveFilterPrefs(p,R),u()},!0),u()},Cp=function(e,t,s,i,r){let o=Pt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},Br(e,{flags:()=>e.stateFilter,keys:e.allStates,count:R=>(e.jobs||[]).filter(b=>b._state===R).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(R=>e.stateFilter[R._state]),e.jobProgressPct=R=>R?._state==="completed"?100:R&&R.progress&&typeof R.progress=="object"&&typeof R.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(R.progress.percent))):typeof R.progress=="number"?Math.max(0,Math.min(100,Math.round(R.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=R=>{if(R?._state==="failed")return Rr(R.failedReason||"")||"Failed";let b=R?.progress&&typeof R.progress=="object"?R.progress.status:null;return R?._state==="active"&&b?u[b]||Rr(b):"\u2014"},e.jobDuration=R=>{if(!R.processedOn)return"\u2014";let b=R.finishedOn||Date.now();return Xn(b-R.processedOn)},e.metricsPoints=[],e.selectQueue=R=>{e.selectedQueue=R,p(),d()},e.setRange=R=>{e.range=R,d()};function p(){let R={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:R}).then(b=>{e.queueList=b.data.queues||[],e.jobs=b.data.jobs||[],e.selectedStats=e.queueList.find(P=>P.key===e.selectedQueue)||e.queueList[0]||null},b=>console.error(b))}function d(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(R=>{e.metricsPoints=R.data.points||[],r(C,0)},R=>console.error(R))}p(),d();let g=i(()=>{e.query.autoRefresh&&(p(),d())},15e3);e.on("dispose",()=>i.cancel(g)),e.refreshNow=function(){p(),d()};function m(R){let b=R&&R.data&&(R.data.message||R.data.error)||"Request failed";e.actionError=b,r(()=>{e.actionError=null},5e3),console.error(R)}e.actionError=null,e.removeJob=R=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${R.id}`).then(p,m)},e.retryJob=R=>{t.post(`/api/admin/queue/${e.selectedQueue}/${R.id}`).then(p,m)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,R=>console.error(R))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,R=>console.error(R))},e.togglePause=()=>{let R=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${R}`).then(p,b=>console.error(b))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,R=>console.error(R))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,R=>console.error(R))};let v=null;e.watch("query.search",()=>{o.timeout.cancel(v),v=o.timeout(p,350)}),e.expanded={},e.toggleJob=R=>{e.expanded[R.id]=!e.expanded[R.id]},e.humanTime=R=>{if(!R)return"";let b=new Date(R);return b.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+b.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=R=>{if(!R)return"";var b=Math.max(0,Math.ceil((R-Date.now())/1e3));if(b<=0)return"resuming soon";var P=Math.floor(b/60),D=b%60;return"in "+(P>0?P+"m "+D+"s":D+"s")};function y(R){if(R<=0)return{ticks:[0],niceMax:1};let b=Math.pow(10,Math.floor(Math.log10(R))),P=b;R/P<2?P=b/2:R/P>5&&(P=b*2);let D=Math.ceil(R/P)*P,L=[];for(let H=0;H<=D;H+=P)L.push(H);return{ticks:L,niceMax:D}}function C(){var R=document.getElementById("q-throughput-chart");if(!R)return;var b=R.getContext("2d"),P=window.devicePixelRatio||1,D=R.parentElement.getBoundingClientRect(),L=44,H=44,_=22,W=Math.max(200,Math.round(D.width)),ae=Math.max(180,Math.min(420,Math.round(D.height)||180)),F=W-L-H,V=ae-_;R.width=W*P,R.height=ae*P,R.style.width=W+"px",R.style.height=ae+"px",b.setTransform(P,0,0,P,0,0);var S=document.body.classList.contains("dark-mode"),q="#8A857C",G=S?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",oe=S?"#6FBF8A":"#2F7D4F",K=S?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=S?"#F08A82":"#B42318",le=S?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ye=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(S?"#E0A94A":"#946512"),Ae=e.metricsPoints||[];if(Ae.length===0){b.fillStyle=q,b.font="13px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No metrics data yet",W/2,ae/2),k=null;return}var Xe=Ae.map(function(Re){return Re.completed}),tt=Ae.map(function(Re){return Re.failed}),Ge=Ae.map(function(Re){return Re.avgMs});if(!Xe.some(Boolean)&&!tt.some(Boolean)){b.strokeStyle=S?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",b.beginPath(),b.moveTo(0,ae-18.5),b.lineTo(W,ae-18.5),b.stroke(),b.fillStyle=S?"#CFC8BD":"#4F4A42",b.font="500 14px Inter, system-ui, sans-serif",b.textAlign="center",b.fillText("No jobs processed in this window",W/2,ae/2-6),b.fillStyle=q,b.font="12.5px Inter, system-ui, sans-serif",b.fillText("Completed and failed jobs will chart here",W/2,ae/2+16),k=null;return}var We=Ae.length,it=F/(We-1||1),gt=Math.max(1,Math.max.apply(null,Xe),Math.max.apply(null,tt)),Me=y(gt),Q=Math.max.apply(null,Ge),he=Q>0?y(Q):{ticks:[0],niceMax:1},x=function(Re){return V-Re/Me.niceMax*(V-10)},ge=function(Re){return V-Re/he.niceMax*(V-10)},Se=function(Re){return L+Re*it};b.textAlign="right",b.textBaseline="middle",b.font="11px Inter, system-ui, sans-serif",Me.ticks.forEach(function(Re){var Be=x(Re);b.strokeStyle=G,b.lineWidth=1,b.beginPath(),b.moveTo(L,Be),b.lineTo(W-H,Be),b.stroke(),b.fillStyle=q,Re!==0&&b.fillText(Re>=1e3?(Re/1e3).toFixed(1)+"k":String(Re),L-6,Be)}),Q>0&&(b.textAlign="left",he.ticks.forEach(function(Re){var Be=ge(Re);b.fillStyle=ye,Re!==0&&b.fillText(Xn(Re),W-H+6,Be)}));var Ie=Ae[We-1].ts,A=Ae[0].ts,I=Math.max(0,(Ie-A)/6e4),z=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],Z=z.find(function(Re){return I/Re<=4})||z[z.length-1],X=function(Re){return Re<60?Re+"m":Re<1440?Re/60+"h":Re/1440+"d"},ee=function(Re){for(var Be=0,j=1;j0&&Math.abs(Ae[Te].ts-(Ie-se*6e4))>ue+1)){var fe=Se(Te),Ee=se===0?"now":X(se)+" ago",Oe=b.measureText(Ee).width,Ue=ie===0?"right":Te===0?"left":"center",Qe=Ue==="right"?fe:Ue==="left"?fe+Oe:fe+Oe/2;Qe>re-12||(b.textAlign=Ue,b.fillText(Ee,fe,V+6),re=Ue==="right"?fe-Oe:Ue==="left"?fe:fe-Oe/2)}}function Je(Re,Be,j,J){Re.length!==0&&(b.beginPath(),b.moveTo(Se(0),V),Re.forEach(function(me,Ne){var ve=Se(Ne),qe=Be(me);if(Ne===0)b.lineTo(ve,qe);else{var ct=(Se(Ne-1)+ve)/2;b.bezierCurveTo(ct,Be(Re[Ne-1]),ct,qe,ve,qe)}}),b.lineTo(Se(Re.length-1),V),b.closePath(),b.fillStyle=j,b.fill(),b.beginPath(),Re.forEach(function(me,Ne){var ve=Se(Ne),qe=Be(me);if(Ne===0)b.moveTo(ve,qe);else{var ct=(Se(Ne-1)+ve)/2;b.bezierCurveTo(ct,Be(Re[Ne-1]),ct,qe,ve,qe)}}),b.strokeStyle=J,b.lineWidth=1.5,b.stroke())}Je(Xe,x,K,oe),Je(tt,x,le,ne),Q>0&&(b.beginPath(),Ge.forEach(function(Re,Be){var j=Se(Be),J=ge(Re);if(Be===0)b.moveTo(j,J);else{var me=(Se(Be-1)+j)/2;b.bezierCurveTo(me,ge(Ge[Be-1]),me,J,j,J)}}),b.strokeStyle=ye,b.lineWidth=1,b.setLineDash([4,3]),b.stroke(),b.setLineDash([])),k={pts:Ae,maxLen:We,marginLeft:L,step:it,totalW:W,toX:Se}}var k=null;function w(){var R=document.getElementById("q-throughput-chart");if(!(!R||R._tipBound)){R._tipBound=!0;var b=document.getElementById("q-chart-tooltip"),P=document.getElementById("q-chart-crosshair");R.addEventListener("mousemove",function(D){if(!(!k||!b||!P)){var L=k,H=R.getBoundingClientRect(),_=D.clientX-H.left,W=Math.round((_-L.marginLeft)/L.step);if(W<0||W>=L.maxLen){b.style.display="none",P.style.display="none";return}var ae=L.pts[W],F=L.pts[L.pts.length-1].ts,V=Math.round((F-ae.ts)/6e4),S;if(V<=0)S="now";else if(V<60)S=V+"m ago";else if(V<1440){var q=Math.floor(V/60),G=V%60;S=q+"h"+(G?" "+G+"m":"")+" ago"}else S=Math.round(V/1440)+"d ago";var oe='
'+S+'
● completed: '+ae.completed+'/min
● failed: '+ae.failed+"/min
";if(ae.avgMs>0){var K=Xn(ae.avgMs);oe+='
● avg time: '+K+"
"}b.innerHTML=oe;var ne=L.toX(W),le=b.offsetWidth,ye=ne+10;ye+le>L.totalW&&(ye=ne-le-10),b.style.display="block",b.style.left=ye+"px",b.style.top="8px",P.style.display="block",P.style.left=ne+"px"}}),R.addEventListener("mouseleave",function(){b&&(b.style.display="none"),P&&(P.style.display="none")})}}e.watch("metricsPoints",function(){r(w,50)})},Ep=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(b){e.ovView=b;try{window.history.replaceState(null,"",b==="summary"?window.location.pathname:"#"+b)}catch{}};var r=!1;e.loadCache=function(){if(!r){r=!0;var b=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:b}}).then(function(P){b===e.cacheMinutes&&(e.cacheReport=P.data,e.cacheError=P.data.available?null:P.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){r=!1,b!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(b){return e.cacheTraffic==="all"||b.traffic===e.cacheTraffic})},e.cacheRate=function(b,P){var D=e.cacheRows(),L=function(W){return D.filter(function(ae){return ae.name===W}).reduce(function(ae,F){return ae+F[P]},0)},H=L(b+"_hit"),_=L(b+"_miss");return H+_?(100*H/(H+_)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(b){return b.replaceAll("_"," ")},e.cacheP95=function(b){var P=0,D=e.cacheReport?.latencyBucketsMs||[];if(!b.count)return"No samples";if(!b.ms)return"Not timed";for(var L=0;L<=D.length;L++)if(P+=b["b"+L]||0,P>=Math.ceil(b.count*.95))return L 10\u202Fs";return"No samples"},e.healthAlert=function(){let b=e.data&&e.data.system||{},P=[["Memory",b.memPercent],["Disk",b.diskPercent]].filter(([,L])=>L>90);return P.length?P.map(([L,H])=>L+" is at "+H+"%").join(" and ")+". New anonymizations may fail until "+(P.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(b){return b==null?"":Xn(b)},e.latencyBound=function(b,P){return b.count?b[P]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(b[P]):"No samples"},e.firstByteBound=function(b){return e.latencyBound({count:b.firstByteCount,p95UpperMs:b.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(b){return Math.max(0,Math.round((Date.now()-b.sampledAt)/1e3))},e.peakRss=function(b){return(e.performance.runtimeSeries||[]).filter(function(P){return P.instance===b.instance}).reduce(function(P,D){return Math.max(P,D.rss)},b.memory.rss)},e.performanceWarning=function(b){return e.sampleAge(b)>45||b.droppedBatches||b.droppedMetrics||b.sockets?.closeWait>0||b.eventLoop?.p95Ms>100||b.memoryLimitBytes&&b.memory.rss>b.memoryLimitBytes*.8};var o=!1;e.loadPerformance=function(){var b=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==b&&(e.performance=null),!o&&(o=!0,t.get("/api/admin/performance",{params:{minutes:b}}).then(function(P){b===e.performanceMinutes&&(e.performance=P.data,e.performanceError=P.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){b===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){o=!1,b!==e.performanceMinutes&&e.loadPerformance()}))};function u(b){if(b==null)return"\u2014";for(var P=["B","KB","MB","GB","TB"],D=0,L=b;L>=1024&&D0?1:0).replace(/\.0$/,"")+" "+P[D]}e.humanBytes=u;function p(b){if(!b)return"\u2014";var P=Math.floor(b/86400),D=Math.floor(b%86400/3600),L=Math.floor(b%3600/60);return P>0?P+"d "+(D<10?"0":"")+D+"h":D>0?D+"h "+(L<10?"0":"")+L+"m":L+"m"}e.humanDuration=p;function d(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=d,e.queueTotal=function(b){return b?(b.waiting||0)+(b.active||0)+(b.delayed||0)+(b.failed||0):0},e.statusCount=function(b){if(!e.data||!e.data.repos)return 0;for(var P=e.data.repos.statusBreakdown||[],D=0;D0,zero:!L,title:String(H.getHours()).padStart(2,"0")+":00 \xB7 "+(D.error||0)+" 5xx, "+(D.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var b=e.errorStats&&e.errorStats.buckets||[];return b.reduce(function(P,D){return Math.max(P,(D.error||0)+(D.warn||0))},0)};function g(b){var P=b||[];return P.map(function(D,L){var H=P[L-1]||{},_=Object.assign({},D);return _.dailyRepositories=L?Math.max(0,(D.nbRepositories||0)-(H.nbRepositories||0)):0,_.dailyUsers=L?Math.max(0,(D.nbUsers||0)-(H.nbUsers||0)):0,_.dailyPageViews=L?Math.max(0,(D.nbPageViews||0)-(H.nbPageViews||0)):0,_})}function m(b){var P=b&&b.length?b[b.length-1]:{};return{repositories:P.dailyRepositories||0,users:P.dailyUsers||0,pageViews:P.dailyPageViews||0}}function v(b,P){if(!b||!b.length)return b;var D=new Date(b[b.length-1].date);if(isNaN(D))return b;var L={};b.forEach(function(F){L[new Date(F.date).toISOString().slice(0,10)]=F});for(var H=[],_=P-1;_>=0;_--){var W=new Date(D.getTime()-_*864e5),ae=W.toISOString().slice(0,10);H.push(L[ae]||{date:W.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return H}var y={};e.historyMax=function(b){return y[b]||0};var C={};e.axisMax=function(b){var P=y[b]||0;if(P<=2)return 2;if(P<=10)return Math.ceil(P/2)*2;var D=Math.pow(10,Math.floor(Math.log10(P)));return Math.ceil(P/D)*D},e.historyBarH=function(b,P){return!b||!y[P]||!b[P]?0:Math.max(1,Math.round(b[P]/e.axisMax(P)*140))},e.historyRange=function(b){return{min:C[b],max:y[b]}};var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(b){if(!b||!b.date)return"";var P=new Date(b.date);return k[P.getUTCMonth()]+" "+P.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(b){return b&&b._empty})},e.firstDataIndex=function(){for(var b=e.data&&e.data.history||[],P=0;P=D)return{lo:ae,hi:ae+2*_[W]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(b){var P=e.data&&e.data.history||[],D=e.userAxis(),L=y.nbUsers?D.hi-D.lo:0,H=e.firstDataIndex();if(!L||H>=P.length)return"";for(var _=function(V){return(140-((V||0)-D.lo)/L*140).toFixed(2)},W=b?"M"+H+" 140":"",ae=H;aey[D])&&(y[D]=P[D]),(C[D]==null||P[D] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(r=>{r.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let r=s.length-1;r>=0&&e.scrollWidth>e.clientWidth+1;r--)if(s[r].setAttribute("data-meta-hidden",""),i.unshift(s[r]),t){let o=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=o.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+o.join(", "))}e.classList.remove("is-fitting")}function Sp(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,r=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Jv),i.takeRecords())},o=()=>{!s&&i&&(s=!0,e.timeout(r,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&o()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),qn(()=>{i.disconnect(),i=null}),t(window,"resize",o),document.fonts?.ready&&document.fonts.ready.then(o),o()}var Zv=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],Fr=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository add-ons"},{id:"conference",label:"Conferences"}],xv={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function ks(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Zv.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var Np=function(e,t,s){let i=Pt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=Fr,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let r=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(k=>k.id===r)?r:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(k=>k.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=k=>ks(k),e.moneyText=(k,w="\u2014")=>ks(k).join(" \xB7 ")||w,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=k=>((e.summary?.plans||[]).find(w=>w.planId===k)||{}).name||xv[k]||k,e.bucketTotal=k=>k?k.subscription+k.repository+k.conference:0,e.chartMax=()=>{let k=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(k<=4)return 4;let w=Math.pow(10,Math.floor(Math.log10(k)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(R=>R*w).find(R=>R>=k&&R%2===0)||10*w},e.segmentPct=(k,w)=>k&&k[w]?k[w]/e.chartMax()*100:0,e.familyTotal=k=>(e.summary?.series||[]).reduce((w,R)=>w+R[k],0);let o=(k,w)=>{for(let[R,b]of Object.entries(w||{}))k[R]=(k[R]||0)+b;return k};e.familyRevenue=k=>(e.summary?.series||[]).reduce((w,R)=>o(w,R.revenue?.[k]),{}),e.seriesMissing=()=>(e.summary?.series||[]).reduce((k,w)=>k+(w.missing||0),0),e.legendText=k=>{let w=ul(e.familyTotal(k));if(!e.revenueOn()||e.seriesMissing())return w;let R=ks(e.familyRevenue(k));return R.length?w+" \xB7 "+R.join(" \xB7 "):w},e.bucketLabel=k=>{if(!k)return"";let w=new Date(k.date),R={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?w.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||w.getUTCFullYear()!==new Date().getUTCFullYear())&&(R.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+w.toLocaleDateString(void 0,R))},e.bucketTip=k=>{let w=e.bucketTotal(k),R=e.bucketLabel(k)+" \xB7 "+(w?w+(w===1?" sale":" sales"):"no sales");if(!w)return R;let b=e.revenueOn(),P=Fr.filter(W=>k[W.id]).map(W=>[W.label,String(k[W.id]),b?ks(k.revenue?.[W.id]).join(" \xB7 "):""]),D=Fr.reduce((W,ae)=>o(W,k.revenue?.[ae.id]),{}),L=b?[...ks(D).length?["Total "+ks(D).join(" \xB7 ")]:[],...k.missing?[k.missing+(k.missing===1?" sale":" sales")+" without a known price"]:[]]:["Revenue unavailable"],H=W=>Math.max(...P.map(ae=>ae[W].length)),_=P.map(W=>(W[0].padEnd(H(0))+" "+W[1].padStart(H(1))+(W[2]?" "+W[2]:"")).trimEnd());return[R,..._,...L].join(` +`)},e.tipSide=k=>{let w=(e.summary?.series||[]).length;return w<3?"":k=w*3/4?"tip-end":""},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((k,w)=>k+e.bucketTotal(w),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(k=>k.active||k.allTimeSales||k.sales),e.familyLabel=k=>(Fr.find(w=>w.id===k)||{}).label||"",e.familyPlans=k=>(e.summary?.plans||[]).filter(w=>w.family===k),e.familySum=(k,w)=>e.familyPlans(k).reduce((R,b)=>R+(b[w]||0),0),e.familyMoney=(k,w,R)=>{if(!e.revenueOn())return"\u2014";let b=e.familyPlans(k);return b.some(P=>P[R]===!1)?"Incomplete":e.moneyText(b.reduce((P,D)=>o(P,D[w]),{}))},e.planTotals=()=>{let k=w=>(e.summary?.plans||[]).reduce((R,b)=>R+(b[w]||0),0);return{active:k("active"),sales:k("sales"),allTimeSales:k("allTimeSales")}},e.webhookState=()=>{let k=e.summary?.webhooks;return k?k.failed||k.reconciliationFailed?"bad":k.oldestPendingSeconds>900||k.unreviewedRevocations?"warn":"ok":"ok"},e.age=k=>k?Xn(k*1e3):"\u2014";let u=0;e.loadSummary=()=>{let k=++u;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(w=>{if(k!==u)return;e.summaryLoading=!1;let R=w.data;if(!R||!R.subscriptions||!R.sales||!Array.isArray(R.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=R},w=>{k===u&&(e.summaryLoading=!1,e.summaryError=w&&w.data&&w.data.error||"Could not load billing figures.")})},e.setPeriod=k=>{if(e.period!==k){e.period=k;try{localStorage.setItem("admin.billing.period",k)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",period:"",sort:"purchasedAt",direction:"desc"};let p=s.search();p.search&&(e.query.search=p.search),e.stateView=()=>e.query.state||"all",e.setStateView=k=>{e.query.state=k==="all"?"":k,e.query.page=1},e.stateCount=k=>k==="all"?["active","expired","revoked"].reduce((w,R)=>w+(e.stateCounts[R]||0),0):e.stateCounts[k]||0,e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let d=()=>{let k=[];e.query.plan&&k.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&k.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.query.period&&k.push({key:"period",label:"Started",value:"last "+((e.periods.find(w=>w.id===e.query.period)||{}).label||e.query.period)}),e.chips=k};e.clearFilter=k=>{e.query[k]="",e.query.page=1},e.filterPlan=k=>{Object.assign(e.query,{plan:k,page:1});let w=document.getElementById("bl-grants");w&&w.scrollIntoView&&w.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",period:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state||e.query.period),e.filterCount=()=>["plan","status","period"].filter(k=>e.query[k]).length,e.amountText=k=>{if(!k.amount)return"\u2014";let w=ks({[k.amount.currency]:k.amount.value})[0]||"\u2014";if(!k.amount.interval)return w;let R=k.amount.intervalCount>1?k.amount.intervalCount+" "+k.amount.interval+"s":k.amount.interval;return w+" / "+R},e.amountTitle=k=>k.amount?"Stripe list price"+(k.pack?" of the whole pack":""):{stripe_not_configured:"Revenue unavailable: Stripe is not configured on this server.",unresolved:"Revenue unavailable: this Stripe price could not be looked up.",unrecorded:"Revenue unavailable: no sale price was recorded for this subscription."}[k.amountMissing]||"Revenue unavailable.",e.endText=k=>{if(k.never)return"Never ends";if(!k.until)return"\u2014";let w=Pr(k.until);return k.state!=="active"?(new Date(k.until){let w=(k.parts||[]).find(R=>R.planId==="author_pass");return!k.pack||!w||!w.until?"":(new Date(w.until)(k.parts||[]).map(w=>g[w.planId]||e.planName(w.planId)).join(", ").replace(/^./,w=>w.toUpperCase()),e.packPartsTitle=k=>"Paper pack: "+(k.parts||[]).map(w=>e.planName(w.planId)).join(", "),e.statusText=k=>(k.status||"unknown").replace(/_/g," "),e.revocationText=k=>k==="dispute"?"Disputed":k==="full_refund"?"Refunded":"Revoked",e.scopeHref=k=>k?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(k.id):k?.kind==="conference"?"/conference/"+encodeURIComponent(k.id):null;let m=0;function v(){let k=++m;e.grantsError=null;let w=Object.fromEntries(Object.entries(e.query).filter(([,R])=>R!==""&&R!=null));t.get("/api/admin/billing/grants",{params:w}).then(R=>{k===m&&(e.total=R.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=R.data?.results||[],e.stateCounts=R.data.stateCounts||{},e.statuses=R.data.statuses||[])},R=>{k===m&&(e.grantsError=R&&R.data&&R.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=v,e.loadSummary(),v(),d();let y=null,C=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let k=JSON.stringify({...e.query,page:0});if(k!==C&&e.query.page!==1){C=k,e.query.page=1;return}C=k,i.timeout.cancel(y),y=i.timeout(v,300),d()},!0)},Rp=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,r=i?new URLSearchParams(i.location.search):null,o=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(r?.get("state"))?r.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(r?.get("kind"))?r.get("kind"):"",e.emailPeriod=o.includes(r?.get("period"))?r.get("period"):"7d",e.emailSearch=r?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=D=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[D]||D,e.emailKindLabel=D=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[D]||D,e.emailTime=D=>D?new Date(D).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=D=>{if(!D)return"Not recorded";let L=new Date(D);return L.toLocaleString(void 0,{...e.emailPeriod==="all"||L.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=D=>D.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":D.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":D.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[D.httpStatus]||(D.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=D=>{e.selectedEmailId=e.selectedEmailId===D._id?null:D._id,e.emailCopyMessage="",e.emailCopiedValue=null};let d=!1,g=0,m=0,v="",y="",C=!1,k=null;e.copyEmail=async D=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(D)),d||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(D))}catch{d||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let w=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),R=()=>{if(i)try{let D=new URL(i.location.href);for(let[L,H]of Object.entries({...w(),state:e.emailState}))H?D.searchParams.set(L,H):D.searchParams.delete(L);i.history.replaceState(null,"",D.pathname+D.search+D.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=D=>u.reduce((L,H)=>L+(Number(D[H])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((D,L)=>D+e.emailDayTotal(L),0),e.jumpToEmailHistory=()=>{let D=i?.document?.querySelector("#email-history-title");D&&(D.focus({preventScroll:!0}),D.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=D=>{let L=typeof D=="string"?D:D?.date;if(!L)return"";let H=new Date(L+"T12:00:00Z");return Number.isNaN(H.getTime())?"":H.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let b=D=>{e.emailPage=D,e.selectedEmailId=null,k=null;let L=(D-1)*25+1,H=Math.min(D*25,e.emailRows.length);e.emailAnnouncement=`Page ${D}. Showing attempts ${L} to ${H}.`;let _=i?.document?.querySelector("#email-history-title");_&&(_.setAttribute("tabindex","-1"),_.focus({preventScroll:!0}),_.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let D=JSON.stringify(w());D!==y&&(e.emailSummary=null),y=D;let L=++m;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let H=await t.get("/api/admin/emails/summary",{params:w()});L===m&&(e.emailSummary=H.data)}catch{L===m&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{L===m&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(C),e.loadEmails=async(D=!1)=>{let L=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),H=L!==v;if(v=L,H&&(D=!1),D&&(e.emailLoading||!e.emailNextCursor))return;let _=++g;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=D?"Loading older emails.":"Loading email history.",H&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,k=null),D||(k=null),R();try{let W=await t.get("/api/admin/emails",{params:{...w(),state:e.emailState||void 0,before:D?e.emailNextCursor:void 0}});return _!==g?void 0:(e.emailRows=D?e.emailRows.concat(W.data.entries):W.data.entries,e.emailNextCursor=W.data.nextCursor,D||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,D&&k&&e.emailRows.length>(k-1)*25&&b(k),!0)}catch{_===g&&(C=D,e.emailError=D?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{_===g&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&b(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let D=e.emailPage+1,L=v;e.emailRows.length<=(D-1)*25&&e.emailNextCursor&&(k=D,await e.loadEmails(!0)),!d&&L===v&&e.emailPage!==D&&e.emailRows.length>(D-1)*25&&b(D)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=D=>(e.emailState=u.includes(D)?D:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let P;i?.setTimeout&&(P=i.setTimeout(()=>{let D=i.document?.querySelector(".emails-page .admin-nav"),L=D?.querySelector('[aria-current="page"]');D&&L&&(D.scrollLeft=Math.max(0,L.offsetLeft-D.offsetLeft-(D.clientWidth-L.offsetWidth)/2))},0)),e.on("dispose",()=>{d=!0,g++,m++,P!=null&&i.clearTimeout(P)}),e.refreshEmails()};var Rl=(e,t,s)=>{let i=e instanceof RegExp?Tp(e,s):e,r=t instanceof RegExp?Tp(t,s):t,o=i!==null&&r!=null&&tb(i,r,s);return o&&{start:o[0],end:o[1],pre:s.slice(0,o[0]),body:s.slice(o[0]+i.length,o[1]),post:s.slice(o[1]+r.length)}},Tp=(e,t)=>{let s=t.match(e);return s?s[0]:null},tb=(e,t,s)=>{let i,r,o,u,p,d=s.indexOf(e),g=s.indexOf(t,d+1),m=d;if(d>=0&&g>0){if(e===t)return[d,g];for(i=[],o=s.length;m>=0&&!p;){if(m===d)i.push(m),d=s.indexOf(e,m+1);else if(i.length===1){let v=i.pop();v!==void 0&&(p=[v,g])}else r=i.pop(),r!==void 0&&r=0?d:g}i.length&&u!==void 0&&(p=[o,u])}return p};var Pp="\0SLASH"+Math.random()+"\0",Dp="\0OPEN"+Math.random()+"\0",Al="\0CLOSE"+Math.random()+"\0",Ap="\0COMMA"+Math.random()+"\0",Ip="\0PERIOD"+Math.random()+"\0",sb=new RegExp(Pp,"g"),ob=new RegExp(Dp,"g"),ib=new RegExp(Al,"g"),rb=new RegExp(Ap,"g"),ab=new RegExp(Ip,"g"),lb=/\\\\/g,db=/\\{/g,ub=/\\}/g,cb=/\\,/g,pb=/\\\./g,fb=1e5,mb=4e6,hb=1e3,gb=1e3;function Tl(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function yb(e){return e.replace(lb,Pp).replace(db,Dp).replace(ub,Al).replace(cb,Ap).replace(pb,Ip)}function vb(e){return e.replace(sb,"\\").replace(ob,"{").replace(ib,"}").replace(rb,",").replace(ab,".")}function Pl(e,t){for(let s=0;s=t}function ii(e,t,s,i,r,o){let u=[],p=0;for(let d=0;d=i)return u;let m=e[d]+t+s[g];if(!(o&&!m)){if(p+m.length>r)return u;u.push(m),p+=m.length}}return u}function Sb(e,t,s,i){let r=e.split(/\.\./),o=[];if(r[0]===void 0||r[1]===void 0)return o;let u=Tl(r[0]),p=Tl(r[1]),d=Math.max(r[0].length,r[1].length),g=r.length===3&&r[2]!==void 0?Math.max(Math.abs(Tl(r[2])),1):1,m=Cb;p0){let b=new Array(R+1).join("0");k<0?w="-"+b+w.slice(1):w=b+w}}if(C+w.length>i)break;o.push(w),C+=w.length}return o}function Dl(e,t,s,i,r,o,u){if(r>i)return[e];let p=[""],d=0,g=!1,m=!0;for(;;){let v=Rl("{","}",e);if(!v)return ii(p,e,[""],t,s,g);let y=v.pre;if(/\$$/.test(y)){if(p=ii(p,y+"{"+v.body+"}",[""],t,s,g&&!v.post.length),m=!1,!v.post.length)break;e=v.post;continue}let C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(v.body),k=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(v.body),w=C||k,R=v.body.indexOf(",")>=0;if(!w&&!R){if(d=t||L+ae.length>s)break e;b.push(ae),L+=ae.length}}}}if(p=ii(p,y,b,t,s,g&&!v.post.length),!v.post.length)break;e=v.post}return p}var Nb={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},ri=e=>e.replace(/[[\]\\-]/g,"\\$&"),Il=/$./,Mp=(e,t,s=!1,i)=>{let r=b=>{let P=i?b.normalize(i):b;return[...P].length===1?P:b},o=t;if(e.charAt(o)!=="[")throw new Error("not in a brace expression");let u=[],p=[],d=o+1,g=!1,m=!1,v=!1,y=o,C="";e:for(;dC.codePointAt(0)?u.push(ri(C)+"-"+ri(P)):P===C&&u.push(ri(P)),C="",d+=b.length;continue}if(e.startsWith("-]",d+b.length)){u.push(ri(P+"-")),d+=b.length+1;continue}if(e.startsWith("-",d+b.length)){C=P,d+=b.length+1;continue}u.push(ri(P)),d+=b.length}if(y({t:"lit",ch:e}),Tb=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),$p=e=>new RegExp(`^${Tb(e)}$`,"iu"),Hr=new Map,Fp=e=>{let t=Hr.get(e);return t||(t=$p(e),Hr.size>=1e3&&Hr.clear(),Hr.set(e,t)),t},Fl=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},Pb=(e,t,s,i)=>{let r=[];for(let o=0;o{let t=new Map,s=[];return e.forEach((i,r)=>{i.t==="open"?s.push(r):i.t==="close"&&s.length&&t.set(s.pop(),r)}),t},Up=(e,t,s,i,r)=>{let o=[],u=[o];for(let p=s;p{let s=[],i="",r=()=>{for(let o of i.normalize(t))s.push(Cs(o));i=""};for(let o of e){if(o.t==="lit"){i+=o.ch;continue}r(),s.push(o.t==="ext"?{...o,alts:o.alts.map(u=>Bp(u,t))}:o)}return r(),s},Ab=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),r=(p,d)=>p.reduceRight((g,m)=>o(m,g),d),o=(p,d)=>{switch(p.t){case"lit":let y=t?Fp(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:y,next:d};case"any":case"star":return{t:p.t,id:s++,next:d};case"class":return{t:"class",id:s++,re:p.re,next:d}}let g=y=>p.alts.map(C=>r(C,y));switch(p.type){case"@":return i(g(d));case"?":return i([d,...g(d)]);case"!":return{t:"neg",id:s++,sub:i(g(Ol)),next:d}}let m=i([]),v=i(g(m));return m.out.push(d,v),p.type==="*"?m:v};return[r(e,Ol),s]},Ib=e=>{let t=[],s=new Set,i=o=>o.t==="match"?"match":String(o.id),r=(o,u)=>{if(o.t==="match"||s.has(o))return;s.add(o);let p=d=>t.push(`${u}${o.id}: ${d}`);switch(o.t){case"split":p(`split -> ${o.out.map(i).join(", ")}`);for(let d of o.out)r(d,u);return;case"neg":return p(`!(${i(o.sub)}) -> ${i(o.next)}`),r(o.sub,u+" "),r(o.next,u);case"lit":p(`${JSON.stringify(o.ch)} -> ${i(o.next)}`);break;case"class":p(`${o.re} -> ${i(o.next)}`);break;default:p(`${o.t==="any"?"?":"*"} -> ${i(o.next)}`)}r(o.next,u)};return r(e,""),[`start -> ${i(e)}`,...t].join(` +`)},Ml=class{constructor(t){lt(this,"gen");lt(this,"threads",[]);lt(this,"match",!1);lt(this,"runs",[]);lt(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},Hp=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&Hp(i.state,s.state))),Vp=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),Es,ns,Vl,ql,li=class{constructor(t,s,i){He(this,ns);lt(this,"dots");lt(this,"dotStart");He(this,Es);this.dots=t,this.dotStart=s,Ke(this,Es,i)}state(){return new Ml(++ce(this,Es).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Ol.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,r){switch(s.t){case"split":if(!ze(this,ns,Vl).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,r);return;case"neg":if(!ze(this,ns,Vl).call(this,t,s))return;let o=this.state();return this.add(o,s.sub,i,!1),this.done(o),this.addRun(t,{t:"run",neg:s,state:o},i,r);case"star":if(this.restricted(i,r))return;ze(this,ns,ql).call(this,t,s)&&this.add(t,s.next,i,r);return;case"match":t.match=!0;return;default:ze(this,ns,ql).call(this,t,s)}}addRun(t,s,i,r){for(let o of t.runs)if(o.neg===s.neg&&Hp(o.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,r)}step(t,s,i,r){let o=this.state();for(let u of t.threads)switch(u.t){case"lit":Fl(u,s)&&this.add(o,u.next,i+1,r);break;case"any":this.restricted(i,r)||this.add(o,u.next,i+1,r);break;case"class":!this.restricted(i,r)&&u.re.test(s)&&this.add(o,u.next,i+1,r);break;case"star":this.restricted(i,r)||this.add(o,u,i+1,r)}if(!this.restricted(i,r))for(let u of t.runs){if(u.state.dead){this.addRun(o,u,i+1,r);continue}let p=this.step(u.state,s,i,!1);this.addRun(o,{t:"run",neg:u.neg,state:p},i+1,r)}return this.done(o)}};Es=new WeakMap,ns=new WeakSet,Vl=function(t,s){let{seen:i}=ce(this,Es);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},ql=function(t,s){let{has:i}=ce(this,Es);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var zp=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${zp(i.state)})`);return`${t}|${s.sort().join("|")}`},Ob=1<<18,oo,io,Jn,Ss,Zn,xn,es,mn,$l,jr,jp,Ll=class{constructor(t,s){He(this,mn);He(this,oo);He(this,io,new Map);He(this,Jn,0);He(this,Ss);He(this,Zn);He(this,xn);He(this,es);Ke(this,oo,t),Ke(this,xn,new li(!1,!1,s)),Ke(this,es,new li(!1,!0,s))}start(t){if(t){if(ce(this,Zn))return ce(this,Zn);let i=ce(this,es).state();return ce(this,es).add(i,ce(this,oo),0,!0),Ke(this,Zn,ze(this,mn,$l).call(this,ce(this,es).done(i)))}if(ce(this,Ss))return ce(this,Ss);let s=ce(this,xn).state();return ce(this,xn).add(s,ce(this,oo),0,!0),Ke(this,Ss,ze(this,mn,jr).call(this,ce(this,xn).done(s)))}next(t,s){let i=s.charCodeAt(0),r=i<128?void 0:t.next.get(s);if(r)return r;let o=t===ce(this,Zn)?ze(this,mn,jr).call(this,ce(this,es).step(t.state,s,0,!0)):ze(this,mn,jr).call(this,ce(this,xn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Ke(this,Jn,ce(this,Jn)+128)),t.ascii[i]=o):t.next.set(s,o),gd(this,Jn)._++,o}};oo=new WeakMap,io=new WeakMap,Jn=new WeakMap,Ss=new WeakMap,Zn=new WeakMap,xn=new WeakMap,es=new WeakMap,mn=new WeakSet,$l=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},jr=function(t){let s=zp(t),i=ce(this,io).get(s);if(i)return i;ce(this,Jn)>Ob&&ze(this,mn,jp).call(this);let r=ze(this,mn,$l).call(this,t);return ce(this,io).set(s,r),Ke(this,Jn,ce(this,Jn)+(s.length+1)),r},jp=function(){ce(this,io).clear(),Ke(this,Jn,0),Ke(this,Ss,void 0),Ke(this,Zn,void 0)};var Mb=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},Vb=(e,t,s,i)=>{let r=0,o=s,u=-1,p=0;for(;o{let t=0,s=0;for(let i of e){let[r,o]=qb(i);t+=r,s+=o}return[t,s]},qb=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(_p),s=Math.min(...t.map(o=>o[0])),i=Math.max(...t.map(o=>o[1])),r=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,r]:[s,r]},qp=(e,t,s)=>{for(let i=0;i$b.test(e)?[...e]:e,Lp=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},ts,ro,Ns,_r,Rs,ui,Gr,Ts,ci,pi,fi,jn,Tn,ao,lo,mi,Wr,fn,Ps,ai,di=class{constructor(t,s={}){He(this,Ps);lt(this,"pattern");lt(this,"options");He(this,ts);He(this,ro);He(this,Ns);He(this,_r);He(this,Rs);He(this,ui,!1);He(this,Gr);He(this,Ts);He(this,ci,!1);He(this,pi,0);He(this,fi,1/0);He(this,jn,[]);He(this,Tn,[]);He(this,ao);He(this,lo);He(this,mi,!1);He(this,Wr);He(this,fn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:r=!1,normalize:o}=s;Ke(this,fn,o===!0?"NFC":o||void 0);let u=/^[?*+@]\(\)$/.test(t),p=Pb(t,i,r||u,ce(this,fn)),[d]=Up(p,Db(p),0,p.length,!0);ce(this,fn)&&(d=Bp(d,ce(this,fn)));let[g,m]=Ab(d,i);if(Ke(this,ts,g),Ke(this,ro,m),d.every(v=>v.t==="lit"))Ke(this,Rs,d.map(v=>v.ch).join("")),Ke(this,ui,i);else{let v=k=>k.t!=="lit"?void 0:i?{ch:k.ch,re:Fp(k.ch)}:{ch:k.ch};for(let k of d){let w=v(k);if(!w)break;ce(this,jn).push(w)}for(let k=d.length-1;k>=0;k--){let w=v(d[k]);if(!w)break;ce(this,Tn).unshift(w)}Ke(this,mi,!!(ce(this,jn).length||ce(this,Tn).length)),i||(Ke(this,ao,ce(this,jn).map(k=>k.ch).join("")),Ke(this,lo,ce(this,Tn).map(k=>k.ch).join(""))),Ke(this,Ts,Mb(ce(this,ts))?.slice(ce(this,jn).length,-ce(this,Tn).length||void 0)),Ke(this,ci,!!ce(this,Ts)?.every(k=>k.t==="star"||k.t==="any"));let[y,C]=_p(d);Ke(this,pi,y),Ke(this,fi,C)}}test(t){return ce(this,fn)?(Lp(t),ze(this,Ps,ai).call(this,t.normalize(ce(this,fn)))):Lb.test(t)?(Lp(t),ze(this,Ps,ai).call(this,t,[...t])):ze(this,Ps,ai).call(this,t,t)}testUnchecked(t){return ze(this,Ps,ai).call(this,ce(this,fn)?t.normalize(ce(this,fn)):t)}toString(){return Ib(ce(this,ts))}};ts=new WeakMap,ro=new WeakMap,Ns=new WeakMap,_r=new WeakMap,Rs=new WeakMap,ui=new WeakMap,Gr=new WeakMap,Ts=new WeakMap,ci=new WeakMap,pi=new WeakMap,fi=new WeakMap,jn=new WeakMap,Tn=new WeakMap,ao=new WeakMap,lo=new WeakMap,mi=new WeakMap,Wr=new WeakMap,fn=new WeakMap,Ps=new WeakSet,ai=function(t,s){if(ce(this,Rs)!==void 0)return ce(this,ui)?(ce(this,Gr)??Ke(this,Gr,$p(ce(this,Rs)))).test(t):t===ce(this,Rs);let i=ce(this,pi),r=ce(this,fi);if(s===void 0){let m=t.length,v=m+1>>1;if(mr)return!1;(vr)&&(s=zr(t))}if(s!==void 0&&(s.lengthr))return!1;let o=ce(this,jn).length;if(ce(this,mi))if(ce(this,ao)!==void 0&&ce(this,lo)!==void 0){if(!t.startsWith(ce(this,ao))||!t.endsWith(ce(this,lo)))return!1}else{s??(s=zr(t));let m=s.length-ce(this,Tn).length;if(!qp(ce(this,jn),s,0)||!qp(ce(this,Tn),s,m))return!1}let u=!this.options.dot&&t.startsWith(".");if(ce(this,Ts)){if(t==="."||t===".."||u&&!o)return!1;if(ce(this,ci))return!0;s??(s=zr(t));let m=s.length-ce(this,Tn).length;return Vb(ce(this,Ts),s,o,m)}if(s??(s=zr(t)),t==="."||t===".."){ce(this,Ns)??Ke(this,Ns,Vp(ce(this,ro)));let m=ce(this,_r)??Ke(this,_r,new li(!0,!1,ce(this,Ns))),v=m.state();m.add(v,ce(this,ts),0,!0);let y=m.done(v);for(let C=0;C{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var ss=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var Ds=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var Zt=(e,t,s={})=>(hi(t),!s.nocomment&&t.charAt(0)==="#"?!1:Ub(t,s).match(e)),uo=new Map,Fb=256,Ub=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=uo.get(s);return i?uo.delete(s):(i=new As(e,{...t}),uo.size>=Fb&&uo.delete(uo.keys().next().value)),uo.set(s,i),i},Qp=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Gp={win32:{sep:"\\"},posix:{sep:"/"}},Bb=Qp==="win32"?Gp.win32.sep:Gp.posix.sep;Zt.sep=Bb;var St=Symbol("globstar **");Zt.GLOBSTAR=St;var Hb=(e,t={})=>s=>Zt(s,e,t);Zt.filter=Hb;var _n=(e,t={})=>Object.assign({},e,t),zb=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Zt;let t=Zt;return Object.assign((i,r,o={})=>t(i,r,_n(e,o)),{Minimatch:class extends t.Minimatch{constructor(r,o={}){super(r,_n(e,o))}static defaults(r){return t.defaults(_n(e,r)).Minimatch}},unescape:(i,r={})=>t.unescape(i,_n(e,r)),escape:(i,r={})=>t.escape(i,_n(e,r)),filter:(i,r={})=>t.filter(i,_n(e,r)),defaults:i=>t.defaults(_n(e,i)),braceExpand:(i,r={})=>t.braceExpand(i,_n(e,r)),match:(i,r,o={})=>t.match(i,r,_n(e,o)),sep:t.sep,GLOBSTAR:St})};Zt.defaults=zb;var Jp=(e,t={})=>(hi(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Op(e,{max:t.braceExpandMax}));Zt.braceExpand=Jp;var jb=(e,t,s={})=>{let i=new As(t,s);return e=e.filter(r=>i.match(r)),i.options.nonull&&!e.length&&e.push(t),e};Zt.match=jb;var Wp=/[?*]|[+@!]\(.*?\)|\[|\]/,Zp=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),Yp=(e,t,s,i,r)=>os(e,t)?s:i!==void 0&&os(e,i)?r:-1,jl=e=>e==="."||e==="..",Bl=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),Yr=e=>typeof e=="string"&&/^unc$/i.test(e),Hl=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:Yr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==St&&i!==void 0&&i!==""&&i!==St?t:-1},Kr=(e,t)=>!jl(e)&&(t||!e.startsWith(".")),gi=(e,t,s,i,r)=>{for(let o=t;o=s||Qr(e.charCodeAt(p),r))return!0}let u=_l(e,o,r);if(u===-1)return!1;for(o=u+1;ot==="/"?e===47:t==="\\"?e===92:e===47||e===92,_l=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),r=e.indexOf("\\",t);return i===-1?r:r===-1?i:Math.min(i,r)},Xp=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),zl={},is,po,rs,Gn,fo,mo,as,vi,ho,bi,je,Xr,yi,xp,ef,tf,nf,sf,of,Gl,rf,af,Wl,co,Kl,As=class{constructor(t,s={}){He(this,je);lt(this,"options");lt(this,"set");lt(this,"pattern");lt(this,"windowsPathsNoEscape");lt(this,"nonegate");lt(this,"negate");lt(this,"comment");lt(this,"empty");lt(this,"preserveMultipleSlashes");lt(this,"partial");lt(this,"globSet");lt(this,"globParts");lt(this,"nocase");lt(this,"isWindows");lt(this,"platform");lt(this,"windowsNoMagicRoot");lt(this,"maxGlobstarRecursion");He(this,is);He(this,po);He(this,rs);He(this,Gn);He(this,fo,[]);He(this,mo,[]);He(this,as,[]);He(this,vi,new Map);He(this,ho,!1);He(this,bi,new WeakMap);hi(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||Qp,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],Ke(this,is,!this.preserveMultipleSlashes),Ke(this,rs,(s.optimizationLevel??1)>=2);let r=s.normalize;Ke(this,Gn,r===!0?"NFC":r||void 0),this.make();let o=this.set.map(u=>ze(this,je,yi).call(this,u));Ke(this,as,this.set.map((u,p)=>ce(this,is)&&u.length-1>o[p])),Ke(this,fo,this.set.map((u,p)=>{let d=ce(this,as)[p]?u.length-1:u.length,g=u.slice(o[p]+1,d).filter(m=>typeof m=="string"&&!!m);return[...new Set(g)]})),Ke(this,po,ce(this,fo).some(u=>u.length)),Ke(this,mo,this.set.map((u,p)=>{let[d,g,m]=u;if(ce(this,as)[p]&&u.length===2&&d===St&&g!==St)return"tail";if(ce(this,as)[p]&&s.matchBase&&u.length===1&&d!==St&&d!=="")return"base";if(!(!ce(this,is)||o[p]!==-1)){if(u.length===3&&d===St&&m===St&&g!==St&&g!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&g===St&&d!==St&&d!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(o=>ze(this,je,Kl).call(this,o));this.globParts=this.preprocess(i),Ke(this,ho,!0);let r=this.globParts.map((o,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let d=o[2]==="?"&&Yr(o[3])?6:4,g=o[0]===""&&o[1]===""&&(o[2]==="?"||!Wp.test(o[2]))&&o.slice(3,d).every(v=>!Wp.test(v)),m=/^[a-z]:/i.test(o[0]);if(g)return[...o.slice(0,d).map(v=>ze(this,je,Xr).call(this,v)),...o.slice(d).map(v=>this.parse(v))];if(m)return[ze(this,je,Xr).call(this,o[0]),...o.slice(1).map(v=>this.parse(v))]}return o.map(d=>this.parse(d))});if(this.set=r.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof di||u[i]===zl)||!Gb(this.globParts[p][i]))return;let d=[...this.globParts[p]];d[i]="";let g=`${u.length}/${d.join("/")}`,m=r.get(g);m?m.push(p):r.set(g,[p])});let o=new Set;for(let u of r.values()){if(u.length<2)continue;let[p,...d]=u,m=`@(${u.map(v=>this.globParts[v][i]).join("|")})`;this.globParts[p][i]=m,this.set[p][i]=this.parse(m);for(let v of d)o.add(v)}o.size&&(t=!0,this.set=this.set.filter((u,p)=>!o.has(p)),this.globParts=this.globParts.filter((u,p)=>!o.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let r=0;r=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let r=i;for(;s[r+1]==="**";)r++;r!==i&&s.splice(i,r-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=ze(this,je,yi).call(this,s)+1;return s=s.reduce((r,o)=>{let u=r[r.length-1];return o==="**"&&u==="**"?r:o===".."&&r.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(r.pop(),r):(r.push(o),r)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let r of t){let o=-1;for(;(o=r.indexOf("**",o+1))!==-1;){let d=o;for(;r[d+1]==="**";)d++;d>o&&r.splice(o+1,d-o);let g=r[o+1],m=r[o+2],v=r[o+3];if(g!==".."||!m||m==="."||m===".."||!v||v==="."||v===".."||t.length>=s)continue;i=!0,r.splice(o,1);let y=r.slice(0);y[o]="**",t.push(y),o--}if(!this.preserveMultipleSlashes){for(let d=1;d1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let r=0,o=0,u=[],p="";for(;r=0;g--)d=o[g];for(let g=0;g=0){let b=w;for(;b>0&&Qr(t.charCodeAt(b-1),s);)b--;p=b===0?0:Xp(t,b-1,s)+1,u=t.slice(p,b)}let R=ce(this,rs)&&(jl(r)||r===""&&u!==void 0&&jl(u));i=R?-1:1,y=!R}let C=-1;if(y&&typeof v=="string"&&(C=Yp(v,r,o,u,p),C===-1))continue;if(ce(this,po)){for(let w of ce(this,fo)[g])if(!t.includes(w))continue e}if(y&&typeof v=="object"&&(C=Yp(v,r,o,u,p),C===-1))continue;let k=ce(this,mo)[g];if(k==="base"&&y)return"yes";if(k==="tail"&&y){if(ce(this,rs)&&gi(t,0,C,!0,s))return"maybe";if(!gi(t,0,C,d,s))return"yes";continue}if(k==="mid"||k==="head"){let w=ze(this,je,tf).call(this,t,m,k==="head",d,s);if(w!=="no")return w;continue}return"maybe"}return"no"},ef=function(t,s,i){let r=!!this.options.dot,o=t.length;if(i==="head"){if(o<2||!os(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,d)))&&!gi(t,g,t.length,r,o))return"yes";if(i||gi(t,p,g,r,o))return"no";p=g}return"no"},nf=function(t){let s=Ul;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===ce(this,Gn)?s:void 0},sf=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,r=ze(this,je,Kl).call(this,s?t.split("\\").join("/"):t),o=ce(this,Gn);return o&&(r=r.map(u=>u.normalize(o))),Ul={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:o,parts:r},Ul},of=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let v=t.length-d.length;if(ze(this,je,co).call(this,t,d,i,v,0))m=d.length;else{if(t[t.length-1]!==""||r+d.length===t.length||(v--,!ze(this,je,co).call(this,t,d,i,v,0)))return!1;m=d.length+1}}if(!p.length){let v=!!m;for(let y=r;y{b[1]=k-w[P]});let R={head:g,body:m,tail:v,segments:y};return r[o]=R,R},Wl=function(t,s,i,r,o,u,p,d,g){let m=s[o];if(!m){if(u)return r>=i||r===i-1&&t[r]==="";for(let k=r;ke.lastIndexOf(t)===s)}function Xl(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:r,directoryOnly:o,body:u}=Wb(s);return{negated:i,directoryOnly:o,matcher:new As(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!r&&!u.includes("/")})}});return(s,i=!1)=>{let r=(s||"").replace(/^\/+/,"");if(!r)return!1;let o=r.split("/"),u=o.slice(0,-1).map((d,g)=>o.slice(0,g+1).join("/")),p=i;for(let d of t){if(d.negated?!p:p)continue;(d.directoryOnly?u:[...u,r]).some(m=>d.matcher.match(m))&&(p=!d.negated)}return p}}var qce=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function Ql(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var lf=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function df(e){let t=[];return String(e||"").split(` +`).forEach((s,i)=>{let{term:r}=Ql(s.trim());if(!r)return;let o=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,r=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||r>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function Jr(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(ls.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var Zr="XXXX",Yb=e=>{Zr=e||"XXXX"},Xb=(e=Zr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},cf=(e,t=Zr)=>{let s=Xb(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,r=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),o=[];for(;r.nextNode();)o.push(r.currentNode);for(let u of o){let p=u.nodeValue,d=u.parentElement;if(!p.includes(t)||!d||d.closest("script, style, mark.redaction, .mermaid"))continue;let g=d.closest('code[class*="language-"]');if(g&&!g.contains(e))continue;let m=i.createDocumentFragment(),v=0;for(let y of p.matchAll(s)){m.append(p.slice(v,y.index));let C=i.createElement("mark");C.className="redaction",C.title="Redacted by Anonymous GitHub",C.textContent=y[0],m.append(C),v=y.index+y[0].length}m.append(p.slice(v)),u.replaceWith(m)}},wi=/\bXXXX-\d+\b/g,to=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)wi.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&wi.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let r of i){wi.lastIndex=0;let o=t.createDocumentFragment(),u=0,p,d=r.nodeValue;for(;p=wi.exec(d);){o.appendChild(t.createTextNode(d.slice(u,p.index)));let g=t.createElement("mark");g.className="redact-chip",g.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let m=p[0].slice(5);g.textContent="";let v=t.createElement("i");v.textContent=m,g.appendChild(v),g.dataset.term=p[0],g.setAttribute("aria-label","Redacted term "+m);let y=/^[.,;:!?)\]]+/.exec(d.slice(p.index+p[0].length));if(y){let C=t.createElement("span");C.className="redact-glue",C.appendChild(g),C.appendChild(t.createTextNode(y[0])),o.appendChild(C),u=p.index+p[0].length+y[0].length}else o.appendChild(g),u=p.index+p[0].length}o.appendChild(t.createTextNode(d.slice(u))),r.parentNode.replaceChild(o,r)}return t.body.firstChild.innerHTML},xr=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{cf(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let r=t.ownerDocument.createElement("i");r.textContent=s[1],t.appendChild(r)})}),window.Prism.redactionHook=!0)},pf=(e,t=Zr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return cf(s.body,t),s.body.innerHTML};async function Jl(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 s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function Qb(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var ff=function(e,t,s,i){e.previewTabKeydown=Qb,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let r=R=>{e.headerShowSupport=!(R?.grants||[]).some(P=>["active","paid","past_due"].includes(P.status)&&new Date(P.until).getTime()>Date.now());let b=(R?.grants||[]).some(P=>["author_monthly","author_annual"].includes(P.planId)&&["active","paid","past_due"].includes(P.status)&&new Date(P.until).getTime()>Date.now());e.headerCanUpgrade=!!R?.enabled&&R.checkoutEnabled!==!1&&!b&&(R.plans||[]).some(P=>["author_monthly","author_annual"].includes(P.id))};e.on("billing:updated",(R,b)=>r(b)),e.on("billing:pending",(R,b)=>{e.headerBillingPending=b}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let o=Lt(),u=Pt(),p=!1,d=()=>{p=!1;let R=document.querySelector("nav.navbar.navbar-expand-lg");if(!R||(R.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let b=R.querySelector(".navbar-collapse"),P=()=>R.scrollWidth>R.clientWidth+1||!!b&&b.scrollWidth>b.clientWidth+1;P()&&R.classList.add("nav-fit-1"),P()&&R.classList.add("nav-fit-2")},g=()=>{p||(p=!0,xe(()=>u.timeout(d,0)))};o(window,"resize",g),e.on("routeChange",g),e.on("billing:updated",g),document.fonts?.ready&&document.fonts.ready.then(g).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(R){let b=e.toasts.indexOf(R);b!==-1&&e.toasts.splice(b,1)},e.addToast=function(R){return e.toasts.push(R),i(function(){e.removeToast(R)},8e3),R};let m=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=m.test(s.path()),e.darkMode=function(R){localStorage.setItem("darkMode",R),e.isDarkMode=R;let b="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),R)$("body").addClass("dark-mode"),$(`link[href='${b}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${b}']`)){let P=document.createElement("link");P.href=b,P.rel="stylesheet",document.head.append(P)}e.emit("dark-mode",R)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let v;e.respondToEmailPrompt=async R=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let b=await t.post("/github/connections/email",{action:R,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});R==="save"&&(e.user.notificationEmail=b.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,v?.focus()}catch(b){e.emailPromptError=b.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function y(){t.get("/api/user").then(R=>{R&&(e.user=R.data),g(),e.user?.username?kr(t).then(b=>r(b.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(v=document.activeElement,e.emailPromptOpen=!0,i(()=>{let b=document.getElementById("email-prompt");b?.showModal?b.showModal():b?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}y();function C(){t.get("/api/options").then(R=>{R&&(e.site_options=R.data),Yb(R?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}C();function k(){t.get("/api/message").then(R=>{R&&(e.generalMessage=R.data)},()=>{e.generalMessage=null})}k();function w(R,b){b&&(e.title=b.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=m.test(s.path())}e.on("routeChange",w),e.on("routeUpdate",w)},mf=function(e,t){let s=Lt(),i=Pt();e.faqQuery="",e.faqResults=0;let r=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=r(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(d=>{let g=0;d.querySelectorAll(":scope > .panel").forEach(y=>{let C=y.dataset.faqText||(y.dataset.faqText=r(y.textContent)),k=u.every(w=>C.includes(w));y.classList.toggle("faq-hit",u.length>0&&k),y.hidden=u.length>0&&!k,k&&g++});let m=u.length>0&&g===0;d.hidden=m;let v=d.previousElementSibling;v?.classList.contains("faq-cat")&&(v.hidden=m),p+=g}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let o=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let d=document.getElementById(p.getAttribute("aria-labelledby"));d?.setAttribute("tabindex","-1"),d?.focus({preventScroll:!0}),d?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(o,0)),s(window,"hashchange",o),i.timeout(o,0)},hf=function(e,t,s,i,r){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(m=>["author_monthly","author_annual"].includes(m.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,xe(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(m=>["author_monthly","author_annual"].includes(m.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(m=>m.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(m=>wr(m.id)).sort((m,v)=>+(v.id==="repo_pack")-+(m.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(m=>m.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(m=>m.status!=="removed"),e.openProfileAddon=m=>{m&&(e.profileAddonId=m),e.showRepositoryPass=!0,e.billingRepository="",xe(()=>{let v=document.getElementById("settings-addons-title");v?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),v?.focus?.({preventScroll:!0})})};let o=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(m=>m.id!=="repo_pack").sort((m,v)=>o.indexOf(m.id)-o.indexOf(v.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(m=>m.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((m,v)=>(m.amount??1/0)-(v.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((m,v)=>+(m.interval==="year")-+(v.interval==="year")),e.profilePackSummary=m=>m.parts.map(v=>v.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(v)} until ${e.billingDate(v.until)}`).join(" \xB7 "),e.profileAddonFeatures=m=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[m]||[],e.profileAddonBlurb=m=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[m]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(m=>m.recurring&&["active","overdue"].includes(m.status)),e.profileRepositoryExpiry=m=>m.status==="expired"?"expired":m.expirationMode==="never"?"never expires":m.expirationDate?"expires "+e.billingDate(m.expirationDate):"no date",e.profileAnnualSavings=()=>{let m=e.profileAuthorPlans().find(y=>y.interval==="month")?.amount,v=e.profileAuthorPlans().find(y=>y.interval==="year")?.amount;return m&&v&&v(e.billing?.purchases||[]).filter(v=>["active","overdue"].includes(v.status)===m),e.profilePurchaseStatus=m=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[m.status]||m.status,e.profilePurchaseTerm=m=>{let v=m.status&&!["active","overdue"].includes(m.status);if(m.recurring)return v?m.until?"Ended "+e.billingDate(m.until):"":(m.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(m.until);if(m.planId==="repo_pack"){let y=m.parts.map(C=>C.until).filter(Boolean).map(C=>new Date(C).getTime());return v||!y.length?"":"Until "+e.billingDate(new Date(Math.max(...y)))}return m.until?(v||new Date(m.until).getTime()e.profileAddonPlans().find(m=>m.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(m=>["author_monthly","author_annual"].includes(m.planId)&&["active","paid","past_due"].includes(m.status)&&new Date(m.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(m=>["conference_workshop","conference","conference_large"].includes(m.id)&&m.amount!=null).sort((m,v)=>m.amount-v.amount)[0],e.profileGrantName=m=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[m.planId]||m.planId,Cr(e,t,()=>r.load().then(m=>{e.quota=m},console.error),{portalMessage:()=>{let m=e.profileAuthorGrant();return m?m.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(m.until)}.`:`Your subscription renews on ${e.billingDate(m.until)}.`:"Your billing details are up to date."}}),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 u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let m=await t.get("/github/connections/email");e.accountEmail=m.data.notificationEmail||"",u=m.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let m=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=m.data.notificationEmail,e.user&&(e.user.notificationEmail=m.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(),r.load().then(m=>{e.quota=m},console.error);let p=wl(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function d(){t.get("/api/user/default").then(m=>{let v=m.data||{};v.terms&&(e.terms=v.terms.join(` `)),e.options=Object.assign({},e.options,v.options),p.restore()})}d();let g=null;e.saveDefault=m=>{if(m&&m.preventDefault&&m.preventDefault(),e.saving)return;let v=p.checkpoint(),y={terms:e.terms.split(` -`).map(C=>C.trim()).filter(C=>C.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",y).then(()=>{p.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",g&&i.cancel(g),g=i(()=>{e.message=null},2500)},C=>{e.saving=!1;let k=C&&C.data&&C.data.error,w="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+k),s("ERRORS.unknown_error")]).then(([R,b])=>{e.error=k&&R!==b?R:w},()=>{e.error=w})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},ff=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},mf=function(e,t,s,i,r){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.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(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,d){let g={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(g===void 0)return;p.preventDefault();let m=e.features.length,v=g==="first"?0:g==="last"?m-1:(d+g+m)%m;e.feature=e.features[v].key,r(()=>{let y=i.document.getElementById("feature-tab-"+e.feature);y&&y.focus()})},e.demoText=`# DeepLearnUtils +`).map(C=>C.trim()).filter(C=>C.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",y).then(()=>{p.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",g&&i.cancel(g),g=i(()=>{e.message=null},2500)},C=>{e.saving=!1;let k=C&&C.data&&C.data.error,w="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+k),s("ERRORS.unknown_error")]).then(([R,b])=>{e.error=k&&R!==b?R:w},()=>{e.error=w})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},gf=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},yf=function(e,t,s,i,r){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.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(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,d){let g={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(g===void 0)return;p.preventDefault();let m=e.features.length,v=g==="first"?0:g==="last"?m-1:(d+g+m)%m;e.feature=e.features[v].key,r(()=>{let y=i.document.getElementById("feature-tab-"+e.feature);y&&y.focus()})},e.demoText=`# DeepLearnUtils Developed by Jane Smith at MIT CSAIL. See Smith et al., "Attention That Works," 2026. -Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(y=>y.trim()).filter(Boolean).sort((y,C)=>C.length-y.length),d=y=>y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let g=new RegExp("("+p.map(d).join("|")+")","gi"),m={},v=0;return(e.demoText||"").split(g).filter(y=>y!=="").map(y=>{let C=p.find(k=>k.toLowerCase()===y.toLowerCase());return C?(m[C.toLowerCase()]||(m[C.toLowerCase()]=++v),{text:String(m[C.toLowerCase()]),redacted:!0,original:y}):{text:y}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,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"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function o(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}o();function u(p){let d={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return d;let g=new Array(p.length-1);for(let w=1;w=2){let w=g[m-2];w&&(d.pctChange=(d.deltaToday-w)/w*100)}return d.pctAbs=Math.round(Math.abs(d.pctChange)),d.isUp=d.pctChange>=0,d}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let d=p.data||[];e.history={repositories:u(d.map(g=>g.nbRepositories||0)),users:u(d.map(g=>g.nbUsers||0)),pageViews:u(d.map(g=>g.nbPageViews||0)),pullRequests:u(d.map(g=>g.nbPullRequests||0))}}).catch(()=>{})},hf=function(e,t,s,i,r,o){let u=Tt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Je(()=>document.querySelector(".dashboard-quota > summary")?.focus())},$t()(document,"click",S=>{e.quotaExpanded&&!S.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=S=>S.status==="error"||S._broken||d(S.status)==="progress"&&S._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=S=>{e.projectView=S,S==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=S=>{let q=al(S?.anonymizeDate||S?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=S=>"project-details-"+encodeURIComponent(S._type+":"+(S._id||S._source||"unknown")),e.showProjectDetails=async S=>{e.selectedProject=S,e.projectName=S.projectName||"",e.nameError="",e.nameMessage="",await Je();let q=document.getElementById(e.projectDetailsId(S));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=S=>{e.selectedProject=null,Je(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(S._type+":"+S._id)}"]`)?.focus())},e.saveProjectName=async S=>{if(e.nameSaving||!S._id)return;let q=e.projectName.trim();if(q.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:S._type,id:S._id,name:q});S.projectName=G.data.name,S._label=S.projectName||S._fallbackLabel,e.selectedProject===S&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),P||(e.dashboardCursor=null,await L(),e.selectedProject===S&&(e.selectedProject=e.items.find(ie=>ie._type===S._type&&ie._id===S._id)||null))}catch{e.selectedProject===S&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async S=>{if(!S._viewUrl||e.copyingId)return;let q=new URL(S._viewUrl,r.location.origin).href;e.copyingId=S._type+":"+S._id;try{await Xl(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function d(S){return S==="ready"||S==="error"?S:S==="expired"||S==="expiring"?"expired":S==="removed"||S==="removing"?"removed":(p.indexOf(S)>-1,"progress")}let g=7200*1e3,m="dashboard.filterPrefs",v={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},y=loadFilterPrefs(m)||{};e.typeFilter=y.typeFilter||v.typeFilter,e.filters={status:Object.assign({},v.filters.status,y.filters&&y.filters.status||{})},e.orderBy=y.orderBy||v.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 S=C[e.sortField()];return S?S.label:"Custom"},e.isSortedBy=S=>e.sortField()===S,e.setSort=(S,q)=>{typeof q!="boolean"&&(q=e.isSortedBy(S)?!e.sortDesc():!!(C[S]&&C[S].defaultDesc)),e.orderBy=(q?"-":"")+S},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(m,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(m,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),o.load().then(S=>{e.quota=S},console.error);function k(S,q,G,ie,K,ne){S.pageView||(S.pageView=0),S.lastView||(S.lastView=""),S.options=S.options||{},S.options.terms=(S.options.terms||[]).filter(ye=>ye),S._id=q||"",S._source=ie,S._broken=!q,S._name=q||ie||"(unnamed)",S._fallbackLabel=S._type==="gist"?"Gist "+(q||ie||"without an ID"):ie||G||S._name,S._label=S.projectName||S._fallbackLabel,S._editUrl=q?K:null,S._viewUrl=q?ne:null,S._broken&&(S.status="error",S.statusMessage="incomplete_record"),S._statusKey=d(S.status);let le=S.anonymizeDate||S.lastView;if(S._stale=S._statusKey==="progress"&&!!le&&Date.now()-new Date(le).getTime()>g,S.status==="expired"||S.status==="expiring")S._expiry={kind:"expired",date:S.options.expirationDate},S._expiry.label=Dr(S.options.expirationDate)||void 0;else if(S.status!=="ready")S._expiry={kind:"none"};else if(S.options.expirationMode==="never"||!S.options.expirationDate)S._expiry={kind:"never"};else{S._expiry={kind:"date",date:S.options.expirationDate};let ye=new Date(S.options.expirationDate).getTime()-Date.now();if(ye>0&&ye<=168*3600*1e3){let Ae=Math.max(1,Math.round(ye/36e5)),Xe=Math.round(ye/864e5);S._expiry.soon=Ae<48?"in "+Ae+(Ae===1?" hour":" hours"):"in "+Xe+" days"}}return S}function w(S){return t.get(S).then(q=>q.data||[],q=>(console.error(q),[]))}function R(){return e.loading=!e.dashboardLoaded,i.all([w("/api/user/anonymized_repositories"),w("/api/user/anonymized_pull_requests"),w("/api/user/anonymized_gists")]).then(S=>{let q=S[0],G=S[1],ie=S[2],K=[];q.forEach(ne=>{ne._type="repo";let le=ne.source||{};K.push(k(ne,ne.repoId,ne.repoId,le.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),G.forEach(ne=>{ne._type="pr";let le=ne.source||{};K.push(k(ne,ne.pullRequestId,ne.pullRequestId,le.repositoryFullName?le.repositoryFullName+"#"+le.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),ie.forEach(ne=>{ne._type="gist";let le=ne.source||{};K.push(k(ne,ne.gistId,ne.gistId,le.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=K,e.removedCount=K.filter(ne=>ne._statusKey==="removed").length,e.loading=!1,e.refreshing=!1,e.dashboardLoaded=!0})}let b=0,P=!1;e.dashboardLoaded=!1,e.refreshing=!1,e.dashboardCursor=null,e.dashboardError="";function D(S){let q=S.source||{};return S._type==="repo"?k(S,S.repoId,S.repoId,q.fullName,"/anonymize/"+S.repoId,"/r/"+S.repoId+"/"):S._type==="pr"?k(S,S.pullRequestId,S.pullRequestId,q.repositoryFullName?q.repositoryFullName+"#"+q.pullRequestId:void 0,"/pull-request-anonymize/"+S.pullRequestId,"/pr/"+S.pullRequestId+"/"):k(S,S.gistId,S.gistId,q.gistId,"/gist-anonymize/"+S.gistId,"/gist/"+S.gistId+"/")}function L(S=!1){if(P)return R();let q=++b;return e.loading=!S&&!e.dashboardLoaded,e.refreshing=!S&&e.dashboardLoaded,e.loadingMore=S,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:S?e.dashboardCursor:void 0}}).then(G=>{if(q===b){if(!Array.isArray(G.data?.items))return P=!0,R();e.items=(S?e.items:[]).concat(G.data.items.map(D)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data,S||W()}},G=>{if(q===b){if(G.status===404)return P=!0,R();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{q===b&&(e.loading=!1,e.refreshing=!1,e.loadingMore=!1,e.dashboardLoaded=!0)})}e.loadMoreProjects=()=>L(!0);let H;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{P||(H&&u.timeout.cancel(H),H=u.timeout(()=>L(),150))},!1),e.watch("filters",()=>{P||L()},!0,!1),e.on("dispose",()=>{b++}),L(),e.openItem=(S,q)=>{if(!S._viewUrl)return;let G=q&&q.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(r.location.href=S._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(S=>e.filters.status[S]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let _=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>_().every(S=>S==="removed"==(e.filters.status[S]!==!1)),e.isActiveDefault=()=>_().every(S=>S==="removed"==(e.filters.status[S]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=S=>{if(S==="attention")return e.setProjectView("attention");e.projectView="all",_().forEach(q=>{e.filters.status[q]=S==="removed"?q==="removed":q!=="removed"})},e.statusChipKeys=()=>{let S=e.statusView();return S==="removed"?[]:_().filter(q=>e.filters.status[q]===!1&&!(q==="removed"&&S!=="custom"))},e.removedCount=null;function W(){if(P){e.removedCount=e.items.filter(q=>q._statusKey==="removed").length;return}let S=e.dashboardTotals;!S||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,S.total-S.filtered):e.onlyRemovedShown()&&(e.removedCount=S.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(S=>e.filters.status[S]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let S=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(S==="removed"?"removed":"active")};function re(S,q,G,ie){t.get("/api/repo/"+S).then(async K=>{let ne=ie!==void 0&&ie!==K.data.status;for(let le of e.items)if(le._type==="repo"&&le.repoId==S){ne=ne||le.status!==K.data.status;let ye=e.needsAttention(le);le.status=K.data.status,le.statusMessage=K.data.statusMessage,le._statusKey=d(le.status),le._statusKey!=="progress"&&(le._stale=!1);let Ae=e.needsAttention(le);e.dashboardTotals&&ye!==Ae&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(Ae?1:-1)));break}if(ne&&!P){e.dashboardCursor=null;let le=e.selectedProject;await L(),le&&e.selectedProject===le&&(e.selectedProject=e.items.find(ye=>ye._type===le._type&&ye._id===le._id)||null)}if(K.data.status=="ready"||K.data.status=="error"||K.data.status=="removed"||K.data.status=="expired"){q(K.data);return}u.timeout(()=>re(S,q,G,K.data.status),2500)},G)}let F=S=>S==="repo"?"repository":S==="gist"?"gist":"pull request",V=S=>S==="repo"?"/api/repo":S==="gist"?"/api/gist":"/api/pr";e.removeItem=S=>{let q=F(S._type);if(confirm(`Are you sure that you want to remove the ${q} ${S._id}?`)){let G=ut({title:`Removing ${S._id}...`,date:new Date,body:`The ${q} ${S._id} is going to be removed.`});e.addToast(G);let ie=`${V(S._type)}/${S._id}`;t.delete(ie).then(()=>{S._type==="repo"?re(S._id,()=>{G.title=`${S._id} is removed.`,G.body=`The ${q} ${S._id} is removed.`},void 0,S.status):(G.title=`${S._id} is removed.`,G.body=`The ${q} ${S._id} is removed.`,L())},K=>{G.title=`Error during the removal of ${S._id}.`,G.body=K.body,L()})}},e.refreshItem=S=>{let q=F(S._type),G=ut({title:`Refreshing ${S._id}...`,date:new Date,body:`The ${q} ${S._id} is going to be refreshed.`});e.addToast(G);let ie=ne=>{G.title=`Error during the refresh of ${S._id}.`,G.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",L()},K=`${V(S._type)}/${S._id}/refresh`;t.post(K).then(()=>{S._type==="repo"?re(S._id,ne=>{if(ne.status!=="ready"){ie({body:ne.statusMessage||`The repository is ${ne.status}.`});return}G.title=`${S._id} is refreshed.`,G.body=`The ${q} ${S._id} is refreshed.`},ie,S.status):(G.title=`${S._id} is refreshed.`,G.body=`The ${q} ${S._id} is refreshed.`,L())},ie)},e.extendItem=S=>{let q=F(S._type),G=ut({title:`Extending ${S._id}...`,date:new Date,body:`The expiration of ${q} ${S._id} is being extended.`});e.addToast(G);let ie=`${V(S._type)}/${S._id}/extend`;t.post(ie).then(K=>{let ne=K?.data?.expirationDate?` until ${new Date(K.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";S._type==="repo"?re(S._id,()=>{G.title=`${S._id} is extended.`,G.body=`${q} ${S._id} is extended${ne}.`},void 0,S.status):(G.title=`${S._id} is extended.`,G.body=`${q} ${S._id} is extended${ne}.`,L())},K=>{G.title=`Error during the extension of ${S._id}.`;let ne=K.data&&K.data.error;G.body=ne||K.body,ne&&Object.prototype.hasOwnProperty.call(as.ERRORS,ne)&&(G.body=as.ERRORS[ne]),L()})},e.itemFilter=S=>{if(e.projectView==="attention"&&!e.needsAttention(S)||e.typeFilter!=="all"&&S._type!==e.typeFilter||e.filters.status[S._statusKey]===!1)return!1;let q=e.search.trim().toLowerCase();return!!(q.length==0||S._label&&String(S._label).toLowerCase().indexOf(q)>-1||S._source&&String(S._source).toLowerCase().indexOf(q)>-1||S._id&&String(S._id).toLowerCase().indexOf(q)>-1||S.conference&&String(S.conference).toLowerCase().indexOf(q)>-1)}};var gf=function(e,t,s){let i=Tt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.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 r=null;e.copyShareUrl=async()=>{try{await Xl(e.shareUrl),e.copied=!0,r&&i.timeout.cancel(r),r=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=m=>{let v=window.getSelection?.();if(!v||!m?.target)return;let y=document.createRange();y.selectNodeContents(m.target),v.removeAllRanges(),v.addRange(y)};var o=null;let u=null,p=!1;function d(m){e.rateLimitResetAt=m,o&&i.interval.cancel(o);function v(){var y=Math.max(0,Math.ceil((m-Date.now())/1e3));if(y<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(o),o=null;else{var C=Math.floor(y/60),k=y%60;e.rateLimitCountdown=C>0?C+"m "+k+"s":k+"s"}}v(),o=i.interval(v,1e3)}e.on("dispose",function(){p=!0,o&&i.interval.cancel(o),u&&i.timeout.cancel(u)});function g(m){if(!m)return m;var v=m.match(/^rate_limited:(\d+)$/);return v?(d(parseInt(v[1],10)),null):(e.rateLimitResetAt=0,m)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(m=>{if(!p){e.repo=m.data,m.data.rateLimitResetAt?d(m.data.rateLimitResetAt):e.repo.statusMessage=g(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 v=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(v=!1),v&&(u=i.timeout(e.getStatus,2e3))}},m=>{e.error=m.data.error})},e.getStatus()},xr=function(e,t,s,i,r,o,u){Zr(),e.renderRedacted=to,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&$t()(p,"change",E=>{e.mobileWorkspace=E.matches}),e.selectMobilePane=E=>{e.mobilePane=E};let d=0,g=!1,m=new Set,v=(E,M=!1)=>!g&&E.generation===d&&E.url===e.sourceUrl.trim()&&E.connection===e.githubConnection&&(!M||E.branch===e.source.branch),y=()=>{let E={generation:d,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return m.add(E),e.sourceLoading=!0,E},C=E=>{m.delete(E),g||(e.sourceLoading=[...m].some(M=>v(M)))};e.on("dispose",()=>{g=!0,d++});let k=null,w=E=>E.gistId&&!E.repo?"gist:"+E.gistId.toLowerCase():(E.owner+"/"+E.repo).toLowerCase()+(E.pullRequestId?"/pull/"+E.pullRequestId:""),R=vl(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(r.path?.()||"")),b=null,P=null,D=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.focusTerms=()=>{e.mobilePane="settings",e.previewExpanded=!1,Je(()=>{let E=document.getElementById("terms");E&&(E.scrollIntoView?.({block:"center",behavior:"smooth"}),E.focus({preventScroll:!0}))})},e.editRepository=()=>{e.anonymize?.expirationDate?.invalid&&(e.expiryPickerOpen=!0),e.mobilePane="settings",e.previewExpanded=!1,Je(()=>{let E=document.querySelector(".anonymize-fields .is-invalid"),M=E?.closest("details");M&&!M.open&&(M.open=!0),E?.focus()})},e.submitRepository=E=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(Ri()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(br(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(E)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=E=>E.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:E.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(E.amount/100)+(E.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(E=>E.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let L=()=>t.get("/api/user/quota").then(E=>{e.hostingQuota=E.data});kr(e,t,async()=>{await L(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),L().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(E=>["author_monthly","author_annual"].includes(E.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=E=>(e.billing?.grants||[]).filter(M=>M.planId===E&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(E=>br(E.id)&&(["repo_extend","repo_pack"].includes(E.id)||!e.repositoryGrants(E.id).length)),e.hostingOneTimePlans=()=>{let E=M=>M.map(B=>(e.billing?.plans||[]).find(Y=>Y.id===B&&!e.repositoryGrants(B).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?E(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?E(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let H=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let E=e.billing?.allowance?.plan;return E&&!H.includes(E)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let E=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return E?.amount!=null?e.billingAmount(E):""},e.showHostingOptions=()=>{e.mobilePane="settings",Je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let E=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return E?.amount!=null?`${e.billingAmount(E)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(E=>E.id===e.hostingCycle)||e.authorPlans().find(E=>E.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let E=e.authorPlans().find(B=>B.interval==="month")?.amount,M=e.authorPlans().find(B=>B.interval==="year")?.amount;return E&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=E=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[E.id]||E.name,e.hostingOptionBlurb=E=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[E.id]||`${E.repositories} repositories, ${e.billingBytes(E.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let E=e.hostingOneTimePlans();return E.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:E[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(E="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=R.checkpoint(),B=JSON.stringify(M);(!P||B!==D)&&(P=(await t.post("/api/billing/draft",{path:r.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,D=B);let Y=e.authorPlans().find(pe=>pe.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!E&&!Y)throw new Error("No author plan available");await e.checkout(E||Y.id,E?e.repoId:"",{draftId:P})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{R.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(d++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",xt.cancel(),Dn.cancel(),An.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let _=()=>{let E={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])E[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:r.path(),savedAt:Date.now(),draft:E}))};e.connectGistApp=()=>{_(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(r.path())},e.connectGistOAuth=()=>{_(),window.location.href="/github/login?returnTo="+encodeURIComponent(r.path())},e.grantGitHubAccess=()=>{_();let E=r.path(),M=ge(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(E)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async E=>{e.githubConnection=E,e.readme="",e.sourceUrl&&await Ie()},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 W(){let E=new Date;return E.setMonth(E.getMonth()+6),E}e.options.expirationDate=W();function re(E){let M=E.getFullYear(),B=String(E.getMonth()+1).padStart(2,"0"),Y=String(E.getDate()).padStart(2,"0");return`${M}-${B}-${Y}`}e.minExpirationDate=re(new Date),e.maxExpirationReason=null;let F=()=>{let E=new Date,M=new Date(E);if(M.setFullYear(M.getFullYear()+1),e.maxExpirationReason=null,e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(E),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));let B="plan";for(let Ce of e.repositoryGrants("repo_extend"))new Date(Ce.until)>M&&(M=new Date(Ce.until),B="extend");e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate),B="conference"),e._savedExpirationDate&&e._savedExpirationDate>M&&(re(e._savedExpirationDate)>re(M)&&(B="saved"),M=new Date(e._savedExpirationDate)),e.maxExpirationReason=B;let Y=e.options?.expirationDate,pe=e._savedExpirationDate&&Y instanceof Date&&Y.getTime()===e._savedExpirationDate.getTime();Y instanceof Date&&Y>M&&!pe&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=re(M)};F(),e.expiryPickerOpen=!1,e.expiryCapped=()=>!!e.maxExpirationReason&&e.options?.expirationMode!=="never";let V=()=>!!e.anonymize?.expirationDate?.invalid;e.expiryPickerShown=()=>!e.expiryCapped()||e.expiryPickerOpen||V(),e.openExpiryPicker=()=>{e.expiryPickerOpen=!0,Je(()=>document.getElementById("expirationDate")?.focus())};let S=()=>{let E=Pr(e.options?.expirationDate),M=E.lastIndexOf(" \xB7 ");return M<0?null:{date:E.slice(0,M),relative:E.slice(M+3)}};e.expiryChoiceLabel=()=>{let E=e.expiryCapped()&&!V()?S():null;return E?"Expire on "+E.date:"Expire on a date"},e.expiryRelative=()=>{let E=S()?.relative||"";return E.charAt(0).toUpperCase()+E.slice(1)};let q=(E,M)=>{let B=new Date(E),Y=new Date(M);return!isNaN(B)&&!isNaN(Y)&&B.getFullYear()===Y.getFullYear()&&B.getMonth()===Y.getMonth()&&B.getDate()===Y.getDate()};e.expiryNote=()=>{let E=e.options?.expirationDate;return E?e.conference_data?.endDate&&q(E,e.conference_data.endDate)?"When "+(e.conference_data.name||"the conference")+" ends":!e.maxExpirationDate||!q(E,e.maxExpirationDate+"T00:00:00")?"":{plan:"Maximum on your plan",extend:"Maximum with Extended expiration",saved:"Date saved for this link"}[e.maxExpirationReason]||"":""},e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],F,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.titleIfTruncated=(E,M)=>{let B=E?.currentTarget;B&&(B.scrollWidth>B.clientWidth+1?B.title=M:B.removeAttribute("title"))},e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.userRepoPage=1,e.userRepoNext=null,e.userReposSyncedAt=null,e.userReposSyncing=!1,e.userReposWebhooks=!1,e.userReposNow=Date.now(),e.userReposRefreshFailed=!1;let G=0,ie,K,ne=0,le=[0],ye=Tt();ye.interval(()=>{e.userReposNow=Date.now()},3e4),e.on("dispose",()=>{G++,clearTimeout(ie)}),e.userReposUpdatedLabel=()=>{if(e.userReposSyncing)return"Updating\u2026";if(e.userReposRefreshFailed)return"Couldn\u2019t update";if(!e.userReposSyncedAt)return"";let E=Math.floor((e.userReposNow-Date.parse(e.userReposSyncedAt))/6e4);return E<1?"Updated just now":E<60?"Updated "+E+" min ago":E<1440?"Updated "+Math.floor(E/60)+" h ago":"Updated "+Dr(e.userReposSyncedAt)},e.userReposUpdatedTitle=()=>e.userReposWebhooks?"New repositories you give the GitHub App access to appear automatically. Refresh to check GitHub now.":"Your repository list is saved. Refresh to fetch new repositories from GitHub.",e.loadUserRepos=async(E={})=>{clearTimeout(ie),ye.timeout.cancel(K);let M=++G,B=e.userRepoFilter.trim();E.quiet||(e.userReposStatus="loading",e.userRepos=[]),E.force&&(e.userReposSyncing=!0,e.userReposRefreshFailed=!1),E.poll||(ne=0);let Y=le[e.userRepoPage-1];try{for(let pe=0;pe<5;pe++){let Ce=await t.get("/api/user/repository_picker",{params:{cursor:Y,q:B,connection:e.githubConnection,force:E.force&&pe===0?1:void 0}});if(g||M!==G)return;if(e.userRepos=Ce.data.items||[],e.userRepoNext=Ce.data.nextCursor??null,e.userReposSyncedAt=Ce.data.syncedAt||null,e.userReposSyncing=!!Ce.data.syncing,e.userReposWebhooks=!!Ce.data.webhooks,e.userReposNow=Date.now(),e.userRepos.length||e.userRepoNext===null||!B)break;Y=e.userRepoNext}e.userReposStatus="ready",e.userReposSyncing&&ne<60&&(ne++,K=ye.timeout(()=>{!g&&M===G&&e.loadUserRepos({quiet:!0,poll:!0})},2e3))}catch{if(g||M!==G)return;e.userReposSyncing=!1,!E.quiet||!e.userRepos.length?e.userReposStatus="error":E.force&&(e.userReposRefreshFailed=!0)}},e.refreshUserRepos=()=>{e.userReposSyncing||e.userReposStatus==="loading"||e.loadUserRepos({quiet:!0,force:!0})},e.changeUserRepoPage=E=>{if(e.userReposStatus!=="loading"){if(E>0&&e.userRepoNext!==null)le[e.userRepoPage]=e.userRepoNext,e.userRepoPage++;else if(E<0&&e.userRepoPage>1)e.userRepoPage--;else return;e.loadUserRepos()}},e.watch(()=>[e.userRepoFilter,e.githubConnection],()=>{i.repoId||i.pullRequestId||i.gistId||(G++,clearTimeout(ie),le=[0],e.userRepoPage=1,e.userRepoNext=null,e.userRepos=[],e.userReposStatus="loading",ie=setTimeout(()=>{g||e.loadUserRepos()},300))},!0,!1),e.selectUserRepo=E=>{if(E?.fullName)return e.sourceUrl="https://github.com/"+E.fullName,e.urlSelected()},e.previousConfigurations=[],e.previousConfigurationId="";let Ae,Xe=E=>String(E||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function tt(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let E={generation:d,url:e.sourceUrl.trim(),connection:e.githubConnection};try{Ae||(Ae=t.get("/api/user/anonymized_repositories").then(Y=>Y.data));let M=await Ae;if(!v(E))return;let B=Xe(ge(E.url));e.previousConfigurations=M.filter(Y=>Y.repoId&&Y.options&&Xe(Y.source?.fullName)===B).sort((Y,pe)=>(Date.parse(pe.anonymizeDate)||0)-(Date.parse(Y.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{Ae=void 0}}e.sourceSummary=()=>{let E=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(E);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(E),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.sourceError="",e.sourceErrorText="";let Ge={repo_access_limited:"access",repo_not_accessible:"access",repo_saml_enforcement:"access",repo_already_anonymized:"used",github_rate_limit_exceeded:"github-throttle",rate_limited:"throttle",github_unavailable:"upstream",internal_error:"server",unreachable:"server",github_app_reconnect_required:"reconnect",token_expired:"reconnect",repo_not_found:"missing",github_app_access_required:"missing",pull_request_not_found:"missing",gist_not_found:"missing"},We=E=>{let M=typeof E?.data?.error=="string"?E.data.error:"",B=E?.status===429?Ge[M]==="github-throttle"?M:"rate_limited":E?.status>=500?M==="github_unavailable"?M:"internal_error":M||(E?.status===404?"repo_not_found":"unknown_error");e.sourceError=B,e.sourceErrorText="",Ge[B]||o("ERRORS."+B).then(Y=>{e.sourceError===B&&Y!=="ERRORS."+B&&(e.sourceErrorText=Y)},()=>{}),Ti(B),ee("sourceUrl","missing",!1)},it=()=>{e.sourceError="",e.sourceErrorText=""};e.sourceReady=()=>!!e.isUpdate||!!e.details,e.sourceProblem=()=>{let E=e.anonymize?.sourceUrl?.errors||{};if(E.github||e.sourceUrlError&&e.workspaceOpen)return{kind:"github",title:"Not a GitHub URL",text:"Paste a repository, pull request, or gist URL from github.com."};if(e.sourceLoading||e.details&&!E.used&&!e.sourceError)return null;if(e.gistAppRequired||e.gistOAuthRequired)return{kind:"connect",title:"Couldn't load this gist",text:"Connect GitHub to read gists."};let M=e.sourceError||(E.used?"repo_already_anonymized":E.access?"repo_not_accessible":E.missing?"repo_not_found":"");if(!M)return null;let B=Ge[M]||"other",Y=e.detectedType,pe="this gist";try{let en=parseGithubUrl(String(e.sourceUrl||"").trim());Y==="pr"?pe=`pull request #${en.pullRequestId} in ${en.owner}/${en.repo}`:Y!=="gist"&&(pe=`${en.owner}/${en.repo}`)}catch{}let Ce=Y==="pr"?"this pull request":Y==="gist"?"this gist":"this repository",xe=Y!=="gist"&&e.githubConnection==="github-app",vt=e.isUpdate&&Y==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&xe&&e.sourceUrl==="https://github.com/"+e._originalFullName?null:Y==="gist"||!e.githubConnection?"link":xe?"app":"link",It="Couldn't load "+Ce;if(B==="github-throttle")return{kind:B,title:It,text:"GitHub's API rate limit has been reached. Wait for the limit to reset, then try again. Your repository access settings do not need to change.",retry:!0};if(B==="throttle")return{kind:B,title:It,text:"Too many requests. Wait a little, then try loading the source again.",retry:!0};if(B==="upstream")return{kind:B,title:It,text:"GitHub is temporarily unavailable. Try loading the source again in a moment.",retry:!0};if(B==="server")return{kind:B,title:It,text:"Anonymous GitHub could not load the source because of a server error. Try again in a moment. This does not mean the repository is missing or that you need to change its permissions.",retry:!0};if(B==="reconnect")return{kind:B,title:It,text:"Your GitHub authorization has expired or was revoked. Reconnect your GitHub account, then try loading the source again.",manage:"link",retry:!0};if(B==="used")return{kind:B,title:"Already anonymized",text:`You've already anonymized ${pe}. Open it from My work to change its settings.`,dashboard:!0};if(B==="access"){let en=M==="repo_saml_enforcement"?"Its organization requires single sign-on.":"Its organization restricts third-party apps.",Qm=M==="repo_saml_enforcement"?"Authorize your GitHub session for the organization, then try again.":"An organization owner may need to approve Anonymous GitHub. You can also anonymize a personal fork.";return{kind:B,title:It,text:`We can't read ${pe}. ${en}`,note:Qm,manage:vt,retry:!0}}return B==="missing"?{kind:B,title:It,text:`We can't read ${pe}. It doesn't exist, or ${xe?"the Anonymous GitHub app hasn't been given access to it":"your GitHub account can't see it"}.`,manage:vt,retry:!0}:{kind:B,title:It,text:e.sourceErrorText||"GitHub didn't return it. Try again in a moment.",retry:!0}},e.submitBlockedReason=()=>e.sourceLoading?e.detectedType==="pr"?"Waiting for the pull request to load from GitHub\u2026":e.detectedType==="gist"?"Waiting for the gist to load from GitHub\u2026":"Waiting for the repository to load from GitHub\u2026":e.sourceReady()?"":e.sourceProblem()?.kind==="github"?"Enter a GitHub URL to continue.":["github-throttle","throttle","upstream","server"].includes(e.sourceProblem()?.kind)?"Wait for the source to load successfully before continuing.":e.detectedType==="pr"?"Add a pull request you can access to continue.":e.detectedType==="gist"?"Add a gist you can access to continue.":"Add a repository you can access to continue.",e.sourceIsPrivate=()=>e.details?e.detectedType==="gist"?e.details.gist?!e.details.gist.isPublic:!0:e.details.private!==!1:!1,e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let E=e.previewId();return E?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(E)+"/":""},e.previewUrl=()=>{let E=e.previewPath();return E?"anonymous.4open.science"+E.replace(/\/$/,""):""},e.previewRedactions=()=>{let E=Y=>typeof Y=="string"?(Y.match(bi)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Ms:Vs,B=0;return M.forEach(Y=>{B+=E(Y)}),B};let ht=(E,M)=>E.localeCompare(M,void 0,{sensitivity:"base"}),Oe=E=>E.slice(E.lastIndexOf("/")+1),Q={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!Ne)return[];let E=e.preserve.commit+"\0"+e.terms+"\0"+Is.size+"\0"+Ne.files.length;if(Q.key===E)return Q.files;let M=Ne.files.map(B=>{let Y=e.previewPathName(B),pe=Y.lastIndexOf("/");return{name:Y.slice(pe+1),path:pe<0?"":Y.slice(0,pe),size:0,sourcePath:B}});return Q={key:E,files:M},M},e.selectPreviewPath=E=>{let M=e.previewTreeFiles().find(B=>"/"+(B.path?B.path+"/":"")+B.name===E);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let E=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return E?"/anonymize/"+encodeURIComponent(E.repoId):null};function he(E){t.get("/api/user/default").then(M=>{let B=M.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):W(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),E&&E()})}function ee(E,M,B){e.anonymize&&e.anonymize[E]&&e.anonymize[E].setValidity(M,B)}function ge(E){try{let M=parseGithubUrl(E);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ge(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let E=y();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!v(E))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{v(E)&&(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)}},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.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[],xt.cancel(),Dn.cancel(),An.cancel(),e.previewStatus="idle",e.anonymize_readme="",rd();try{await I()}catch{}}};function Ee(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ge(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Ie(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function A(){let E=new URLSearchParams(window.location.search).get("billingDraft");if(E){R.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(E))).data;if(B.path!==r.path())throw new Error("Wrong task");b=B.values.conference||null;for(let Y of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,Y)&&(e[Y]=B.values[Y]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),P=B.id,D=JSON.stringify(R.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Ie(),r.replace?.(r.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==r.path()||Date.now()-M.savedAt>=30*6e4)return R.restore()?(e.sourceUrl&&await Ie(),!0):!1;R.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Ie(),sessionStorage.removeItem("github-access-draft"),!0}he(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(A,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async E=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(E.data.status),e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.fullName,e._originalFullName=E.data.source.fullName,e.terms=E.data.options.terms.filter(M=>M).join(` -`),e.source=E.data.source,e.role=E.data.role||"owner",e._existingNever=E.data.options.expirationMode==="never",e._savedExpirationDate=E.data.options.expirationDate?new Date(E.data.options.expirationDate):null,e.coauthors=E.data.coauthors||[],e._originalBranch=E.data.source.branch,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,e.repositoryID=E.data.source.repositoryID,e._originalRepositoryID=E.data.source.repositoryID,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&(await Promise.all([I(),z()]),Os())},()=>{r.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async E=>{if(e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.repositoryFullName+"/pull/"+E.data.source.pullRequestId,e.terms=E.data.options.terms.filter(M=>M).join(` -`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A())try{await dd()}catch{}},()=>{r.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async E=>{e.sourceUrl="https://gist.github.com/"+E.data.source.gistId,e.terms=E.data.options.terms.filter(M=>M).join(` -`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&await ud()},()=>{r.url("/404")}))}),t.get("/github/connections").then(E=>{e.githubConnections=E.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&E.data.appEnabled&&E.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&Ie())}).catch(()=>{}).finally(()=>{!g&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(E=!1)=>{let M=++d;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,it(),xt.cancel(),Dn.cancel(),An.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",ee("sourceUrl","github",!1);return}let Y=w(B),pe=E||k===Y;k=Y,e.sourceUrlError="",ee("sourceUrl","github",!0),it();let Ce=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let xe=window.document.getElementById("sourceUrl");if(xe){try{xe.setSelectionRange(0,0)}catch{}xe.scrollLeft=0}},50),Ce&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!pe&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],pe||(e.source={type:"GitHubStream",branch:"",commit:""}),xt.cancel(),Dn.cancel(),An.cancel(),Ms.clear(),Vs.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",rd(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=pe;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await ud()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await dd()):(e.detectedType="repo",tt(),await Promise.all([I(),z()]),Os())}catch{}finally{M===d&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let E=e.branches.filter(B=>B.name==e.source.branch)[0];if(!E)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=E.commit),e.readme=E.readme,await z(),Os()}),e.getBranches=async E=>{let M=parseGithubUrl(e.sourceUrl),B=y();try{if(!e.details){await I(E);return}let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0||e.reconnectingSource?"1":"0",repositoryID:Ee()}});if(!v(B))return;e.branches=Y.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let pe=e.branches.filter(Ce=>Ce.name==e.source.branch);pe.length>0&&(!(!e.reconnectingSource&&!E&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=pe[0].commit),e.readme=pe[0].readme,await z(E))}catch(Y){if(!v(B))return;e.branches=[],e.sourceUnreachable=Y&&(Y.status===404||Y.data&&Y.data.error==="repo_not_found"),e.details=null,We(Y)}finally{C(B)}};async function I(E=!1){let M=parseGithubUrl(e.sourceUrl),B=y();try{qs(),it();let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:Ee(),force:"1"}});if(!v(B))return;e.details=Y.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||e.reconnectingSource)}catch(Y){if(!v(B))return;throw We(Y),Y}finally{C(B)}}async function z(E){if(e.readme&&!E)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=y();try{let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0?"1":"0",branch:e.source.branch,repositoryID:Ee()}});v(B,!0)&&(e.readme=Y.data)}catch{v(B,!0)&&(e.readme="")}finally{C(B)}}let x={magicalBraces:!0},X=E=>E.startsWith("/")&&!E.endsWith("/")&&ns(Ps(E.slice(1),x),x)===E.slice(1),se=()=>Object.keys(e.preserve.picked).filter(E=>e.preserve.picked[E]).sort().map(E=>"/"+ns(E,x)),ce=E=>"/"+ns(E,x)+"/**",ae=E=>"!/"+ns(E,x)+"/",oe=()=>String(e.preserve.patterns||"").split(` -`).map(E=>E.trim()).filter(Boolean),Z=null,Ne=null,fe=new Set,Te=0,Me=null,Ue=()=>!1;function Ze(){let E=Te+"\0"+e.preserve.patterns;if(E!==Me){Me=E;try{Ue=Kl(Wl([...se(),...oe()]))}catch{Ue=()=>!1}}return Ue}function Qe(E){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of E){let Y=B.split("/"),pe="";for(let Ce=0;CeM.startsWith(E+"/"))),Z.descendants.get(E)}let Be=E=>Ze()(E);function j(E){let M=Re(E),B=0;for(let Y of M)Be(Y)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let E=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>X(M)?Ps(M.slice(1),x):M);return E.length?E.slice(0,2).join(", ")+(E.length>2?` and ${E.length-2} more`:""):"None. Every file is redacted."};async function J(){let E=e.source?.commit;if(!(Z&&e.preserve.commit===E)){e.preserve.loading=!0,e.preserve.error="",Z=null,Ne=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Ee()}});if(e.source?.commit!==E)return;let Y=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];Z=kn(Qe(B.data.files||[])),Ne=Y.length?kn(Qe([...B.data.files||[],...Y])):Z,fe=kn(new Set(Y)),e.preserve.commit=E,e.preserve.truncated=!!B.data.truncated,e.previewFile||xt()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",E=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&E&&e.sourceUrl&&J().catch(()=>{})}),e.openPreserveFiles=()=>{let E={},M=[];for(let Y of e.options?.preserveFiles||[]){let pe=String(Y).trim();pe&&(!M.length&&X(pe)?E[Ps(pe.slice(1),x)]=!0:M.push(pe))}let B={};for(let Y of Object.keys(E)){let pe=Y.split("/");for(let Ce=1;Ce0}),e.mobileWorkspace&&(e.mobilePane="settings"),Te++,u(()=>{let Y=document.getElementById("preserve-files-dialog");Y?.showModal&&!Y.open&&Y.showModal(),document.getElementById("preserve-files-search")?.focus()},0),J()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=Wl([...se(),...oe()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!Z)return[];let E=Ze(),M=(Ce,xe,Ht)=>{let vt=!!e.preserve.picked[Ce],It=E(Ce);return{kind:"file",path:Ce,label:Ht,depth:xe,state:It?"all":"none",locked:!vt&&It,note:!vt&&It?"matched by a pattern":vt&&!It?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return Z.files.filter(Ce=>Ce.toLowerCase().includes(B)).slice(0,300).map(Ce=>M(Ce,0,Ce));let Y=[],pe=(Ce,xe)=>{let Ht=Z.dirs.get(Ce);for(let vt of Ht.dirs){let It=!!e.preserve.expanded[vt],en=oe().includes(ce(vt));Y.push({kind:"dir",path:vt,label:vt.slice(Ce?Ce.length+1:0)+"/",depth:xe,open:It,state:j(vt),locked:!1,note:en?"whole folder":""}),It&&pe(vt,xe+1)}for(let vt of Ht.files)Y.push(M(vt,xe,vt.slice(Ce?Ce.length+1:0)))};return pe("",0),Y},e.preserveCount=()=>Z?Z.files.filter(Be).length:0,e.togglePreserveDir=E=>{e.preserve.expanded[E]=!e.preserve.expanded[E]},e.togglePreserveFile=E=>{e.preserve.picked[E]=!e.preserve.picked[E],Te++},e.togglePreserveFolder=E=>{let M=ce(E),B=ae(E),Y=oe().filter(Ce=>Ce!==M&&Ce!==B),pe=j(E)==="all"||oe().includes(M);for(let Ce of Re(E))e.preserve.picked[Ce]=!1;Te++,e.preserve.patterns=(pe?Y:[...Y,M]).join(` -`),pe&&Re(E).some(Be)&&(e.preserve.patterns=[...Y,B].join(` -`))};let me=/^readme(\.[^/]*)?$/i,Se=[".md",".markdown",".mdown",".mkdn",".rst",".txt",""],ke=["README.md","README","README.markdown","README.rst","README.txt","readme.md"],qe=E=>{let M=Oe(E),B=M.indexOf("."),Y=Se.indexOf(B===-1?"":M.slice(B).toLowerCase());return Y===-1?Se.length:Y},ct=()=>!!Z&&!!e.preserve.commit&&e.preserve.commit===e.source?.commit;e.readmePath=()=>{if(!ct())return"";for(let E of[".github","","docs"]){let M=(Z.dirs.get(E)?.files||[]).filter(B=>me.test(Oe(B)));if(M.length)return M.sort((B,Y)=>qe(B)-qe(Y)||ht(B,Y))[0]}return""},e.readmeName=()=>Oe(e.readmePath())||"README.md";let At={key:null,fn:()=>!1},Ut=()=>{let E=(e.options?.preserveFiles||[]).map(B=>String(B).trim()).filter(Boolean),M=E.join(` -`);if(M!==At.key){let B=()=>!1;try{E.length&&(B=Kl(E))}catch{}At={key:M,fn:B}}return At.fn};e.pathPreserved=E=>!!E&&Ut()(E),e.readmePreserved=()=>{if(e.detectedType!=="repo")return!1;let E=Ut();if(ct()){let M=e.readmePath();return!!M&&E(M)}return ke.some(M=>E(M))},e.previewPreserved=()=>e.detectedType==="repo"&&(e.previewFile?e.pathPreserved(e.previewFile):e.readmePreserved());function Bt(){let E={terms:e.terms?e.terms.split(` -`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(E.branchName=e.source.branch);try{let M=parseGithubUrl(e.sourceUrl);E.repoName=`${M.owner}/${M.repo}`}catch{}return E}function Pn(E,M,B){let Y=null,pe=0,Ce=()=>{if(e.detectedType!==E)return;Y&&u.cancel(Y);let xe=++pe;e.previewStatus="loading",Y=u(()=>{Y=null;let Ht=M();if(!Ht){e.previewStatus="idle";return}t.post("/api/anonymize-preview",Ht).then(vt=>{xe===pe&&(B(vt.data,Ht),e.previewStatus="ready")}).catch(()=>{xe===pe&&(e.previewStatus="error")})},200)};return Ce.cancel=()=>{pe++,Y&&u.cancel(Y),Y=null},e.on("dispose",Ce.cancel),Ce}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof hn!="string"?ad(e.previewFile):xt()),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&An()};let at=kn(ei(e));Object.defineProperty(e,"previewViewer",{get:()=>at}),yl(at,e),Object.assign(at,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),at.preview=!0,at.fileSize=E=>E===at.filePath&&typeof hn=="string"?new Blob([hn]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,at.openPreserveFiles=()=>e.openPreserveFiles(),at.previewPreserved=()=>e.previewPreserved(),at.retryContent=()=>e.retryPreview();let _m=E=>fe.has(E)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(E),na=(E="")=>({path:E,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=na();let go=0,hn=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=E=>{if(E=E||"",E&&E===e.readmePath()&&(E=""),go++,hn=null,Si(),xt.cancel(),e.previewFile=E,e.previewDoc=na(E),at.sidebarCollapsed=!0,at.content=null,!E){e.readme?xt():e.previewStatus="idle";return}if(_m(E)){sa("binary"),e.previewStatus="ready";return}ad(E)};function rd(){go++,hn=null,e.previewFile="",e.previewDoc=na(),at.sidebarCollapsed=!0,at.content=null}function ad(E){let M=++go;hn=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Ee()},transformResponse:Y=>Y}).then(Y=>{if(M!==go)return;e.previewDoc.loading=!1;let pe=typeof Y.headers=="function"&&Y.headers("content-type")||"";if(/json/i.test(pe)){let Ce=null;try{Ce=JSON.parse(Y.data)}catch{}if(Ce&&Ce.binary===!0){sa("binary"),e.previewStatus="ready";return}}hn=typeof Y.data=="string"?Y.data:"",xt()},Y=>{if(M!==go)return;e.previewDoc.loading=!1;let pe=Qr(Y);if(pe==="file_too_big"){sa("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=as.ERRORS[pe]||"GitHub did not return this file.",e.previewStatus="error"})}let Ei;function Si(){Ei&&window.URL.revokeObjectURL(Ei),Ei=void 0,at.url=void 0}e.on("dispose",Si);function sa(E){Si(),e.previewDoc.note=E,at.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),at.type=E==="too_big"?"error":"binary",at.content=E==="too_big"?"file_too_big":"binary"}function Gm(E){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",Y=E&&E.includes("/")?E.slice(0,E.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${Y}`}catch{return""}}let ld=Pn("repo",()=>e.previewFile?typeof hn!="string"?null:{content:hn,options:Bt()}:e.readme?{content:e.readme,options:Bt()}:null,E=>{if(typeof E?.content!="string")throw Error("Invalid preview response");Si(),window.URL?.createObjectURL&&(at.url=Ei=window.URL.createObjectURL(new Blob([E.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();at.prepareFile(e.previewPathName(M)),at.fileBaseUrl=Gm(M),at.renderFileContent(E.content,at.type,at.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=E.content)}),xt=()=>{e.previewFile&&typeof hn!="string"||ld()};xt.cancel=ld.cancel;let Is=ut(new Map),oa=new Set,ia=new Set,yo="",vo=null,Ni=()=>String(e.terms||"").split(` -`).filter(E=>E.trim());function Wm(){vo=null;let E=Ni(),M=E.join(` -`);M!==yo&&(Is.clear(),ia.clear(),yo=M);let B=[...oa].filter(Y=>!Is.has(Y));if(oa.clear(),!(!B.length||!E.length))for(let Y=0;Y{if(yo!==M||Ni().join(` -`)!==M)return;let xe=Ce.data?.contents;if(!Array.isArray(xe)||xe.length!==pe.length)throw Error("Invalid preview response");pe.forEach((Ht,vt)=>Is.set(Ht,typeof xe[vt]=="string"?xe[vt]:Ht))}).catch(()=>{yo===M&&pe.forEach(Ce=>ia.add(Ce))})}}e.previewName=E=>{if(!E||!Ni().length)return E;if(yo===Ni().join(` -`)){if(Is.has(E))return Is.get(E);if(ia.has(E))return E}return oa.add(E),vo||(vo=u(Wm,120)),E},e.previewPathName=E=>{E=String(E||"");let M=E.lastIndexOf("/");return M<0?e.previewName(E):e.previewName(E.slice(0,M))+"/"+e.previewName(E.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{at.repoId=e.repoId||"repository",at.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),at.paths=at.filePath.split("/"),at.files=e.previewTreeFiles(),at.loadedFolders=Object.fromEntries([...Ne?.dirs.keys()||[]].map(E=>[e.previewName(E),!0]))},!0),e.on("dispose",()=>{vo&&u.cancel(vo)});function Os(){!e.anonymize||!e.anonymize.terms||xt()}async function dd(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it();let B=await t.get(`/api/pr/${E.owner}/${E.repo}/${E.pullRequestId}`,{params:{connection:e.githubConnection}});if(!v(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=E.repo+"-PR"+E.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!v(M))return;throw We(B),B}finally{C(M)}}let Ms=ut(new Map);function Km(){let E=new Set,M=e.details&&e.details.pullRequest;if(!M)return E;typeof M.title=="string"&&E.add(M.title),typeof M.body=="string"&&E.add(M.body),typeof M.diff=="string"&&E.add(M.diff);let B=M.comments||[];for(let Y of B)typeof Y.author=="string"&&E.add(Y.author),typeof Y.body=="string"&&E.add(Y.body);return E}let Dn=Pn("pr",()=>{let E=Km(),M=Array.from(E);return M.length===0?null:{contents:M,options:Bt()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;peMs.set(Ce,pe))});e.anonymizePrContent=function(E){return E&&(Ms.has(E)?Ms.get(E):"")};async function ud(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${E.gistId}`);if(!v(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+E.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!v(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,ee("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,ee("sourceUrl","missing",!1);return}throw We(B),B}finally{C(M)}}let Vs=ut(new Map);function Ym(){let E=new Set,M=e.details&&e.details.gist;if(!M)return E;typeof M.description=="string"&&E.add(M.description),typeof M.ownerLogin=="string"&&E.add(M.ownerLogin);let B=M.files||[];for(let pe of B)typeof pe.filename=="string"&&E.add(pe.filename),typeof pe.content=="string"&&E.add(pe.content);let Y=M.comments||[];for(let pe of Y)typeof pe.author=="string"&&E.add(pe.author),typeof pe.body=="string"&&E.add(pe.body);return E}let An=Pn("gist",()=>{let E=Ym(),M=Array.from(E);return M.length===0?null:{contents:M,options:Bt()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;peVs.set(Ce,pe)),ra()});e.anonymizeGistContent=function(E){return E&&(Vs.has(E)?Vs.get(E):"")},e.previewGistFiles=[];function ra(){let E=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=E.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",ra,!0),e.watch("terms",ra);function Xm(){let E=e.conference;if(e.conference_data=null,!E)return;let M=E===b||e.isUpdate&&E===e._originalConference;E!==b&&(b=null),t.get("/api/conferences/"+E).then(B=>{e.conference===E&&(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),!M&&(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&&(e.conference_data=null)})}function qs(){ee("repoId","used",!0),ee("repoId","format",!0),ee("pullRequestId","used",!0),ee("pullRequestId","format",!0),ee("gistId","used",!0),ee("gistId","format",!0),ee("sourceUrl","used",!0),ee("sourceUrl","missing",!0),ee("sourceUrl","access",!0),ee("sourceUrl","github",!0),ee("commit","exists",!0),ee("conference","activated",!0),ee("terms","format",!0),e.termHints=[]}function Ri(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let E=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||E&&E.invalid?(E&&E.setDirty&&E.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ti(E){let M=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(E){case"repoId_already_used":ee(M,"used",!1);break;case"invalid_repoId":ee(M,"format",!1);break;case"options_not_provided":ee(M,"format",!1);break;case"repo_already_anonymized":ee("sourceUrl","used",!1);break;case"invalid_terms_format":ee("terms","format",!1);break;case"repo_not_found":ee("sourceUrl","missing",!1);break;case"repo_not_accessible":ee("sourceUrl","access",!1);break;case"commit_not_found":ee("commit","exists",!1);break;case"conf_not_activated":ee("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let E=(e.coauthorSearch||"").trim();if(e.coauthorError="",E.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:E}}).then(M=>{let B=new Set((e.coauthors||[]).map(Y=>(Y.username||"").toLowerCase()));e.coauthorResults=(M.data||[]).filter(Y=>!B.has((Y.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(E,M)=>{M&&M.preventDefault(),!(!E||!E.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:E.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let Y=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=Y})},e.removeCoauthor=E=>{!E||!E.username||confirm("Remove co-author "+E.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(E.username)).then(M=>{e.coauthors=M.data||[]},M=>{let B=M&&M.data&&M.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(Ri()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,Je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={repoId:e.repoId,terms:e.terms.trim().split(` -`).filter(Ce=>Ce),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&&(Y.options.pageSource=e.details.pageSource),qs();let pe=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/status/"+e.repoId},Ce=>{if(Ce.data){let xe=["quota_exceeded","quota_repository_limit","quota_storage_limit","subscription_required_for_never_expiration"].includes(Ce.data.error);xe||o("ERRORS."+Ce.data.error).then(Ht=>{e.error=Ht},console.error),Ti(Ce.data.error),xe&&(Ce.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ri())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={gistId:e.gistId,terms:e.terms.trim().split(` -`).filter(Ce=>Ce),source:{gistId:B.gistId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/gist/"+e.gistId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(xe=>{e.error=xe},console.error),Ti(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ri())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` -`).filter(Ce=>Ce),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/pr/"+e.pullRequestId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(xe=>{e.error=xe},console.error),Ti(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{Xm()}),e.termHints=[],e.matchTermAsWritten=E=>{e.terms=af(e.terms,E)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&xt()}),e.watch("terms",()=>{e.termHints=rf(e.terms),e.detectedType==="repo"&&Os(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&An()}),e.watch("options.image",()=>{e.detectedType==="repo"&&Os(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&An()}),e.watch("options.link",()=>{e.detectedType==="repo"&&Os(),e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&An()}),e.watch("details",()=>{e.detectedType==="pr"&&Dn(),e.detectedType==="gist"&&An()},!0)},Ql=function(e,t,s,i,r,o){yl(e);let u=Tt();Zr();let p=$t(),d=0,g=null,m=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function v(){g&&(g.resolve(),g=null),m&&(u.timeout.cancel(m),m=null)}let y=!1;e.on("dispose",()=>{y=!0,d++,v(),C&&C.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",F=>{e.symbolsOpen&&!F.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!F.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!F.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&F.target.isConnected&&!F.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!F.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!F.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",F=>{F.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(F.ctrlKey||F.metaKey)&&!F.altKey&&F.key&&F.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(F.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(F){if((F.metaKey||F.ctrlKey)&&F.key==="k"){F.preventDefault();var V=document.querySelector(".tree-search-input");V&&(V.focus(),V.select())}});var C=null;e.onFileSearchChange=function(){C&&(C.resolve(),C=null);let F=e.fileSearchQuery;if(!F||F.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let V=o.defer();C=V,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(F)}`,{timeout:V.promise}).then(function(S){if(!(y||C!==V)){C=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Oe){q[(Oe.path||"")+"/"+Oe.name]=!0});for(var G=[],ie={},K=0;K0&&e.files.push.apply(e.files,G);for(var Ge=[],We=0;We0&&e.files.push.apply(e.files,Ge),e.fileSearchResults=S.data}},function(){!y&&C===V&&(C=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(F,V){if(e.repoId!=i.repoId)return re();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(S=>S&&S.trim().length>0),W();for(let S=0;S0?e.paths.slice(0,S).join("/"):"";e.files.some(ie=>ie.path===q)||e.getFiles(q)}}});function k(){if(e.paths[0]!="")return;let F=["readme.md","readme.txt","readme.org","readme.1st","readme"],V={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(V[q.name.toLowerCase()]=q.name);let S=null;for(let q of F)if(V[q]){S=q;break}if(!S&&Object.keys(V).length>0&&(S=Object.keys(V)[0]),S){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(V[S]))}}e.fileCounts=null;let w=0,R=new Set,b=!1;e.getFiles=function(F,V=!1){let S=e.repoId,q=w;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(F)}&v=${e.options.lastUpdateDate}`).then(function(G){if(y||S!==e.repoId||q!==w)return[];let ie=F||"";return e.files=e.files.filter(K=>K.path!==ie),e.files.push(...G.data),e.loadedFolders={...e.loadedFolders,[ie]:!0},P(ie,q),G.data},function(G){if(y||S!==e.repoId||q!==w)return[];V||(e.type="error",e.content=Qr(G),e.files=[])})};function P(F,V){if(b||R.has(F))return;R.add(F);let S=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(F)}`).then(function(q){y||S!==e.repoId||V!==w||(e.fileCounts={...e.fileCounts,...q.data})},function(){y||S!==e.repoId||V!==w||(b=!0)})}function D(){return e.files.filter(F=>F.name==e.paths[e.paths.length-1]&&F.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var L=null;e.on("dispose",function(){L&&u.interval.cancel(L)});function H(F){if(y)return;let V=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(S=>{if(!(y||V!==e.repoId)){if(e.options=S.data,e.options.url){window.location=e.options.url;return}F&&F(S.data)}},S=>{if(!(y||V!==e.repoId)){var q=S.data||{};if(q.error==="rate_limited"&&q.resetAt){let ie=function(){var K=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(K<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,L&&(u.interval.cancel(L),L=null),H(F);else{var ne=Math.floor(K/60),le=K%60;e.rateLimitCountdown=ne>0?ne+"m "+le+"s":le+"s"}};var G=ie;e.type="rate_limited",e.rateLimitResetAt=q.resetAt,L&&u.interval.cancel(L),ie(),L=u.interval(ie,1e3)}else q.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){H(F)},3e3)):(e.type="error",e.content=Qr(S))}})}function _(F,V){let S=d;if(!F){e.type="error",e.content="no_file_selected";return}let q=e.type;(q==="code"||q==="text")&&Di().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let G=o.defer();g=G,m=u.timeout(()=>{!y&&S===d&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let ie=V&&V.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(F)}?v=`+ie,{timeout:G.promise,onDownloadProgress:K=>{!y&&S===d&&(e.fileReceivedBytes=K)},transformResponse:K=>K}).then(K=>{y||S!==d||(v(),e.renderFileContent(K.data,q,s.url()+"/../",K.headers("content-type")))},K=>{y||S!==d||(v(),e.type="error",e.content=Qr(K))})}function W(){d++,v(),e.content="",e.file=D();let F="0";e.file&&e.file.sha&&(F=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${F}`;let V=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${V?encodePathForUrl(V):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}_(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=()=>re();function re(){d++,v(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,w++,R=new Set,b=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let F=e.repoId;H(function(V){if(e.filePath){W();let q=[...new Set(e.paths.map((G,ie)=>e.paths.slice(0,ie).join("/")))];o.all(q.map(G=>e.getFiles(G,!0)));return}var S=o.resolve();for(let q=0;q0?e.paths.slice(0,q).join("/"):"";S=S.then(function(){return e.getFiles(G)}).then(function(){if(e.type==="error")return o.reject("error")})}S.then(function(){y||F!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(k(),W()))})})}re()},yf=function(e,t,s,i,r){async function o(d){t.get(`/api/pr/${e.pullRequestId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}async function u(d){t.get(`/api/pr/${e.pullRequestId}/content`).then(g=>{e.details=g.data,e.tabState={active:lp(g.data)},d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",ap(e),Zr(),o(d=>{u()})}p()},vf=function(e,t,s,i,r){async function o(d){t.get(`/api/gist/${e.gistId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}async function u(d){t.get(`/api/gist/${e.gistId}/content`).then(g=>{e.details=g.data;let m=g.data&&g.data.files&&g.data.files.length;e.tabState={active:m?"files":"comments"},d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.gistId=i.gistId,e.type="loading",rp(e),Zr(),o(()=>{u()})}p()},bf=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",r={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},o=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},r.filters.status,o.filters&&o.filters.status||{})},e.orderBy=o.orderBy||r.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=ut({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},Jl=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let r=()=>{for(let[y,C,k]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let w=document.getElementById(y);if(!w)continue;let R=w.parentElement.querySelector(":scope > .date-echo");R||(R=document.createElement("p"),R.className="date-echo",R.setAttribute("aria-live","polite"),w.insertAdjacentElement("afterend",R));let b=Pr(e.options?.[k]);R.textContent=b?C+" "+b:"",R.hidden=!b}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>Je(r));let o=(y=20)=>{let C=document.querySelector("input#name.form-control"),k=document.querySelector("input#conferenceID.form-control");k&&(k.placeholder="e.g. ICSE27"),C?C.placeholder="e.g. ICSE 2027":y>0&&setTimeout(()=>o(y-1),50)};setTimeout(()=>o(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,wr(t).then(y=>{e.conferenceBilling=y.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(y=>y.id!=="free_conference").map(y=>{let C=(e.conferenceBilling?.plans||[]).find(k=>k.id===y.id)||{};return{...y,storage:y.storagePerRepo,...C,id:y.id,name:y.name}}),e.conferenceAudience=y=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[y]||"",e.conferencePlanName=y=>wf(y),e.conferenceAmount=(y,C=y?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:y?.currency||"eur",minimumFractionDigits:C%100?2:0,maximumFractionDigits:2}).format(C/100),e.conferenceBytes=y=>{let C=Number(y)||0,k=Math.min(4,Math.floor(Math.log2(Math.max(C,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(C/1024**k)} ${["B","KB","MB","GB","TB"][k]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.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)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(y=>{e.plans=y.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(C=>C.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(C=>C.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(C=>C.id==e.options.plan.planID)[0]})}p();let d=new Date;d.setDate(1),d.setMonth(d.getMonth()+1);let g=new Date(d);g.setTime(d.getTime()+179*864e5),e.options={billing:{},startDate:d,endDate:g,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 v(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)),C=ut({title:`Creating ${y.name}...`,date:new Date,body:`The conference ${y.conferenceID} is in creation.`});e.editionMode&&(C.title=`Updating ${y.name}...`,C.body=`The conference '${y.conferenceID}' is updating.`),e.addToast(C),m(),t.post("/api/conferences/"+(e.editionMode?y.conferenceID:""),y).then(()=>{e.editionMode?(C.title=`${y.name} updated`,C.body=`The conference '${y.conferenceID}' is updated.`):(C.title=`${y.name} created`,C.body=`The conference '${y.conferenceID}' is created.`),s.url("/conference/"+y.conferenceID)},k=>{v(k.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(C)}).finally(()=>{e.saving=!1})}};function wf(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var kf=function(e,t,s,i){kr(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=d=>wf(d),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let r=Fr,o=["ready","preparing","error","expired","removed"],u={current:d=>d!=="removed",attention:d=>d==="error",removed:d=>d==="removed"};e.confView=()=>Object.keys(u).find(d=>o.every(g=>u[d](g)===(e.filters.status[g]!==!1)))||"custom",e.setConfView=d=>{o.forEach(g=>{e.filters.status[g]=(u[d]||u.current)(g)})},e.confCount=d=>(e.conference?.repositories||[]).filter(g=>u[d](r(g.status))).length,e.copyingId=null,e.copyRepoLink=async d=>{if(!d?.repoId||e.copyingId)return;let g=new URL("/r/"+d.repoId+"/",window.location.origin).href;e.copyingId=d.repoId;try{await Xl(g),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:g})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=d=>{!d?.repoId||e.extendingId||(e.extendingId=d.repoId,t.post("/api/repo/"+d.repoId+"/extend").then(g=>{let m=g?.data?.expirationDate?` until ${new Date(g.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${d.repoId} is extended.`,body:`Reviewers can open it again${m}.`}),d.status="ready",g?.data?.expirationDate&&(d.options={...d.options||{},expirationDate:g.data.expirationDate}),e.extendingId=null},g=>{let m=g?.status||g?.data?.status;e.addToast({title:`Couldn't extend ${d.repoId}.`,body:m===401||m===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=d=>{if(e.filters.status[r(d.status)]==!1)return!1;let g=e.search.trim().toLowerCase();return!!(!g||(d.source?.fullName||"").toLowerCase().includes(g)||(d.repoId||"").toLowerCase().includes(g))},e.conferenceLoaded=!1;function p(){t.get("/api/conferences/"+i.conferenceId).then(d=>{e.conference=d.data}).finally(()=>{e.conferenceLoaded=!0})}p()},Cf=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.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(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,r)=>{e.busy=!0,e.connectionError="";try{let o=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:r},{headers:{"X-CSRF-Token":e.connections.csrf}});r?s.eligible=o.data.eligible:await e.loadConnections()}catch(o){e.connectionError=o.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(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},Ef=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var Sf=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>hd(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Cf(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ef(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>mf(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)=>hf(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)=>xr(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)=>xr(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)=>xr(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)=>gf(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>bf(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Jl(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)=>Jl(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>kf(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>cf(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>pf(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)=>ff(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)=>yf(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)=>vf(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)=>Ql(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)=>Ql(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)=>wp(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)=>hp(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)=>gp(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)=>yp(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)=>vp(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ep(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Cp(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)=>bp(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)=>Cl(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 Xb={class:"container paper-page admin-page overview-page emails-page"},Qb={class:"email-overview-toolbar"},Jb={class:"seg-filter",role:"group","aria-label":"History period"},Zb=["aria-pressed","onClick"],xb={class:"email-refresh"},e1={key:0},t1=["disabled"],n1={key:0,class:"email-state email-state-error",role:"alert"},s1=["aria-busy"],o1={class:"ov-kpi-card"},i1={class:"ov-kpi-value"},r1={class:"ov-kpi-card"},a1={class:"ov-kpi-value"},l1={class:"ov-kpi-card"},d1={class:"ov-kpi-card"},u1={class:"ov-kpi-value"},c1={class:"ov-kpi-sub"},p1={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},f1={class:"ov-chart-head"},m1={class:"ov-chart-title"},h1={class:"email-muted"},g1={class:"email-chart-plot"},y1={class:"email-axis"},v1={class:"email-bars"},b1=["aria-label","title"],w1={class:"email-chart-dates"},k1={key:0},C1={class:"email-chart-data"},E1={class:"email-data-scroll"},S1={scope:"row"},N1={"aria-labelledby":"email-history-title",class:"email-history"},R1={class:"email-section-head"},T1={class:"email-muted"},P1={class:"email-search"},D1={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},A1=["aria-pressed","onClick"],I1={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},O1={key:0,class:"email-state email-state-error",role:"alert"},M1=["disabled"],V1={key:1,class:"email-state"},q1={key:2,class:"email-state"},L1={key:3,class:"email-footer email-pager-top"},$1=["disabled"],F1=["disabled"],U1=["aria-busy"],B1={class:"email-table",role:"table"},H1={role:"rowgroup"},z1={class:"email-recipient",role:"cell"},j1=["title"],_1={class:"email-result",role:"cell"},G1={key:0,class:"email-http"},W1={class:"email-type",role:"cell"},K1={class:"email-attempted",role:"cell"},Y1=["datetime","title"],X1={class:"email-expand",role:"cell"},Q1=["aria-expanded","aria-controls","aria-label","onClick"],J1={"aria-hidden":"true"},Z1={key:0,class:"email-expanded",role:"row"},x1={colspan:"5",role:"cell"},ew=["id","aria-label"],tw={class:"email-detail-heading"},nw={class:"email-explanation"},sw={class:"email-detail-grid"},ow=["onClick"],iw=["onClick"],rw=["onClick"],aw=["onClick"],lw={key:0,class:"email-copy-feedback"},dw={key:5,class:"email-footer"},uw=["disabled"],cw=["disabled"];function Nf(e,t){return a(),l("div",Xb,[t[43]||(t[43]=Pe('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",Qb,[n("div",Jb,[(a(),l(N,null,U([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:T(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},c(s.label),11,Zb)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",xb,[e.emailUpdated?(a(),l("span",e1,"History updated "+c(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,t1)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",n1,[h(c(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",o1,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",i1,c(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",r1,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",a1,c(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",l1,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:T(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},c(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",d1,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",u1,c(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",c1,c(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+c(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,s1),e.emailSummary?(a(),l("section",p1,[n("div",f1,[n("h2",m1,[t[21]||(t[21]=h("Sending activity ",-1)),n("span",h1,"\xB7 "+c(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",g1,[n("div",y1,[n("span",null,c(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",v1,[(a(!0),l(N,null,U(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:De({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:De({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:De({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:De({flexGrow:s.unknown+s.sending})},null,4)],4)],8,b1))),128))])]),n("div",w1,[n("span",null,c(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",k1,"No recorded activity in these "+c(e.emailSummary.chartDays)+" days",1)),n("span",null,c(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",C1,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",E1,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",S1,c(e.emailDayLabel(s)),1),n("td",null,c(s.accepted),1),n("td",null,c(s.rejected),1),n("td",null,c(s.unknown),1),n("td",null,c(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",N1,[n("div",R1,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",T1,"Newest first \xB7 "+c(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=de(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",P1,[t[28]||(t[28]=h("Search attempts",-1)),O(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[ft,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=h("Email type",-1)),O(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[qt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",D1,[(a(),l(N,null,U(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:T({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[h(c(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,c(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,A1)),64))]),n("p",I1,c(e.emailAnnouncement)+" "+c(e.emailCopyMessage),1),e.emailError?(a(),l("div",O1,[n("span",null,c(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,M1)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",V1,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",q1,[n("p",null,c(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",L1,[n("span",null,[h(c((e.emailPage-1)*25+1)+"\u2013"+c(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(N,{key:0},[h(" of "+c(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=h(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,$1),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,F1)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",B1,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",H1,[(a(!0),l(N,null,U(e.emailVisibleRows(),s=>(a(),l(N,{key:s._id},[n("tr",{role:"row",class:T({"email-selected":e.selectedEmailId===s._id})},[n("td",z1,[n("span",{title:s.recipient},c(s.recipient),9,j1)]),n("td",_1,[n("span",{class:T(["email-outcome","email-outcome-"+s.state])},c(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",G1,c(s.httpStatus),1)):f("v-if",!0)]),n("td",W1,c(e.emailKindLabel(s.kind)),1),n("td",K1,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},c(e.emailShortTime(s.createdAt)),9,Y1)]),n("td",X1,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[h(c(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",J1,c(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,Q1)])],2),e.selectedEmailId===s._id?(a(),l("tr",Z1,[n("td",x1,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",tw,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:T(["email-outcome","email-outcome-"+s.state])},c(e.emailStatusLabel(s.state)),3)]),n("p",nw,c(e.emailExplanation(s)),1),n("dl",sw,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[h(c(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},c(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,ow)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,c(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,c(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,c(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,c(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},c(e.emailCopiedValue===s._id?"Copied":"Copy"),9,iw)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,c(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},c(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,rw)])]),n("div",null,[n("dt",null,"Resource \xB7 "+c(s.resourceKind),1),n("dd",null,[n("code",null,c(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},c(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,aw)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",lw,c(e.emailCopyMessage),1)):f("v-if",!0)],8,ew)])])):f("v-if",!0)],64))),128))])])],8,U1)):f("v-if",!0),e.emailRows.length?(a(),l("div",dw,[n("span",null,[h("Page "+c(e.emailPage),1),e.emailPageCount()?(a(),l(N,{key:0},[h(" of "+c(e.emailPageCount()),1)],64)):f("v-if",!0),h(" \xB7 "+c(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,uw),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,cw)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var pw={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},fw={key:0},mw={key:1,role:"alert"},hw={key:2,role:"status"},gw={key:0},yw={key:1},vw=["disabled"],bw=["disabled"],ww=["disabled"],kw={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Cw={id:"review-policy-title"},Ew={key:0,role:"alert"},Sw=["disabled"],Nw=["disabled"],Rw=["disabled"],Tw={key:6,role:"status"};function Rf(e,t){return a(),l("section",pw,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",fw,[...t[6]||(t[6]=[h("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",mw,c(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",hw,[t[7]||(t[7]=h("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",gw,"Continue to review to finish linking.")):(a(),l("span",yw,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,vw)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=de((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),O(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,bw),[[ft,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,ww)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",kw,[n("h2",Cw,c(e.preview.repositoryName),1),n("p",null,"Access: "+c(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+c(e.preview.policy.retainUntil)+". Policy version "+c(e.preview.policy.version)+".",1),e.expired?(a(),l("p",Ew,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[O(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,Sw),[[Xa,e.acceptAccess]]),t[10]||(t[10]=h(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[O(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,Nw),[[Xa,e.acceptRetention]]),t[11]||(t[11]=h(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},c(e.uncertain?"Retry confirmation":"Confirm consent"),9,Rw)])):f("v-if",!0),e.busy?(a(),l("p",Tw,"Waiting for the server\u2026")):f("v-if",!0)])}var Pw={class:"container paper-page connections-page"},Dw={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Aw={key:1,role:"status"},Iw=["disabled"],Ow={key:3},Mw={key:0,class:"connection-resources"},Vw=["disabled"],qw=["disabled"],Lw={key:0,role:"status"},$w={class:"connections-grid"},Fw={key:0},Uw={class:"connection-title"},Bw={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Hw={class:"connection-actions"},zw={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},jw=["disabled"],_w={key:1,class:"connection-installations"},Gw={key:0},Ww=["href"],Kw={class:"sr-only"},Yw={class:"connection-title"},Xw={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Qw={key:1,class:"connection-revoke"},Jw={key:0},Zw=["disabled"],xw={class:"connection-resources"},ek={class:"connection-title"},tk={class:"connection-count"},nk={key:0,class:"connection-empty"},sk={class:"connection-resource-name"},ok={key:0,class:"connection-resource-actions"},ik=["disabled","onClick"],rk=["disabled","onClick"],ak={key:1,class:"connection-help",role:"status"},lk=["disabled","onClick"];function Tf(e,t){return a(),l("div",Pw,[t[27]||(t[27]=Pe('
My work \xA0/\xA0 GitHub connections

GitHub connections

Manage how GitHub shares your code. Your anonymizations and URLs stay the same.

',2)),e.connectionError?(a(),l("p",Dw,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",Aw,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,Iw)):f("v-if",!0),e.connections?(a(),l("div",Ow,[e.connections.emailNotificationsEnabled?(a(),l("section",Mw,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("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)),n("form",{onSubmit:t[2]||(t[2]=de(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),O(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,Vw),[[ft,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,qw),e.emailSaved?(a(),l("p",Lw,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",$w,[e.connections.appEnabled?(a(),l("section",Fw,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",Uw,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:T(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",Bw,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",Hw,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",zw,[...t[9]||(t[9]=[h("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:T(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),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,jw)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",_w,[(a(!0),l(N,null,U(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=h()),n("strong",null,c(s.account),1),s.suspended?(a(),l("span",Gw," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=h("Manage access ",-1)),n("span",Kw,"for "+c(s.account),1),t[14]||(t[14]=h(" \u2192",-1))],8,Ww)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Yw,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:T(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("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?(a(),l("a",Xw,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",Qw,[e.connections.gistCount?(a(),l("p",Jw,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Zw)):f("v-if",!0)])):f("v-if",!0)])]),n("section",xw,[n("div",ek,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",tk,c(e.connections.resources?.length||0)+" "+c((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("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):(a(),l("div",nk,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(N,null,U(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",sk,[n("strong",null,c(s.name||s.id),1),n("small",null,c(s.type)+" \xB7 "+c(s.id),1)]),n("span",{class:T(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},c(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",ok,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,ik),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},c(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,rk)):f("v-if",!0),s.eligible===!1?(a(),l("span",ak,"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(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,lk)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var dk={class:"container paper-page auth-page"},uk={class:"auth-layout"},ck={class:"auth-options"},pk={key:0},fk={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},mk={key:1},hk={key:1,class:"auth-card"},gk={key:2,class:"auth-legacy"},yk={key:3,role:"status"};function Pf(e,t){let s=_e("partial-view");return a(),l(N,null,[n("div",dk,[n("div",uk,[t[4]||(t[4]=Pe('
Your research, ready for review

Your code.
Your identity,
protected.
Sign in to GitHub

Sign in to create and manage your anonymizations.

',1)),n("div",ck,[e.accountRecovery?(a(),l("section",pk,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("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?(a(),l("a",fk,"Verify with previous GitHub connection")):(a(),l("p",mk,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",hk,[...t[2]||(t[2]=[Pe('

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 GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",gk,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",yk,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function Df(e,t){let s=_e("partial-view");return a(),l(N,null,[t[0]||(t[0]=Pe('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var vk={class:"container paper-page admin-page"},bk={class:"seg-bar"},wk={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},kk=["aria-checked"],Ck={class:"count"},Ek=["aria-checked"],Sk={class:"count"},Nk=["aria-checked"],Rk={class:"count"},Tk=["aria-checked"],Pk={class:"count"},Dk=["aria-checked"],Ak={class:"count"},Ik=["aria-checked"],Ok={class:"count"},Mk={class:"seg-countline",role:"status"},Vk={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},qk={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Lk={class:"admin-filter-row"},$k={class:"search-wrap"},Fk={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},Uk={key:0,class:"admin-search-hint"},Bk={key:1,class:"admin-filter-inline","aria-label":"Pagination"},Hk=["disabled"],zk={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},jk=["disabled"],_k={key:0,class:"admin-filter-row"},Gk={class:"admin-active-chips"},Wk={class:"key"},Kk=["onClick"],Yk=["aria-busy"],Xk={key:0,class:"paper-table-head",role:"row"},Qk={role:"columnheader"},Jk={role:"columnheader"},Zk={role:"columnheader"},xk={class:"paper-table-row",role:"row"},e0={class:"cell-anon",role:"cell"},t0={class:"anon-text"},n0=["textContent","href"],s0={class:"anon-sub"},o0={class:"cell-status",role:"cell"},i0=["textContent"],r0={class:"cell-views num",role:"cell"},a0=["textContent","href"],l0={class:"cell-expires",role:"cell"},d0={class:"cell-actions",role:"cell"},u0={class:"dropdown"},c0={class:"dropdown-menu dropdown-menu-right"},p0=["href"],f0=["href"],m0=["href"],h0=["onClick"],g0={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},y0={key:1,class:"paper-table-empty"},v0={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},b0={key:0,class:"pagination-compact"},w0=["disabled"],k0=["max"],C0=["disabled"],E0={class:"admin-filter-inline"},S0={class:"form-control form-control-sm"};function Af(e,t){let s=Le("field"),i=Le("form");return a(),l("div",vk,[t[56]||(t[56]=Pe('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",bk,[n("div",wk,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=r=>e.setSegView("all"))},[t[14]||(t[14]=h("All ",-1)),n("span",Ck,c(e.fmt?.number(e.segCount("all"))),1)],10,kk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=r=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Ready ",-1)),n("span",Sk,c(e.fmt?.number(e.segCount("ready"))),1)],10,Ek),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=r=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Preparing ",-1)),n("span",Rk,c(e.fmt?.number(e.segCount("preparing"))),1)],10,Nk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=r=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Error ",-1)),n("span",Pk,c(e.fmt?.number(e.segCount("error"))),1)],10,Tk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=r=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=h("Expired ",-1)),n("span",Ak,c(e.fmt?.number(e.segCount("expired"))),1)],10,Dk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=r=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=h("Removed ",-1)),n("span",Ok,c(e.fmt?.number(e.segCount("removed"))),1)],10,Ik)]),n("p",Mk,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=h(" shown",-1))])]),e.fetchError?(a(),l("div",Vk,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",qk,[n("div",Lk,[n("div",$k,[O(n("input",Fk,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",Uk,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=r=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",Bk,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,Hk),n("span",zk,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,jk)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",_k,[n("div",Gk,[(a(!0),l(N,null,U(e.chips,(r,o)=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",Wk,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Kk)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",{class:T(["paper-table paper-table-conferences w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Conferences","aria-busy":e.listLoading?"true":"false"},[e.total!==0?(a(),l("div",Xk,[n("div",Qk,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=r=>e.sortBy("name"))},[t[33]||(t[33]=h("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",Jk,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=r=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",Zk,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=r=>e.sortBy("startDate"))},[t[37]||(t[37]=h("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(N,null,U(e.filteredConferences,(r,o)=>(a(),l("div",xk,[n("div",e0,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",t0,[n("a",{class:"repo-name",textContent:c(r?.name),href:e.safeUrl("/conference/"+r?.conferenceID)},null,8,n0),n("div",s0,[n("span",null,c(r?.conferenceID),1),n("span",null,c(e.fmt?.money(r?.price||0)),1)])])]),n("div",o0,[n("span",{class:T(["status-dot","st-"+(r?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(r?.status))},null,8,i0)]),n("div",r0,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(r?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+r?.conferenceID)},null,8,a0)]),n("div",l0,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" "+c(e.fmt?.date(r?.startDate))+" \u2013 "+c(e.fmt?.date(r?.endDate)),1)]),n("div",d0,[n("div",u0,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",c0,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,p0),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View",-1)])],8,f0),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+r?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,m0),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeConference(r),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,h0),[[te,r?.status!="removed"]])])])])]))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],r=>(a(),l(N,{key:"skeleton-"+r},[!e.listLoaded||e.listLoading&&e.filteredConferences?.length==0?(a(),l("div",g0,[...t[49]||(t[49]=[n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredConferences?.length==0?(a(),l("div",y0,[t[50]||(t[50]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,c(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)],10,Yk),n("div",v0,[t[55]||(t[55]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",b0,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[51]||(t[51]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,w0),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,k0),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[52]||(t[52]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,C0)])):f("v-if",!0),n("span",E0,[t[54]||(t[54]=n("label",null,"Per page",-1)),O((a(),l("select",S0,[...t[53]||(t[53]=[Pe('',5)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])])}var N0={class:"page-head"},R0={class:"paper-crumbs","aria-label":"Breadcrumb"},T0={key:0,class:"here"},P0={key:0,class:"here"},D0=["href"],A0={class:"here"},I0={key:0,class:"ov-header page-head-main"},O0={key:0,class:"admin-nav"},M0={class:"sr-only",role:"status","aria-live":"polite"},V0={class:"errs-copy-status",role:"status","aria-live":"polite"},q0=["aria-busy"],L0={key:0,class:"errs-summary"},$0={class:"errs-stat"},F0={class:"errs-stat"},U0={key:0},B0={key:1,class:"errs-not-recorded"},H0={class:"search-wrap errs-search"},z0={class:"errs-select"},j0={class:"errs-select"},_0={key:1,class:"errs-search-hint",id:"errs-search-hint"},G0=["href"],W0=["href"],K0={key:2,class:"errs-source"},Y0={key:0,class:"errs-source-note"},X0=["disabled"],Q0={key:3,class:"errs-state errs-state-error",role:"alert"},J0={key:0},Z0={key:4,class:"errs-table",role:"table","aria-label":"Issues","aria-describedby":"errs-table-note"},x0={class:"errs-head",role:"row"},e2={role:"columnheader"},t2={class:"errs-cell-issue",role:"cell"},n2=["href","data-issue-link"],s2={class:"errs-meta"},o2={class:"errs-code"},i2={class:"errs-meta-part"},r2={key:1,class:"errs-meta-part errs-route"},a2={key:2,class:"errs-meta-part errs-more-routes"},l2={key:3,class:"errs-new"},d2={class:"errs-cause-line"},u2={class:"errs-cell-impact",role:"cell"},c2={key:0},p2={key:1,class:"errs-not-recorded"},f2={class:"errs-cell-trend",role:"cell"},m2=["aria-label"],h2={class:"errs-cell-last",role:"cell"},g2={key:0,class:"errs-now"},y2=["datetime","title"],v2={class:"errs-since"},b2={key:6,class:"errs-state"},w2={key:7,class:"errs-state errs-state-empty"},k2={key:8,class:"errs-noise",id:"errs-table-note"},C2={key:9,class:"errs-expected"},E2={class:"errs-count"},S2={key:0,class:"errs-status is-neutral"},N2={class:"errs-expected-count"},R2=["datetime"],T2={class:"errs-settings-body"},P2={"aria-labelledby":"errs-settings-source"},D2={class:"seg-filter",role:"group","aria-label":"Error source"},A2=["aria-pressed"],I2=["aria-pressed"],O2={key:0,class:"errs-muted"},M2=["href"],V2={"aria-labelledby":"errs-settings-history"},q2={class:"errs-muted",role:"status"},L2={class:"errs-actions"},$2={"aria-labelledby":"errs-settings-counters"},F2={key:0,class:"errs-muted",role:"status"},U2={class:"errs-counters"},B2=["aria-label"],H2=["title"],z2={"aria-labelledby":"errs-settings-telemetry"},j2={key:0,class:"errs-muted",role:"status"},_2={class:"errs-muted"},G2={key:0,class:"errs-muted"},W2={key:1,class:"errs-muted"},K2={class:"errs-muted"},Y2={class:"errs-instances"},X2={key:1,class:"errs-detail","aria-labelledby":"errs-detail-title"},Q2={class:"paper-page-title errs-detail-title",id:"errs-detail-title",tabindex:"-1"},J2={key:0,class:"errs-state"},Z2={key:2,class:"errs-detail","aria-labelledby":"errs-detail-title"},x2={class:"errs-detail-head"},eC={class:"paper-page-title errs-detail-title",id:"errs-detail-title",tabindex:"-1"},tC={class:"errs-chips"},nC={class:"errs-chip"},sC={class:"errs-chip"},oC={class:"errs-chip"},iC={key:1,class:"errs-chip errs-placeholder"},rC={key:2,class:"errs-chip errs-new"},aC={class:"errs-detail-grid"},lC={class:"errs-detail-main"},dC={class:"errs-cause-head"},uC={class:"errs-muted"},cC={class:"errs-cause-summary"},pC={key:0},fC={key:0,class:"errs-evidence"},mC={class:"errs-actions"},hC=["href"],gC=["href"],yC=["href"],vC={key:0,class:"errs-card","aria-labelledby":"errs-routes-title"},bC={class:"errs-card-head"},wC={class:"errs-muted"},kC={class:"errs-route-bar","aria-hidden":"true"},CC={class:"errs-num"},EC={key:0,class:"errs-muted errs-more"},SC={key:1,class:"errs-muted errs-more"},NC={class:"errs-card","aria-labelledby":"errs-repos-title"},RC={class:"errs-card-head"},TC={key:0,class:"errs-muted"},PC={key:0,class:"errs-repos",role:"table","aria-labelledby":"errs-repos-title"},DC={role:"cell",class:"errs-repo-cell"},AC=["href"],IC={key:0,class:"errs-muted"},OC={role:"cell"},MC=["href"],VC={key:1,class:"errs-placeholder"},qC={role:"cell",class:"errs-num"},LC={role:"cell"},$C=["datetime","title"],FC={key:0,class:"errs-muted errs-more"},UC={key:1,class:"errs-placeholder-box"},BC={class:"errs-who"},HC={key:0,class:"errs-placeholder"},zC={key:1},jC={class:"errs-placeholder"},_C={key:2,class:"errs-user-list"},GC=["href"],WC={class:"errs-muted"},KC={class:"errs-detail-side"},YC={class:"errs-card","aria-labelledby":"errs-hist-title"},XC={id:"errs-hist-title"},QC=["aria-label"],JC=["title"],ZC={class:"errs-hist-axis","aria-hidden":"true"},xC={class:"errs-card","aria-labelledby":"errs-occ-title"},eE={class:"errs-card-head"},tE={class:"errs-muted"},nE={class:"errs-occurrences"},sE=["href","data-occurrence"],oE=["datetime"],iE={class:"errs-occ-main"},rE={key:0,class:"errs-mono"},aE={key:1,class:"errs-placeholder"},lE={class:"errs-occ-sub"},dE={key:3,class:"errs-detail errs-request","aria-labelledby":"errs-detail-title"},uE={class:"errs-detail-head"},cE={class:"errs-request-title",id:"errs-detail-title",tabindex:"-1"},pE={class:"errs-actions errs-pager"},fE=["href"],mE=["href"],hE=["href"],gE={class:"errs-chips"},yE={class:"errs-chip"},vE=["datetime"],bE={key:1,class:"errs-chip"},wE=["href"],kE={key:2,class:"errs-chip errs-placeholder"},CE={key:3,class:"errs-chip"},EE=["href"],SE={key:4,class:"errs-chip"},NE=["href"],RE={key:5,class:"errs-chip errs-placeholder"},TE={class:"errs-muted errs-position"},PE={class:"errs-card errs-tabs-card"},DE={class:"errs-tabs",role:"tablist","aria-label":"Request details"},AE=["id","aria-selected","aria-controls","tabindex","onClick","onKeydown"],IE={key:0,class:"errs-panel",role:"tabpanel",id:"errs-panel-timeline","aria-labelledby":"errs-tab-timeline",tabindex:"0"},OE={key:0,class:"errs-muted",role:"status"},ME={class:"errs-legend"},VE={class:"errs-legend-scale"},qE={class:"errs-waterfall"},LE=["aria-expanded","aria-controls","onClick"],$E={class:"errs-step-label"},FE={class:"errs-step-track","aria-hidden":"true"},UE={class:"errs-step-ms"},BE={class:"sr-only"},HE=["id"],zE={key:0},jE={key:0,class:"errs-muted errs-trace-note"},_E=["href"],GE={key:1,class:"errs-placeholder-box"},WE={key:1,class:"errs-panel",role:"tabpanel",id:"errs-panel-request","aria-labelledby":"errs-tab-request",tabindex:"0"},KE={class:"errs-fields"},YE={key:0},XE={key:1,class:"errs-placeholder"},QE={key:0,class:"errs-break"},JE={key:1,class:"errs-placeholder"},ZE={class:"errs-placeholder"},xE={key:0,class:"errs-muted"},eS={key:1,class:"errs-placeholder"},tS=["href"],nS={key:1,class:"errs-placeholder"},sS={key:2,class:"errs-muted"},oS=["href"],iS={key:1,class:"errs-placeholder"},rS={key:0},aS={key:1,class:"errs-placeholder"},lS={class:"errs-break"},dS=["onClick"],uS={key:1,class:"errs-placeholder"},cS={key:2,class:"errs-panel",role:"tabpanel",id:"errs-panel-exception","aria-labelledby":"errs-tab-exception",tabindex:"0"},pS={key:0,class:"errs-muted"},fS={class:"errs-fields"},mS={key:0},hS={key:1,class:"errs-placeholder"},gS={key:0},yS={key:1,class:"errs-placeholder"},vS={key:1,class:"errs-pre"},bS={key:2,class:"errs-placeholder"},wS={class:"errs-pre"},kS={key:1,class:"errs-placeholder-box"},CS={key:3,class:"errs-panel",role:"tabpanel",id:"errs-panel-fields","aria-labelledby":"errs-tab-fields",tabindex:"0"},ES={class:"errs-fields-head"},SS={class:"errs-pre"};function If(e,t){return a(),l("div",{class:T(["container paper-page admin-page errs-page","errs-view-"+e.errView])},[n("header",N0,[n("nav",R0,[t[21]||(t[21]=n("a",{href:"/admin/"},"Admin",-1)),t[22]||(t[22]=h(" \xA0/\xA0 ",-1)),e.errView==="list"?(a(),l("span",T0,"Errors")):(a(),l(N,{key:1},[t[19]||(t[19]=n("a",{href:"/admin/errors"},"Errors",-1)),t[20]||(t[20]=h(" \xA0/\xA0 ",-1)),e.errView==="issue"?(a(),l("span",P0,c(e.selectedIssue?.code||"Issue"),1)):(a(),l(N,{key:1},[n("a",{href:e.errIssueHref(e.selectedIssue?.id)},c(e.selectedIssue?.code),9,D0),t[18]||(t[18]=h(" \xA0/\xA0 ",-1)),n("span",A0,c(e.traceKind()==="job"?"job":"request")+" "+c(e.currentOccurrence()?.requestId?e.currentOccurrence().requestId.slice(0,4)+"\u2026"+e.currentOccurrence().requestId.slice(-4):"#"+(e.occurrenceIndex+1)),1)],64))],64))]),e.errView==="list"?(a(),l("div",I0,[...t[23]||(t[23]=[n("h1",{class:"paper-page-title"},"Errors",-1)])])):f("v-if",!0)]),e.errView==="list"?(a(),l("nav",O0,[...t[24]||(t[24]=[Pe(' Overview Repositories Users Conferences Billing Queues Emails Errors',8)])])):f("v-if",!0),n("p",M0,c(e.issueLoading?"Loading errors\u2026":e.traceLoading?"Loading the request timeline\u2026":""),1),n("p",V0,c(e.copyStatus),1),f(" ===== 1. Issue list ===== "),O(n("section",{class:"errs-list","aria-labelledby":"errs-list-title","aria-busy":e.issueLoading?"true":"false"},[t[61]||(t[61]=n("h2",{class:"sr-only",id:"errs-list-title"},"Issues",-1)),e.issueData&&!e.issueFailure?(a(),l("div",L0,[n("div",{class:T(["errs-stat",{"is-alert":e.issueData.summary.failingNow}])},[n("strong",null,c(e.errNumber(e.issueData.summary.failingNow)),1),n("span",null,c(e.issueData.summary.failingNow===1?"Issue":"Issues")+" failing now (last 15 min)",1)],2),n("div",$0,[n("strong",null,c(e.errNumber(e.issueData.summary.failedRecords)),1),n("span",null,"Failures \xB7 "+c(e.windowLabels[e.issueData.window]),1)]),n("div",F0,[e.issueData.summary.repositories||e.issueData.summary.users?(a(),l("strong",U0,[h(c(e.errNumber(e.issueData.summary.repositories))+" ",1),n("small",null,c(e.issueData.summary.repositories===1?"repo":"repos"),1),h(" \xB7 "+c(e.errNumber(e.issueData.summary.users))+" ",1),n("small",null,c(e.issueData.summary.users===1?"user":"users"),1)])):(a(),l("strong",B0,"not recorded")),n("span",null,"Affected \xB7 "+c(e.windowLabels[e.issueData.window]),1)]),n("div",{class:T(["errs-stat",{"is-upstream":e.issueData.summary.upstreamShare}])},[n("strong",null,c(e.issueData.summary.upstreamShare)+"%",1),t[25]||(t[25]=n("span",null,"Caused by GitHub or storage",-1))],2)])):f("v-if",!0),n("form",{class:"errs-toolbar",role:"search","aria-label":"Filter issues",onSubmit:t[3]||(t[3]=de(s=>e.applyFilters(),["prevent"]))},[n("div",H0,[t[26]||(t[26]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),O(n("input",{id:"errs-search",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=s=>e.issueSearch=s),"aria-label":"Search issues",placeholder:"Search code, route\u2026 or repo: user:",autocomplete:"off",spellcheck:"false"},null,512),[[ft,e.issueSearch]])]),n("label",z0,[t[28]||(t[28]=n("span",{class:"sr-only"},"Time window",-1)),O(n("select",{class:"form-control",id:"errs-window","onUpdate:modelValue":t[1]||(t[1]=s=>e.issueFilters.window=s)},[...t[27]||(t[27]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[qt,e.issueFilters.window]])]),n("label",j0,[t[30]||(t[30]=n("span",{class:"sr-only"},"Service",-1)),O(n("select",{class:"form-control",id:"errs-service","onUpdate:modelValue":t[2]||(t[2]=s=>e.issueFilters.service=s)},[...t[29]||(t[29]=[Pe('',8)])],512),[[qt,e.issueFilters.service]])])],32),e.searchFilters().invalid||e.issueData?.filters?.repoId||e.issueData?.filters?.userId?(a(),l("p",_0,[e.searchFilters().invalid?(a(),l(N,{key:0},[h("\u201C"+c(e.searchFilters().invalid)+"\u201D is not a repository ID or a 24-character user ID.",1)],64)):e.issueData?.filters?.repoId||e.issueData?.filters?.userId?(a(),l(N,{key:1},[t[31]||(t[31]=h("Showing records for ",-1)),e.issueData.filters.repoId?(a(),l("a",{key:0,href:e.errRepoHref(e.issueData.filters.repoId)},"repository "+c(e.issueData.filters.repoId),9,G0)):f("v-if",!0),e.issueData.filters.repoId&&e.issueData.filters.userId?(a(),l(N,{key:1},[h(" and ")],64)):f("v-if",!0),e.issueData.filters.userId?(a(),l("a",{key:2,href:e.errUserHref(e.issueData.filters.userId)},"user "+c(e.userName(e.issueData.filters.userId)||e.issueData.filters.userId),9,W0)):f("v-if",!0),t[32]||(t[32]=h(".",-1))],64)):f("v-if",!0)])):f("v-if",!0),e.issueData?(a(),l("div",K0,[n("span",{class:T(["errs-source-dot","is-"+e.issueData.source]),"aria-hidden":"true"},null,2),n("span",null,c(e.sourceLine()),1),e.sourceNote()?(a(),l("span",Y0," \xB7 "+c(e.sourceNote()),1)):f("v-if",!0),e.issueData.source==="central"?(a(),l("button",{key:1,type:"button",class:"errs-link-button",onClick:t[4]||(t[4]=s=>e.setSource("history"))},"Use application history")):e.issueFilters.source==="history"?(a(),l("button",{key:2,type:"button",class:"errs-link-button",onClick:t[5]||(t[5]=s=>e.setSource("auto"))},"Use central logs")):f("v-if",!0),n("button",{type:"button",class:"errs-link-button",disabled:e.issueLoading,onClick:t[6]||(t[6]=s=>e.refreshIssues())},c(e.issueLoading?"Refreshing\u2026":"Refresh"),9,X0)])):f("v-if",!0),e.issueFailure?(a(),l("div",Q0,[n("strong",null,c(e.issueFailure),1),e.issueData?(a(),l("span",J0,"The list below is from "+c(e.errClock(e.issueData.end))+" and may be out of date.",1)):f("v-if",!0),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.refreshIssues())},"Retry")])):f("v-if",!0),e.issueLoading&&!e.issueData?(a(),l("div",Z0,[t[34]||(t[34]=n("div",{class:"errs-head",role:"row"},[n("span",{role:"columnheader"},"Issue"),n("span",{role:"columnheader"},"Impact"),n("span",{role:"columnheader"},"Trend"),n("span",{role:"columnheader"},"Last seen")],-1)),(a(),l(N,null,U([1,2,3],s=>n("div",{class:"errs-row errs-row-skeleton",role:"row","aria-hidden":"true",key:s},[...t[33]||(t[33]=[n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1)])])),64))])):e.visibleIssues().length?(a(),l("div",{key:5,class:T(["errs-table",{"is-refreshing":e.issueLoading}]),role:"table","aria-label":"Issues"},[n("div",x0,[t[35]||(t[35]=n("span",{role:"columnheader"},"Issue",-1)),t[36]||(t[36]=n("span",{role:"columnheader"},"Impact",-1)),n("span",e2,"Trend \xB7 "+c(e.windowLabels[e.issueData.window]),1),t[37]||(t[37]=n("span",{role:"columnheader"},"Last seen",-1))]),(a(!0),l(N,null,U(e.visibleIssues(),s=>(a(),l("div",{class:T(["errs-row",{"is-now":s.failingNow}]),role:"row",key:s.id},[n("div",t2,[n("a",{class:"errs-title",href:e.errIssueHref(s.id),"data-issue-link":s.id},c(s.title),9,n2),n("div",s2,[s.status?(a(),l("span",{key:0,class:T(["errs-status",e.errStatusClass(s.status)])},c(s.status),3)):f("v-if",!0),n("code",o2,c(s.code),1),n("span",i2,c(s.service||"unknown service"),1),s.route||s.queue?(a(),l("span",r2,c(s.route?s.method+" "+s.route:"job "+s.queue),1)):f("v-if",!0),s.routeCount>1?(a(),l("span",a2,"+"+c(s.routeCount-1)+" "+c(s.routeCount===2?"route":"routes"),1)):f("v-if",!0),s.newInRelease?(a(),l("span",l2,"New in release "+c(s.newInRelease.slice(0,7)),1)):f("v-if",!0)]),n("p",d2,[n("span",{class:T(["errs-cause-chip","cause-"+s.cause.source])},"Cause: "+c(s.cause.label),3),t[38]||(t[38]=h()),n("span",null,c(s.cause.summary),1)])]),n("div",u2,[n("span",null,[n("strong",null,c(e.errNumber(s.count)),1),h(" "+c(s.requests?s.count===1?"failure":"failures":s.jobs?s.count===1?"job failure":"job failures":s.count===1?"record":"records"),1)]),s.repoCount||s.userCount?(a(),l("span",c2,[n("strong",null,c(e.errNumber(s.repoCount)),1),h(" "+c(s.repoCount===1?"repository":"repositories")+" \xB7 ",1),n("strong",null,c(e.errNumber(s.userCount)),1),h(" "+c(s.userCount===1?"user":"users"),1)])):(a(),l("span",p2,"repositories, users not recorded"))]),n("div",f2,[n("span",{class:"errs-spark","aria-label":"Failures over the "+e.windowLabels[e.issueData.window]+", peak "+e.errTrendMax(s.trend)+" per bucket",role:"img"},[(a(!0),l(N,null,U(s.trend,(i,r)=>(a(),l("span",{key:r,style:De({height:(i?Math.max(2,Math.round(i/e.errTrendMax(s.trend)*24)):1)+"px"}),class:T({"is-zero":!i})},null,6))),128))],8,m2)]),n("div",h2,[s.failingNow?(a(),l("span",g2,"Now")):(a(),l("time",{key:1,datetime:s.last,title:e.errDayTime(s.last)},c(e.errRelTime(s.last)),9,y2)),n("span",v2,"since "+c(e.errClock(s.first)),1)])],2))),128))],2)):e.issueData&&e.issueData.issues.length?(a(),l("div",b2,[n("strong",null,"No issue matches \u201C"+c(e.issueSearch)+"\u201D.",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[8]||(t[8]=s=>e.issueSearch="")},"Clear search")])):e.issueData&&!e.issueFailure?(a(),l("div",w2,[t[40]||(t[40]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),n("strong",null,"No errors in the "+c(e.windowLabels[e.issueData.window])+".",1),n("span",null,[h(c(e.issueData.source==="central"?"Central logs":"The application history")+" recorded no failures",1),e.issueData.filters.repoId||e.issueData.filters.userId?(a(),l(N,{key:0},[h(" for this filter")],64)):f("v-if",!0),t[39]||(t[39]=h(".",-1)),e.issueData.expected.count?(a(),l(N,{key:1},[h(" Expected responses are listed below.")],64)):f("v-if",!0)])])):f("v-if",!0),e.issueData?(a(),l("p",k2,[e.issueData.excluded.slow||e.issueData.excluded.interrupted?(a(),l(N,{key:0},[n("strong",null,c(e.errNumber(e.issueData.excluded.slow+e.issueData.excluded.interrupted)),1),t[41]||(t[41]=h(" slow or interrupted requests are not errors and are left out. ",-1)),t[42]||(t[42]=n("a",{href:"/admin/#performance"},"Open Performance",-1))],64)):(a(),l(N,{key:1},[t[43]||(t[43]=h("Slow and interrupted requests are left out; they are on the ",-1)),t[44]||(t[44]=n("a",{href:"/admin/#performance"},"Performance",-1)),t[45]||(t[45]=h(" page.",-1))],64))])):f("v-if",!0),e.issueData?.expected?.count?(a(),l("details",C2,[n("summary",null,[t[46]||(t[46]=n("span",null,"Expected responses",-1)),t[47]||(t[47]=h()),n("span",E2,c(e.errNumber(e.issueData.expected.count)),1),t[48]||(t[48]=h()),t[49]||(t[49]=n("span",{class:"errs-summary-note"},"not found, not authorized, expired and other 4xx answers visitors get. No action needed.",-1))]),n("ul",null,[(a(!0),l(N,null,U(e.issueData.expected.groups,s=>(a(),l("li",{key:s.code+s.status},[n("code",null,c(s.code),1),s.status?(a(),l("span",S2,c(s.status),1)):f("v-if",!0),n("span",N2,c(e.errNumber(s.count)),1),n("time",{datetime:s.last},c(e.errRelTime(s.last)),9,R2)]))),128))])])):f("v-if",!0),n("details",{class:"errs-settings",onToggle:t[13]||(t[13]=s=>e.toggleSettings(s))},[t[60]||(t[60]=n("summary",null,"Settings and diagnostics",-1)),n("div",T2,[n("section",P2,[t[50]||(t[50]=n("h3",{id:"errs-settings-source"},"Source",-1)),n("div",D2,[n("button",{type:"button",class:T(["seg-chip",{active:e.issueFilters.source==="auto"}]),"aria-pressed":e.issueFilters.source==="auto",onClick:t[9]||(t[9]=s=>e.setSource("auto"))},"Central logs, history as fallback",10,A2),n("button",{type:"button",class:T(["seg-chip",{active:e.issueFilters.source==="history"}]),"aria-pressed":e.issueFilters.source==="history",onClick:t[10]||(t[10]=s=>e.setSource("history"))},"Application history only",10,I2)]),t[51]||(t[51]=n("p",{class:"errs-muted"},"Central logs keep every service for weeks; the application history is a Redis copy of the last 5,000 warnings and errors. Counts are never combined.",-1)),e.issueData?(a(),l("p",O2,[h(c(e.errNumber(e.issueData.captured))+" records read for this list. ",1),e.issueData.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.issueData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,M2)):f("v-if",!0)])):f("v-if",!0)]),n("section",V2,[t[52]||(t[52]=n("h3",{id:"errs-settings-history"},"Application history",-1)),n("p",q2,c(e.redisCollecting===!1?"Collection is off (LOG_REDIS_MIRROR=off): the history receives no new records.":e.redisCollecting===!0?"The application copies warnings and errors to Redis.":"Collection status is unknown."),1),n("div",L2,[n("button",{type:"button",class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.exportHistory())},"Export Redis CSV"),n("button",{type:"button",class:"btn btn-sm btn-outline-danger",onClick:t[12]||(t[12]=s=>e.clearHistory())},"Clear Redis history")])]),n("section",$2,[t[58]||(t[58]=n("h3",{id:"errs-settings-counters"},"24-hour counters",-1)),e.statsState!=="ready"?(a(),l("p",F2,c(e.statsState==="loading"?"Loading counters\u2026":"Redis counters are unavailable."),1)):(a(),l(N,{key:1},[n("dl",U2,[n("div",null,[t[53]||(t[53]=n("dt",null,"Records \xB7 24 h",-1)),n("dd",null,c(e.errNumber(e.stats.last24h)),1)]),n("div",null,[t[54]||(t[54]=n("dt",null,"Error",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.error)),1)]),n("div",null,[t[55]||(t[55]=n("dt",null,"Warning",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.warn)),1)]),n("div",null,[t[56]||(t[56]=n("dt",null,"Info",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.info)),1)]),n("div",null,[t[57]||(t[57]=n("dt",null,"Dropped",-1)),n("dd",null,c(e.errNumber(e.stats.dropped)),1)])]),n("div",{class:"errs-counter-bars",role:"img","aria-label":"Records per hour over 24 hours: "+e.errNumber(e.stats.last24h)+" in total"},[(a(!0),l(N,null,U(e.stats.buckets,(s,i)=>(a(),l("span",{key:i,title:e.errClock(s.hour)+" \xB7 "+s.error+" error \xB7 "+s.warn+" warning \xB7 "+s.info+" info"},[n("i",{class:"seg-error",style:De({height:e.statBarHeight(s,"error")+"px"})},null,4),n("i",{class:"seg-warn",style:De({height:e.statBarHeight(s,"warn")+"px"})},null,4),n("i",{class:"seg-info",style:De({height:e.statBarHeight(s,"info")+"px"})},null,4)],8,H2))),128))],8,B2)],64))]),n("section",z2,[t[59]||(t[59]=n("h3",{id:"errs-settings-telemetry"},"Telemetry",-1)),e.telemetryState!=="ready"?(a(),l("p",j2,c(e.telemetryState==="loading"?"Checking central logs\u2026":"Central log status is unavailable."),1)):(a(),l(N,{key:1},[n("p",_2,c(e.telemetryText(e.telemetry.state)),1),e.telemetry.telemetry?(a(),l(N,{key:0},[e.telemetry.telemetry.missing?.length?(a(),l("p",G2,"Missing or stale: "+c(e.telemetry.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",W2,"API, streamer and queue heartbeats were present at the last check.")),n("p",K2,"Collector: "+c(e.telemetry.telemetry.collector?.state)+" \xB7 dropped events since collector start: "+c(e.telemetry.telemetry.collector?.dropped??"unknown")+".",1),n("ul",Y2,[(a(!0),l(N,null,U(e.telemetry.telemetry.instances,(s,i)=>(a(),l("li",{key:i},c(s.service)+" \xB7 "+c(s.instance||"unknown instance")+" \xB7 "+c(s.dropped??"unknown")+" dropped \xB7 last seen "+c(e.errClock(s.last,!0)),1))),128))])],64)):f("v-if",!0)],64))])])],32)],8,q0),[[te,e.errView==="list"]]),f(" ===== Issue not in this window ===== "),e.errView!=="list"&&!e.selectedIssue?(a(),l("section",X2,[n("h1",Q2,c(e.issueLoading?"Loading issue\u2026":"Issue not found"),1),e.issueLoading?f("v-if",!0):(a(),l("div",J2,[n("strong",null,"This issue has no records in the "+c(e.windowLabels[e.issueFilters.window])+".",1),t[62]||(t[62]=n("span",null,"It may be older, or recorded by another source.",-1)),t[63]||(t[63]=n("a",{class:"btn btn-sm",href:"/admin/errors"},"All errors",-1))]))])):f("v-if",!0),f(" ===== 2. Issue page ===== "),e.errView==="issue"&&e.selectedIssue?(a(),l("section",Z2,[n("div",x2,[n("h1",eC,c(e.selectedIssue.title),1),t[64]||(t[64]=n("a",{class:"btn btn-sm",href:"/admin/errors"},[n("span",{"aria-hidden":"true"},"\u2190"),h(" All errors")],-1))]),n("div",tC,[e.selectedIssue.status?(a(),l("span",{key:0,class:T(["errs-chip errs-status",e.errStatusClass(e.selectedIssue.status)])},"HTTP "+c(e.selectedIssue.status)+c(e.selectedIssue.route?" to the visitor":""),3)):f("v-if",!0),n("code",nC,c(e.selectedIssue.code),1),n("span",sC,[h(c(e.selectedIssue.service||"unknown service"),1),e.selectedIssue.routeCount>1?(a(),l(N,{key:0},[h(" \xB7 "+c(e.selectedIssue.routeCount)+" routes",1)],64)):e.selectedIssue.route?(a(),l(N,{key:1},[t[65]||(t[65]=h(" \xB7 ",-1)),n("code",null,c(e.selectedIssue.method)+" "+c(e.selectedIssue.route),1)],64)):e.selectedIssue.queue?(a(),l(N,{key:2},[h(" \xB7 job "+c(e.selectedIssue.queue),1)],64)):f("v-if",!0)]),n("span",oC,[h("First seen "+c(e.errDayTime(e.selectedIssue.first)),1),e.selectedIssue.firstRelease?(a(),l(N,{key:0},[t[66]||(t[66]=h(" \xB7 release ",-1)),n("code",null,c(e.selectedIssue.firstRelease.slice(0,7)),1)],64)):f("v-if",!0)]),e.selectedIssue.firstRelease?f("v-if",!0):(a(),l("span",iC,"release not recorded")),e.selectedIssue.newInRelease?(a(),l("span",rC,"New in release "+c(e.selectedIssue.newInRelease.slice(0,7)),1)):f("v-if",!0)]),n("div",aC,[n("div",lC,[n("section",{class:T(["errs-cause","cause-"+e.selectedIssue.cause.source]),"aria-labelledby":"errs-cause-title"},[t[70]||(t[70]=n("h2",{class:"sr-only",id:"errs-cause-title"},"Likely cause",-1)),n("p",dC,[n("span",{class:T(["errs-cause-chip","cause-"+e.selectedIssue.cause.source])},"Likely cause: "+c(e.selectedIssue.cause.label),3),t[67]||(t[67]=h()),n("span",uC,"from "+c(e.errPlural(e.selectedIssue.count,"record")),1)]),n("p",cC,[n("strong",null,c(e.selectedIssue.cause.summary),1),t[68]||(t[68]=h()),e.selectedIssue.cause.detail?(a(),l("span",pC,c(e.selectedIssue.cause.detail),1)):f("v-if",!0)]),e.selectedIssue.cause.evidence.length?(a(),l("ul",fC,[(a(!0),l(N,null,U(e.selectedIssue.cause.evidence,(s,i)=>(a(),l("li",{key:i},c(s),1))),128))])):f("v-if",!0),n("div",mC,[e.selectedIssue.repos.length===1?(a(),l("a",{key:0,class:"btn btn-sm",href:e.errRepoHref(e.selectedIssue.repos[0].id)},"Open repository",8,hC)):f("v-if",!0),e.selectedIssue.users.length===1?(a(),l("a",{key:1,class:"btn btn-sm",href:e.errUserHref(e.selectedIssue.users[0].id)},"Open user",8,gC)):f("v-if",!0),t[69]||(t[69]=n("a",{class:"btn btn-sm",href:"/admin/#performance"},"Open Performance",-1)),e.curlFor(e.selectedIssue.occurrences[0])?(a(),l("button",{key:2,type:"button",class:"btn btn-sm",onClick:t[14]||(t[14]=s=>e.copyValue(e.curlFor(e.selectedIssue.occurrences[0]),"curl command"))},"Copy curl")):f("v-if",!0),e.issueData.grafanaUrl?(a(),l("a",{key:3,class:"btn btn-sm",href:e.safeUrl(e.issueData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,yC)):f("v-if",!0)])],2),e.selectedIssue.routes?.length?(a(),l("section",vC,[n("div",bC,[t[71]||(t[71]=n("h2",{id:"errs-routes-title"},"Routes that failed",-1)),n("span",wC,c(e.errNumber(e.selectedIssue.routeCount)),1)]),n("ul",{class:T(["errs-routes",e.errStatusClass(e.selectedIssue.status)])},[(a(!0),l(N,null,U(e.selectedIssue.routes.slice(0,10),s=>(a(),l("li",{key:s.method+s.route},[n("code",null,c(s.method)+" "+c(s.route),1),n("span",kC,[n("span",{style:De({width:Math.max(2,Math.round(s.count/e.selectedIssue.routes[0].count*100))+"%"})},null,4)]),n("span",CC,[h(c(e.errNumber(s.count)),1),t[72]||(t[72]=n("span",{class:"sr-only"}," failures",-1))])]))),128))],2),e.selectedIssue.routeCount>10?(a(),l("p",EC,"+ "+c(e.errNumber(e.selectedIssue.routeCount-10))+" more routes",1)):f("v-if",!0),e.selectedIssue.routeKnown(a(),l("div",{class:"errs-repos-row",role:"row",key:s.id},[n("span",DC,[n("a",{class:"errs-mono",href:e.errRepoHref(s.id)},c(s.id),9,AC),e.ownerOf(s.id)?.source?(a(),l("span",IC,c(e.ownerOf(s.id).source),1)):f("v-if",!0)]),n("span",OC,[e.ownerOf(s.id)?.ownerId?(a(),l("a",{key:0,href:e.errUserHref(e.ownerOf(s.id).ownerId)},c(e.ownerOf(s.id).owner?"@"+e.ownerOf(s.id).owner:e.ownerOf(s.id).ownerId),9,MC)):(a(),l("span",VC,"not resolved"))]),n("span",qC,c(e.errNumber(s.count)),1),n("span",LC,[n("time",{datetime:s.last,title:e.errDayTime(s.last)},c(e.errRelTime(s.last)),9,$C)])]))),128)),e.selectedIssue.repoCount>10?(a(),l("p",FC,"+ "+c(e.errNumber(e.selectedIssue.repoCount-10))+" more repositories",1)):f("v-if",!0)])):(a(),l("p",UC,[t[75]||(t[75]=n("strong",null,"Not recorded.",-1)),t[76]||(t[76]=h(" These records carry no repository ID",-1)),e.selectedIssue.route&&/:owner/.test(e.selectedIssue.route)?(a(),l(N,{key:0},[h(": the route names the GitHub owner, so the ID is not kept")],64)):f("v-if",!0),t[77]||(t[77]=h(".",-1))])),n("div",BC,[t[83]||(t[83]=n("h3",null,"Who hit it",-1)),e.selectedIssue.viewers.notRecorded===e.selectedIssue.count?(a(),l("p",HC,"not recorded on these records")):(a(),l("p",zC,[n("strong",null,c(e.errNumber(e.selectedIssue.viewers.signedIn)),1),t[79]||(t[79]=h(" by signed-in users \xB7 ",-1)),n("strong",null,c(e.errNumber(e.selectedIssue.viewers.visitors)),1),t[80]||(t[80]=h(" by visitors without a session",-1)),e.selectedIssue.viewers.notRecorded?(a(),l(N,{key:0},[t[78]||(t[78]=h(" \xB7 ",-1)),n("span",jC,c(e.errNumber(e.selectedIssue.viewers.notRecorded))+" not recorded",1)],64)):f("v-if",!0)])),e.selectedIssue.users.length?(a(),l("p",_C,[t[82]||(t[82]=h("Users: ",-1)),(a(!0),l(N,null,U(e.selectedIssue.users.slice(0,8),(s,i)=>(a(),l(N,{key:s.id},[i?(a(),l(N,{key:0},[h(", ")],64)):f("v-if",!0),n("a",{href:e.errUserHref(s.id)},c(e.userName(s.id)?"@"+e.userName(s.id):s.id),9,GC),t[81]||(t[81]=h()),n("span",WC,"("+c(s.count)+")",1)],64))),128)),e.selectedIssue.userCount>8?(a(),l(N,{key:0},[h(" and "+c(e.selectedIssue.userCount-8)+" more",1)],64)):f("v-if",!0)])):f("v-if",!0)])])]),n("aside",KC,[n("section",YC,[n("h2",XC,"Failures \xB7 "+c(e.windowLabels[e.issueData.window]),1),n("div",{class:"errs-histogram",role:"img","aria-label":e.errPlural(e.selectedIssue.count,"failure")+" over the "+e.windowLabels[e.issueData.window]+", peak "+e.errTrendMax(e.selectedIssue.trend)+" per bucket"},[(a(!0),l(N,null,U(e.selectedIssue.trend,(s,i)=>(a(),l("span",{key:i,style:De({height:(s?Math.max(3,Math.round(s/e.errTrendMax(e.selectedIssue.trend)*56)):2)+"px"}),class:T({"is-zero":!s}),title:s+" failures"},null,14,JC))),128))],8,QC),n("div",ZC,[n("span",null,c(e.errClock(e.issueData.start)),1),t[84]||(t[84]=n("span",null,"now",-1))])]),n("section",xC,[n("div",eE,[t[85]||(t[85]=n("h2",{id:"errs-occ-title"},"Occurrences",-1)),n("span",tE,c(e.selectedIssue.occurrences.length(a(),l("li",{key:i},[n("a",{href:e.occurrenceHref(i),"data-occurrence":i},[n("time",{datetime:s.timestamp},c(e.errClock(s.timestamp,!0)),9,oE),n("span",iE,[s.repoId?(a(),l("span",rE,c(s.repoId),1)):(a(),l("span",aE,"no repository")),n("span",lE,[h(c(s.viewer?s.viewer==="visitor"||s.viewer==="anonymous"?"visitor":e.userName(s.userId)?"@"+e.userName(s.userId):s.viewer:"viewer not recorded"),1),s.ms!==void 0?(a(),l(N,{key:0},[h(" \xB7 "+c(e.errNumber(s.ms))+" ms",1)],64)):f("v-if",!0)])]),s.status||s.httpStatus?(a(),l("span",{key:0,class:T(["errs-status",e.errStatusClass(s.status||s.httpStatus)])},c(s.status||s.httpStatus),3)):f("v-if",!0)],8,sE)]))),128))]),!e.showAllOccurrences&&e.selectedIssue.occurrences.length>10?(a(),l("button",{key:0,type:"button",class:"btn btn-sm errs-show-all",onClick:t[15]||(t[15]=s=>e.showAllOccurrences=!0)},[h("Show all "+c(e.selectedIssue.occurrences.length),1),e.selectedIssue.occurrences.length0?(a(),l("a",{key:0,class:"btn btn-sm",href:e.occurrenceHref(e.occurrenceIndex-1),"aria-label":"Newer occurrence"},"Newer",8,mE)):f("v-if",!0),e.occurrenceIndexe.copyValue(e.curlFor(e.currentOccurrence()),"curl command"))},"Copy curl")):f("v-if",!0)])]),n("div",gE,[e.currentOccurrence().status||e.currentOccurrence().httpStatus?(a(),l("span",{key:0,class:T(["errs-chip errs-status",e.errStatusClass(e.currentOccurrence().status||e.currentOccurrence().httpStatus)])},[h(c(e.currentOccurrence().status||e.currentOccurrence().httpStatus),1),e.requestMs()!==null?(a(),l(N,{key:0},[h(" in "+c(e.errNumber(e.requestMs()))+" ms",1)],64)):f("v-if",!0)],2)):f("v-if",!0),n("span",yE,[n("time",{datetime:e.currentOccurrence().timestamp},c(e.errDayTime(e.currentOccurrence().timestamp)),9,vE)]),e.currentOccurrence().repoId?(a(),l("span",bE,[t[87]||(t[87]=h("Repository ",-1)),n("a",{class:"errs-mono",href:e.errRepoHref(e.currentOccurrence().repoId)},c(e.currentOccurrence().repoId),9,wE)])):(a(),l("span",kE,"repository not recorded")),e.ownerOf(e.currentOccurrence().repoId)?.ownerId?(a(),l("span",CE,[t[88]||(t[88]=h("Owner ",-1)),n("a",{href:e.errUserHref(e.ownerOf(e.currentOccurrence().repoId).ownerId)},c(e.ownerOf(e.currentOccurrence().repoId).owner?"@"+e.ownerOf(e.currentOccurrence().repoId).owner:e.ownerOf(e.currentOccurrence().repoId).ownerId),9,EE)])):f("v-if",!0),e.currentOccurrence().viewer?(a(),l("span",SE,[h(c(e.viewerChip(e.currentOccurrence().viewer)),1),e.currentOccurrence().userId&&e.currentOccurrence().userId!==e.ownerOf(e.currentOccurrence().repoId)?.ownerId?(a(),l(N,{key:0},[t[89]||(t[89]=h(" \xB7 ",-1)),n("a",{href:e.errUserHref(e.currentOccurrence().userId)},c(e.userName(e.currentOccurrence().userId)?"@"+e.userName(e.currentOccurrence().userId):"user"),9,NE)],64)):f("v-if",!0)])):(a(),l("span",RE,"viewer not recorded")),n("span",TE,c(e.occurrenceIndex+1)+" of "+c(e.selectedIssue.occurrences.length),1)]),n("div",PE,[n("div",DE,[(a(!0),l(N,null,U(e.requestTabs,([s,i])=>(a(),l("button",{type:"button",role:"tab",key:s,id:"errs-tab-"+s,"aria-selected":e.requestTab===s?"true":"false","aria-controls":"errs-panel-"+s,tabindex:e.requestTab===s?0:-1,class:T({active:e.requestTab===s}),onClick:r=>e.selectRequestTab(s),onKeydown:r=>e.requestTabKey(r,s)},c(i),43,AE))),128))]),e.requestTab==="timeline"?(a(),l("div",IE,[e.traceLoading?(a(),l("p",OE,"Loading every record with this "+c(e.traceKind())+" ID\u2026",1)):(a(),l(N,{key:1},[n("div",ME,[t[90]||(t[90]=n("span",null,[n("i",{class:"k-app"}),h("App")],-1)),t[91]||(t[91]=n("span",null,[n("i",{class:"k-external"}),h("External (GitHub, storage)")],-1)),t[92]||(t[92]=n("span",null,[n("i",{class:"k-data"}),h("Database / cache")],-1)),t[93]||(t[93]=n("span",null,[n("i",{class:"k-failure"}),h("Failure")],-1)),n("span",VE,"0 \u2013 "+c(e.errNumber(e.waterfall().span))+" ms",1)]),n("ol",qE,[(a(!0),l(N,null,U(e.waterfall().rows,s=>(a(),l("li",{key:s.key,class:T(["k-"+s.kind,{"is-failure":s.failure}])},[n("button",{type:"button",class:"errs-step","aria-expanded":e.expandedSteps[s.key]?"true":"false","aria-controls":"errs-step-"+s.key,onClick:i=>e.toggleStep(s.key)},[t[94]||(t[94]=n("span",{class:"errs-step-dot","aria-hidden":"true"},null,-1)),n("span",$E,[n("strong",null,c(s.label),1),n("span",null,c(s.sub||"no route recorded"),1)]),n("span",FE,[n("span",{class:"errs-step-bar",style:De({left:s.left+"%",width:s.width+"%"})},null,4)]),n("span",{class:T(["errs-step-status",{"is-bad":s.failed}])},c(s.status||"\u2014"),3),n("span",UE,[h(c(s.ms===null?"\u2014":e.errNumber(s.ms)),1),n("span",BE," ms, starts at "+c(s.offset)+" ms",1)])],8,LE),e.expandedSteps[s.key]?(a(),l("div",{key:0,class:"errs-step-detail",id:"errs-step-"+s.key},[s.event.errorStack?(a(),l("pre",zE,[h(c(s.event.errorType)+` +Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(y=>y.trim()).filter(Boolean).sort((y,C)=>C.length-y.length),d=y=>y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let g=new RegExp("("+p.map(d).join("|")+")","gi"),m={},v=0;return(e.demoText||"").split(g).filter(y=>y!=="").map(y=>{let C=p.find(k=>k.toLowerCase()===y.toLowerCase());return C?(m[C.toLowerCase()]||(m[C.toLowerCase()]=++v),{text:String(m[C.toLowerCase()]),redacted:!0,original:y}):{text:y}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,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"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function o(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}o();function u(p){let d={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return d;let g=new Array(p.length-1);for(let w=1;w=2){let w=g[m-2];w&&(d.pctChange=(d.deltaToday-w)/w*100)}return d.pctAbs=Math.round(Math.abs(d.pctChange)),d.isUp=d.pctChange>=0,d}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let d=p.data||[];e.history={repositories:u(d.map(g=>g.nbRepositories||0)),users:u(d.map(g=>g.nbUsers||0)),pageViews:u(d.map(g=>g.nbPageViews||0)),pullRequests:u(d.map(g=>g.nbPullRequests||0))}}).catch(()=>{})},vf=function(e,t,s,i,r,o){let u=Pt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,xe(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Lt()(document,"click",S=>{e.quotaExpanded&&!S.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=S=>S.status==="error"||S._broken||d(S.status)==="progress"&&S._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=S=>{e.projectView=S,S==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=S=>{let q=dl(S?.anonymizeDate||S?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=S=>"project-details-"+encodeURIComponent(S._type+":"+(S._id||S._source||"unknown")),e.showProjectDetails=async S=>{e.selectedProject=S,e.projectName=S.projectName||"",e.nameError="",e.nameMessage="",await xe();let q=document.getElementById(e.projectDetailsId(S));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=S=>{e.selectedProject=null,xe(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(S._type+":"+S._id)}"]`)?.focus())},e.saveProjectName=async S=>{if(e.nameSaving||!S._id)return;let q=e.projectName.trim();if(q.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:S._type,id:S._id,name:q});S.projectName=G.data.name,S._label=S.projectName||S._fallbackLabel,e.selectedProject===S&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),P||(e.dashboardCursor=null,await L(),e.selectedProject===S&&(e.selectedProject=e.items.find(oe=>oe._type===S._type&&oe._id===S._id)||null))}catch{e.selectedProject===S&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async S=>{if(!S._viewUrl||e.copyingId)return;let q=new URL(S._viewUrl,r.location.origin).href;e.copyingId=S._type+":"+S._id;try{await Jl(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function d(S){return S==="ready"||S==="error"?S:S==="expired"||S==="expiring"?"expired":S==="removed"||S==="removing"?"removed":(p.indexOf(S)>-1,"progress")}let g=7200*1e3,m="dashboard.filterPrefs",v={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},y=loadFilterPrefs(m)||{};e.typeFilter=y.typeFilter||v.typeFilter,e.filters={status:Object.assign({},v.filters.status,y.filters&&y.filters.status||{})},e.orderBy=y.orderBy||v.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 S=C[e.sortField()];return S?S.label:"Custom"},e.isSortedBy=S=>e.sortField()===S,e.setSort=(S,q)=>{typeof q!="boolean"&&(q=e.isSortedBy(S)?!e.sortDesc():!!(C[S]&&C[S].defaultDesc)),e.orderBy=(q?"-":"")+S},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(m,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(m,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),o.load().then(S=>{e.quota=S},console.error);function k(S,q,G,oe,K,ne){S.pageView||(S.pageView=0),S.lastView||(S.lastView=""),S.options=S.options||{},S.options.terms=(S.options.terms||[]).filter(ye=>ye),S._id=q||"",S._source=oe,S._broken=!q,S._name=q||oe||"(unnamed)",S._fallbackLabel=S._type==="gist"?"Gist "+(q||oe||"without an ID"):oe||G||S._name,S._label=S.projectName||S._fallbackLabel,S._editUrl=q?K:null,S._viewUrl=q?ne:null,S._broken&&(S.status="error",S.statusMessage="incomplete_record"),S._statusKey=d(S.status);let le=S.anonymizeDate||S.lastView;if(S._stale=S._statusKey==="progress"&&!!le&&Date.now()-new Date(le).getTime()>g,S.status==="expired"||S.status==="expiring")S._expiry={kind:"expired",date:S.options.expirationDate},S._expiry.label=Ar(S.options.expirationDate)||void 0;else if(S.status!=="ready")S._expiry={kind:"none"};else if(S.options.expirationMode==="never"||!S.options.expirationDate)S._expiry={kind:"never"};else{S._expiry={kind:"date",date:S.options.expirationDate};let ye=new Date(S.options.expirationDate).getTime()-Date.now();if(ye>0&&ye<=168*3600*1e3){let Ae=Math.max(1,Math.round(ye/36e5)),Xe=Math.round(ye/864e5);S._expiry.soon=Ae<48?"in "+Ae+(Ae===1?" hour":" hours"):"in "+Xe+" days"}}return S}function w(S){return t.get(S).then(q=>q.data||[],q=>(console.error(q),[]))}function R(){return e.loading=!e.dashboardLoaded,i.all([w("/api/user/anonymized_repositories"),w("/api/user/anonymized_pull_requests"),w("/api/user/anonymized_gists")]).then(S=>{let q=S[0],G=S[1],oe=S[2],K=[];q.forEach(ne=>{ne._type="repo";let le=ne.source||{};K.push(k(ne,ne.repoId,ne.repoId,le.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),G.forEach(ne=>{ne._type="pr";let le=ne.source||{};K.push(k(ne,ne.pullRequestId,ne.pullRequestId,le.repositoryFullName?le.repositoryFullName+"#"+le.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),oe.forEach(ne=>{ne._type="gist";let le=ne.source||{};K.push(k(ne,ne.gistId,ne.gistId,le.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=K,e.removedCount=K.filter(ne=>ne._statusKey==="removed").length,e.loading=!1,e.refreshing=!1,e.dashboardLoaded=!0})}let b=0,P=!1;e.dashboardLoaded=!1,e.refreshing=!1,e.dashboardCursor=null,e.dashboardError="";function D(S){let q=S.source||{};return S._type==="repo"?k(S,S.repoId,S.repoId,q.fullName,"/anonymize/"+S.repoId,"/r/"+S.repoId+"/"):S._type==="pr"?k(S,S.pullRequestId,S.pullRequestId,q.repositoryFullName?q.repositoryFullName+"#"+q.pullRequestId:void 0,"/pull-request-anonymize/"+S.pullRequestId,"/pr/"+S.pullRequestId+"/"):k(S,S.gistId,S.gistId,q.gistId,"/gist-anonymize/"+S.gistId,"/gist/"+S.gistId+"/")}function L(S=!1){if(P)return R();let q=++b;return e.loading=!S&&!e.dashboardLoaded,e.refreshing=!S&&e.dashboardLoaded,e.loadingMore=S,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:S?e.dashboardCursor:void 0}}).then(G=>{if(q===b){if(!Array.isArray(G.data?.items))return P=!0,R();e.items=(S?e.items:[]).concat(G.data.items.map(D)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data,S||W()}},G=>{if(q===b){if(G.status===404)return P=!0,R();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{q===b&&(e.loading=!1,e.refreshing=!1,e.loadingMore=!1,e.dashboardLoaded=!0)})}e.loadMoreProjects=()=>L(!0);let H;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{P||(H&&u.timeout.cancel(H),H=u.timeout(()=>L(),150))},!1),e.watch("filters",()=>{P||L()},!0,!1),e.on("dispose",()=>{b++}),L(),e.openItem=(S,q)=>{if(!S._viewUrl)return;let G=q&&q.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(r.location.href=S._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(S=>e.filters.status[S]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let _=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>_().every(S=>S==="removed"==(e.filters.status[S]!==!1)),e.isActiveDefault=()=>_().every(S=>S==="removed"==(e.filters.status[S]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=S=>{if(S==="attention")return e.setProjectView("attention");e.projectView="all",_().forEach(q=>{e.filters.status[q]=S==="removed"?q==="removed":q!=="removed"})},e.statusChipKeys=()=>{let S=e.statusView();return S==="removed"?[]:_().filter(q=>e.filters.status[q]===!1&&!(q==="removed"&&S!=="custom"))},e.removedCount=null;function W(){if(P){e.removedCount=e.items.filter(q=>q._statusKey==="removed").length;return}let S=e.dashboardTotals;!S||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,S.total-S.filtered):e.onlyRemovedShown()&&(e.removedCount=S.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(S=>e.filters.status[S]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let S=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(S==="removed"?"removed":"active")};function ae(S,q,G,oe){t.get("/api/repo/"+S).then(async K=>{let ne=oe!==void 0&&oe!==K.data.status;for(let le of e.items)if(le._type==="repo"&&le.repoId==S){ne=ne||le.status!==K.data.status;let ye=e.needsAttention(le);le.status=K.data.status,le.statusMessage=K.data.statusMessage,le._statusKey=d(le.status),le._statusKey!=="progress"&&(le._stale=!1);let Ae=e.needsAttention(le);e.dashboardTotals&&ye!==Ae&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(Ae?1:-1)));break}if(ne&&!P){e.dashboardCursor=null;let le=e.selectedProject;await L(),le&&e.selectedProject===le&&(e.selectedProject=e.items.find(ye=>ye._type===le._type&&ye._id===le._id)||null)}if(K.data.status=="ready"||K.data.status=="error"||K.data.status=="removed"||K.data.status=="expired"){q(K.data);return}u.timeout(()=>ae(S,q,G,K.data.status),2500)},G)}let F=S=>S==="repo"?"repository":S==="gist"?"gist":"pull request",V=S=>S==="repo"?"/api/repo":S==="gist"?"/api/gist":"/api/pr";e.removeItem=S=>{let q=F(S._type);if(confirm(`Are you sure that you want to remove the ${q} ${S._id}?`)){let G=ut({title:`Removing ${S._id}...`,date:new Date,body:`The ${q} ${S._id} is going to be removed.`});e.addToast(G);let oe=`${V(S._type)}/${S._id}`;t.delete(oe).then(()=>{S._type==="repo"?ae(S._id,()=>{G.title=`${S._id} is removed.`,G.body=`The ${q} ${S._id} is removed.`},void 0,S.status):(G.title=`${S._id} is removed.`,G.body=`The ${q} ${S._id} is removed.`,L())},K=>{G.title=`Error during the removal of ${S._id}.`,G.body=K.body,L()})}},e.refreshItem=S=>{let q=F(S._type),G=ut({title:`Refreshing ${S._id}...`,date:new Date,body:`The ${q} ${S._id} is going to be refreshed.`});e.addToast(G);let oe=ne=>{G.title=`Error during the refresh of ${S._id}.`,G.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",L()},K=`${V(S._type)}/${S._id}/refresh`;t.post(K).then(()=>{S._type==="repo"?ae(S._id,ne=>{if(ne.status!=="ready"){oe({body:ne.statusMessage||`The repository is ${ne.status}.`});return}G.title=`${S._id} is refreshed.`,G.body=`The ${q} ${S._id} is refreshed.`},oe,S.status):(G.title=`${S._id} is refreshed.`,G.body=`The ${q} ${S._id} is refreshed.`,L())},oe)},e.extendItem=S=>{let q=F(S._type),G=ut({title:`Extending ${S._id}...`,date:new Date,body:`The expiration of ${q} ${S._id} is being extended.`});e.addToast(G);let oe=`${V(S._type)}/${S._id}/extend`;t.post(oe).then(K=>{let ne=K?.data?.expirationDate?` until ${new Date(K.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";S._type==="repo"?ae(S._id,()=>{G.title=`${S._id} is extended.`,G.body=`${q} ${S._id} is extended${ne}.`},void 0,S.status):(G.title=`${S._id} is extended.`,G.body=`${q} ${S._id} is extended${ne}.`,L())},K=>{G.title=`Error during the extension of ${S._id}.`;let ne=K.data&&K.data.error;G.body=ne||K.body,ne&&Object.prototype.hasOwnProperty.call(ls.ERRORS,ne)&&(G.body=ls.ERRORS[ne]),L()})},e.itemFilter=S=>{if(e.projectView==="attention"&&!e.needsAttention(S)||e.typeFilter!=="all"&&S._type!==e.typeFilter||e.filters.status[S._statusKey]===!1)return!1;let q=e.search.trim().toLowerCase();return!!(q.length==0||S._label&&String(S._label).toLowerCase().indexOf(q)>-1||S._source&&String(S._source).toLowerCase().indexOf(q)>-1||S._id&&String(S._id).toLowerCase().indexOf(q)>-1||S.conference&&String(S.conference).toLowerCase().indexOf(q)>-1)}};var bf=function(e,t,s){let i=Pt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.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 r=null;e.copyShareUrl=async()=>{try{await Jl(e.shareUrl),e.copied=!0,r&&i.timeout.cancel(r),r=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=m=>{let v=window.getSelection?.();if(!v||!m?.target)return;let y=document.createRange();y.selectNodeContents(m.target),v.removeAllRanges(),v.addRange(y)};var o=null;let u=null,p=!1;function d(m){e.rateLimitResetAt=m,o&&i.interval.cancel(o);function v(){var y=Math.max(0,Math.ceil((m-Date.now())/1e3));if(y<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(o),o=null;else{var C=Math.floor(y/60),k=y%60;e.rateLimitCountdown=C>0?C+"m "+k+"s":k+"s"}}v(),o=i.interval(v,1e3)}e.on("dispose",function(){p=!0,o&&i.interval.cancel(o),u&&i.timeout.cancel(u)});function g(m){if(!m)return m;var v=m.match(/^rate_limited:(\d+)$/);return v?(d(parseInt(v[1],10)),null):(e.rateLimitResetAt=0,m)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(m=>{if(!p){e.repo=m.data,m.data.rateLimitResetAt?d(m.data.rateLimitResetAt):e.repo.statusMessage=g(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 v=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(v=!1),v&&(u=i.timeout(e.getStatus,2e3))}},m=>{e.error=m.data.error})},e.getStatus()},ea=function(e,t,s,i,r,o,u){xr(),e.renderRedacted=to,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&Lt()(p,"change",E=>{e.mobileWorkspace=E.matches}),e.selectMobilePane=E=>{e.mobilePane=E};let d=0,g=!1,m=new Set,v=(E,M=!1)=>!g&&E.generation===d&&E.url===e.sourceUrl.trim()&&E.connection===e.githubConnection&&(!M||E.branch===e.source.branch),y=()=>{let E={generation:d,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return m.add(E),e.sourceLoading=!0,E},C=E=>{m.delete(E),g||(e.sourceLoading=[...m].some(M=>v(M)))};e.on("dispose",()=>{g=!0,d++});let k=null,w=E=>E.gistId&&!E.repo?"gist:"+E.gistId.toLowerCase():(E.owner+"/"+E.repo).toLowerCase()+(E.pullRequestId?"/pull/"+E.pullRequestId:""),R=wl(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(r.path?.()||"")),b=null,P=null,D=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.focusTerms=()=>{e.mobilePane="settings",e.previewExpanded=!1,xe(()=>{let E=document.getElementById("terms");E&&(E.scrollIntoView?.({block:"center",behavior:"smooth"}),E.focus({preventScroll:!0}))})},e.editRepository=()=>{e.anonymize?.expirationDate?.invalid&&(e.expiryPickerOpen=!0),e.mobilePane="settings",e.previewExpanded=!1,xe(()=>{let E=document.querySelector(".anonymize-fields .is-invalid"),M=E?.closest("details");M&&!M.open&&(M.open=!0),E?.focus()})},e.submitRepository=E=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(Ti()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(wr(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(E)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=E=>E.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:E.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(E.amount/100)+(E.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(E=>E.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let L=()=>t.get("/api/user/quota").then(E=>{e.hostingQuota=E.data});Cr(e,t,async()=>{await L(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),L().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(E=>["author_monthly","author_annual"].includes(E.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=E=>(e.billing?.grants||[]).filter(M=>M.planId===E&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(E=>wr(E.id)&&(["repo_extend","repo_pack"].includes(E.id)||!e.repositoryGrants(E.id).length)),e.hostingOneTimePlans=()=>{let E=M=>M.map(B=>(e.billing?.plans||[]).find(Y=>Y.id===B&&!e.repositoryGrants(B).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?E(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?E(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let H=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let E=e.billing?.allowance?.plan;return E&&!H.includes(E)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let E=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return E?.amount!=null?e.billingAmount(E):""},e.showHostingOptions=()=>{e.mobilePane="settings",xe(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let E=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return E?.amount!=null?`${e.billingAmount(E)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(E=>E.id===e.hostingCycle)||e.authorPlans().find(E=>E.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let E=e.authorPlans().find(B=>B.interval==="month")?.amount,M=e.authorPlans().find(B=>B.interval==="year")?.amount;return E&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=E=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[E.id]||E.name,e.hostingOptionBlurb=E=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[E.id]||`${E.repositories} repositories, ${e.billingBytes(E.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let E=e.hostingOneTimePlans();return E.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:E[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(E="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=R.checkpoint(),B=JSON.stringify(M);(!P||B!==D)&&(P=(await t.post("/api/billing/draft",{path:r.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,D=B);let Y=e.authorPlans().find(pe=>pe.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!E&&!Y)throw new Error("No author plan available");await e.checkout(E||Y.id,E?e.repoId:"",{draftId:P})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{R.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(d++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",en.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let _=()=>{let E={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])E[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:r.path(),savedAt:Date.now(),draft:E}))};e.connectGistApp=()=>{_(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(r.path())},e.connectGistOAuth=()=>{_(),window.location.href="/github/login?returnTo="+encodeURIComponent(r.path())},e.grantGitHubAccess=()=>{_();let E=r.path(),M=ge(e.sourceUrl)||"",B=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=B+"?returnTo="+encodeURIComponent(E)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async E=>{e.githubConnection=E,e.readme="",e.sourceUrl&&await Ie()},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 W(){let E=new Date;return E.setMonth(E.getMonth()+6),E}e.options.expirationDate=W();function ae(E){let M=E.getFullYear(),B=String(E.getMonth()+1).padStart(2,"0"),Y=String(E.getDate()).padStart(2,"0");return`${M}-${B}-${Y}`}e.minExpirationDate=ae(new Date),e.maxExpirationReason=null;let F=()=>{let E=new Date,M=new Date(E);if(M.setFullYear(M.getFullYear()+1),e.maxExpirationReason=null,e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(E),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));let B="plan";for(let Ce of e.repositoryGrants("repo_extend"))new Date(Ce.until)>M&&(M=new Date(Ce.until),B="extend");e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate),B="conference"),e._savedExpirationDate&&e._savedExpirationDate>M&&(ae(e._savedExpirationDate)>ae(M)&&(B="saved"),M=new Date(e._savedExpirationDate)),e.maxExpirationReason=B;let Y=e.options?.expirationDate,pe=e._savedExpirationDate&&Y instanceof Date&&Y.getTime()===e._savedExpirationDate.getTime();Y instanceof Date&&Y>M&&!pe&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=ae(M)};F(),e.expiryPickerOpen=!1,e.expiryCapped=()=>!!e.maxExpirationReason&&e.options?.expirationMode!=="never";let V=()=>!!e.anonymize?.expirationDate?.invalid;e.expiryPickerShown=()=>!e.expiryCapped()||e.expiryPickerOpen||V(),e.openExpiryPicker=()=>{e.expiryPickerOpen=!0,xe(()=>document.getElementById("expirationDate")?.focus())};let S=()=>{let E=Dr(e.options?.expirationDate),M=E.lastIndexOf(" \xB7 ");return M<0?null:{date:E.slice(0,M),relative:E.slice(M+3)}};e.expiryChoiceLabel=()=>{let E=e.expiryCapped()&&!V()?S():null;return E?"Expire on "+E.date:"Expire on a date"},e.expiryRelative=()=>{let E=S()?.relative||"";return E.charAt(0).toUpperCase()+E.slice(1)};let q=(E,M)=>{let B=new Date(E),Y=new Date(M);return!isNaN(B)&&!isNaN(Y)&&B.getFullYear()===Y.getFullYear()&&B.getMonth()===Y.getMonth()&&B.getDate()===Y.getDate()};e.expiryNote=()=>{let E=e.options?.expirationDate;return E?e.conference_data?.endDate&&q(E,e.conference_data.endDate)?"When "+(e.conference_data.name||"the conference")+" ends":!e.maxExpirationDate||!q(E,e.maxExpirationDate+"T00:00:00")?"":{plan:"Maximum on your plan",extend:"Maximum with Extended expiration",saved:"Date saved for this link"}[e.maxExpirationReason]||"":""},e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],F,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.titleIfTruncated=(E,M)=>{let B=E?.currentTarget;B&&(B.scrollWidth>B.clientWidth+1?B.title=M:B.removeAttribute("title"))},e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.userRepoPage=1,e.userRepoNext=null,e.userReposSyncedAt=null,e.userReposSyncing=!1,e.userReposWebhooks=!1,e.userReposNow=Date.now(),e.userReposRefreshFailed=!1;let G=0,oe,K,ne=0,le=[0],ye=Pt();ye.interval(()=>{e.userReposNow=Date.now()},3e4),e.on("dispose",()=>{G++,clearTimeout(oe)}),e.userReposUpdatedLabel=()=>{if(e.userReposSyncing)return"Updating\u2026";if(e.userReposRefreshFailed)return"Couldn\u2019t update";if(!e.userReposSyncedAt)return"";let E=Math.floor((e.userReposNow-Date.parse(e.userReposSyncedAt))/6e4);return E<1?"Updated just now":E<60?"Updated "+E+" min ago":E<1440?"Updated "+Math.floor(E/60)+" h ago":"Updated "+Ar(e.userReposSyncedAt)},e.userReposUpdatedTitle=()=>e.userReposWebhooks?"New repositories you give the GitHub App access to appear automatically. Refresh to check GitHub now.":"Your repository list is saved. Refresh to fetch new repositories from GitHub.",e.loadUserRepos=async(E={})=>{clearTimeout(oe),ye.timeout.cancel(K);let M=++G,B=e.userRepoFilter.trim();E.quiet||(e.userReposStatus="loading",e.userRepos=[]),E.force&&(e.userReposSyncing=!0,e.userReposRefreshFailed=!1),E.poll||(ne=0);let Y=le[e.userRepoPage-1];try{for(let pe=0;pe<5;pe++){let Ce=await t.get("/api/user/repository_picker",{params:{cursor:Y,q:B,connection:e.githubConnection,force:E.force&&pe===0?1:void 0}});if(g||M!==G)return;if(e.userRepos=Ce.data.items||[],e.userRepoNext=Ce.data.nextCursor??null,e.userReposSyncedAt=Ce.data.syncedAt||null,e.userReposSyncing=!!Ce.data.syncing,e.userReposWebhooks=!!Ce.data.webhooks,e.userReposNow=Date.now(),e.userRepos.length||e.userRepoNext===null||!B)break;Y=e.userRepoNext}e.userReposStatus="ready",e.userReposSyncing&&ne<60&&(ne++,K=ye.timeout(()=>{!g&&M===G&&e.loadUserRepos({quiet:!0,poll:!0})},2e3))}catch{if(g||M!==G)return;e.userReposSyncing=!1,!E.quiet||!e.userRepos.length?e.userReposStatus="error":E.force&&(e.userReposRefreshFailed=!0)}},e.refreshUserRepos=()=>{e.userReposSyncing||e.userReposStatus==="loading"||e.loadUserRepos({quiet:!0,force:!0})},e.changeUserRepoPage=E=>{if(e.userReposStatus!=="loading"){if(E>0&&e.userRepoNext!==null)le[e.userRepoPage]=e.userRepoNext,e.userRepoPage++;else if(E<0&&e.userRepoPage>1)e.userRepoPage--;else return;e.loadUserRepos()}},e.watch(()=>[e.userRepoFilter,e.githubConnection],()=>{i.repoId||i.pullRequestId||i.gistId||(G++,clearTimeout(oe),le=[0],e.userRepoPage=1,e.userRepoNext=null,e.userRepos=[],e.userReposStatus="loading",oe=setTimeout(()=>{g||e.loadUserRepos()},300))},!0,!1),e.selectUserRepo=E=>{if(E?.fullName)return e.sourceUrl="https://github.com/"+E.fullName,e.urlSelected()},e.previousConfigurations=[],e.previousConfigurationId="";let Ae,Xe=E=>String(E||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function tt(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let E={generation:d,url:e.sourceUrl.trim(),connection:e.githubConnection};try{Ae||(Ae=t.get("/api/user/anonymized_repositories").then(Y=>Y.data));let M=await Ae;if(!v(E))return;let B=Xe(ge(E.url));e.previousConfigurations=M.filter(Y=>Y.repoId&&Y.options&&Xe(Y.source?.fullName)===B).sort((Y,pe)=>(Date.parse(pe.anonymizeDate)||0)-(Date.parse(Y.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{Ae=void 0}}e.sourceSummary=()=>{let E=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(E);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(E),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.sourceError="",e.sourceErrorText="";let Ge={repo_access_limited:"access",repo_not_accessible:"access",repo_saml_enforcement:"access",repo_already_anonymized:"used",github_rate_limit_exceeded:"github-throttle",rate_limited:"throttle",github_unavailable:"upstream",internal_error:"server",unreachable:"server",github_app_reconnect_required:"reconnect",token_expired:"reconnect",repo_not_found:"missing",github_app_access_required:"missing",pull_request_not_found:"missing",gist_not_found:"missing"},We=E=>{let M=typeof E?.data?.error=="string"?E.data.error:"",B=E?.status===429?Ge[M]==="github-throttle"?M:"rate_limited":E?.status>=500?M==="github_unavailable"?M:"internal_error":M||(E?.status===404?"repo_not_found":"unknown_error");e.sourceError=B,e.sourceErrorText="",Ge[B]||o("ERRORS."+B).then(Y=>{e.sourceError===B&&Y!=="ERRORS."+B&&(e.sourceErrorText=Y)},()=>{}),Pi(B),x("sourceUrl","missing",!1)},it=()=>{e.sourceError="",e.sourceErrorText=""};e.sourceReady=()=>!!e.isUpdate||!!e.details,e.sourceProblem=()=>{let E=e.anonymize?.sourceUrl?.errors||{};if(E.github||e.sourceUrlError&&e.workspaceOpen)return{kind:"github",title:"Not a GitHub URL",text:"Paste a repository, pull request, or gist URL from github.com."};if(e.sourceLoading||e.details&&!E.used&&!e.sourceError)return null;if(e.gistAppRequired||e.gistOAuthRequired)return{kind:"connect",title:"Couldn't load this gist",text:"Connect GitHub to read gists."};let M=e.sourceError||(E.used?"repo_already_anonymized":E.access?"repo_not_accessible":E.missing?"repo_not_found":"");if(!M)return null;let B=Ge[M]||"other",Y=e.detectedType,pe="this gist";try{let Bt=parseGithubUrl(String(e.sourceUrl||"").trim());Y==="pr"?pe=`pull request #${Bt.pullRequestId} in ${Bt.owner}/${Bt.repo}`:Y!=="gist"&&(pe=`${Bt.owner}/${Bt.repo}`)}catch{}let Ce=Y==="pr"?"this pull request":Y==="gist"?"this gist":"this repository",Ze=Y!=="gist"&&e.githubConnection==="github-app",mt=e.isUpdate&&Y==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&Ze&&e.sourceUrl==="https://github.com/"+e._originalFullName?null:Y==="gist"||!e.githubConnection?"link":Ze?"app":"link",wt="Couldn't load "+Ce;if(B==="github-throttle")return{kind:B,title:wt,text:"GitHub's API rate limit has been reached. Wait for the limit to reset, then try again. Your repository access settings do not need to change.",retry:!0};if(B==="throttle")return{kind:B,title:wt,text:"Too many requests. Wait a little, then try loading the source again.",retry:!0};if(B==="upstream")return{kind:B,title:wt,text:"GitHub is temporarily unavailable. Try loading the source again in a moment.",retry:!0};if(B==="server")return{kind:B,title:wt,text:"Anonymous GitHub could not load the source because of a server error. Try again in a moment. This does not mean the repository is missing or that you need to change its permissions.",retry:!0};if(B==="reconnect")return{kind:B,title:wt,text:"Your GitHub authorization has expired or was revoked. Reconnect your GitHub account, then try loading the source again.",manage:"link",retry:!0};if(B==="used")return{kind:B,title:"Already anonymized",text:`You've already anonymized ${pe}. Open it from My work to change its settings.`,dashboard:!0};if(B==="access"){let Bt=M==="repo_saml_enforcement"?"Its organization requires single sign-on.":"Its organization restricts third-party apps.",xm=M==="repo_saml_enforcement"?"Authorize your GitHub session for the organization, then try again.":"An organization owner may need to approve Anonymous GitHub. You can also anonymize a personal fork.";return{kind:B,title:wt,text:`We can't read ${pe}. ${Bt}`,note:xm,manage:mt,retry:!0}}return B==="missing"?{kind:B,title:wt,text:`We can't read ${pe}. It doesn't exist, or ${Ze?"the Anonymous GitHub app hasn't been given access to it":"your GitHub account can't see it"}.`,manage:mt,retry:!0}:{kind:B,title:wt,text:e.sourceErrorText||"GitHub didn't return it. Try again in a moment.",retry:!0}},e.submitBlockedReason=()=>e.sourceLoading?e.detectedType==="pr"?"Waiting for the pull request to load from GitHub\u2026":e.detectedType==="gist"?"Waiting for the gist to load from GitHub\u2026":"Waiting for the repository to load from GitHub\u2026":e.sourceReady()?"":e.sourceProblem()?.kind==="github"?"Enter a GitHub URL to continue.":["github-throttle","throttle","upstream","server"].includes(e.sourceProblem()?.kind)?"Wait for the source to load successfully before continuing.":e.detectedType==="pr"?"Add a pull request you can access to continue.":e.detectedType==="gist"?"Add a gist you can access to continue.":"Add a repository you can access to continue.",e.sourceIsPrivate=()=>e.details?e.detectedType==="gist"?e.details.gist?!e.details.gist.isPublic:!0:e.details.private!==!1:!1,e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let E=e.previewId();return E?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(E)+"/":""},e.previewUrl=()=>{let E=e.previewPath();return E?"anonymous.4open.science"+E.replace(/\/$/,""):""},e.previewRedactions=()=>{let E=Y=>typeof Y=="string"?(Y.match(wi)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Ms:Vs,B=0;return M.forEach(Y=>{B+=E(Y)}),B};let gt=(E,M)=>E.localeCompare(M,void 0,{sensitivity:"base"}),Me=E=>E.slice(E.lastIndexOf("/")+1),Q={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!Oe)return[];let E=e.preserve.commit+"\0"+e.terms+"\0"+Os.size+"\0"+Oe.files.length;if(Q.key===E)return Q.files;let M=Oe.files.map(B=>{let Y=e.previewPathName(B),pe=Y.lastIndexOf("/");return{name:Y.slice(pe+1),path:pe<0?"":Y.slice(0,pe),size:0,sourcePath:B}});return Q={key:E,files:M},M},e.selectPreviewPath=E=>{let M=e.previewTreeFiles().find(B=>"/"+(B.path?B.path+"/":"")+B.name===E);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let E=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return E?"/anonymize/"+encodeURIComponent(E.repoId):null};function he(E){t.get("/api/user/default").then(M=>{let B=M.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):W(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),E&&E()})}function x(E,M,B){e.anonymize&&e.anonymize[E]&&e.anonymize[E].setValidity(M,B)}function ge(E){try{let M=parseGithubUrl(E);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ge(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let E=y();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let B=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!v(E))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{v(E)&&(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)}},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.details=null,e.source.commit="",e.source.branch="",e.readme="",e.branches=[],en.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle",e.anonymize_readme="",dd();try{await I()}catch{}}};function Se(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ge(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Ie(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function A(){let E=new URLSearchParams(window.location.search).get("billingDraft");if(E){R.restore();try{let B=(await t.get("/api/billing/draft/"+encodeURIComponent(E))).data;if(B.path!==r.path())throw new Error("Wrong task");b=B.values.conference||null;for(let Y of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(B.values,Y)&&(e[Y]=B.values[Y]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),P=B.id,D=JSON.stringify(R.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Ie(),r.replace?.(r.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==r.path()||Date.now()-M.savedAt>=30*6e4)return R.restore()?(e.sourceUrl&&await Ie(),!0):!1;R.restore();for(let B of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,B)&&(e[B]=M.draft[B]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Ie(),sessionStorage.removeItem("github-access-draft"),!0}he(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(A,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async E=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(E.data.status),e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.fullName,e._originalFullName=E.data.source.fullName,e.terms=E.data.options.terms.filter(M=>M).join(` +`),e.source=E.data.source,e.role=E.data.role||"owner",e._existingNever=E.data.options.expirationMode==="never",e._savedExpirationDate=E.data.options.expirationDate?new Date(E.data.options.expirationDate):null,e.coauthors=E.data.coauthors||[],e._originalBranch=E.data.source.branch,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,e.repositoryID=E.data.source.repositoryID,e._originalRepositoryID=E.data.source.repositoryID,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&(await Promise.all([I(),ee().then(Dn)]),Dn())},()=>{r.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async E=>{if(e.githubConnection=E.data.connection||"oauth",e.sourceUrl="https://github.com/"+E.data.source.repositoryFullName+"/pull/"+E.data.source.pullRequestId,e.terms=E.data.options.terms.filter(M=>M).join(` +`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A())try{await pd()}catch{}},()=>{r.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async E=>{e.sourceUrl="https://gist.github.com/"+E.data.source.gistId,e.terms=E.data.options.terms.filter(M=>M).join(` +`),e.source=E.data.source,e.options=Object.assign({},e.options,E.data.options),e.conference=E.data.conference,e._originalConference=E.data.conference,E.data.options.expirationDate&&(e.options.expirationDate=new Date(E.data.options.expirationDate)),k=w(parseGithubUrl(e.sourceUrl)),!await A()&&await fd()},()=>{r.url("/404")}))}),t.get("/github/connections").then(E=>{e.githubConnections=E.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&E.data.appEnabled&&E.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&Ie())}).catch(()=>{}).finally(()=>{!g&&!i.repoId&&!i.pullRequestId&&!i.gistId&&e.userReposStatus==="idle"&&e.loadUserRepos()}),e.urlSelected=async(E=!1)=>{let M=++d;e.previousConfigurations=[],e.previousConfigurationId="";let B;try{B=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,e.details=null,it(),en.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",x("sourceUrl","github",!1);return}let Y=w(B),pe=E||k===Y;k=Y,e.sourceUrlError="",x("sourceUrl","github",!0),it();let Ce=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let Ze=window.document.getElementById("sourceUrl");if(Ze){try{Ze.setSelectionRange(0,0)}catch{}Ze.scrollLeft=0}},50),Ce&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!pe&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],pe||(e.source={type:"GitHubStream",branch:"",commit:""}),en.cancel(),An.cancel(),In.cancel(),Ms.clear(),Vs.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",dd(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=pe;try{B.gistId&&!B.repo?(e.detectedType="gist",e.source={gistId:B.gistId},await fd()):B.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:B.owner+"/"+B.repo,pullRequestId:B.pullRequestId},await pd()):(e.detectedType="repo",tt(),await Promise.all([I(),ee().then(Dn)]),Dn())}catch{}finally{M===d&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let E=e.branches.filter(B=>B.name==e.source.branch)[0];if(!E)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=E.commit),X(E),await ee(),Dn()}),e.getBranches=async E=>{let M=parseGithubUrl(e.sourceUrl),B=y();try{if(!e.details){await I(E);return}let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0||e.reconnectingSource?"1":"0",repositoryID:Se()}});if(!v(B))return;e.branches=Y.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let pe=e.branches.filter(Ce=>Ce.name==e.source.branch);pe.length>0&&(!(!e.reconnectingSource&&!E&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=pe[0].commit),X(pe[0]),await ee(E))}catch(Y){if(!v(B))return;e.branches=[],e.sourceUnreachable=Y&&(Y.status===404||Y.data&&Y.data.error==="repo_not_found"),e.details=null,We(Y)}finally{C(B)}};async function I(E=!1){let M=parseGithubUrl(e.sourceUrl),B=y();try{qs(),it();let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:Se(),force:"1"}});if(!v(B))return;e.details=Y.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||e.reconnectingSource)}catch(Y){if(!v(B))return;throw We(Y),Y}finally{C(B)}}let z=null,Z=E=>z!==null&&(z===E||z===""&&!!E&&E===e.details?.defaultBranch);function X(E){e.readme&&Z(E.name)||(e.readme=E.readme,z=E.readme?E.name:null)}async function ee(E){if(e.readme&&!E)return e.readme;let M=parseGithubUrl(e.sourceUrl),B=y(),Y=()=>v(B)&&(B.branch===e.source.branch||!B.branch&&e.source.branch===e.details?.defaultBranch);try{let pe=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:E===!0?"1":"0",branch:B.branch,repositoryID:Se()}});Y()&&(e.readme=pe.data,z=B.branch)}catch{Y()&&(e.readme="",z=null)}finally{C(B)}}let ue={magicalBraces:!0},re=E=>E.startsWith("/")&&!E.endsWith("/")&&ss(Ds(E.slice(1),ue),ue)===E.slice(1),ie=()=>Object.keys(e.preserve.picked).filter(E=>e.preserve.picked[E]).sort().map(E=>"/"+ss(E,ue)),se=E=>"/"+ss(E,ue)+"/**",Te=E=>"!/"+ss(E,ue)+"/",fe=()=>String(e.preserve.patterns||"").split(` +`).map(E=>E.trim()).filter(Boolean),Ee=null,Oe=null,Ue=new Set,Qe=0,Je=null,Re=()=>!1;function Be(){let E=Qe+"\0"+e.preserve.patterns;if(E!==Je){Je=E;try{Re=Xl(Yl([...ie(),...fe()]))}catch{Re=()=>!1}}return Re}function j(E){let M=new Map([["",{dirs:[],files:[]}]]);for(let B of E){let Y=B.split("/"),pe="";for(let Ce=0;CeM.startsWith(E+"/"))),Ee.descendants.get(E)}let me=E=>Be()(E);function Ne(E){let M=J(E),B=0;for(let Y of M)me(Y)&&B++;return B===0?"none":B===M.length?"all":"some"}e.preserve={open:!1,loading:!1,error:"",truncated:!1,commit:"",search:"",expanded:{},picked:{},patterns:"",patternsOpen:!1},e.preserveSummary=()=>{let E=(e.options?.preserveFiles||[]).map(M=>String(M).trim()).filter(Boolean).map(M=>re(M)?Ds(M.slice(1),ue):M);return E.length?E.slice(0,2).join(", ")+(E.length>2?` and ${E.length-2} more`:""):"None. Every file is redacted."};async function ve(){let E=e.source?.commit;if(!(Ee&&e.preserve.commit===E)){e.preserve.loading=!0,e.preserve.error="",Ee=null,Oe=null;try{let M=parseGithubUrl(e.sourceUrl),B=await t.get(`/api/repo/${M.owner}/${M.repo}/tree`,{params:{commit:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Se()}});if(e.source?.commit!==E)return;let Y=Array.isArray(B.data.binaryFiles)?B.data.binaryFiles:[];Ee=kn(j(B.data.files||[])),Oe=Y.length?kn(j([...B.data.files||[],...Y])):Ee,Ue=kn(new Set(Y)),e.preserve.commit=E,e.preserve.truncated=!!B.data.truncated,e.previewFile||en()}catch{e.preserve.error="The file list could not be loaded from GitHub. You can still use patterns.",e.preserve.patternsOpen=!0}finally{e.preserve.loading=!1}}}e.watch("source.commit",E=>{e.previewFile&&e.openPreviewFile(""),e.detectedType==="repo"&&E&&e.sourceUrl&&ve().catch(()=>{})}),e.openPreserveFiles=()=>{let E={},M=[];for(let Y of e.options?.preserveFiles||[]){let pe=String(Y).trim();pe&&(!M.length&&re(pe)?E[Ds(pe.slice(1),ue)]=!0:M.push(pe))}let B={};for(let Y of Object.keys(E)){let pe=Y.split("/");for(let Ce=1;Ce0}),e.mobileWorkspace&&(e.mobilePane="settings"),Qe++,u(()=>{let Y=document.getElementById("preserve-files-dialog");Y?.showModal&&!Y.open&&Y.showModal(),document.getElementById("preserve-files-search")?.focus()},0),ve()},e.closePreserveFiles=()=>{document.getElementById("preserve-files-dialog")?.close?.(),e.preserve.open=!1},e.savePreserveFiles=()=>{e.options.preserveFiles=Yl([...ie(),...fe()]),e.closePreserveFiles()},e.preserveRows=()=>{if(!Ee)return[];let E=Be(),M=(Ce,Ze,Gt)=>{let mt=!!e.preserve.picked[Ce],wt=E(Ce);return{kind:"file",path:Ce,label:Gt,depth:Ze,state:wt?"all":"none",locked:!mt&&wt,note:!mt&&wt?"matched by a pattern":mt&&!wt?"excluded by a pattern":""}},B=String(e.preserve.search||"").trim().toLowerCase();if(B)return Ee.files.filter(Ce=>Ce.toLowerCase().includes(B)).slice(0,300).map(Ce=>M(Ce,0,Ce));let Y=[],pe=(Ce,Ze)=>{let Gt=Ee.dirs.get(Ce);for(let mt of Gt.dirs){let wt=!!e.preserve.expanded[mt],Bt=fe().includes(se(mt));Y.push({kind:"dir",path:mt,label:mt.slice(Ce?Ce.length+1:0)+"/",depth:Ze,open:wt,state:Ne(mt),locked:!1,note:Bt?"whole folder":""}),wt&&pe(mt,Ze+1)}for(let mt of Gt.files)Y.push(M(mt,Ze,mt.slice(Ce?Ce.length+1:0)))};return pe("",0),Y},e.preserveCount=()=>Ee?Ee.files.filter(me).length:0,e.togglePreserveDir=E=>{e.preserve.expanded[E]=!e.preserve.expanded[E]},e.togglePreserveFile=E=>{e.preserve.picked[E]=!e.preserve.picked[E],Qe++},e.togglePreserveFolder=E=>{let M=se(E),B=Te(E),Y=fe().filter(Ce=>Ce!==M&&Ce!==B),pe=Ne(E)==="all"||fe().includes(M);for(let Ce of J(E))e.preserve.picked[Ce]=!1;Qe++,e.preserve.patterns=(pe?Y:[...Y,M]).join(` +`),pe&&J(E).some(me)&&(e.preserve.patterns=[...Y,B].join(` +`))};let qe=/^readme(\.[^/]*)?$/i,ct=[".md",".markdown",".mdown",".mkdn",".rst",".txt",""],Ft=["README.md","README","README.markdown","README.rst","README.txt","readme.md"],Ut=E=>{let M=Me(E),B=M.indexOf("."),Y=ct.indexOf(B===-1?"":M.slice(B).toLowerCase());return Y===-1?ct.length:Y},xt=()=>!!Ee&&!!e.preserve.commit&&e.preserve.commit===e.source?.commit;e.readmePath=()=>{if(!xt())return"";for(let E of[".github","","docs"]){let M=(Ee.dirs.get(E)?.files||[]).filter(B=>qe.test(Me(B)));if(M.length)return M.sort((B,Y)=>Ut(B)-Ut(Y)||gt(B,Y))[0]}return""},e.readmeName=()=>Me(e.readmePath())||"README.md";let Pn={key:null,fn:()=>!1},ld=()=>{let E=(e.options?.preserveFiles||[]).map(B=>String(B).trim()).filter(Boolean),M=E.join(` +`);if(M!==Pn.key){let B=()=>!1;try{E.length&&(B=Xl(E))}catch{}Pn={key:M,fn:B}}return Pn.fn};e.pathPreserved=E=>!!E&&ld()(E),e.readmePreserved=()=>{if(e.detectedType!=="repo")return!1;let E=ld();if(xt()){let M=e.readmePath();return!!M&&E(M)}return Ft.some(M=>E(M))},e.previewPreserved=()=>e.detectedType==="repo"&&(e.previewFile?e.pathPreserved(e.previewFile):e.readmePreserved());function go(){let E={terms:e.terms?e.terms.split(` +`):[],filePath:e.previewOpenPath()||"README.md",preserveFiles:e.options.preserveFiles||[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId},M=e.source?.branch||e.details?.defaultBranch;M&&(E.branchName=M);try{let B=parseGithubUrl(e.sourceUrl);E.repoName=`${B.owner}/${B.repo}`}catch{}return E}function sa(E,M,B){let Y=null,pe=0,Ce=null,Ze=()=>{if(e.detectedType!==E)return;Y&&u.cancel(Y);let Gt=++pe;e.previewStatus="loading",Y=u(()=>{Y=null;let mt=M();if(!mt){e.previewStatus="idle";return}if(mt.wait){e.previewStatus=e.sourceLoading?"loading":"idle";return}let wt=JSON.stringify(mt);if(wt===Ce){e.previewStatus="ready";return}Ce=null,t.post("/api/anonymize-preview",mt).then(Bt=>{Gt===pe&&(B(Bt.data,mt),Ce=wt,e.previewStatus="ready")}).catch(()=>{Gt===pe&&(e.previewStatus="error")})},200)};return Ze.cancel=()=>{pe++,Ce=null,Y&&u.cancel(Y),Y=null},e.on("dispose",Ze.cancel),Ze}e.retryPreview=()=>{e.detectedType==="repo"&&(e.previewFile&&typeof hn!="string"?ud(e.previewFile):en()),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()};let at=kn(ti(e));Object.defineProperty(e,"previewViewer",{get:()=>at}),bl(at,e),Object.assign(at,{options:{},files:[],paths:[],content:null,type:"loading",sidebarHidden:!1,sidebarCollapsed:!0,moreOpen:!1,tocOpen:!1,gotoOpen:!1,mdFindOpen:!1,mdFindQuery:"",mdFindTotal:0,mdFindIndex:0}),at.preview=!0,at.fileSize=E=>E===at.filePath&&typeof hn=="string"?new Blob([hn]).size:!e.previewFile&&e.readme?new Blob([e.readme]).size:null,at.openPreserveFiles=()=>e.openPreserveFiles(),at.previewPreserved=()=>e.previewPreserved(),at.retryContent=()=>e.retryPreview();let Km=E=>Ue.has(E)||/\.(pdf|png|jpe?g|gif|svg|ico|bmp|tiff?|webp|avif|heic|heif|mp4|webm|mp3|wav|zip|bin)$/i.test(E),oa=(E="")=>({path:E,loading:!1,note:"",loadError:""});e.previewFile="",e.previewDoc=oa();let yo=0,hn=null;e.previewOpenPath=()=>e.previewFile||e.readmePath(),e.openPreviewFile=E=>{if(E=E||"",E&&E===e.readmePath()&&(E=""),yo++,hn=null,Ni(),en.cancel(),e.previewFile=E,e.previewDoc=oa(E),at.sidebarCollapsed=!0,at.content=null,!E){e.readme?en():e.previewStatus="idle";return}if(Km(E)){ia("binary"),e.previewStatus="ready";return}ud(E)};function dd(){yo++,hn=null,e.previewFile="",e.previewDoc=oa(),at.sidebarCollapsed=!0,at.content=null}function ud(E){let M=++yo;hn=null,Object.assign(e.previewDoc,{loading:!0,loadError:""}),e.previewStatus="loading";let B;try{B=parseGithubUrl(e.sourceUrl)}catch{B=null}if(!B||!e.source?.commit){Object.assign(e.previewDoc,{loading:!1,loadError:"The repository is still loading. Try again in a moment."}),e.previewStatus="error";return}t.get(`/api/repo/${B.owner}/${B.repo}/file`,{params:{commit:e.source.commit,path:E,connection:e.githubConnection,anonymizedRepoId:e.isUpdate&&i.repoId&&ge(e.sourceUrl)===e._originalFullName?i.repoId:void 0,repositoryID:Se()},transformResponse:Y=>Y}).then(Y=>{if(M!==yo)return;e.previewDoc.loading=!1;let pe=typeof Y.headers=="function"&&Y.headers("content-type")||"";if(/json/i.test(pe)){let Ce=null;try{Ce=JSON.parse(Y.data)}catch{}if(Ce&&Ce.binary===!0){ia("binary"),e.previewStatus="ready";return}}hn=typeof Y.data=="string"?Y.data:"",en()},Y=>{if(M!==yo)return;e.previewDoc.loading=!1;let pe=Jr(Y);if(pe==="file_too_big"){ia("too_big"),e.previewStatus="ready";return}e.previewDoc.loadError=ls.ERRORS[pe]||"GitHub did not return this file.",e.previewStatus="error"})}let Si;function Ni(){Si&&window.URL.revokeObjectURL(Si),Si=void 0,at.url=void 0}e.on("dispose",Ni);function ia(E){Ni(),e.previewDoc.note=E,at.prepareFile(e.previewPathName(e.previewOpenPath()||e.readmeName())),at.type=E==="too_big"?"error":"binary",at.content=E==="too_big"?"file_too_big":"binary"}function Ym(E){try{let M=parseGithubUrl(e.sourceUrl),B=e.source.branch||e.details&&e.details.defaultBranch||"main",Y=E&&E.includes("/")?E.slice(0,E.lastIndexOf("/")+1):"";return`https://github.com/${M.owner}/${M.repo}/raw/${B}/${Y}`}catch{return""}}let cd=sa("repo",()=>{if(e.previewFile)return typeof hn!="string"?null:{content:hn,options:go()};if(!e.readme)return null;let E=go();return!E.branchName||!E.repoId?{wait:!0}:{content:e.readme,options:E}},E=>{if(typeof E?.content!="string")throw Error("Invalid preview response");Ni(),window.URL?.createObjectURL&&(at.url=Si=window.URL.createObjectURL(new Blob([E.content],{type:"text/plain"})));let M=e.previewOpenPath()||e.readmeName();at.prepareFile(e.previewPathName(M)),at.fileBaseUrl=Ym(M),at.renderFileContent(E.content,at.type,at.fileBaseUrl,"text/plain"),e.previewFile||(e.anonymize_readme=E.content)}),en=()=>{e.previewFile&&typeof hn!="string"||cd()};en.cancel=cd.cancel;let Os=ut(new Map),ra=new Set,aa=new Set,vo="",bo=null,Ri=()=>String(e.terms||"").split(` +`).filter(E=>E.trim());function Xm(){bo=null;let E=Ri(),M=E.join(` +`);M!==vo&&(Os.clear(),aa.clear(),vo=M);let B=[...ra].filter(Y=>!Os.has(Y));if(ra.clear(),!(!B.length||!E.length))for(let Y=0;Y{if(vo!==M||Ri().join(` +`)!==M)return;let Ze=Ce.data?.contents;if(!Array.isArray(Ze)||Ze.length!==pe.length)throw Error("Invalid preview response");pe.forEach((Gt,mt)=>Os.set(Gt,typeof Ze[mt]=="string"?Ze[mt]:Gt))}).catch(()=>{vo===M&&pe.forEach(Ce=>aa.add(Ce))})}}e.previewName=E=>{if(!E||!Ri().length)return E;if(vo===Ri().join(` +`)){if(Os.has(E))return Os.get(E);if(aa.has(E))return E}return ra.add(E),bo||(bo=u(Xm,120)),E},e.previewPathName=E=>{E=String(E||"");let M=E.lastIndexOf("/");return M<0?e.previewName(E):e.previewName(E.slice(0,M))+"/"+e.previewName(E.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{at.repoId=e.repoId||"repository",at.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),at.paths=at.filePath.split("/"),at.files=e.previewTreeFiles(),at.loadedFolders=Object.fromEntries([...Oe?.dirs.keys()||[]].map(E=>[e.previewName(E),!0]))},!0),e.on("dispose",()=>{bo&&u.cancel(bo)});function Dn(){if(!e.anonymize||!e.anonymize.terms)return;let E=go();!E.branchName||!E.repoId||en()}async function pd(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it();let B=await t.get(`/api/pr/${E.owner}/${E.repo}/${E.pullRequestId}`,{params:{connection:e.githubConnection}});if(!v(M))return;e.details=B.data,e.pullRequestId||(e.pullRequestId=E.repo+"-PR"+E.pullRequestId+"-"+generateRandomId(4))}catch(B){if(!v(M))return;throw We(B),B}finally{C(M)}}let Ms=ut(new Map);function Qm(){let E=new Set,M=e.details&&e.details.pullRequest;if(!M)return E;typeof M.title=="string"&&E.add(M.title),typeof M.body=="string"&&E.add(M.body),typeof M.diff=="string"&&E.add(M.diff);let B=M.comments||[];for(let Y of B)typeof Y.author=="string"&&E.add(Y.author),typeof Y.body=="string"&&E.add(Y.body);return E}let An=sa("pr",()=>{let E=Qm(),M=Array.from(E);return M.length===0?null:{contents:M,options:go()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;peMs.set(Ce,pe))});e.anonymizePrContent=function(E){return E&&(Ms.has(E)?Ms.get(E):"")};async function fd(){let E=parseGithubUrl(e.sourceUrl),M=y();try{qs(),it(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let B=await t.get(`/api/gist/source/${E.gistId}`);if(!v(M))return;e.details=B.data,e.gistId||(e.gistId="gist-"+E.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(B){if(!v(M))return;if(B.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,x("sourceUrl","missing",!1);return}if(B.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,x("sourceUrl","missing",!1);return}throw We(B),B}finally{C(M)}}let Vs=ut(new Map);function Jm(){let E=new Set,M=e.details&&e.details.gist;if(!M)return E;typeof M.description=="string"&&E.add(M.description),typeof M.ownerLogin=="string"&&E.add(M.ownerLogin);let B=M.files||[];for(let pe of B)typeof pe.filename=="string"&&E.add(pe.filename),typeof pe.content=="string"&&E.add(pe.content);let Y=M.comments||[];for(let pe of Y)typeof pe.author=="string"&&E.add(pe.author),typeof pe.body=="string"&&E.add(pe.body);return E}let In=sa("gist",()=>{let E=Jm(),M=Array.from(E);return M.length===0?null:{contents:M,options:go()}},(E,M)=>{if(!Array.isArray(E?.contents)||E.contents.length!==M.contents.length||E.contents.some(pe=>typeof pe!="string"))throw Error("Invalid preview response");let B=M.contents,Y=new Map;for(let pe=0;peVs.set(Ce,pe)),la()});e.anonymizeGistContent=function(E){return E&&(Vs.has(E)?Vs.get(E):"")},e.previewGistFiles=[];function la(){let E=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=E.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",la,!0),e.watch("terms",la);function Zm(){let E=e.conference;if(e.conference_data=null,!E)return;let M=E===b||e.isUpdate&&E===e._originalConference;E!==b&&(b=null),t.get("/api/conferences/"+E).then(B=>{e.conference===E&&(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),!M&&(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&&(e.conference_data=null)})}function qs(){x("repoId","used",!0),x("repoId","format",!0),x("pullRequestId","used",!0),x("pullRequestId","format",!0),x("gistId","used",!0),x("gistId","format",!0),x("sourceUrl","used",!0),x("sourceUrl","missing",!0),x("sourceUrl","access",!0),x("sourceUrl","github",!0),x("commit","exists",!0),x("conference","activated",!0),x("terms","format",!0),e.termHints=[]}function Ti(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let E=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||E&&E.invalid?(E&&E.setDirty&&E.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Pi(E){let M=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(E){case"repoId_already_used":x(M,"used",!1);break;case"invalid_repoId":x(M,"format",!1);break;case"options_not_provided":x(M,"format",!1);break;case"repo_already_anonymized":x("sourceUrl","used",!1);break;case"invalid_terms_format":x("terms","format",!1);break;case"repo_not_found":x("sourceUrl","missing",!1);break;case"repo_not_accessible":x("sourceUrl","access",!1);break;case"commit_not_found":x("commit","exists",!1);break;case"conf_not_activated":x("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let E=(e.coauthorSearch||"").trim();if(e.coauthorError="",E.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:E}}).then(M=>{let B=new Set((e.coauthors||[]).map(Y=>(Y.username||"").toLowerCase()));e.coauthorResults=(M.data||[]).filter(Y=>!B.has((Y.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(E,M)=>{M&&M.preventDefault(),!(!E||!E.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:E.username}).then(B=>{e.coauthors=B.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},B=>{let Y=B&&B.data&&B.data.error||"unknown_error";e.coauthorError=Y})},e.removeCoauthor=E=>{!E||!E.username||confirm("Remove co-author "+E.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(E.username)).then(M=>{e.coauthors=M.data||[]},M=>{let B=M&&M.data&&M.data.error||"unknown_error";e.coauthorError=B})},e.anonymizeRepo=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(Ti()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,xe(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={repoId:e.repoId,terms:e.terms.trim().split(` +`).filter(Ce=>Ce),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&&(Y.options.pageSource=e.details.pageSource),qs();let pe=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/status/"+e.repoId},Ce=>{if(Ce.data){let Ze=["quota_exceeded","quota_repository_limit","quota_storage_limit","subscription_required_for_never_expiration"].includes(Ce.data.error);Ze||o("ERRORS."+Ce.data.error).then(Gt=>{e.error=Gt},console.error),Pi(Ce.data.error),Ze&&(Ce.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,xe(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={gistId:e.gistId,terms:e.terms.trim().split(` +`).filter(Ce=>Ce),source:{gistId:B.gistId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/gist/"+e.gistId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=E=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(Ti())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=E.currentTarget||E.target.closest?.("button")||E.target;M.disabled=!0;let B=parseGithubUrl(e.sourceUrl),Y={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` +`).filter(Ce=>Ce),source:{repositoryFullName:`${B.owner}/${B.repo}`,pullRequestId:B.pullRequestId},options:e.options,conference:e.conference};qs();let pe=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(pe,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/pr/"+e.pullRequestId},Ce=>{Ce.data&&(o("ERRORS."+Ce.data.error).then(Ze=>{e.error=Ze},console.error),Pi(Ce.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{Zm()}),e.termHints=[],e.matchTermAsWritten=E=>{e.terms=uf(e.terms,E)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&en()}),e.watch("terms",()=>{e.termHints=df(e.terms),e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.image",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.link",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("details",()=>{e.detectedType==="repo"&&Dn(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()},!0)},Zl=function(e,t,s,i,r,o){bl(e);let u=Pt();xr();let p=Lt(),d=0,g=null,m=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function v(){g&&(g.resolve(),g=null),m&&(u.timeout.cancel(m),m=null)}let y=!1;e.on("dispose",()=>{y=!0,d++,v(),C&&C.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",F=>{e.symbolsOpen&&!F.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!F.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!F.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&F.target.isConnected&&!F.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!F.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!F.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",F=>{F.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(F.ctrlKey||F.metaKey)&&!F.altKey&&F.key&&F.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(F.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(F){if((F.metaKey||F.ctrlKey)&&F.key==="k"){F.preventDefault();var V=document.querySelector(".tree-search-input");V&&(V.focus(),V.select())}});var C=null;e.onFileSearchChange=function(){C&&(C.resolve(),C=null);let F=e.fileSearchQuery;if(!F||F.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let V=o.defer();C=V,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(F)}`,{timeout:V.promise}).then(function(S){if(!(y||C!==V)){C=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Me){q[(Me.path||"")+"/"+Me.name]=!0});for(var G=[],oe={},K=0;K0&&e.files.push.apply(e.files,G);for(var Ge=[],We=0;We0&&e.files.push.apply(e.files,Ge),e.fileSearchResults=S.data}},function(){!y&&C===V&&(C=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(F,V){if(e.repoId!=i.repoId)return ae();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(S=>S&&S.trim().length>0),W();for(let S=0;S0?e.paths.slice(0,S).join("/"):"";e.files.some(oe=>oe.path===q)||e.getFiles(q)}}});function k(){if(e.paths[0]!="")return;let F=["readme.md","readme.txt","readme.org","readme.1st","readme"],V={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(V[q.name.toLowerCase()]=q.name);let S=null;for(let q of F)if(V[q]){S=q;break}if(!S&&Object.keys(V).length>0&&(S=Object.keys(V)[0]),S){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(V[S]))}}e.fileCounts=null;let w=0,R=new Set,b=!1;e.getFiles=function(F,V=!1){let S=e.repoId,q=w;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(F)}&v=${e.options.lastUpdateDate}`).then(function(G){if(y||S!==e.repoId||q!==w)return[];let oe=F||"";return e.files=e.files.filter(K=>K.path!==oe),e.files.push(...G.data),e.loadedFolders={...e.loadedFolders,[oe]:!0},P(oe,q),G.data},function(G){if(y||S!==e.repoId||q!==w)return[];V||(e.type="error",e.content=Jr(G),e.files=[])})};function P(F,V){if(b||R.has(F))return;R.add(F);let S=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(F)}`).then(function(q){y||S!==e.repoId||V!==w||(e.fileCounts={...e.fileCounts,...q.data})},function(){y||S!==e.repoId||V!==w||(b=!0)})}function D(){return e.files.filter(F=>F.name==e.paths[e.paths.length-1]&&F.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var L=null;e.on("dispose",function(){L&&u.interval.cancel(L)});function H(F){if(y)return;let V=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(S=>{if(!(y||V!==e.repoId)){if(e.options=S.data,e.options.url){window.location=e.options.url;return}F&&F(S.data)}},S=>{if(!(y||V!==e.repoId)){var q=S.data||{};if(q.error==="rate_limited"&&q.resetAt){let oe=function(){var K=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(K<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,L&&(u.interval.cancel(L),L=null),H(F);else{var ne=Math.floor(K/60),le=K%60;e.rateLimitCountdown=ne>0?ne+"m "+le+"s":le+"s"}};var G=oe;e.type="rate_limited",e.rateLimitResetAt=q.resetAt,L&&u.interval.cancel(L),oe(),L=u.interval(oe,1e3)}else q.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){H(F)},3e3)):(e.type="error",e.content=Jr(S))}})}function _(F,V){let S=d;if(!F){e.type="error",e.content="no_file_selected";return}let q=e.type;(q==="code"||q==="text")&&Ai().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let G=o.defer();g=G,m=u.timeout(()=>{!y&&S===d&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let oe=V&&V.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(F)}?v=`+oe,{timeout:G.promise,onDownloadProgress:K=>{!y&&S===d&&(e.fileReceivedBytes=K)},transformResponse:K=>K}).then(K=>{y||S!==d||(v(),e.renderFileContent(K.data,q,s.url()+"/../",K.headers("content-type")))},K=>{y||S!==d||(v(),e.type="error",e.content=Jr(K))})}function W(){d++,v(),e.content="",e.file=D();let F="0";e.file&&e.file.sha&&(F=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${F}`;let V=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${V?encodePathForUrl(V):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}_(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=()=>ae();function ae(){d++,v(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,w++,R=new Set,b=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let F=e.repoId;H(function(V){if(e.filePath){W();let q=[...new Set(e.paths.map((G,oe)=>e.paths.slice(0,oe).join("/")))];o.all(q.map(G=>e.getFiles(G,!0)));return}var S=o.resolve();for(let q=0;q0?e.paths.slice(0,q).join("/"):"";S=S.then(function(){return e.getFiles(G)}).then(function(){if(e.type==="error")return o.reject("error")})}S.then(function(){y||F!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(k(),W()))})})}ae()},wf=function(e,t,s,i,r){async function o(d){t.get(`/api/pr/${e.pullRequestId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}async function u(d){t.get(`/api/pr/${e.pullRequestId}/content`).then(g=>{e.details=g.data,e.tabState={active:cp(g.data)},d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",up(e),xr(),o(d=>{u()})}p()},kf=function(e,t,s,i,r){async function o(d){t.get(`/api/gist/${e.gistId}/options`).then(g=>{if(e.options=g.data,e.options.url){window.location=e.options.url;return}d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}async function u(d){t.get(`/api/gist/${e.gistId}/content`).then(g=>{e.details=g.data;let m=g.data&&g.data.files&&g.data.files.length;e.tabState={active:m?"files":"comments"},d&&d(g.data)},g=>{e.type="error",e.content=g.data.error})}function p(){e.gistId=i.gistId,e.type="loading",dp(e),xr(),o(()=>{u()})}p()},Cf=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",r={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},o=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},r.filters.status,o.filters&&o.filters.status||{})},e.orderBy=o.orderBy||r.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=ut({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},xl=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let r=()=>{for(let[y,C,k]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let w=document.getElementById(y);if(!w)continue;let R=w.parentElement.querySelector(":scope > .date-echo");R||(R=document.createElement("p"),R.className="date-echo",R.setAttribute("aria-live","polite"),w.insertAdjacentElement("afterend",R));let b=Dr(e.options?.[k]);R.textContent=b?C+" "+b:"",R.hidden=!b}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>xe(r));let o=(y=20)=>{let C=document.querySelector("input#name.form-control"),k=document.querySelector("input#conferenceID.form-control");k&&(k.placeholder="e.g. ICSE27"),C?C.placeholder="e.g. ICSE 2027":y>0&&setTimeout(()=>o(y-1),50)};setTimeout(()=>o(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,kr(t).then(y=>{e.conferenceBilling=y.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(y=>y.id!=="free_conference").map(y=>{let C=(e.conferenceBilling?.plans||[]).find(k=>k.id===y.id)||{};return{...y,storage:y.storagePerRepo,...C,id:y.id,name:y.name}}),e.conferenceAudience=y=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[y]||"",e.conferencePlanName=y=>Ef(y),e.conferenceAmount=(y,C=y?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:y?.currency||"eur",minimumFractionDigits:C%100?2:0,maximumFractionDigits:2}).format(C/100),e.conferenceBytes=y=>{let C=Number(y)||0,k=Math.min(4,Math.floor(Math.log2(Math.max(C,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(C/1024**k)} ${["B","KB","MB","GB","TB"][k]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.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)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(y=>{e.plans=y.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(C=>C.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(C=>C.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(C=>C.id==e.options.plan.planID)[0]})}p();let d=new Date;d.setDate(1),d.setMonth(d.getMonth()+1);let g=new Date(d);g.setTime(d.getTime()+179*864e5),e.options={billing:{},startDate:d,endDate:g,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 v(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)),C=ut({title:`Creating ${y.name}...`,date:new Date,body:`The conference ${y.conferenceID} is in creation.`});e.editionMode&&(C.title=`Updating ${y.name}...`,C.body=`The conference '${y.conferenceID}' is updating.`),e.addToast(C),m(),t.post("/api/conferences/"+(e.editionMode?y.conferenceID:""),y).then(()=>{e.editionMode?(C.title=`${y.name} updated`,C.body=`The conference '${y.conferenceID}' is updated.`):(C.title=`${y.name} created`,C.body=`The conference '${y.conferenceID}' is created.`),s.url("/conference/"+y.conferenceID)},k=>{v(k.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(C)}).finally(()=>{e.saving=!1})}};function Ef(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var Sf=function(e,t,s,i){Cr(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=d=>Ef(d),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let r=Ur,o=["ready","preparing","error","expired","removed"],u={current:d=>d!=="removed",attention:d=>d==="error",removed:d=>d==="removed"};e.confView=()=>Object.keys(u).find(d=>o.every(g=>u[d](g)===(e.filters.status[g]!==!1)))||"custom",e.setConfView=d=>{o.forEach(g=>{e.filters.status[g]=(u[d]||u.current)(g)})},e.confCount=d=>(e.conference?.repositories||[]).filter(g=>u[d](r(g.status))).length,e.copyingId=null,e.copyRepoLink=async d=>{if(!d?.repoId||e.copyingId)return;let g=new URL("/r/"+d.repoId+"/",window.location.origin).href;e.copyingId=d.repoId;try{await Jl(g),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:g})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=d=>{!d?.repoId||e.extendingId||(e.extendingId=d.repoId,t.post("/api/repo/"+d.repoId+"/extend").then(g=>{let m=g?.data?.expirationDate?` until ${new Date(g.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${d.repoId} is extended.`,body:`Reviewers can open it again${m}.`}),d.status="ready",g?.data?.expirationDate&&(d.options={...d.options||{},expirationDate:g.data.expirationDate}),e.extendingId=null},g=>{let m=g?.status||g?.data?.status;e.addToast({title:`Couldn't extend ${d.repoId}.`,body:m===401||m===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=d=>{if(e.filters.status[r(d.status)]==!1)return!1;let g=e.search.trim().toLowerCase();return!!(!g||(d.source?.fullName||"").toLowerCase().includes(g)||(d.repoId||"").toLowerCase().includes(g))},e.conferenceLoaded=!1;function p(){t.get("/api/conferences/"+i.conferenceId).then(d=>{e.conference=d.data}).finally(()=>{e.conferenceLoaded=!0})}p()},Nf=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.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(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,r)=>{e.busy=!0,e.connectionError="";try{let o=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:r},{headers:{"X-CSRF-Token":e.connections.csrf}});r?s.eligible=o.data.eligible:await e.loadConnections()}catch(o){e.connectionError=o.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(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},Rf=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var Tf=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>vd(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Nf(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Rf(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>yf(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)=>vf(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)=>ea(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)=>ea(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)=>ea(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)=>bf(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Cf(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xl(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)=>xl(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Sf(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>mf(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>hf(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)=>gf(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)=>wf(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)=>kf(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)=>Zl(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)=>Zl(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)=>Ep(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)=>vp(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)=>bp(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)=>wp(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)=>kp(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Rp(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Np(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)=>Cp(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)=>Sl(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 Zb={class:"container paper-page admin-page overview-page emails-page"},xb={class:"email-overview-toolbar"},e1={class:"seg-filter",role:"group","aria-label":"History period"},t1=["aria-pressed","onClick"],n1={class:"email-refresh"},s1={key:0},o1=["disabled"],i1={key:0,class:"email-state email-state-error",role:"alert"},r1=["aria-busy"],a1={class:"ov-kpi-card"},l1={class:"ov-kpi-value"},d1={class:"ov-kpi-card"},u1={class:"ov-kpi-value"},c1={class:"ov-kpi-card"},p1={class:"ov-kpi-card"},f1={class:"ov-kpi-value"},m1={class:"ov-kpi-sub"},h1={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},g1={class:"ov-chart-head"},y1={class:"ov-chart-title"},v1={class:"email-muted"},b1={class:"email-chart-plot"},w1={class:"email-axis"},k1={class:"email-bars"},C1=["aria-label","title"],E1={class:"email-chart-dates"},S1={key:0},N1={class:"email-chart-data"},R1={class:"email-data-scroll"},T1={scope:"row"},P1={"aria-labelledby":"email-history-title",class:"email-history"},D1={class:"email-section-head"},A1={class:"email-muted"},I1={class:"email-search"},O1={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},M1=["aria-pressed","onClick"],V1={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},q1={key:0,class:"email-state email-state-error",role:"alert"},L1=["disabled"],$1={key:1,class:"email-state"},F1={key:2,class:"email-state"},U1={key:3,class:"email-footer email-pager-top"},B1=["disabled"],H1=["disabled"],z1=["aria-busy"],j1={class:"email-table",role:"table"},_1={role:"rowgroup"},G1={class:"email-recipient",role:"cell"},W1=["title"],K1={class:"email-result",role:"cell"},Y1={key:0,class:"email-http"},X1={class:"email-type",role:"cell"},Q1={class:"email-attempted",role:"cell"},J1=["datetime","title"],Z1={class:"email-expand",role:"cell"},x1=["aria-expanded","aria-controls","aria-label","onClick"],ew={"aria-hidden":"true"},tw={key:0,class:"email-expanded",role:"row"},nw={colspan:"5",role:"cell"},sw=["id","aria-label"],ow={class:"email-detail-heading"},iw={class:"email-explanation"},rw={class:"email-detail-grid"},aw=["onClick"],lw=["onClick"],dw=["onClick"],uw=["onClick"],cw={key:0,class:"email-copy-feedback"},pw={key:5,class:"email-footer"},fw=["disabled"],mw=["disabled"];function Pf(e,t){return a(),l("div",Zb,[t[43]||(t[43]=Pe('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",xb,[n("div",e1,[(a(),l(N,null,U([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:T(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},c(s.label),11,t1)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",n1,[e.emailUpdated?(a(),l("span",s1,"History updated "+c(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,o1)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",i1,[h(c(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",a1,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",l1,c(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",d1,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",u1,c(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",c1,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:T(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},c(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",p1,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",f1,c(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",m1,c(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+c(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,r1),e.emailSummary?(a(),l("section",h1,[n("div",g1,[n("h2",y1,[t[21]||(t[21]=h("Sending activity ",-1)),n("span",v1,"\xB7 "+c(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",b1,[n("div",w1,[n("span",null,c(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",k1,[(a(!0),l(N,null,U(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:De({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:De({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:De({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:De({flexGrow:s.unknown+s.sending})},null,4)],4)],8,C1))),128))])]),n("div",E1,[n("span",null,c(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",S1,"No recorded activity in these "+c(e.emailSummary.chartDays)+" days",1)),n("span",null,c(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",N1,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",R1,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",T1,c(e.emailDayLabel(s)),1),n("td",null,c(s.accepted),1),n("td",null,c(s.rejected),1),n("td",null,c(s.unknown),1),n("td",null,c(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",P1,[n("div",D1,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",A1,"Newest first \xB7 "+c(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=de(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",I1,[t[28]||(t[28]=h("Search attempts",-1)),O(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[ft,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=h("Email type",-1)),O(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[Vt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",O1,[(a(),l(N,null,U(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:T({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[h(c(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,c(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,M1)),64))]),n("p",V1,c(e.emailAnnouncement)+" "+c(e.emailCopyMessage),1),e.emailError?(a(),l("div",q1,[n("span",null,c(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,L1)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",$1,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",F1,[n("p",null,c(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",U1,[n("span",null,[h(c((e.emailPage-1)*25+1)+"\u2013"+c(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(N,{key:0},[h(" of "+c(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=h(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,B1),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,H1)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",j1,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",_1,[(a(!0),l(N,null,U(e.emailVisibleRows(),s=>(a(),l(N,{key:s._id},[n("tr",{role:"row",class:T({"email-selected":e.selectedEmailId===s._id})},[n("td",G1,[n("span",{title:s.recipient},c(s.recipient),9,W1)]),n("td",K1,[n("span",{class:T(["email-outcome","email-outcome-"+s.state])},c(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",Y1,c(s.httpStatus),1)):f("v-if",!0)]),n("td",X1,c(e.emailKindLabel(s.kind)),1),n("td",Q1,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},c(e.emailShortTime(s.createdAt)),9,J1)]),n("td",Z1,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[h(c(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",ew,c(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,x1)])],2),e.selectedEmailId===s._id?(a(),l("tr",tw,[n("td",nw,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",ow,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:T(["email-outcome","email-outcome-"+s.state])},c(e.emailStatusLabel(s.state)),3)]),n("p",iw,c(e.emailExplanation(s)),1),n("dl",rw,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[h(c(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},c(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,aw)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,c(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,c(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,c(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,c(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},c(e.emailCopiedValue===s._id?"Copied":"Copy"),9,lw)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,c(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},c(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,dw)])]),n("div",null,[n("dt",null,"Resource \xB7 "+c(s.resourceKind),1),n("dd",null,[n("code",null,c(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},c(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,uw)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",cw,c(e.emailCopyMessage),1)):f("v-if",!0)],8,sw)])])):f("v-if",!0)],64))),128))])])],8,z1)):f("v-if",!0),e.emailRows.length?(a(),l("div",pw,[n("span",null,[h("Page "+c(e.emailPage),1),e.emailPageCount()?(a(),l(N,{key:0},[h(" of "+c(e.emailPageCount()),1)],64)):f("v-if",!0),h(" \xB7 "+c(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,fw),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,mw)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var hw={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},gw={key:0},yw={key:1,role:"alert"},vw={key:2,role:"status"},bw={key:0},ww={key:1},kw=["disabled"],Cw=["disabled"],Ew=["disabled"],Sw={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Nw={id:"review-policy-title"},Rw={key:0,role:"alert"},Tw=["disabled"],Pw=["disabled"],Dw=["disabled"],Aw={key:6,role:"status"};function Df(e,t){return a(),l("section",hw,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",gw,[...t[6]||(t[6]=[h("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",yw,c(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",vw,[t[7]||(t[7]=h("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",bw,"Continue to review to finish linking.")):(a(),l("span",ww,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,kw)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=de((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),O(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Cw),[[ft,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Ew)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",Sw,[n("h2",Nw,c(e.preview.repositoryName),1),n("p",null,"Access: "+c(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+c(e.preview.policy.retainUntil)+". Policy version "+c(e.preview.policy.version)+".",1),e.expired?(a(),l("p",Rw,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[O(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,Tw),[[Ja,e.acceptAccess]]),t[10]||(t[10]=h(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[O(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,Pw),[[Ja,e.acceptRetention]]),t[11]||(t[11]=h(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},c(e.uncertain?"Retry confirmation":"Confirm consent"),9,Dw)])):f("v-if",!0),e.busy?(a(),l("p",Aw,"Waiting for the server\u2026")):f("v-if",!0)])}var Iw={class:"container paper-page connections-page"},Ow={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Mw={key:1,role:"status"},Vw=["disabled"],qw={key:3},Lw={key:0,class:"connection-resources"},$w=["disabled"],Fw=["disabled"],Uw={key:0,role:"status"},Bw={class:"connections-grid"},Hw={key:0},zw={class:"connection-title"},jw={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},_w={class:"connection-actions"},Gw={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},Ww=["disabled"],Kw={key:1,class:"connection-installations"},Yw={key:0},Xw=["href"],Qw={class:"sr-only"},Jw={class:"connection-title"},Zw={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},xw={key:1,class:"connection-revoke"},ek={key:0},tk=["disabled"],nk={class:"connection-resources"},sk={class:"connection-title"},ok={class:"connection-count"},ik={key:0,class:"connection-empty"},rk={class:"connection-resource-name"},ak={key:0,class:"connection-resource-actions"},lk=["disabled","onClick"],dk=["disabled","onClick"],uk={key:1,class:"connection-help",role:"status"},ck=["disabled","onClick"];function Af(e,t){return a(),l("div",Iw,[t[27]||(t[27]=Pe('
My work \xA0/\xA0 GitHub connections

GitHub connections

Manage how GitHub shares your code. Your anonymizations and URLs stay the same.

',2)),e.connectionError?(a(),l("p",Ow,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",Mw,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,Vw)):f("v-if",!0),e.connections?(a(),l("div",qw,[e.connections.emailNotificationsEnabled?(a(),l("section",Lw,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("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)),n("form",{onSubmit:t[2]||(t[2]=de(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),O(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,$w),[[ft,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Fw),e.emailSaved?(a(),l("p",Uw,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",Bw,[e.connections.appEnabled?(a(),l("section",Hw,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",zw,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:T(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",jw,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",_w,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",Gw,[...t[9]||(t[9]=[h("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:T(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),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,Ww)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",Kw,[(a(!0),l(N,null,U(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=h()),n("strong",null,c(s.account),1),s.suspended?(a(),l("span",Yw," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=h("Manage access ",-1)),n("span",Qw,"for "+c(s.account),1),t[14]||(t[14]=h(" \u2192",-1))],8,Xw)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Jw,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:T(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("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?(a(),l("a",Zw,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",xw,[e.connections.gistCount?(a(),l("p",ek,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,tk)):f("v-if",!0)])):f("v-if",!0)])]),n("section",nk,[n("div",sk,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",ok,c(e.connections.resources?.length||0)+" "+c((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("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):(a(),l("div",ik,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(N,null,U(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",rk,[n("strong",null,c(s.name||s.id),1),n("small",null,c(s.type)+" \xB7 "+c(s.id),1)]),n("span",{class:T(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},c(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",ak,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,lk),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},c(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,dk)):f("v-if",!0),s.eligible===!1?(a(),l("span",uk,"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(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,ck)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var pk={class:"container paper-page auth-page"},fk={class:"auth-layout"},mk={class:"auth-options"},hk={key:0},gk={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},yk={key:1},vk={key:1,class:"auth-card"},bk={key:2,class:"auth-legacy"},wk={key:3,role:"status"};function If(e,t){let s=_e("partial-view");return a(),l(N,null,[n("div",pk,[n("div",fk,[t[4]||(t[4]=Pe('
Your research, ready for review

Your code.
Your identity,
protected.
Sign in to GitHub

Sign in to create and manage your anonymizations.

',1)),n("div",mk,[e.accountRecovery?(a(),l("section",hk,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("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?(a(),l("a",gk,"Verify with previous GitHub connection")):(a(),l("p",yk,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",vk,[...t[2]||(t[2]=[Pe('

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 GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",bk,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",wk,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function Of(e,t){let s=_e("partial-view");return a(),l(N,null,[t[0]||(t[0]=Pe('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var kk={class:"container paper-page admin-page"},Ck={class:"seg-bar"},Ek={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},Sk=["aria-checked"],Nk={class:"count"},Rk=["aria-checked"],Tk={class:"count"},Pk=["aria-checked"],Dk={class:"count"},Ak=["aria-checked"],Ik={class:"count"},Ok=["aria-checked"],Mk={class:"count"},Vk=["aria-checked"],qk={class:"count"},Lk={class:"seg-countline",role:"status"},$k={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Fk={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Uk={class:"admin-filter-row"},Bk={class:"search-wrap"},Hk={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},zk={key:0,class:"admin-search-hint"},jk={key:1,class:"admin-filter-inline","aria-label":"Pagination"},_k=["disabled"],Gk={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Wk=["disabled"],Kk={key:0,class:"admin-filter-row"},Yk={class:"admin-active-chips"},Xk={class:"key"},Qk=["onClick"],Jk=["aria-busy"],Zk={key:0,class:"paper-table-head",role:"row"},xk={role:"columnheader"},e0={role:"columnheader"},t0={role:"columnheader"},n0={class:"paper-table-row",role:"row"},s0={class:"cell-anon",role:"cell"},o0={class:"anon-text"},i0=["textContent","href"],r0={class:"anon-sub"},a0={class:"cell-status",role:"cell"},l0=["textContent"],d0={class:"cell-views num",role:"cell"},u0=["textContent","href"],c0={class:"cell-expires",role:"cell"},p0={class:"cell-actions",role:"cell"},f0={class:"dropdown"},m0={class:"dropdown-menu dropdown-menu-right"},h0=["href"],g0=["href"],y0=["href"],v0=["onClick"],b0={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},w0={key:1,class:"paper-table-empty"},k0={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},C0={key:0,class:"pagination-compact"},E0=["disabled"],S0=["max"],N0=["disabled"],R0={class:"admin-filter-inline"},T0={class:"form-control form-control-sm"};function Mf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",kk,[t[56]||(t[56]=Pe('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",Ck,[n("div",Ek,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=r=>e.setSegView("all"))},[t[14]||(t[14]=h("All ",-1)),n("span",Nk,c(e.fmt?.number(e.segCount("all"))),1)],10,Sk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=r=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Ready ",-1)),n("span",Tk,c(e.fmt?.number(e.segCount("ready"))),1)],10,Rk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=r=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Preparing ",-1)),n("span",Dk,c(e.fmt?.number(e.segCount("preparing"))),1)],10,Pk),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=r=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Error ",-1)),n("span",Ik,c(e.fmt?.number(e.segCount("error"))),1)],10,Ak),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=r=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=h("Expired ",-1)),n("span",Mk,c(e.fmt?.number(e.segCount("expired"))),1)],10,Ok),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=r=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=h("Removed ",-1)),n("span",qk,c(e.fmt?.number(e.segCount("removed"))),1)],10,Vk)]),n("p",Lk,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=h(" shown",-1))])]),e.fetchError?(a(),l("div",$k,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",Fk,[n("div",Uk,[n("div",Bk,[O(n("input",Hk,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",zk,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=r=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",jk,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,_k),n("span",Gk,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Wk)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",Kk,[n("div",Yk,[(a(!0),l(N,null,U(e.chips,(r,o)=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",Xk,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Qk)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",{class:T(["paper-table paper-table-conferences w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Conferences","aria-busy":e.listLoading?"true":"false"},[e.total!==0?(a(),l("div",Zk,[n("div",xk,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=r=>e.sortBy("name"))},[t[33]||(t[33]=h("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",e0,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=r=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",t0,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=r=>e.sortBy("startDate"))},[t[37]||(t[37]=h("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(N,null,U(e.filteredConferences,(r,o)=>(a(),l("div",n0,[n("div",s0,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",o0,[n("a",{class:"repo-name",textContent:c(r?.name),href:e.safeUrl("/conference/"+r?.conferenceID)},null,8,i0),n("div",r0,[n("span",null,c(r?.conferenceID),1),n("span",null,c(e.fmt?.money(r?.price||0)),1)])])]),n("div",a0,[n("span",{class:T(["status-dot","st-"+(r?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(r?.status))},null,8,l0)]),n("div",d0,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(r?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+r?.conferenceID)},null,8,u0)]),n("div",c0,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" "+c(e.fmt?.date(r?.startDate))+" \u2013 "+c(e.fmt?.date(r?.endDate)),1)]),n("div",p0,[n("div",f0,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",m0,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,h0),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View",-1)])],8,g0),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+r?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,y0),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.removeConference(r),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,v0),[[te,r?.status!="removed"]])])])])]))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],r=>(a(),l(N,{key:"skeleton-"+r},[!e.listLoaded||e.listLoading&&e.filteredConferences?.length==0?(a(),l("div",b0,[...t[49]||(t[49]=[n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredConferences?.length==0?(a(),l("div",w0,[t[50]||(t[50]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,c(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)],10,Jk),n("div",k0,[t[55]||(t[55]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",C0,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[51]||(t[51]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,E0),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,S0),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[52]||(t[52]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,N0)])):f("v-if",!0),n("span",R0,[t[54]||(t[54]=n("label",null,"Per page",-1)),O((a(),l("select",T0,[...t[53]||(t[53]=[Pe('',5)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])])}var P0={class:"page-head"},D0={class:"paper-crumbs","aria-label":"Breadcrumb"},A0={key:0,class:"here"},I0={key:0,class:"here"},O0=["href"],M0={class:"here"},V0={key:0,class:"ov-header page-head-main"},q0={key:0,class:"admin-nav"},L0={class:"sr-only",role:"status","aria-live":"polite"},$0={class:"errs-copy-status",role:"status","aria-live":"polite"},F0=["aria-busy"],U0={key:0,class:"errs-summary"},B0={class:"errs-stat"},H0={class:"errs-stat"},z0={key:0},j0={key:1,class:"errs-not-recorded"},_0={class:"search-wrap errs-search"},G0={class:"errs-select"},W0={class:"errs-select"},K0={key:1,class:"errs-search-hint",id:"errs-search-hint"},Y0=["href"],X0=["href"],Q0={key:2,class:"errs-source"},J0={key:0,class:"errs-source-note"},Z0=["disabled"],x0={key:3,class:"errs-state errs-state-error",role:"alert"},e2={key:0},t2={key:4,class:"errs-table",role:"table","aria-label":"Issues","aria-describedby":"errs-table-note"},n2={class:"errs-head",role:"row"},s2={role:"columnheader"},o2={class:"errs-cell-issue",role:"cell"},i2=["href","data-issue-link"],r2={class:"errs-meta"},a2={class:"errs-code"},l2={class:"errs-meta-part"},d2={key:1,class:"errs-meta-part errs-route"},u2={key:2,class:"errs-meta-part errs-more-routes"},c2={key:3,class:"errs-new"},p2={class:"errs-cause-line"},f2={class:"errs-cell-impact",role:"cell"},m2={key:0},h2={key:1,class:"errs-not-recorded"},g2={class:"errs-cell-trend",role:"cell"},y2=["aria-label"],v2={class:"errs-cell-last",role:"cell"},b2={key:0,class:"errs-now"},w2=["datetime","title"],k2={class:"errs-since"},C2={key:6,class:"errs-state"},E2={key:7,class:"errs-state errs-state-empty"},S2={key:8,class:"errs-noise",id:"errs-table-note"},N2={key:9,class:"errs-expected"},R2={class:"errs-count"},T2={key:0,class:"errs-status is-neutral"},P2={class:"errs-expected-count"},D2=["datetime"],A2={class:"errs-settings-body"},I2={"aria-labelledby":"errs-settings-source"},O2={class:"seg-filter",role:"group","aria-label":"Error source"},M2=["aria-pressed"],V2=["aria-pressed"],q2={key:0,class:"errs-muted"},L2=["href"],$2={"aria-labelledby":"errs-settings-history"},F2={class:"errs-muted",role:"status"},U2={class:"errs-actions"},B2={"aria-labelledby":"errs-settings-counters"},H2={key:0,class:"errs-muted",role:"status"},z2={class:"errs-counters"},j2=["aria-label"],_2=["title"],G2={"aria-labelledby":"errs-settings-telemetry"},W2={key:0,class:"errs-muted",role:"status"},K2={class:"errs-muted"},Y2={key:0,class:"errs-muted"},X2={key:1,class:"errs-muted"},Q2={class:"errs-muted"},J2={class:"errs-instances"},Z2={key:1,class:"errs-detail","aria-labelledby":"errs-detail-title"},x2={class:"paper-page-title errs-detail-title",id:"errs-detail-title",tabindex:"-1"},eC={key:0,class:"errs-state"},tC={key:2,class:"errs-detail","aria-labelledby":"errs-detail-title"},nC={class:"errs-detail-head"},sC={class:"paper-page-title errs-detail-title",id:"errs-detail-title",tabindex:"-1"},oC={class:"errs-chips"},iC={class:"errs-chip"},rC={class:"errs-chip"},aC={class:"errs-chip"},lC={key:1,class:"errs-chip errs-placeholder"},dC={key:2,class:"errs-chip errs-new"},uC={class:"errs-detail-grid"},cC={class:"errs-detail-main"},pC={class:"errs-cause-head"},fC={class:"errs-muted"},mC={class:"errs-cause-summary"},hC={key:0},gC={key:0,class:"errs-evidence"},yC={class:"errs-actions"},vC=["href"],bC=["href"],wC={key:0,class:"errs-card","aria-labelledby":"errs-routes-title"},kC={class:"errs-card-head"},CC={class:"errs-muted"},EC={class:"errs-route-bar","aria-hidden":"true"},SC={class:"errs-num"},NC={key:0,class:"errs-muted errs-more"},RC={key:1,class:"errs-muted errs-more"},TC={class:"errs-card","aria-labelledby":"errs-repos-title"},PC={class:"errs-card-head"},DC={key:0,class:"errs-muted"},AC={key:0,class:"errs-repos",role:"table","aria-labelledby":"errs-repos-title"},IC={role:"cell",class:"errs-repo-cell"},OC=["href"],MC={key:0,class:"errs-muted"},VC={role:"cell"},qC=["href"],LC={key:1,class:"errs-placeholder"},$C={role:"cell",class:"errs-num"},FC={role:"cell"},UC=["datetime","title"],BC={key:0,class:"errs-muted errs-more"},HC={key:1,class:"errs-placeholder-box"},zC={class:"errs-who"},jC={key:0,class:"errs-placeholder"},_C={key:1},GC={class:"errs-placeholder"},WC={key:2,class:"errs-user-list"},KC=["href"],YC={class:"errs-muted"},XC={class:"errs-detail-side"},QC={class:"errs-card","aria-labelledby":"errs-hist-title"},JC={id:"errs-hist-title"},ZC=["aria-label"],xC=["title"],eE={class:"errs-hist-axis","aria-hidden":"true"},tE={class:"errs-card","aria-labelledby":"errs-occ-title"},nE={class:"errs-card-head"},sE={class:"errs-muted"},oE={class:"errs-occurrences"},iE=["href","data-occurrence"],rE=["datetime"],aE={class:"errs-occ-main"},lE={key:0,class:"errs-mono"},dE={key:1,class:"errs-placeholder"},uE={class:"errs-occ-sub"},cE={key:3,class:"errs-detail errs-request","aria-labelledby":"errs-detail-title"},pE={class:"errs-detail-head"},fE={class:"errs-request-title",id:"errs-detail-title",tabindex:"-1"},mE={class:"errs-actions errs-pager"},hE=["href"],gE=["href"],yE=["href"],vE={class:"errs-chips"},bE={class:"errs-chip"},wE=["datetime"],kE={key:1,class:"errs-chip"},CE=["href"],EE={key:2,class:"errs-chip errs-placeholder"},SE={key:3,class:"errs-chip"},NE=["href"],RE={key:4,class:"errs-chip"},TE=["href"],PE={key:5,class:"errs-chip errs-placeholder"},DE={class:"errs-muted errs-position"},AE={class:"errs-card errs-tabs-card"},IE={class:"errs-tabs",role:"tablist","aria-label":"Request details"},OE=["id","aria-selected","aria-controls","tabindex","onClick","onKeydown"],ME={key:0,class:"errs-panel",role:"tabpanel",id:"errs-panel-timeline","aria-labelledby":"errs-tab-timeline",tabindex:"0"},VE={key:0,class:"errs-muted",role:"status"},qE={class:"errs-legend"},LE={class:"errs-legend-scale"},$E={class:"errs-waterfall"},FE=["aria-expanded","aria-controls","onClick"],UE={class:"errs-step-label"},BE={class:"errs-step-track","aria-hidden":"true"},HE={class:"errs-step-ms"},zE={class:"sr-only"},jE=["id"],_E={key:0},GE={key:0,class:"errs-muted errs-trace-note"},WE=["href"],KE={key:1,class:"errs-placeholder-box"},YE={key:1,class:"errs-panel",role:"tabpanel",id:"errs-panel-request","aria-labelledby":"errs-tab-request",tabindex:"0"},XE={class:"errs-fields"},QE={key:0},JE={key:1,class:"errs-placeholder"},ZE={key:0,class:"errs-break"},xE={key:1,class:"errs-placeholder"},eS={class:"errs-placeholder"},tS={key:0,class:"errs-muted"},nS={key:1,class:"errs-placeholder"},sS=["href"],oS={key:1,class:"errs-placeholder"},iS={key:2,class:"errs-muted"},rS=["href"],aS={key:1,class:"errs-placeholder"},lS={key:0},dS={key:1,class:"errs-placeholder"},uS={class:"errs-break"},cS=["onClick"],pS={key:1,class:"errs-placeholder"},fS={key:2,class:"errs-panel",role:"tabpanel",id:"errs-panel-exception","aria-labelledby":"errs-tab-exception",tabindex:"0"},mS={key:0,class:"errs-muted"},hS={class:"errs-fields"},gS={key:0},yS={key:1,class:"errs-placeholder"},vS={key:0},bS={key:1,class:"errs-placeholder"},wS={key:1,class:"errs-pre"},kS={key:2,class:"errs-placeholder"},CS={class:"errs-pre"},ES={key:1,class:"errs-placeholder-box"},SS={key:3,class:"errs-panel",role:"tabpanel",id:"errs-panel-fields","aria-labelledby":"errs-tab-fields",tabindex:"0"},NS={class:"errs-fields-head"},RS={class:"errs-pre"};function Vf(e,t){return a(),l("div",{class:T(["container paper-page admin-page errs-page","errs-view-"+e.errView])},[n("header",P0,[n("nav",D0,[t[21]||(t[21]=n("a",{href:"/admin/"},"Admin",-1)),t[22]||(t[22]=h(" \xA0/\xA0 ",-1)),e.errView==="list"?(a(),l("span",A0,"Errors")):(a(),l(N,{key:1},[t[19]||(t[19]=n("a",{href:"/admin/errors"},"Errors",-1)),t[20]||(t[20]=h(" \xA0/\xA0 ",-1)),e.errView==="issue"?(a(),l("span",I0,c(e.selectedIssue?.code||"Issue"),1)):(a(),l(N,{key:1},[n("a",{href:e.errIssueHref(e.selectedIssue?.id)},c(e.selectedIssue?.code),9,O0),t[18]||(t[18]=h(" \xA0/\xA0 ",-1)),n("span",M0,c(e.traceKind()==="job"?"job":"request")+" "+c(e.currentOccurrence()?.requestId?e.currentOccurrence().requestId.slice(0,4)+"\u2026"+e.currentOccurrence().requestId.slice(-4):"#"+(e.occurrenceIndex+1)),1)],64))],64))]),e.errView==="list"?(a(),l("div",V0,[...t[23]||(t[23]=[n("h1",{class:"paper-page-title"},"Errors",-1)])])):f("v-if",!0)]),e.errView==="list"?(a(),l("nav",q0,[...t[24]||(t[24]=[Pe(' Overview Repositories Users Conferences Billing Queues Emails Errors',8)])])):f("v-if",!0),n("p",L0,c(e.issueLoading?"Loading errors\u2026":e.traceLoading?"Loading the request timeline\u2026":""),1),n("p",$0,c(e.copyStatus),1),f(" ===== 1. Issue list ===== "),O(n("section",{class:"errs-list","aria-labelledby":"errs-list-title","aria-busy":e.issueLoading?"true":"false"},[t[61]||(t[61]=n("h2",{class:"sr-only",id:"errs-list-title"},"Issues",-1)),e.issueData&&!e.issueFailure?(a(),l("div",U0,[n("div",{class:T(["errs-stat",{"is-alert":e.issueData.summary.failingNow}])},[n("strong",null,c(e.errNumber(e.issueData.summary.failingNow)),1),n("span",null,c(e.issueData.summary.failingNow===1?"Issue":"Issues")+" failing now (last 15 min)",1)],2),n("div",B0,[n("strong",null,c(e.errNumber(e.issueData.summary.failedRecords)),1),n("span",null,"Failures \xB7 "+c(e.windowLabels[e.issueData.window]),1)]),n("div",H0,[e.issueData.summary.repositories||e.issueData.summary.users?(a(),l("strong",z0,[h(c(e.errNumber(e.issueData.summary.repositories))+" ",1),n("small",null,c(e.issueData.summary.repositories===1?"repo":"repos"),1),h(" \xB7 "+c(e.errNumber(e.issueData.summary.users))+" ",1),n("small",null,c(e.issueData.summary.users===1?"user":"users"),1)])):(a(),l("strong",j0,"not recorded")),n("span",null,"Affected \xB7 "+c(e.windowLabels[e.issueData.window]),1)]),n("div",{class:T(["errs-stat",{"is-upstream":e.issueData.summary.upstreamShare}])},[n("strong",null,c(e.issueData.summary.upstreamShare)+"%",1),t[25]||(t[25]=n("span",null,"Caused by GitHub or storage",-1))],2)])):f("v-if",!0),n("form",{class:"errs-toolbar",role:"search","aria-label":"Filter issues",onSubmit:t[3]||(t[3]=de(s=>e.applyFilters(),["prevent"]))},[n("div",_0,[t[26]||(t[26]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),O(n("input",{id:"errs-search",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=s=>e.issueSearch=s),"aria-label":"Search issues",placeholder:"Search code, route\u2026 or repo: user:",autocomplete:"off",spellcheck:"false"},null,512),[[ft,e.issueSearch]])]),n("label",G0,[t[28]||(t[28]=n("span",{class:"sr-only"},"Time window",-1)),O(n("select",{class:"form-control",id:"errs-window","onUpdate:modelValue":t[1]||(t[1]=s=>e.issueFilters.window=s)},[...t[27]||(t[27]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[Vt,e.issueFilters.window]])]),n("label",W0,[t[30]||(t[30]=n("span",{class:"sr-only"},"Service",-1)),O(n("select",{class:"form-control",id:"errs-service","onUpdate:modelValue":t[2]||(t[2]=s=>e.issueFilters.service=s)},[...t[29]||(t[29]=[Pe('',8)])],512),[[Vt,e.issueFilters.service]])])],32),e.searchFilters().invalid||e.issueData?.filters?.repoId||e.issueData?.filters?.userId?(a(),l("p",K0,[e.searchFilters().invalid?(a(),l(N,{key:0},[h("\u201C"+c(e.searchFilters().invalid)+"\u201D is not a repository ID or a 24-character user ID.",1)],64)):e.issueData?.filters?.repoId||e.issueData?.filters?.userId?(a(),l(N,{key:1},[t[31]||(t[31]=h("Showing records for ",-1)),e.issueData.filters.repoId?(a(),l("a",{key:0,href:e.errRepoHref(e.issueData.filters.repoId)},"repository "+c(e.issueData.filters.repoId),9,Y0)):f("v-if",!0),e.issueData.filters.repoId&&e.issueData.filters.userId?(a(),l(N,{key:1},[h(" and ")],64)):f("v-if",!0),e.issueData.filters.userId?(a(),l("a",{key:2,href:e.errUserHref(e.issueData.filters.userId)},"user "+c(e.userName(e.issueData.filters.userId)||e.issueData.filters.userId),9,X0)):f("v-if",!0),t[32]||(t[32]=h(".",-1))],64)):f("v-if",!0)])):f("v-if",!0),e.issueData?(a(),l("div",Q0,[n("span",{class:T(["errs-source-dot","is-"+e.issueData.source]),"aria-hidden":"true"},null,2),n("span",null,c(e.sourceLine()),1),e.sourceNote()?(a(),l("span",J0," \xB7 "+c(e.sourceNote()),1)):f("v-if",!0),e.issueData.source==="central"?(a(),l("button",{key:1,type:"button",class:"errs-link-button",onClick:t[4]||(t[4]=s=>e.setSource("history"))},"Use application history")):e.issueFilters.source==="history"?(a(),l("button",{key:2,type:"button",class:"errs-link-button",onClick:t[5]||(t[5]=s=>e.setSource("auto"))},"Use central logs")):f("v-if",!0),n("button",{type:"button",class:"errs-link-button",disabled:e.issueLoading,onClick:t[6]||(t[6]=s=>e.refreshIssues())},c(e.issueLoading?"Refreshing\u2026":"Refresh"),9,Z0)])):f("v-if",!0),e.issueFailure?(a(),l("div",x0,[n("strong",null,c(e.issueFailure),1),e.issueData?(a(),l("span",e2,"The list below is from "+c(e.errClock(e.issueData.end))+" and may be out of date.",1)):f("v-if",!0),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.refreshIssues())},"Retry")])):f("v-if",!0),e.issueLoading&&!e.issueData?(a(),l("div",t2,[t[34]||(t[34]=n("div",{class:"errs-head",role:"row"},[n("span",{role:"columnheader"},"Issue"),n("span",{role:"columnheader"},"Impact"),n("span",{role:"columnheader"},"Trend"),n("span",{role:"columnheader"},"Last seen")],-1)),(a(),l(N,null,U([1,2,3],s=>n("div",{class:"errs-row errs-row-skeleton",role:"row","aria-hidden":"true",key:s},[...t[33]||(t[33]=[n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1),n("span",{class:"skeleton skeleton-line"},null,-1)])])),64))])):e.visibleIssues().length?(a(),l("div",{key:5,class:T(["errs-table",{"is-refreshing":e.issueLoading}]),role:"table","aria-label":"Issues"},[n("div",n2,[t[35]||(t[35]=n("span",{role:"columnheader"},"Issue",-1)),t[36]||(t[36]=n("span",{role:"columnheader"},"Impact",-1)),n("span",s2,"Trend \xB7 "+c(e.windowLabels[e.issueData.window]),1),t[37]||(t[37]=n("span",{role:"columnheader"},"Last seen",-1))]),(a(!0),l(N,null,U(e.visibleIssues(),s=>(a(),l("div",{class:T(["errs-row",{"is-now":s.failingNow}]),role:"row",key:s.id},[n("div",o2,[n("a",{class:"errs-title",href:e.errIssueHref(s.id),"data-issue-link":s.id},c(s.title),9,i2),n("div",r2,[s.status?(a(),l("span",{key:0,class:T(["errs-status",e.errStatusClass(s.status)])},c(s.status),3)):f("v-if",!0),n("code",a2,c(s.code),1),n("span",l2,c(s.service||"unknown service"),1),s.route||s.queue?(a(),l("span",d2,c(s.route?s.method+" "+s.route:"job "+s.queue),1)):f("v-if",!0),s.routeCount>1?(a(),l("span",u2,"+"+c(s.routeCount-1)+" "+c(s.routeCount===2?"route":"routes"),1)):f("v-if",!0),s.newInRelease?(a(),l("span",c2,"New in release "+c(s.newInRelease.slice(0,7)),1)):f("v-if",!0)]),n("p",p2,[n("span",{class:T(["errs-cause-chip","cause-"+s.cause.source])},"Cause: "+c(s.cause.label),3),t[38]||(t[38]=h()),n("span",null,c(s.cause.summary),1)])]),n("div",f2,[n("span",null,[n("strong",null,c(e.errNumber(s.count)),1),h(" "+c(s.requests?s.count===1?"failure":"failures":s.jobs?s.count===1?"job failure":"job failures":s.count===1?"record":"records"),1)]),s.repoCount||s.userCount?(a(),l("span",m2,[n("strong",null,c(e.errNumber(s.repoCount)),1),h(" "+c(s.repoCount===1?"repository":"repositories")+" \xB7 ",1),n("strong",null,c(e.errNumber(s.userCount)),1),h(" "+c(s.userCount===1?"user":"users"),1)])):(a(),l("span",h2,"repositories, users not recorded"))]),n("div",g2,[n("span",{class:"errs-spark","aria-label":"Failures over the "+e.windowLabels[e.issueData.window]+", peak "+e.errTrendMax(s.trend)+" per bucket",role:"img"},[(a(!0),l(N,null,U(s.trend,(i,r)=>(a(),l("span",{key:r,style:De({height:(i?Math.max(2,Math.round(i/e.errTrendMax(s.trend)*24)):1)+"px"}),class:T({"is-zero":!i})},null,6))),128))],8,y2)]),n("div",v2,[s.failingNow?(a(),l("span",b2,"Now")):(a(),l("time",{key:1,datetime:s.last,title:e.errDayTime(s.last)},c(e.errRelTime(s.last)),9,w2)),n("span",k2,"since "+c(e.errClock(s.first)),1)])],2))),128))],2)):e.issueData&&e.issueData.issues.length?(a(),l("div",C2,[n("strong",null,"No issue matches \u201C"+c(e.issueSearch)+"\u201D.",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[8]||(t[8]=s=>e.issueSearch="")},"Clear search")])):e.issueData&&!e.issueFailure?(a(),l("div",E2,[t[40]||(t[40]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),n("strong",null,"No errors in the "+c(e.windowLabels[e.issueData.window])+".",1),n("span",null,[h(c(e.issueData.source==="central"?"Central logs":"The application history")+" recorded no failures",1),e.issueData.filters.repoId||e.issueData.filters.userId?(a(),l(N,{key:0},[h(" for this filter")],64)):f("v-if",!0),t[39]||(t[39]=h(".",-1)),e.issueData.expected.count?(a(),l(N,{key:1},[h(" Expected responses are listed below.")],64)):f("v-if",!0)])])):f("v-if",!0),e.issueData?(a(),l("p",S2,[e.issueData.excluded.slow||e.issueData.excluded.interrupted?(a(),l(N,{key:0},[n("strong",null,c(e.errNumber(e.issueData.excluded.slow+e.issueData.excluded.interrupted)),1),t[41]||(t[41]=h(" slow or interrupted requests are not errors and are left out. ",-1)),t[42]||(t[42]=n("a",{href:"/admin/#performance"},"Open Performance",-1))],64)):(a(),l(N,{key:1},[t[43]||(t[43]=h("Slow and interrupted requests are left out; they are on the ",-1)),t[44]||(t[44]=n("a",{href:"/admin/#performance"},"Performance",-1)),t[45]||(t[45]=h(" page.",-1))],64))])):f("v-if",!0),e.issueData?.expected?.count?(a(),l("details",N2,[n("summary",null,[t[46]||(t[46]=n("span",null,"Expected responses",-1)),t[47]||(t[47]=h()),n("span",R2,c(e.errNumber(e.issueData.expected.count)),1),t[48]||(t[48]=h()),t[49]||(t[49]=n("span",{class:"errs-summary-note"},"not found, not authorized, expired and other 4xx answers visitors get. No action needed.",-1))]),n("ul",null,[(a(!0),l(N,null,U(e.issueData.expected.groups,s=>(a(),l("li",{key:s.code+s.status},[n("code",null,c(s.code),1),s.status?(a(),l("span",T2,c(s.status),1)):f("v-if",!0),n("span",P2,c(e.errNumber(s.count)),1),n("time",{datetime:s.last},c(e.errRelTime(s.last)),9,D2)]))),128))])])):f("v-if",!0),n("details",{class:"errs-settings",onToggle:t[13]||(t[13]=s=>e.toggleSettings(s))},[t[60]||(t[60]=n("summary",null,"Settings and diagnostics",-1)),n("div",A2,[n("section",I2,[t[50]||(t[50]=n("h3",{id:"errs-settings-source"},"Source",-1)),n("div",O2,[n("button",{type:"button",class:T(["seg-chip",{active:e.issueFilters.source==="auto"}]),"aria-pressed":e.issueFilters.source==="auto",onClick:t[9]||(t[9]=s=>e.setSource("auto"))},"Central logs, history as fallback",10,M2),n("button",{type:"button",class:T(["seg-chip",{active:e.issueFilters.source==="history"}]),"aria-pressed":e.issueFilters.source==="history",onClick:t[10]||(t[10]=s=>e.setSource("history"))},"Application history only",10,V2)]),t[51]||(t[51]=n("p",{class:"errs-muted"},"Central logs keep every service for weeks; the application history is a Redis copy of the last 5,000 warnings and errors. Counts are never combined.",-1)),e.issueData?(a(),l("p",q2,[h(c(e.errNumber(e.issueData.captured))+" records read for this list. ",1),e.issueData.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.issueData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,L2)):f("v-if",!0)])):f("v-if",!0)]),n("section",$2,[t[52]||(t[52]=n("h3",{id:"errs-settings-history"},"Application history",-1)),n("p",F2,c(e.redisCollecting===!1?"Collection is off (LOG_REDIS_MIRROR=off): the history receives no new records.":e.redisCollecting===!0?"The application copies warnings and errors to Redis.":"Collection status is unknown."),1),n("div",U2,[n("button",{type:"button",class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.exportHistory())},"Export Redis CSV"),n("button",{type:"button",class:"btn btn-sm btn-outline-danger",onClick:t[12]||(t[12]=s=>e.clearHistory())},"Clear Redis history")])]),n("section",B2,[t[58]||(t[58]=n("h3",{id:"errs-settings-counters"},"24-hour counters",-1)),e.statsState!=="ready"?(a(),l("p",H2,c(e.statsState==="loading"?"Loading counters\u2026":"Redis counters are unavailable."),1)):(a(),l(N,{key:1},[n("dl",z2,[n("div",null,[t[53]||(t[53]=n("dt",null,"Records \xB7 24 h",-1)),n("dd",null,c(e.errNumber(e.stats.last24h)),1)]),n("div",null,[t[54]||(t[54]=n("dt",null,"Error",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.error)),1)]),n("div",null,[t[55]||(t[55]=n("dt",null,"Warning",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.warn)),1)]),n("div",null,[t[56]||(t[56]=n("dt",null,"Info",-1)),n("dd",null,c(e.errNumber(e.stats.severity?.info)),1)]),n("div",null,[t[57]||(t[57]=n("dt",null,"Dropped",-1)),n("dd",null,c(e.errNumber(e.stats.dropped)),1)])]),n("div",{class:"errs-counter-bars",role:"img","aria-label":"Records per hour over 24 hours: "+e.errNumber(e.stats.last24h)+" in total"},[(a(!0),l(N,null,U(e.stats.buckets,(s,i)=>(a(),l("span",{key:i,title:e.errClock(s.hour)+" \xB7 "+s.error+" error \xB7 "+s.warn+" warning \xB7 "+s.info+" info"},[n("i",{class:"seg-error",style:De({height:e.statBarHeight(s,"error")+"px"})},null,4),n("i",{class:"seg-warn",style:De({height:e.statBarHeight(s,"warn")+"px"})},null,4),n("i",{class:"seg-info",style:De({height:e.statBarHeight(s,"info")+"px"})},null,4)],8,_2))),128))],8,j2)],64))]),n("section",G2,[t[59]||(t[59]=n("h3",{id:"errs-settings-telemetry"},"Telemetry",-1)),e.telemetryState!=="ready"?(a(),l("p",W2,c(e.telemetryState==="loading"?"Checking central logs\u2026":"Central log status is unavailable."),1)):(a(),l(N,{key:1},[n("p",K2,c(e.telemetryText(e.telemetry.state)),1),e.telemetry.telemetry?(a(),l(N,{key:0},[e.telemetry.telemetry.missing?.length?(a(),l("p",Y2,"Missing or stale: "+c(e.telemetry.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",X2,"API, streamer and queue heartbeats were present at the last check.")),n("p",Q2,"Collector: "+c(e.telemetry.telemetry.collector?.state)+" \xB7 dropped events since collector start: "+c(e.telemetry.telemetry.collector?.dropped??"unknown")+".",1),n("ul",J2,[(a(!0),l(N,null,U(e.telemetry.telemetry.instances,(s,i)=>(a(),l("li",{key:i},c(s.service)+" \xB7 "+c(s.instance||"unknown instance")+" \xB7 "+c(s.dropped??"unknown")+" dropped \xB7 last seen "+c(e.errClock(s.last,!0)),1))),128))])],64)):f("v-if",!0)],64))])])],32)],8,F0),[[te,e.errView==="list"]]),f(" ===== Issue not in this window ===== "),e.errView!=="list"&&!e.selectedIssue?(a(),l("section",Z2,[n("h1",x2,c(e.issueLoading?"Loading issue\u2026":"Issue not found"),1),e.issueLoading?f("v-if",!0):(a(),l("div",eC,[n("strong",null,"This issue has no records in the "+c(e.windowLabels[e.issueFilters.window])+".",1),t[62]||(t[62]=n("span",null,"It may be older, or recorded by another source.",-1)),t[63]||(t[63]=n("a",{class:"btn btn-sm",href:"/admin/errors"},"All errors",-1))]))])):f("v-if",!0),f(" ===== 2. Issue page ===== "),e.errView==="issue"&&e.selectedIssue?(a(),l("section",tC,[n("div",nC,[n("h1",sC,c(e.selectedIssue.title),1),t[64]||(t[64]=n("a",{class:"btn btn-sm",href:"/admin/errors"},[n("span",{"aria-hidden":"true"},"\u2190"),h(" All errors")],-1))]),n("div",oC,[e.selectedIssue.status?(a(),l("span",{key:0,class:T(["errs-chip errs-status",e.errStatusClass(e.selectedIssue.status)])},"HTTP "+c(e.selectedIssue.status)+c(e.selectedIssue.route?" to the visitor":""),3)):f("v-if",!0),n("code",iC,c(e.selectedIssue.code),1),n("span",rC,[h(c(e.selectedIssue.service||"unknown service"),1),e.selectedIssue.routeCount>1?(a(),l(N,{key:0},[h(" \xB7 "+c(e.selectedIssue.routeCount)+" routes",1)],64)):e.selectedIssue.route?(a(),l(N,{key:1},[t[65]||(t[65]=h(" \xB7 ",-1)),n("code",null,c(e.selectedIssue.method)+" "+c(e.selectedIssue.route),1)],64)):e.selectedIssue.queue?(a(),l(N,{key:2},[h(" \xB7 job "+c(e.selectedIssue.queue),1)],64)):f("v-if",!0)]),n("span",aC,[h("First seen "+c(e.errDayTime(e.selectedIssue.first)),1),e.selectedIssue.firstRelease?(a(),l(N,{key:0},[t[66]||(t[66]=h(" \xB7 release ",-1)),n("code",null,c(e.selectedIssue.firstRelease.slice(0,7)),1)],64)):f("v-if",!0)]),e.selectedIssue.firstRelease?f("v-if",!0):(a(),l("span",lC,"release not recorded")),e.selectedIssue.newInRelease?(a(),l("span",dC,"New in release "+c(e.selectedIssue.newInRelease.slice(0,7)),1)):f("v-if",!0)]),n("div",uC,[n("div",cC,[n("section",{class:T(["errs-cause","cause-"+e.selectedIssue.cause.source]),"aria-labelledby":"errs-cause-title"},[t[70]||(t[70]=n("h2",{class:"sr-only",id:"errs-cause-title"},"Likely cause",-1)),n("p",pC,[n("span",{class:T(["errs-cause-chip","cause-"+e.selectedIssue.cause.source])},"Likely cause: "+c(e.selectedIssue.cause.label),3),t[67]||(t[67]=h()),n("span",fC,"from "+c(e.errPlural(e.selectedIssue.count,"record")),1)]),n("p",mC,[n("strong",null,c(e.selectedIssue.cause.summary),1),t[68]||(t[68]=h()),e.selectedIssue.cause.detail?(a(),l("span",hC,c(e.selectedIssue.cause.detail),1)):f("v-if",!0)]),e.selectedIssue.cause.evidence.length?(a(),l("ul",gC,[(a(!0),l(N,null,U(e.selectedIssue.cause.evidence,(s,i)=>(a(),l("li",{key:i},c(s),1))),128))])):f("v-if",!0),n("div",yC,[e.selectedIssue.repos.length===1?(a(),l("a",{key:0,class:"btn btn-sm",href:e.errRepoHref(e.selectedIssue.repos[0].id)},"Open repository",8,vC)):f("v-if",!0),t[69]||(t[69]=n("a",{class:"btn btn-sm",href:"/admin/#performance"},"Open Performance",-1)),e.curlFor(e.selectedIssue.occurrences[0])?(a(),l("button",{key:1,type:"button",class:"btn btn-sm",onClick:t[14]||(t[14]=s=>e.copyValue(e.curlFor(e.selectedIssue.occurrences[0]),"curl command"))},"Copy curl")):f("v-if",!0),e.issueData.grafanaUrl?(a(),l("a",{key:2,class:"btn btn-sm",href:e.safeUrl(e.issueData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,bC)):f("v-if",!0)])],2),e.selectedIssue.routes?.length?(a(),l("section",wC,[n("div",kC,[t[71]||(t[71]=n("h2",{id:"errs-routes-title"},"Routes that failed",-1)),n("span",CC,c(e.errNumber(e.selectedIssue.routeCount)),1)]),n("ul",{class:T(["errs-routes",e.errStatusClass(e.selectedIssue.status)])},[(a(!0),l(N,null,U(e.selectedIssue.routes.slice(0,10),s=>(a(),l("li",{key:s.method+s.route},[n("code",null,c(s.method)+" "+c(s.route),1),n("span",EC,[n("span",{style:De({width:Math.max(2,Math.round(s.count/e.selectedIssue.routes[0].count*100))+"%"})},null,4)]),n("span",SC,[h(c(e.errNumber(s.count)),1),t[72]||(t[72]=n("span",{class:"sr-only"}," failures",-1))])]))),128))],2),e.selectedIssue.routeCount>10?(a(),l("p",NC,"+ "+c(e.errNumber(e.selectedIssue.routeCount-10))+" more routes",1)):f("v-if",!0),e.selectedIssue.routeKnown(a(),l("div",{class:"errs-repos-row",role:"row",key:s.id},[n("span",IC,[n("a",{class:"errs-mono",href:e.errRepoHref(s.id)},c(s.id),9,OC),e.ownerOf(s.id)?.source?(a(),l("span",MC,c(e.ownerOf(s.id).source),1)):f("v-if",!0)]),n("span",VC,[e.ownerOf(s.id)?.ownerId?(a(),l("a",{key:0,href:e.errUserHref(e.ownerOf(s.id).ownerId)},c(e.ownerOf(s.id).owner?"@"+e.ownerOf(s.id).owner:e.ownerOf(s.id).ownerId),9,qC)):(a(),l("span",LC,"not resolved"))]),n("span",$C,c(e.errNumber(s.count)),1),n("span",FC,[n("time",{datetime:s.last,title:e.errDayTime(s.last)},c(e.errRelTime(s.last)),9,UC)])]))),128)),e.selectedIssue.repoCount>10?(a(),l("p",BC,"+ "+c(e.errNumber(e.selectedIssue.repoCount-10))+" more repositories",1)):f("v-if",!0)])):(a(),l("p",HC,[t[75]||(t[75]=n("strong",null,"Not recorded.",-1)),t[76]||(t[76]=h(" These records carry no repository ID",-1)),e.selectedIssue.route&&/:owner/.test(e.selectedIssue.route)?(a(),l(N,{key:0},[h(": the route names the GitHub owner, so the ID is not kept")],64)):f("v-if",!0),t[77]||(t[77]=h(".",-1))])),n("div",zC,[t[84]||(t[84]=n("h3",null,"Who hit it",-1)),e.selectedIssue.viewers.notRecorded===e.selectedIssue.count?(a(),l("p",jC,"not recorded on these records")):(a(),l("p",_C,[n("strong",null,c(e.errNumber(e.selectedIssue.viewers.signedIn)),1),t[79]||(t[79]=h(" by owners, coauthors or admins \xB7 ",-1)),n("strong",null,c(e.errNumber(e.selectedIssue.viewers.visitors)),1),t[80]||(t[80]=h(" by signed-in visitors \xB7 ",-1)),n("strong",null,c(e.errNumber(e.selectedIssue.viewers.anonymous||0)),1),t[81]||(t[81]=h(" not signed in",-1)),e.selectedIssue.viewers.notRecorded?(a(),l(N,{key:0},[t[78]||(t[78]=h(" \xB7 ",-1)),n("span",GC,c(e.errNumber(e.selectedIssue.viewers.notRecorded))+" not recorded",1)],64)):f("v-if",!0)])),e.selectedIssue.users.length?(a(),l("p",WC,[t[83]||(t[83]=h("Users affected (counted separately from the repositories above; see the occurrences for which record carried which): ",-1)),(a(!0),l(N,null,U(e.selectedIssue.users.slice(0,8),(s,i)=>(a(),l(N,{key:s.id},[i?(a(),l(N,{key:0},[h(", ")],64)):f("v-if",!0),n("a",{href:e.errUserHref(s.id)},c(e.userName(s.id)?"@"+e.userName(s.id):s.id),9,KC),t[82]||(t[82]=h()),n("span",YC,"("+c(s.count)+")",1)],64))),128)),e.selectedIssue.userCount>8?(a(),l(N,{key:0},[h(" and "+c(e.selectedIssue.userCount-8)+" more",1)],64)):f("v-if",!0)])):f("v-if",!0)])])]),n("aside",XC,[n("section",QC,[n("h2",JC,"Failures \xB7 "+c(e.windowLabels[e.issueData.window]),1),n("div",{class:"errs-histogram",role:"img","aria-label":e.errPlural(e.selectedIssue.count,"failure")+" over the "+e.windowLabels[e.issueData.window]+", peak "+e.errTrendMax(e.selectedIssue.trend)+" per bucket"},[(a(!0),l(N,null,U(e.selectedIssue.trend,(s,i)=>(a(),l("span",{key:i,style:De({height:(s?Math.max(3,Math.round(s/e.errTrendMax(e.selectedIssue.trend)*56)):2)+"px"}),class:T({"is-zero":!s}),title:s+" failures"},null,14,xC))),128))],8,ZC),n("div",eE,[n("span",null,c(e.errClock(e.issueData.start)),1),t[85]||(t[85]=n("span",null,"now",-1))])]),n("section",tE,[n("div",nE,[t[86]||(t[86]=n("h2",{id:"errs-occ-title"},"Occurrences",-1)),n("span",sE,c(e.selectedIssue.occurrences.length(a(),l("li",{key:i},[n("a",{href:e.occurrenceHref(i),"data-occurrence":i},[n("time",{datetime:s.timestamp},c(e.errClock(s.timestamp,!0)),9,rE),n("span",aE,[s.repoId?(a(),l("span",lE,c(s.repoId),1)):(a(),l("span",dE,"no repository")),n("span",uE,[h(c(s.viewer?s.viewer==="anonymous"?"not signed in":s.viewer==="visitor"?"signed-in visitor":e.userName(s.userId)?"@"+e.userName(s.userId):s.viewer:"viewer not recorded"),1),s.ms!==void 0?(a(),l(N,{key:0},[h(" \xB7 "+c(e.errNumber(s.ms))+" ms",1)],64)):f("v-if",!0)])]),s.status||s.httpStatus?(a(),l("span",{key:0,class:T(["errs-status",e.errStatusClass(s.status||s.httpStatus)])},c(s.status||s.httpStatus),3)):f("v-if",!0)],8,iE)]))),128))]),!e.showAllOccurrences&&e.selectedIssue.occurrences.length>10?(a(),l("button",{key:0,type:"button",class:"btn btn-sm errs-show-all",onClick:t[15]||(t[15]=s=>e.showAllOccurrences=!0)},[h("Show all "+c(e.selectedIssue.occurrences.length),1),e.selectedIssue.occurrences.length0?(a(),l("a",{key:0,class:"btn btn-sm",href:e.occurrenceHref(e.occurrenceIndex-1),"aria-label":"Newer occurrence"},"Newer",8,gE)):f("v-if",!0),e.occurrenceIndexe.copyValue(e.curlFor(e.currentOccurrence()),"curl command"))},"Copy curl")):f("v-if",!0)])]),n("div",vE,[e.currentOccurrence().status||e.currentOccurrence().httpStatus?(a(),l("span",{key:0,class:T(["errs-chip errs-status",e.errStatusClass(e.currentOccurrence().status||e.currentOccurrence().httpStatus)])},[h(c(e.currentOccurrence().status||e.currentOccurrence().httpStatus),1),e.requestMs()!==null?(a(),l(N,{key:0},[h(" in "+c(e.errNumber(e.requestMs()))+" ms",1)],64)):f("v-if",!0)],2)):f("v-if",!0),n("span",bE,[n("time",{datetime:e.currentOccurrence().timestamp},c(e.errDayTime(e.currentOccurrence().timestamp)),9,wE)]),e.currentOccurrence().repoId?(a(),l("span",kE,[t[88]||(t[88]=h("Repository ",-1)),n("a",{class:"errs-mono",href:e.errRepoHref(e.currentOccurrence().repoId)},c(e.currentOccurrence().repoId),9,CE)])):(a(),l("span",EE,"repository not recorded")),e.ownerOf(e.currentOccurrence().repoId)?.ownerId?(a(),l("span",SE,[t[89]||(t[89]=h("Owner ",-1)),n("a",{href:e.errUserHref(e.ownerOf(e.currentOccurrence().repoId).ownerId)},c(e.ownerOf(e.currentOccurrence().repoId).owner?"@"+e.ownerOf(e.currentOccurrence().repoId).owner:e.ownerOf(e.currentOccurrence().repoId).ownerId),9,NE)])):f("v-if",!0),e.currentOccurrence().viewer?(a(),l("span",RE,[h(c(e.viewerChip(e.currentOccurrence().viewer)),1),e.currentOccurrence().userId&&e.currentOccurrence().userId!==e.ownerOf(e.currentOccurrence().repoId)?.ownerId?(a(),l(N,{key:0},[t[90]||(t[90]=h(" \xB7 ",-1)),n("a",{href:e.errUserHref(e.currentOccurrence().userId)},c(e.userName(e.currentOccurrence().userId)?"@"+e.userName(e.currentOccurrence().userId):"user"),9,TE)],64)):f("v-if",!0)])):(a(),l("span",PE,"viewer not recorded")),n("span",DE,c(e.occurrenceIndex+1)+" of "+c(e.selectedIssue.occurrences.length),1)]),n("div",AE,[n("div",IE,[(a(!0),l(N,null,U(e.requestTabs,([s,i])=>(a(),l("button",{type:"button",role:"tab",key:s,id:"errs-tab-"+s,"aria-selected":e.requestTab===s?"true":"false","aria-controls":"errs-panel-"+s,tabindex:e.requestTab===s?0:-1,class:T({active:e.requestTab===s}),onClick:r=>e.selectRequestTab(s),onKeydown:r=>e.requestTabKey(r,s)},c(i),43,OE))),128))]),e.requestTab==="timeline"?(a(),l("div",ME,[e.traceLoading?(a(),l("p",VE,"Loading every record with this "+c(e.traceKind())+" ID\u2026",1)):(a(),l(N,{key:1},[n("div",qE,[t[91]||(t[91]=n("span",null,[n("i",{class:"k-app"}),h("App")],-1)),t[92]||(t[92]=n("span",null,[n("i",{class:"k-external"}),h("External (GitHub, storage)")],-1)),t[93]||(t[93]=n("span",null,[n("i",{class:"k-data"}),h("Database / cache")],-1)),t[94]||(t[94]=n("span",null,[n("i",{class:"k-failure"}),h("Failure")],-1)),n("span",LE,"0 \u2013 "+c(e.errNumber(e.waterfall().span))+" ms",1)]),n("ol",$E,[(a(!0),l(N,null,U(e.waterfall().rows,s=>(a(),l("li",{key:s.key,class:T(["k-"+s.kind,{"is-failure":s.failure}])},[n("button",{type:"button",class:"errs-step","aria-expanded":e.expandedSteps[s.key]?"true":"false","aria-controls":"errs-step-"+s.key,onClick:i=>e.toggleStep(s.key)},[t[95]||(t[95]=n("span",{class:"errs-step-dot","aria-hidden":"true"},null,-1)),n("span",UE,[n("strong",null,c(s.label),1),n("span",null,c(s.sub||"no route recorded"),1)]),n("span",BE,[n("span",{class:"errs-step-bar",style:De({left:s.left+"%",width:s.width+"%"})},null,4)]),n("span",{class:T(["errs-step-status",{"is-bad":s.failed}])},c(s.status||"\u2014"),3),n("span",HE,[h(c(s.ms===null?"\u2014":e.errNumber(s.ms)),1),n("span",zE," ms, starts at "+c(s.offset)+" ms",1)])],8,FE),e.expandedSteps[s.key]?(a(),l("div",{key:0,class:"errs-step-detail",id:"errs-step-"+s.key},[s.event.errorStack?(a(),l("pre",_E,[h(c(s.event.errorType)+` `+c(s.event.errorStack),1),s.event.causeType?(a(),l(N,{key:0},[h(` Caused by `+c(s.event.causeType)+` -`+c(s.event.causeStack||""),1)],64)):f("v-if",!0)])):f("v-if",!0),n("pre",null,c(e.recordJson(s.event)),1)],8,HE)):f("v-if",!0)],2))),128))]),e.trace?.events?.length?(a(),l("p",jE,[h(c(e.errPlural(e.trace.events.length,"record"))+" with this "+c(e.traceKind())+" ID",1),e.trace.state==="partial"?(a(),l(N,{key:0},[h(" (partial)")],64)):f("v-if",!0),t[95]||(t[95]=h(". External calls come from ",-1)),t[96]||(t[96]=n("code",null,"external_request",-1)),t[97]||(t[97]=h(" records; no URLs or tokens are stored. ",-1)),e.trace.grafanaUrl?(a(),l("a",{key:1,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,_E)):f("v-if",!0)])):(a(),l("p",GE,[t[98]||(t[98]=n("strong",null,"Timeline not recorded.",-1)),t[99]||(t[99]=h()),e.traceKind()?e.issueData.source!=="central"?(a(),l(N,{key:1},[h("The application history keeps single records; the timeline needs central logs.")],64)):e.trace?.state==="unreachable"?(a(),l(N,{key:2},[h("Central logs did not answer. Retry later.")],64)):(a(),l(N,{key:3},[h("Central logs returned no other record for this "+c(e.traceKind())+".",1)],64)):(a(),l(N,{key:0},[h("This record has no request or job ID, so its other records cannot be found.")],64)),t[100]||(t[100]=h(" Only this record is shown.",-1))]))],64))])):f("v-if",!0),e.requestTab==="request"?(a(),l("div",WE,[n("dl",KE,[n("div",null,[t[101]||(t[101]=n("dt",null,"Method \xB7 route",-1)),n("dd",null,[e.currentOccurrence().route||e.selectedIssue.route?(a(),l("code",YE,c(e.currentOccurrence().method||e.selectedIssue.method)+" "+c(e.currentOccurrence().route||e.selectedIssue.route),1)):(a(),l("span",XE,"not recorded"))])]),n("div",null,[t[102]||(t[102]=n("dt",null,"Path",-1)),n("dd",null,[e.currentOccurrence().requestPath?(a(),l("code",QE,c(e.currentOccurrence().requestPath),1)):(a(),l("span",JE,"not recorded"))])]),t[109]||(t[109]=n("div",null,[n("dt",null,"Query"),n("dd",null,[n("span",{class:"errs-placeholder"},"excluded: query strings are never logged")])],-1)),n("div",null,[t[103]||(t[103]=n("dt",null,"Body",-1)),n("dd",null,[n("span",ZE,c(["GET","HEAD"].includes(e.currentOccurrence().method||e.selectedIssue.method)?"none ("+(e.currentOccurrence().method||e.selectedIssue.method)+")":"not recorded"),1)])]),n("div",null,[t[104]||(t[104]=n("dt",null,"Viewer",-1)),n("dd",null,[e.currentOccurrence().viewer?(a(),l(N,{key:0},[h(c(e.viewerLabel(e.currentOccurrence().viewer)),1),e.currentOccurrence().viewer==="visitor"||e.currentOccurrence().viewer==="anonymous"?(a(),l("span",xE," \xB7 reviewers are never identified")):f("v-if",!0)],64)):(a(),l("span",eS,"not recorded"))])]),n("div",null,[t[105]||(t[105]=n("dt",null,"Repository",-1)),n("dd",null,[e.currentOccurrence().repoId?(a(),l("a",{key:0,class:"errs-mono",href:e.errRepoHref(e.currentOccurrence().repoId)},c(e.currentOccurrence().repoId),9,tS)):(a(),l("span",nS,"not recorded")),e.ownerOf(e.currentOccurrence().repoId)?.source?(a(),l("span",sS," \xB7 "+c(e.ownerOf(e.currentOccurrence().repoId).source),1)):f("v-if",!0)])]),n("div",null,[t[106]||(t[106]=n("dt",null,"User",-1)),n("dd",null,[e.currentOccurrence().userId?(a(),l("a",{key:0,href:e.errUserHref(e.currentOccurrence().userId)},c(e.userName(e.currentOccurrence().userId)?"@"+e.userName(e.currentOccurrence().userId):e.currentOccurrence().userId),9,oS)):(a(),l("span",iS,"not recorded"))])]),n("div",null,[t[107]||(t[107]=n("dt",null,"Service \xB7 release",-1)),n("dd",null,[h(c(e.currentOccurrence().service||e.selectedIssue.service||"unknown")+" \xB7 ",1),e.currentOccurrence().release&&e.currentOccurrence().release!=="unknown"?(a(),l("code",rS,c(e.currentOccurrence().release.slice(0,7)),1)):(a(),l("span",aS,"release not recorded"))])]),(a(),l(N,null,U(["requestId","jobId"],s=>n("div",{key:s},[n("dt",null,c(s==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[e.currentOccurrence()[s]?(a(),l(N,{key:0},[n("code",lS,c(e.currentOccurrence()[s]),1),t[108]||(t[108]=h()),n("button",{type:"button",class:"errs-link-button",onClick:i=>e.copyValue(e.currentOccurrence()[s],s==="requestId"?"Request ID":"Job ID")},"Copy",8,dS)],64)):(a(),l("span",uS,"not recorded"))])])),64))])])):f("v-if",!0),e.requestTab==="exception"?(a(),l("div",cS,[e.exceptionRecord().record?(a(),l(N,{key:0},[e.exceptionRecord().fromSample?(a(),l("p",pS,"This occurrence has no stack of its own; showing the latest occurrence's.")):f("v-if",!0),n("dl",fS,[n("div",null,[t[110]||(t[110]=n("dt",null,"Type",-1)),n("dd",null,[n("code",null,c(e.exceptionRecord().record.errorType||"not recorded"),1)])]),n("div",null,[t[111]||(t[111]=n("dt",null,"Code",-1)),n("dd",null,[e.exceptionRecord().record.errorCode?(a(),l("code",mS,c(e.exceptionRecord().record.errorCode),1)):(a(),l("span",hS,"not recorded"))])]),n("div",null,[t[112]||(t[112]=n("dt",null,"Cause",-1)),n("dd",null,[e.exceptionRecord().record.causeType?(a(),l("code",gS,c(e.exceptionRecord().record.causeType),1)):(a(),l("span",yS,"not recorded"))])])]),t[114]||(t[114]=n("h3",{class:"errs-subhead"},"Stack",-1)),e.exceptionRecord().record.errorStack?(a(),l("pre",vS,c(e.exceptionRecord().record.errorStack),1)):(a(),l("p",bS,"not recorded")),e.exceptionRecord().record.causeStack?(a(),l(N,{key:3},[t[113]||(t[113]=n("h3",{class:"errs-subhead"},"Cause stack",-1)),n("pre",wS,c(e.exceptionRecord().record.causeStack),1)],64)):f("v-if",!0),t[115]||(t[115]=n("p",{class:"errs-muted"},"Frames list recognized application code only.",-1))],64)):(a(),l("p",kS,[...t[116]||(t[116]=[n("strong",null,"No exception recorded.",-1),h(" The failure was returned as a status code without an exception, type or stack.",-1)])]))])):f("v-if",!0),e.requestTab==="fields"?(a(),l("div",CS,[n("div",ES,[t[117]||(t[117]=n("p",{class:"errs-muted"},"Admin API fields only. Query strings, bodies, URLs and tokens are never stored.",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.copyValue(e.recordJson(e.occurrenceRecord()),"JSON"))},"Copy JSON")]),n("pre",SS,c(e.recordJson(e.occurrenceRecord())),1)])):f("v-if",!0)])])):f("v-if",!0)],2)}var NS=["aria-busy"],RS={key:0,class:"errs-entity-banner",role:"status"},TS=["href"],PS={class:"errs-card-head"},DS={id:"errs-entity-title"},AS={key:0,class:"errs-count"},IS={key:1,class:"errs-muted",role:"status"},OS={key:2,class:"errs-muted",role:"status"},MS={key:0,class:"errs-entity-list"},VS={class:"errs-entity-main"},qS=["href"],LS={class:"errs-muted"},$S={class:"errs-entity-count"},FS=["datetime","title"],US={class:"errs-entity-main"},BS={class:"errs-muted"},HS={class:"errs-entity-count"},zS=["datetime"],jS={key:1,class:"errs-muted"},_S={class:"errs-muted errs-entity-source"},GS=["href"];function Of(e,t){return e.entityErrors.key?(a(),l("section",{key:0,class:"errs-entity","aria-labelledby":"errs-entity-title","aria-busy":e.entityErrors.loading?"true":"false"},[e.entityFailingNow().length?(a(),l("div",RS,[t[2]||(t[2]=n("span",{class:"errs-now"},"Failing now",-1)),n("span",null,[h(c(e.errPlural(e.entityFailingNow().reduce((s,i)=>s+i.count,0),"failure"))+" in the last 24 h, the latest "+c(e.errRelTime(e.entityFailingNow()[0].last))+": ",1),n("a",{href:e.errIssueHref(e.entityFailingNow()[0].id)},c(e.entityFailingNow()[0].title),9,TS),e.entityFailingNow().length>1?(a(),l(N,{key:0},[h(" and "+c(e.entityFailingNow().length-1)+" more",1)],64)):f("v-if",!0),t[1]||(t[1]=h(".",-1))])])):f("v-if",!0),n("div",PS,[n("h2",DS,[t[3]||(t[3]=h("Errors ",-1)),e.entityIssues().length?(a(),l("span",AS,c(e.entityIssues().length),1)):f("v-if",!0)])]),e.entityErrors.loading?(a(),l("p",IS,"Loading errors\u2026")):e.entityErrors.failed?(a(),l("p",OS,[t[4]||(t[4]=h("Could not load errors. ",-1)),n("button",{type:"button",class:"errs-link-button",onClick:t[0]||(t[0]=s=>e.loadEntityErrors(!0))},"Retry")])):e.entityErrors.data?(a(),l(N,{key:3},[e.entityIssues().length||e.entityExpected().length?(a(),l("ul",MS,[(a(!0),l(N,null,U(e.entityIssues(),s=>(a(),l("li",{key:s.id},[n("span",VS,[n("a",{href:e.errIssueHref(s.id)},c(s.title),9,qS),n("span",LS,[n("code",null,c(s.code),1),s.route?(a(),l(N,{key:0},[h(" \xB7 "+c(s.method)+" "+c(s.route),1),s.routeCount>1?(a(),l(N,{key:0},[h(" +"+c(s.routeCount-1),1)],64)):f("v-if",!0)],64)):s.queue?(a(),l(N,{key:1},[h(" \xB7 job "+c(s.queue),1)],64)):f("v-if",!0)])]),n("span",$S,c(e.errNumber(s.count)),1),n("time",{datetime:s.last,title:e.errDayTime(s.last)},c(s.failingNow?"now":e.errRelTime(s.last)),9,FS)]))),128)),(a(!0),l(N,null,U(e.entityExpected().slice(0,5),s=>(a(),l("li",{key:"x"+s.code+s.status,class:"is-expected"},[n("span",US,[n("span",null,[n("code",null,c(s.code),1),t[5]||(t[5]=h()),t[6]||(t[6]=n("span",{class:"errs-tag"},"expected",-1))]),n("span",BS,"HTTP "+c(s.status||"\u2014"),1)]),n("span",HS,c(e.errNumber(s.count)),1),n("time",{datetime:s.last},c(e.errRelTime(s.last)),9,zS)]))),128))])):(a(),l("p",jS,"No errors recorded in the last 24 h.")),n("p",_S,[h(c(e.entityErrors.data.source==="central"?"From central logs":"From application history")+" \xB7 last 24 h \xB7 ",1),n("a",{href:"/admin/errors?q="+(e.entityErrors.data.filters?.repoId?"repo:"+e.entityErrors.data.filters.repoId:"user:"+(e.entityErrors.data.filters?.userId||""))},"Open in Errors",8,GS)])],64)):f("v-if",!0)],8,NS)):f("v-if",!0)}var WS={class:"container paper-page admin-page overview-page"},KS={key:0,class:"admin-empty"},YS={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},XS={class:"ov-views",role:"tablist","aria-label":"Overview sections"},QS=["aria-selected","onClick"],JS={key:2},ZS={key:0,class:"ov-health",role:"status"},xS={class:"ov-kpi-row"},eN={class:"ov-kpi-card"},tN={class:"ov-kpi-value"},nN={class:"ov-kpi-sub"},sN={class:"ov-kpi-card"},oN={class:"ov-kpi-sub"},iN={class:"ov-kpi-card"},rN={class:"ov-kpi-sub"},aN={class:"ov-kpi-card"},lN={class:"ov-kpi-sub"},dN={class:"ov-kpi-card"},uN={class:"ov-kpi-value"},cN={class:"ov-kpi-sub"},pN={class:"ov-daily-row"},fN={class:"ov-daily-card"},mN={class:"ov-daily-value"},hN={class:"ov-daily-card"},gN={class:"ov-daily-value"},yN={class:"ov-daily-sub"},vN={class:"ov-daily-card"},bN={class:"ov-daily-value"},wN={class:"ov-chart-card"},kN={class:"ov-chart-head"},CN={class:"ov-chart-legends"},EN={class:"ov-chart-legend"},SN={key:0,class:"ov-legend-missing"},NN={key:0,class:"ov-spark-bars ov-has-axis"},RN={class:"ov-yaxis","aria-hidden":"true"},TN=["data-tip","aria-label"],PN={key:1,class:"ov-spark-x"},DN={class:"ov-chart-card"},AN={class:"ov-chart-head"},IN={class:"ov-chart-legends"},ON={class:"ov-chart-legend"},MN={key:0,class:"ov-legend-missing"},VN={key:0,class:"ov-spark-bars ov-has-axis"},qN={class:"ov-yaxis","aria-hidden":"true"},LN=["data-tip","aria-label"],$N={key:1,class:"ov-spark-x"},FN={key:0,class:"ov-chart-card"},UN={class:"ov-chart-head"},BN={class:"ov-chart-legends"},HN={class:"ov-chart-legend"},zN={key:0,class:"ov-legend-missing"},jN={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},_N={class:"ov-yaxis","aria-hidden":"true"},GN=["viewBox","aria-label"],WN=["d"],KN=["d"],YN={key:1,class:"ov-spark-x"},XN={class:"ov-chart-card"},QN={class:"ov-chart-head"},JN={class:"ov-chart-legends"},ZN={class:"ov-chart-legend"},xN={key:0,class:"ov-legend-missing"},eR={key:0,class:"ov-spark-bars ov-has-axis"},tR={class:"ov-yaxis","aria-hidden":"true"},nR=["data-tip","aria-label"],sR={key:1,class:"ov-spark-x"},oR={class:"ov-triple-row"},iR={class:"ov-panel-card"},rR={class:"ov-panel-head"},aR={class:"ov-panel-meta"},lR={class:"ov-stacked-bar"},dR={class:"ov-bar-legend"},uR={href:"/admin/repositories",class:"ov-legend-item"},cR={class:"ov-legend-n"},pR={href:"/admin/repositories",class:"ov-legend-item"},fR={class:"ov-legend-n"},mR={href:"/admin/repositories",class:"ov-legend-item"},hR={class:"ov-legend-n"},gR={href:"/admin/repositories",class:"ov-legend-item"},yR={class:"ov-legend-n"},vR={href:"/admin/repositories",class:"ov-legend-item"},bR={class:"ov-legend-n"},wR={class:"ov-panel-card"},kR={class:"ov-panel-head"},CR={class:"ov-panel-meta"},ER={class:"ov-error-bars"},SR={class:"ov-ebar-row"},NR={class:"ov-ebar-track"},RR={class:"ov-ebar-n"},TR={class:"ov-ebar-row"},PR={class:"ov-ebar-track"},DR={class:"ov-ebar-n"},AR={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},IR={class:"ov-ehours-legend"},OR={class:"ov-ehours-note"},MR={class:"ov-ehours-bars"},VR=["title"],qR={key:0,class:"ov-ehours-zero"},LR={class:"ov-ebar-note"},$R={key:0,class:"ov-panel-foot"},FR={href:"/admin/errors"},UR={class:"ov-panel-card"},BR={class:"ov-routes-table"},HR={class:"ov-route-row",href:"/admin/queues"},zR={class:"ov-route-n"},jR={class:"ov-route-n"},_R={class:"ov-route-row",href:"/admin/queues"},GR={class:"ov-route-n"},WR={class:"ov-route-n"},KR={class:"ov-route-row",href:"/admin/queues"},YR={class:"ov-route-n"},XR={class:"ov-route-n"},QR={class:"ov-services-card"},JR={class:"ov-services-head"},ZR={class:"ov-panel-meta"},xR={class:"ov-services-grid"},e4={class:"ov-svc"},t4={class:"ov-svc-info"},n4={class:"ov-svc-meta"},s4={class:"ov-svc"},o4={class:"ov-svc-info"},i4={key:0,class:"ov-svc-meta"},r4={key:1,class:"ov-svc-meta"},a4={class:"ov-svc"},l4={class:"ov-svc-info"},d4={key:0,class:"ov-svc-meta"},u4={key:1,class:"ov-svc-meta"},c4={class:"ov-svc"},p4={class:"ov-svc-info"},f4={key:0,class:"ov-svc-meta"},m4={key:1,class:"ov-svc-meta"},h4={class:"ov-svc"},g4=["title"],y4={class:"ov-svc-info"},v4={class:"ov-svc-meta"},b4={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},w4={class:"ov-panel-head ov-performance-head"},k4={class:"ov-performance-window"},C4={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},E4={key:1,class:"ov-performance-empty",role:"status"},S4={key:0,class:"ov-performance-note"},N4={key:1,class:"ov-performance-note"},R4={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},T4={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},P4={class:"ov-metrics-table"},D4={scope:"row",class:"ov-event-name"},A4=["title"],I4={key:0,class:"ov-metric-bad-text"},O4={key:1,class:"budget-bar","aria-hidden":"true"},M4={class:"num"},V4={class:"num"},q4={class:"num"},L4={class:"num"},$4={key:4,class:"ov-cache-rates"},F4={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},U4={class:"ov-metrics-table"},B4={scope:"row",class:"ov-event-name"},H4={class:"ov-event-traffic"},z4={class:"num"},j4={class:"num"},_4={key:6,class:"ov-performance-empty",role:"status"},G4={class:"ov-performance-note"},W4={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},K4={class:"ov-panel-head ov-performance-head"},Y4={class:"ov-performance-window"},X4={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Q4={key:1,class:"ov-performance-empty",role:"status"},J4={key:2},Z4={id:"performance-routes",role:"region","aria-label":"Routes"},x4={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},eT={class:"ov-metrics-table"},tT={scope:"row",class:"ov-metric-name"},nT={class:"num"},sT={class:"num"},oT={class:"num"},iT={class:"num"},rT={class:"num"},aT={key:1,class:"ov-performance-empty"},lT={id:"performance-processes",role:"region","aria-label":"Processes"},dT={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},uT={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},cT={class:"ov-metrics-table"},pT={scope:"row",class:"ov-metric-name"},fT={key:0,class:"ov-metric-warn"},mT={class:"num"},hT={class:"num"},gT={class:"num"},yT={class:"num"},vT={class:"num"},bT={class:"num"},wT={class:"num"},kT={class:"num"},CT={id:"performance-stages",role:"region","aria-label":"Work stages"},ET={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},ST={class:"ov-metrics-table"},NT={scope:"row",class:"ov-metric-name"},RT={class:"num"},TT={class:"num"},PT={class:"num"},DT={key:1,class:"ov-performance-empty"};function Mf(e,t){return a(),l("div",WS,[t[95]||(t[95]=Pe('
Admin \xA0/\xA0 Overview

Overview

Live \xB7 refreshes every 30s
',2)),e.loading?(a(),l("div",KS,"Loading overview\u2026")):f("v-if",!0),e.error?(a(),l("div",YS,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.error),1)])):f("v-if",!0),n("div",XS,[(a(),l(N,null,U([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],s=>n("button",{type:"button",role:"tab",key:s.id,"aria-selected":e.ovView===s.id?"true":"false",class:T({active:e.ovView===s.id}),onClick:i=>e.setOvView(s.id)},c(s.label),11,QS)),64))]),e.data?O((a(),l("div",JS,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(a(),l("div",ZS,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,[t[9]||(t[9]=n("b",null,"Server needs attention.",-1)),h(" "+c(e.healthAlert()),1)])])):f("v-if",!0),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 "),n("section",xS,[n("div",eN,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",tN,c(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(s=>s._id!=="removed"&&s._id!=="expired").reduce((s,i)=>s+(i.count||0),0))),1),n("div",nN,c(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(s=>s._id==="removed")||{}).count||0))+" removed \xB7 "+c(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",sN,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>=75}])},c(e.data?.system?.cpuPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.cpuPercent>=75,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",oN,[e.data?.system?.cpuPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.cpuPercent>90}])},c(e.data?.system?.cpuPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)])]),n("div",iN,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>=75}])},c(e.data?.system?.memPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.memPercent>=75,crit:e.data?.system?.memPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",rN,[e.data?.system?.memPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.memPercent>90}])},c(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",aN,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>=75}])},c(e.data?.system?.diskPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.diskPercent>=75,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",lN,[e.data?.system?.diskPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},c(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+c(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(a(),l(N,{key:1},[h(" \xB7 "+c(e.data?.system?.diskMount),1)],64)):f("v-if",!0)])]),n("div",dN,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",uN,c(e.humanDuration(e.data?.system?.uptime)),1),n("div",cN,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 "),n("section",pN,[n("div",fN,[t[16]||(t[16]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",mN,c(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[17]||(t[17]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",hN,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",gN,c(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",yN,c(e.fmt?.number(e.data?.users?.total))+" total \xB7 +"+c(e.fmt?.number(e.usersGained()))+" in 30 days",1)]),n("div",vN,[t[19]||(t[19]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",bN,c(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[20]||(t[20]=n("div",{class:"ov-daily-sub"},"so far today",-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 "),n("section",{class:T(["ov-chart-row",{"is-three":e.usersTiny()}])},[n("div",wN,[n("div",kN,[t[23]||(t[23]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",CN,[n("span",EN,[t[21]||(t[21]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),h("views/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyPageViews"))),1)]),e.historyHasMissing()?(a(),l("span",SN,[...t[22]||(t[22]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",NN,[n("div",RN,[n("span",null,c(e.fmt?.number(e.axisMax("dailyPageViews"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyPageViews")/2)),1),t[24]||(t[24]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views")},[n("span",{class:"ov-spark-fill",style:De({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],10,TN))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",PN,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",DN,[n("div",AN,[t[27]||(t[27]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",IN,[n("span",ON,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),h("repos/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyRepositories"))),1)]),e.historyHasMissing()?(a(),l("span",MN,[...t[26]||(t[26]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",VN,[n("div",qN,[n("span",null,c(e.fmt?.number(e.axisMax("dailyRepositories"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyRepositories")/2)),1),t[28]||(t[28]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos")},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:De({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],10,LN))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",$N,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),e.usersTiny()?f("v-if",!0):(a(),l("div",FN,[n("div",UN,[t[31]||(t[31]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",BN,[n("span",HN,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),h("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").max))+" now \xB7 +"+c(e.fmt?.number(Math.max(0,e.historyRange("nbUsers").max-e.usersFirst())))+" in 30 days",1)]),e.historyHasMissing()?(a(),l("span",zN,[...t[30]||(t[30]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",jN,[n("div",_N,[n("span",null,c(e.fmt?.number(e.userAxis().hi)),1),n("span",null,c(e.fmt?.number((e.userAxis().hi+e.userAxis().lo)/2)),1),n("span",null,c(e.fmt?.number(e.userAxis().lo)),1)]),(a(),l("svg",{class:"ov-step-svg",viewBox:"0 0 "+e.data.history.length+" 140",preserveAspectRatio:"none",role:"img","aria-label":"Total users over 30 days, from "+e.fmt?.number(e.usersFirst())+" to "+e.fmt?.number(e.historyRange("nbUsers").max)},[e.userAxis().lo===0?(a(),l("path",{key:0,class:"ov-step-area",d:e.userStepPath(!0)},null,8,WN)):f("v-if",!0),n("path",{class:"ov-step-line",d:e.userStepPath(!1),"vector-effect":"non-scaling-stroke"},null,8,KN)],8,GN)),e.firstDataIndex()>0?(a(),l("div",{key:0,class:"ov-step-missing",style:De({width:e.firstDataIndex()/e.data.history.length*100+"%"})},null,4)):f("v-if",!0)])):f("v-if",!0),e.data?.history?.length?(a(),l("div",YN,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])),n("div",XN,[n("div",QN,[t[34]||(t[34]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",JN,[n("span",ZN,[t[32]||(t[32]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),h("users/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyUsers"))),1)]),e.historyHasMissing()?(a(),l("span",xN,[...t[33]||(t[33]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",eR,[n("div",tR,[n("span",null,c(e.fmt?.number(e.axisMax("dailyUsers"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyUsers")/2)),1),t[35]||(t[35]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users")},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:De({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],10,nR))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",sR,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])],2),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",oR,[f(" Repo status breakdown "),n("div",iR,[n("div",rR,[t[36]||(t[36]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",aR,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",lR,[e.barPct("ready")>0?(a(),l("span",{key:0,class:"ov-bar-seg ov-bar-ready",title:"Ready",style:De({width:e.barPct("ready")+"%"})},null,4)):f("v-if",!0),e.barPct("preparing")>0?(a(),l("span",{key:1,class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:De({width:e.barPct("preparing")+"%"})},null,4)):f("v-if",!0),e.barPct("error")>0?(a(),l("span",{key:2,class:"ov-bar-seg ov-bar-error",title:"Error",style:De({width:e.barPct("error")+"%"})},null,4)):f("v-if",!0),e.barPct("expired")>0?(a(),l("span",{key:3,class:"ov-bar-seg ov-bar-expired",title:"Expiring / expired",style:De({width:e.barPct("expired")+"%"})},null,4)):f("v-if",!0),e.barPct("removed")>0?(a(),l("span",{key:4,class:"ov-bar-seg ov-bar-removed",title:"Removing / removed",style:De({width:e.barPct("removed")+"%"})},null,4)):f("v-if",!0)]),n("div",dR,[n("a",uR,[t[37]||(t[37]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[38]||(t[38]=h(" Ready ",-1)),n("span",cR,c(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",pR,[t[39]||(t[39]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[40]||(t[40]=h(" Preparing ",-1)),n("span",fR,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",mR,[t[41]||(t[41]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[42]||(t[42]=h(" Error ",-1)),n("span",hR,c(e.fmt?.number(e.statusCount("error"))),1)]),n("a",gR,[t[43]||(t[43]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[44]||(t[44]=h(" Expiring / expired ",-1)),n("span",yR,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",vR,[t[45]||(t[45]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[46]||(t[46]=h(" Removing / removed ",-1)),n("span",bR,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",wR,[n("div",kR,[t[47]||(t[47]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",CR,c(e.fmt?.number(e.realErrors()))+" "+c(e.realErrors()===1?"error":"errors"),1)]),n("div",ER,[n("div",SR,[t[48]||(t[48]=n("span",{class:"ov-ebar-label"},"Error",-1)),n("span",NR,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:De({width:e.errPct("error")+"%"})},null,4)]),n("span",RR,c(e.data?.errors?.severity?.error),1)]),n("div",TR,[t[49]||(t[49]=n("span",{class:"ov-ebar-label"},"Warning",-1)),n("span",PR,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:De({width:e.errPct("warn")+"%"})},null,4)]),n("span",DR,c(e.data?.errors?.severity?.warn),1)]),e.errorHours().length?(a(),l("div",AR,[n("div",IR,[t[52]||(t[52]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-error","aria-hidden":"true"}),h("Error")],-1)),t[53]||(t[53]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-warn","aria-hidden":"true"}),h("Warning")],-1)),n("span",OR,[t[50]||(t[50]=h("Per hour",-1)),t[51]||(t[51]=n("span",{class:"seg-sep","aria-hidden":"true"},"\xB7",-1)),h("peak "+c(e.fmt?.number(e.errorHoursPeak())),1)])]),n("div",MR,[(a(!0),l(N,null,U(e.errorHours(),s=>(a(),l("span",{key:s.key,class:T({"is-bad":s.bad,"is-zero":s.zero}),title:s.title},[s.zero?(a(),l("i",qR)):(a(),l(N,{key:1},[s.errPct?(a(),l("i",{key:0,class:"ov-ehours-e",style:De({height:s.errPct+"%"})},null,4)):f("v-if",!0),s.warnPct?(a(),l("i",{key:1,class:"ov-ehours-w",style:De({height:s.warnPct+"%"})},null,4)):f("v-if",!0)],64))],10,VR))),128))]),t[54]||(t[54]=n("div",{class:"ov-ehours-x"},[n("span",null,"24h ago"),n("span",null,"now")],-1))])):f("v-if",!0),n("p",LR,"Info "+c(e.fmt?.number(e.data?.errors?.severity?.info||0))+" \xB7 logged, not counted as errors",1)]),e.data?.repos?.recentErrors24h?(a(),l("div",$R,[n("a",FR,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",UR,[t[59]||(t[59]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",BR,[t[58]||(t[58]=Pe('
QueueActiveWaitFailed
',1)),n("a",HR,[t[55]||(t[55]=n("span",{class:"ov-route-name"},"Download",-1)),n("span",zR,c(e.data?.queues?.download?.active),1),n("span",jR,c(e.data?.queues?.download?.waiting),1),n("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),n("a",_R,[t[56]||(t[56]=n("span",{class:"ov-route-name"},"Remove",-1)),n("span",GR,c(e.data?.queues?.remove?.active),1),n("span",WR,c(e.data?.queues?.remove?.waiting),1),n("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),n("a",KR,[t[57]||(t[57]=n("span",{class:"ov-route-name"},"Cache cleanup",-1)),n("span",YR,c(e.data?.queues?.cache?.active),1),n("span",XR,c(e.data?.queues?.cache?.waiting),1),n("span",{class:T(["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 "),n("section",QR,[n("div",JR,[t[60]||(t[60]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",ZR,"5 services \xB7 "+c(e.realErrors()>0?"1 needs attention":"all healthy"),1)]),n("div",xR,[n("div",e4,[t[62]||(t[62]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",t4,[t[61]||(t[61]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",n4,c(e.data?.system?.nodeVersion)+" \xB7 up "+c(e.humanDuration(e.data?.system?.uptime)),1)])]),n("div",s4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",o4,[t[63]||(t[63]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(a(),l("span",i4,c(e.queueTotal(e.data?.queues?.download))+" "+c(e.queueTotal(e.data?.queues?.download)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(a(),l("span",r4,"idle"))])]),n("div",a4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",l4,[t[64]||(t[64]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(a(),l("span",d4,c(e.queueTotal(e.data?.queues?.cache))+" "+c(e.queueTotal(e.data?.queues?.cache)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(a(),l("span",u4,"idle"))])]),n("div",c4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",p4,[t[65]||(t[65]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(a(),l("span",f4,c(e.queueTotal(e.data?.queues?.remove))+" "+c(e.queueTotal(e.data?.queues?.remove)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(a(),l("span",m4,"idle"))])]),n("div",h4,[n("span",{class:T(["ov-svc-dot",e.realErrors()>0?"ov-dot-warn":"ov-dot-ok"]),title:e.realErrors()>0?"Errors in the last 24 hours":"No errors in the last 24 hours"},null,10,g4),n("div",y4,[t[66]||(t[66]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",v4,c(e.fmt?.number(e.realErrors()))+" / 24h",1)])])])])],512)),[[te,e.ovView==="summary"]]):f("v-if",!0),O(n("section",b4,[n("div",w4,[t[71]||(t[71]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work")],-1)),n("div",k4,[t[69]||(t[69]=n("label",{for:"cache-window"},"Time range",-1)),O(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.cacheMinutes=s),onChange:t[1]||(t[1]=s=>e.loadCache())},[...t[67]||(t[67]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[qt,e.cacheMinutes,void 0,{number:!0}]]),t[70]||(t[70]=n("label",{for:"cache-traffic"},"Traffic",-1)),O(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=s=>e.cacheTraffic=s)},[...t[68]||(t[68]=[Pe('',6)])],512),[[qt,e.cacheTraffic]])])]),e.cacheError?(a(),l("div",C4,[n("span",null,c(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=s=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(a(),l("p",E4,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(a(),l(N,{key:2},[e.cacheReport.enabled?f("v-if",!0):(a(),l("p",S4,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(a(),l("p",N4,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(a(),l("p",R4,c(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(a(),l("div",T4,[n("table",P4,[t[72]||(t[72]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[73]||(t[73]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col",class:"num"},"Allocated / budget"),n("th",{scope:"col",class:"num"},"Reserved for fills"),n("th",{scope:"col",class:"num"},"Original bytes"),n("th",{scope:"col",class:"num"},"Blobs"),n("th",{scope:"col",class:"num"},"Active readers")])],-1)),n("tbody",null,[(a(!0),l(N,null,U([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],s=>O((a(),l("tr",{key:s.name},[n("th",D4,c(s.name),1),n("td",{class:T(["num budget-cell",{"is-over":s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes}]),title:s.data?.budgetBytes?Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes)+"% of budget":null},[s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes?(a(),l("span",I4,"Over budget \xB7 ")):f("v-if",!0),h(c(e.humanBytes(s.data?.allocatedBytes))+" / "+c(e.humanBytes(s.data?.budgetBytes)),1),s.data?.budgetBytes?(a(),l("span",O4,[n("i",{style:De({width:Math.min(100,Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes))+"%"})},null,4)])):f("v-if",!0)],10,A4),n("td",M4,c(e.humanBytes(s.data?.reservedBytes)),1),n("td",V4,c(e.humanBytes(s.data?.originalBytes)),1),n("td",q4,c(e.fmt?.number(s.data?.blobs)),1),n("td",L4,c(e.fmt?.number(s.data?.activeReaders)),1)])),[[te,s.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(a(),l("dl",$4,[n("div",null,[t[74]||(t[74]=n("dt",null,"Source request hit rate",-1)),n("dd",null,c(e.cacheRate("source","count")),1)]),n("div",null,[t[75]||(t[75]=n("dt",null,"Source byte hit rate",-1)),n("dd",null,c(e.cacheRate("source","bytes")),1)]),n("div",null,[t[76]||(t[76]=n("dt",null,"Decision hit rate",-1)),n("dd",null,c(e.cacheRate("decision","count")),1)])])):f("v-if",!0),t[79]||(t[79]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(a(),l("div",F4,[n("table",U4,[t[77]||(t[77]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col",class:"num"},"Count"),n("th",{scope:"col",class:"num"},"Bytes"),n("th",{scope:"col",class:"num"},"Mean measured time"),n("th",{scope:"col",class:"num"},"p95 bound")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.cacheRows(),s=>(a(),l("tr",{key:s.name+":"+s.traffic},[n("th",B4,c(e.cacheEventName(s.name)),1),n("td",H4,c(s.traffic),1),n("td",z4,c(e.fmt?.number(s.count)),1),n("td",j4,c(e.humanBytes(s.bytes)),1),n("td",{class:T(["num",{"ov-muted":!s.ms}])},c(s.ms?e.fmt.duration(s.ms/s.count):"Not timed"),3),n("td",{class:T(["num",{"ov-muted":!s.ms}])},c(e.cacheP95(s)),3)]))),128))])])])):(a(),l("p",_4,"No cache events in this time range for the selected traffic.")),n("p",G4,"Updated "+c(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)],512),[[te,e.ovView==="cache"]]),O(n("section",W4,[n("div",K4,[t[84]||(t[84]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health")],-1)),n("div",Y4,[e.performance?.available?(a(),l(N,{key:0},[t[81]||(t[81]=n("label",{for:"performance-view"},"Show",-1)),O(n("select",{id:"performance-view",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=s=>e.performanceTab=s),"aria-label":"Performance metrics"},[...t[80]||(t[80]=[n("option",{value:"routes"},"Routes",-1),n("option",{value:"processes"},"Processes",-1),n("option",{value:"stages"},"Work stages",-1)])],512),[[qt,e.performanceTab]])],64)):f("v-if",!0),t[83]||(t[83]=n("label",{for:"performance-window"},"Time range",-1)),O(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[5]||(t[5]=s=>e.performanceMinutes=s),onChange:t[6]||(t[6]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[82]||(t[82]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[qt,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(a(),l("div",X4,[t[85]||(t[85]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,c(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(a(),l("p",Q4,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(a(),l("div",J4,[O(n("div",Z4,[e.performance.routes?.length?(a(),l("div",x4,[n("table",eT,[t[86]||(t[86]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[87]||(t[87]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.routes,s=>(a(),l("tr",{key:s.service+s.method+s.route},[n("th",tT,[n("span",null,c(s.route),1),n("small",null,c(s.service)+" \xB7 "+c(s.method),1)]),n("td",nT,c(e.fmt.number(s.count)),1),n("td",sT,c(e.formatMs(s.avgMs)),1),n("td",oT,c(e.firstByteBound(s)),1),n("td",iT,c(e.latencyBound(s,"p95UpperMs")),1),n("td",rT,c(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:T(["num",{"ov-metric-warn":s.aborted>0}])},c(e.fmt.number(s.aborted)),3),n("td",{class:T(["num",{"ov-metric-bad":s.errors>0}])},c(e.fmt.number(s.errors)),3),n("td",{class:T(["num",{"ov-metric-warn":s.slow>0}])},c(e.fmt.number(s.slow)),3)]))),128))])])])):(a(),l("p",aT,"No recorded requests in this time range yet."))],512),[[te,e.performanceTab==="routes"]]),O(n("div",lT,[t[91]||(t[91]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(a(),l("div",uT,[n("table",cT,[t[89]||(t[89]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[90]||(t[90]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.instances,s=>(a(),l("tr",{key:s.instance,class:T({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",pT,[n("span",null,c(s.instance),1),e.performanceWarning(s)?(a(),l("small",fT,[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" Needs attention",-1)])])):f("v-if",!0)]),n("td",mT,[h(c(e.humanBytes(s.memory.rss))+" / "+c(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+c(e.humanBytes(e.peakRss(s))),1)]),n("td",hT,c(s.cpuPercent==null?"Unavailable":s.cpuPercent.toFixed(1)+"%"),1),n("td",gT,c(s.eventLoop?.p95Ms==null?"Not applicable":e.fmt.duration(s.eventLoop.p95Ms)),1),n("td",yT,c(s.activeRequests),1),n("td",vT,c(s.sockets?.descriptors??"Unavailable")+" / "+c(s.sockets?.closeWait??"Unavailable"),1),n("td",bT,c(s.workers?.running??0)+" / "+c(s.workers?.waiting??0),1),n("td",wT,c(e.sampleAge(s))+" s",1),n("td",kT,c(s.droppedBatches)+" / "+c(s.droppedMetrics),1)],2))),128))])])])):(a(),l("div",dT,"No recent process samples. Monitoring coverage is incomplete."))],512),[[te,e.performanceTab==="processes"]]),O(n("div",CT,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(a(),l("div",ET,[n("table",ST,[t[92]||(t[92]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[93]||(t[93]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(a(),l("tr",{key:s.service+s.metric},[n("th",NT,[n("span",null,c(s.metric),1),n("small",null,c(s.service),1)]),n("td",RT,c(e.fmt.number(s.count)),1),n("td",TT,c(e.formatMs(s.avgMs)),1),n("td",PT,c(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(a(),l("p",DT,"No recorded work stages or cache results in this time range yet."))],512),[[te,e.performanceTab==="stages"]]),t[94]||(t[94]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("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)],512),[[te,e.ovView==="performance"]])])}var AT={class:"container paper-page admin-page"},IT={class:"q-header"},OT={class:"q-header-actions"},MT={class:"q-cards"},VT=["aria-pressed","onKeydown","onClick"],qT={class:"q-card-head"},LT=["title"],$T=["textContent"],FT=["textContent"],UT={class:"q-card-sub"},BT={class:"q-card-failed"},HT={key:0,class:"q-card-bar"},zT={key:0,class:"q-detail"},jT={class:"q-throughput"},_T={class:"q-range-btns"},GT={class:"q-section-label"},WT={key:0,class:"q-section-right"},KT={class:"q-chart-wrap"},YT={key:0,class:"q-chart-empty"},XT={class:"q-stats-panel"},QT={class:"q-section-label"},JT={class:"q-stats-grid"},ZT={class:"q-stat"},xT=["textContent"],e3={class:"q-stat"},t3=["textContent"],n3={class:"q-stat"},s3=["textContent"],o3={class:"q-stat"},i3=["textContent"],r3={class:"q-stat"},a3=["textContent"],l3={class:"q-stat"},d3=["textContent"],u3={class:"q-stats-actions"},c3=["disabled"],p3={class:"q-danger-group"},f3={class:"q-jobs"},m3={class:"q-jobs-header"},h3={class:"q-section-label"},g3={class:"seg-filter",role:"radiogroup","aria-label":"Filter jobs by state"},y3=["aria-checked"],v3={class:"count"},b3=["aria-checked"],w3={class:"count"},k3=["aria-checked"],C3={class:"count"},E3=["aria-checked"],S3={class:"count"},N3=["aria-checked"],R3={class:"count"},T3=["aria-checked"],P3={class:"count"},D3={class:"q-search-row"},A3={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},I3={class:"q-auto-refresh"},O3={type:"checkbox"},M3={key:0,class:"q-table"},V3=["onClick"],q3={class:"q-cell-state"},L3=["textContent"],$3=["textContent"],F3=["title"],U3=["textContent","href"],B3=["title","textContent"],H3=["textContent"],z3=["textContent"],j3={class:"q-cell-progress"},_3=["aria-label"],G3=["textContent"],W3={class:"q-cell-actions"},K3=["onClick"],Y3=["onClick"],X3={key:0,class:"q-detail-row"},Q3={colspan:"7"},J3={class:"q-job-detail"},Z3={class:"q-job-detail-grid"},x3={class:"q-job-detail-item"},eP={class:"q-job-detail-value"},tP=["textContent","href"],nP={class:"q-job-detail-item"},sP={class:"q-job-detail-value"},oP=["textContent"],iP={key:0,class:"q-job-detail-item"},rP=["textContent"],aP={key:1,class:"q-job-detail-item"},lP=["textContent"],dP={key:2,class:"q-job-detail-item"},uP={class:"q-job-detail-value"},cP={key:3,class:"q-job-detail-item"},pP=["textContent"],fP={key:4,class:"q-job-detail-item"},mP=["textContent"],hP={key:5,class:"q-job-detail-item"},gP=["textContent"],yP={key:6,class:"q-job-detail-item"},vP=["textContent"],bP={key:7,class:"q-job-detail-item"},wP=["textContent"],kP={key:0,class:"q-job-detail-error"},CP=["textContent"],EP={key:1},SP=["textContent"],NP={class:"q-job-detail-actions"},RP=["onClick"],TP=["onClick"],PP=["href"],DP={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},AP={key:0},IP={key:1};function Vf(e,t){let s=Le("field");return a(),l("div",AT,[t[71]||(t[71]=n("div",{class:"paper-crumbs"},[h("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",IT,[t[18]||(t[18]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",OT,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[72]||(t[72]=Pe('',1)),f(" Queue overview cards "),n("div",MT,[(a(!0),l(N,null,U(e.queueList,(i,r)=>(a(),l("div",{class:T(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[Rt(de(o=>e.selectQueue(i.key),["prevent"]),["enter"]),Rt(de(o=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:o=>e.selectQueue(i.key)},[n("div",qT,[n("span",{class:T(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}]),title:i?.paused?"Paused":i?.counts?.failed>0?i.counts.failed+" failed jobs":i?.counts?.active||i?.counts?.waiting?"Running":"Idle"},null,10,LT),n("span",{class:"q-card-name",textContent:c(i?.label)},null,8,$T)]),n("div",{class:"q-card-count",textContent:c((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,FT),n("div",UT,[n("span",null,[h("waiting \xB7 "+c(i?.counts?.active||0)+" active",1),i?.counts?.failed?(a(),l(N,{key:0},[t[19]||(t[19]=h(" \xB7 ",-1)),n("b",BT,c(i.counts.failed)+" failed",1)],64)):f("v-if",!0),i?.paused?(a(),l(N,{key:1},[t[20]||(t[20]=h(" \xB7 ",-1)),t[21]||(t[21]=n("b",{class:"q-card-failed"},"paused",-1))],64)):f("v-if",!0)]),i?.counts?.active?(a(),l("div",HT,[n("div",{class:"q-card-bar-fill",style:De({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,VT))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(a(),l("div",zT,[n("div",jT,[n("div",_T,[n("button",{class:T(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",GT,[h("Throughput \xB7 "+c(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l("span",WT,[t[23]||(t[23]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[24]||(t[24]=h(" Completed ",-1)),t[25]||(t[25]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[26]||(t[26]=h(" Failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l(N,{key:0},[t[22]||(t[22]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),h(" Avg time \xB7 "+c(e.range),1)],64)):f("v-if",!0)])):f("v-if",!0)]),n("div",KT,[t[28]||(t[28]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(a(),l("div",YT,[...t[27]||(t[27]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):f("v-if",!0),t[29]||(t[29]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[30]||(t[30]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",XT,[n("div",QT,"Stats \xB7 "+c(e.selectedQueue),1),n("div",JT,[n("div",ZT,[t[31]||(t[31]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,xT)]),n("div",e3,[t[32]||(t[32]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,t3)]),n("div",n3,[t[33]||(t[33]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,s3)]),n("div",o3,[t[34]||(t[34]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,i3)]),n("div",r3,[t[35]||(t[35]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,a3)]),n("div",l3,[t[36]||(t[36]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,d3)])]),n("div",u3,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},c(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,c3),n("span",p3,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):f("v-if",!0),e.actionError?(a(),l("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",f3,[n("div",m3,[n("div",h3,"All jobs \xB7 "+c(e.selectedQueue),1),n("div",g3,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[10]||(t[10]=i=>e.setSegView("all"))},[t[38]||(t[38]=h("All ",-1)),n("span",v3,c(e.fmt?.number(e.segCount("all"))),1)],10,y3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="active","is-empty":!e.segCount("active")}]),"aria-checked":e.segView()==="active",onClick:t[11]||(t[11]=i=>e.setSegView("active"))},[t[39]||(t[39]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[40]||(t[40]=h("Active ",-1)),n("span",w3,c(e.fmt?.number(e.segCount("active"))),1)],10,b3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="waiting","is-empty":!e.segCount("waiting")}]),"aria-checked":e.segView()==="waiting",onClick:t[12]||(t[12]=i=>e.setSegView("waiting"))},[t[41]||(t[41]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[42]||(t[42]=h("Waiting ",-1)),n("span",C3,c(e.fmt?.number(e.segCount("waiting"))),1)],10,k3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="delayed","is-empty":!e.segCount("delayed")}]),"aria-checked":e.segView()==="delayed",onClick:t[13]||(t[13]=i=>e.setSegView("delayed"))},[t[43]||(t[43]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[44]||(t[44]=h("Delayed ",-1)),n("span",S3,c(e.fmt?.number(e.segCount("delayed"))),1)],10,E3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="failed","is-empty":!e.segCount("failed")}]),"aria-checked":e.segView()==="failed",onClick:t[14]||(t[14]=i=>e.setSegView("failed"))},[t[45]||(t[45]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[46]||(t[46]=h("Failed ",-1)),n("span",R3,c(e.fmt?.number(e.segCount("failed"))),1)],10,N3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="completed","is-empty":!e.segCount("completed")}]),"aria-checked":e.segView()==="completed",onClick:t[15]||(t[15]=i=>e.setSegView("completed"))},[t[47]||(t[47]=n("span",{class:"seg-dot done","aria-hidden":"true"},null,-1)),t[48]||(t[48]=h("Completed ",-1)),n("span",P3,c(e.fmt?.number(e.segCount("completed"))),1)],10,T3)])]),n("div",D3,[O(n("input",A3,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",I3,[O(n("input",O3,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[49]||(t[49]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[16]||(t[16]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(a(),l("table",M3,[t[69]||(t[69]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job"),n("th",null,"Detail"),n("th",null,"Attempts"),n("th",{class:"q-th-num"},"Duration"),n("th",null,"Progress"),n("th")])],-1)),(a(!0),l(N,null,U(e.filteredJobs(),(i,r)=>(a(),l("tbody",null,[n("tr",{style:{cursor:"pointer"},class:T({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:o=>e.toggleJob(i)},[n("td",q3,[n("span",{textContent:c(i?._state),class:T("q-state-badge q-state-"+i?._state)},null,10,L3),i?._state=="delayed"&&i?.delayUntil?(a(),l("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(i?.delayUntil))},null,8,$3)):f("v-if",!0)]),n("td",{class:"q-cell-id",title:"job:"+i?.id+(i?.name&&i?.name!==i?.id?" \xB7 "+i.name:"")+(i?.data?.repoId&&i?.data?.repoId!==i?.id?" \xB7 "+i.data.repoId:"")},[(a(),l("svg",{class:T(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",class:"q-job-link",textContent:c(i?.data?.repoId||i?.id),onClick:t[17]||(t[17]=o=>o.stopPropagation()),href:e.safeUrl("/r/"+(i?.data?.repoId||i?.id))},null,8,U3)],8,F3),n("td",{class:T(["q-cell-detail",{"is-error":i?._state=="failed"}]),title:i?._state=="failed"?i?.failedReason:"",textContent:c(e.jobDetail(i))},null,10,B3),n("td",{class:"q-cell-num",textContent:c(i?.attemptsMade||1)},null,8,H3),n("td",{class:"q-cell-num q-cell-duration",textContent:c(e.jobDuration(i))},null,8,z3),n("td",j3,[n("div",{class:T(["q-progress-wrap",{"is-indeterminate":e.jobProgressPct(i)===null}]),"aria-label":e.jobProgressPct(i)===null?"Progress not reported":e.jobProgressPct(i)+"% done"},[n("div",{class:"q-progress-bar",style:De({"--pct":(e.jobProgressPct(i)||0)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(i)===null?"\u2014":e.jobProgressPct(i)+"%")},null,8,G3)],10,_3)]),n("td",W3,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:o=>{e.retryJob(i),o.stopPropagation()},"aria-label":"Retry job"},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,K3)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:o=>{e.removeJob(i),o.stopPropagation()}},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Y3)])],10,V3),e.expanded[i?.id]?(a(),l("tr",X3,[n("td",Q3,[n("div",J3,[n("div",Z3,[n("div",x3,[t[54]||(t[54]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",eP,[n("a",{target:"_blank",textContent:c(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,tP)])]),n("div",nP,[t[55]||(t[55]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",sP,[n("span",{textContent:c(i?._state),class:T("q-state-badge q-state-"+i?._state)},null,10,oP)])]),i?.data?.repoId?(a(),l("div",iP,[t[56]||(t[56]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.data?.repoId)},null,8,rP)])):f("v-if",!0),i?.timestamp?(a(),l("div",aP,[t[57]||(t[57]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.timestamp))},null,8,lP)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(a(),l("div",dP,[t[58]||(t[58]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",uP,c(e.humanTime(i?.delayUntil))+" ("+c(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(a(),l("div",cP,[t[59]||(t[59]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.processedOn))},null,8,pP)])):f("v-if",!0),i?.finishedOn?(a(),l("div",fP,[t[60]||(t[60]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.finishedOn))},null,8,mP)])):f("v-if",!0),i?.attemptsMade?(a(),l("div",hP,[t[61]||(t[61]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.attemptsMade)},null,8,gP)])):f("v-if",!0),i?.progress&&i?.progress?.status?(a(),l("div",yP,[t[62]||(t[62]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.progress?.status)},null,8,vP)])):f("v-if",!0),e.jobProgressPct(i)!==null?(a(),l("div",bP,[t[63]||(t[63]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(i)+"%")},null,8,wP)])):f("v-if",!0)]),i?.failedReason?(a(),l("div",kP,[t[64]||(t[64]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:c(i?.failedReason)},null,8,CP)])):f("v-if",!0),i?.stacktrace?.length?(a(),l("div",EP,[t[65]||(t[65]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(a(!0),l(N,null,U(i?.stacktrace,(o,u)=>(a(),l("pre",{class:"q-error-stack",key:u},[n("code",{textContent:c(o)},null,8,SP)]))),128))])):f("v-if",!0),n("div",NP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm",onClick:o=>e.retryJob(i)},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Retry",-1)])],8,RP)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:o=>e.removeJob(i)},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,TP),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),h(" View repo",-1)])],8,PP)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(a(),l("div",DP,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(a(),l("span",AP,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(a(),l("span",IP,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var OP={class:"container paper-page admin-page"},MP={class:"seg-bar"},VP={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},qP=["aria-checked"],LP={class:"count"},$P=["aria-checked"],FP={class:"count"},UP=["aria-checked"],BP={class:"count"},HP=["aria-checked"],zP={class:"count"},jP=["aria-checked"],_P={class:"count"},GP=["aria-checked"],WP={class:"count"},KP={class:"seg-countline",role:"status"},YP={class:"seg-meta"},XP={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},QP={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},JP=["aria-expanded"],ZP={class:"search-wrap"},xP={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},eD={key:0,class:"admin-search-hint"},tD={class:"admin-filter-inline"},nD={type:"text",class:"form-control form-control-sm",placeholder:"username"},sD={class:"admin-filter-inline"},oD={type:"text",class:"form-control form-control-sm",placeholder:"ID"},iD={key:0,class:"admin-filter-inline","aria-label":"Pagination"},rD=["disabled"],aD={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},lD=["disabled"],dD={key:0,class:"admin-filter-row"},uD={class:"admin-active-chips"},cD={class:"key"},pD=["onClick"],fD={key:1,class:"bulk-bar"},mD=["aria-busy"],hD={class:"paper-table-head",role:"row"},gD={role:"columnheader",style:{width:"28px"}},yD=["checked"],vD={role:"columnheader"},bD={role:"columnheader"},wD={role:"columnheader",class:"num"},kD={role:"columnheader"},CD={role:"cell",style:{width:"28px"}},ED={type:"checkbox","aria-label":"Select repository"},SD={class:"cell-anon",role:"cell"},ND={class:"anon-text"},RD=["textContent","href"],TD=["title"],PD=["href"],DD=["textContent"],AD=["textContent"],ID=["data-meta-label"],OD=["title","textContent","href"],MD=["data-meta-label"],VD=["textContent","href"],qD=["data-meta-label"],LD={key:3,class:"meta-item"},$D={class:"meta-item"},FD={class:"cell-status",role:"cell"},UD={class:"status-line"},BD=["textContent"],HD=["textContent","title"],zD=["data-unit"],jD=["textContent"],_D={class:"cell-expires",role:"cell"},GD=["textContent"],WD={class:"cell-actions",role:"cell"},KD={class:"dropdown"},YD={class:"dropdown-menu dropdown-menu-right"},XD=["href"],QD=["href"],JD=["href"],ZD=["onClick"],xD=["onClick"],eA=["onClick"],tA=["onClick"],nA=["onClick"],sA=["onClick"],oA={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},iA={key:0,class:"paper-table-empty"},rA={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},aA={key:0,class:"pagination-compact"},lA=["disabled"],dA=["max"],uA=["disabled"],cA={class:"admin-filter-inline"},pA={class:"form-control form-control-sm"};function qf(e,t){let s=_e("partial-view"),i=Le("field"),r=Le("form");return a(),l("div",OP,[t[81]||(t[81]=Pe('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",MP,[n("div",VP,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=h("All ",-1)),n("span",LP,c(e.fmt?.number(e.segCount("all"))),1)],10,qP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=h("Ready ",-1)),n("span",FP,c(e.fmt?.number(e.segCount("ready"))),1)],10,$P),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=h("Preparing ",-1)),n("span",BP,c(e.fmt?.number(e.segCount("preparing"))),1)],10,UP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=h("Error ",-1)),n("span",zP,c(e.fmt?.number(e.segCount("error"))),1)],10,HP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=h("Expiring / expired ",-1)),n("span",_P,c(e.fmt?.number(e.segCount("expired"))),1)],10,jP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=h("Removing / removed ",-1)),n("span",WP,c(e.fmt?.number(e.segCount("removed"))),1)],10,GP)]),n("p",KP,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=h(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",YP,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",XP,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",QP,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,JP),n("div",{class:T(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",ZP,[O(n("input",xP,null,512),[[i,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",eD,"/"))]),n("span",tD,[t[35]||(t[35]=n("label",null,"Owner",-1)),O(n("input",nD,null,512),[[i,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",sD,[t[36]||(t[36]=n("label",null,"Conference",-1)),O(n("input",oD,null,512),[[i,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",iD,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,rD),n("span",aD,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,lD)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",dD,[n("div",uD,[(a(!0),l(N,null,U(e.chips,(o,u)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",cD,c(o?.label),1),n("span",null,c(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:p=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,pD)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(a(),l("div",fD,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[42]||(t[42]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),$e(s,{name:"partials/admin/entityErrors.htm",state:e.viewState},null,8,["state"]),n("div",{class:T(["paper-table paper-table-repos has-bulk w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Repositories","aria-busy":e.listLoading?"true":"false"},[n("div",hD,[n("div",gD,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,yD)]),n("div",vD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",bD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",wD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",kD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredRepositories,(o,u)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",CD,[O(n("input",ED,null,512),[[i,{state:e.viewState,set:p=>{e.selected[o.repoId]=p},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",SD,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",ND,[n("a",{class:"repo-name",target:"_blank",textContent:c(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,RD),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:c((p=>p.length>16?p.slice(0,14)+"\u2026":p)((o?.source?.repositoryName||"").split("/")[0]))},null,8,DD)):f("v-if",!0),n("span",{class:"src-repo",textContent:c((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,AD)],8,PD),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:c(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,OD)],8,ID)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:c(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,VD)],8,MD)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(o?.conference),1)],8,qD)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",LD,c(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",$D,c(e.fmt?.number(o?.options?.terms?.length))+" "+c(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,TD)])]),n("div",FD,[n("span",UD,[n("span",{class:T(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(o?.status))},null,8,BD)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,HD)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=h()),n("span",{textContent:c(e.fmt?.number(o?.pageView||0))},null,8,jD)],8,zD),n("div",_D,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=h()),n("span",{textContent:c((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,GD)]),n("div",WD,[n("div",KD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",YD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,XD),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,QD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,JD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,ZD),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,xD),[[te,o?.status=="ready"||o?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,eA),[[te,o?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,tA),[[te,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,nA),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(p=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,sA),[[te,o?.status=="ready"]])])])])],2))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],o=>(a(),l(N,{key:"skeleton-"+o},[!e.listLoaded||e.listLoading&&e.filteredRepositories?.length==0?(a(),l("div",oA,[...t[73]||(t[73]=[n("div",{role:"cell",style:{width:"28px"}},null,-1),n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredRepositories?.length==0?(a(),l("div",iA,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[75]||(t[75]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)],10,mD),n("div",rA,[t[80]||(t[80]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",aA,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous ",-1)])],8,lA),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,dA),[[i,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[77]||(t[77]=[h(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,uA)])):f("v-if",!0),n("span",cA,[t[79]||(t[79]=n("label",null,"Per page",-1)),O((a(),l("select",pA,[...t[78]||(t[78]=[Pe('',5)])])),[[i,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var fA={class:"container paper-page admin-page"},mA={class:"paper-crumbs"},hA={class:"here"},gA={class:"paper-page-title"},yA={key:0,class:"user-detail-card"},vA={class:"user-header"},bA=["src"],wA={class:"user-header-status"},kA={class:"status-dot-wrap"},CA=["textContent"],EA={key:0,class:"type-badge type-repo"},SA={class:"user-actions",style:{"margin-top":"4px"}},NA={class:"user-detail-grid"},RA={class:"detail-value mono-id"},TA={class:"detail-value"},PA=["href"],DA={class:"detail-value"},AA={class:"detail-value"},IA={key:0},OA={key:1,class:"text-muted"},MA={class:"detail-value"},VA={key:0,style:{"margin-top":"20px"}},qA={class:"paper-table w-100",style:{"margin-top":"10px"}},LA={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},$A={class:"cell-anon",role:"cell"},FA={class:"anon-text"},UA=["textContent"],BA={class:"cell-expires",role:"cell"},HA={key:1,class:"admin-section-header"},zA={class:"section-count"},jA={key:2,class:"user-detail-card"},_A={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},GA={key:0,class:"alert alert-warning",role:"alert"},WA={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},KA={key:1,class:"paper-table w-100"},YA={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},XA=["textContent"],QA=["textContent"],JA={role:"cell"},ZA={key:0},xA={key:1,class:"text-muted"},eI={role:"cell"},tI=["onClick"],nI={key:2,class:"paper-table-empty"},sI={class:"admin-section-header"},oI={class:"section-count"},iI={class:"seg-bar"},rI={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},aI=["aria-checked"],lI={class:"count"},dI=["aria-checked"],uI={class:"count"},cI=["aria-checked"],pI={class:"count"},fI=["aria-checked"],mI={class:"count"},hI=["aria-checked"],gI={class:"count"},yI=["aria-checked"],vI={class:"count"},bI={class:"seg-countline",role:"status"},wI={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},kI={class:"admin-filter-row"},CI={class:"search-wrap"},EI={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},SI={key:3,class:"bulk-bar"},NI={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},RI={class:"paper-table-head",role:"row"},TI={role:"columnheader",style:{width:"28px"}},PI=["checked"],DI={role:"columnheader"},AI={role:"columnheader"},II={role:"columnheader",class:"num"},OI={role:"columnheader"},MI={role:"cell",style:{width:"28px"}},VI={type:"checkbox","aria-label":"Select repository"},qI={class:"cell-anon",role:"cell"},LI={class:"anon-text"},$I=["textContent","href"],FI=["title"],UI=["href"],BI=["textContent"],HI=["textContent"],zI=["data-meta-label"],jI=["title","textContent","href"],_I=["data-meta-label"],GI=["textContent","href"],WI=["data-meta-label"],KI={key:3,class:"meta-item"},YI={class:"meta-item"},XI={class:"cell-status",role:"cell"},QI={class:"status-line"},JI=["textContent"],ZI=["textContent","title"],xI=["data-unit","textContent"],e8=["textContent"],t8={class:"cell-actions",role:"cell"},n8={class:"dropdown"},s8={class:"dropdown-menu dropdown-menu-right"},o8=["href"],i8=["href"],r8=["href"],a8=["onClick"],l8=["onClick"],d8=["onClick"],u8=["onClick"],c8=["onClick"],p8=["onClick"],f8={key:0,class:"paper-table-empty"};function Lf(e,t){let s=_e("partial-view"),i=Le("field"),r=Le("form");return a(),l("div",fA,[n("div",mA,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=h(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=h(" \xA0/\xA0 ",-1)),n("span",hA,c(e.userInfo?.username||"Profile"),1)]),n("h1",gA,c(e.userInfo?.username||"User"),1),t[93]||(t[93]=Pe('',1)),e.userInfo?(a(),l("div",yA,[n("div",vA,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,bA)):f("v-if",!0),n("div",null,[n("div",wA,[n("span",kA,[n("span",{class:T(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,CA)]),e.userInfo?.isAdmin?(a(),l("span",EA,"Admin")):f("v-if",!0)]),n("div",SA,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),h(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",NA,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",RA,c(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:T(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},c(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:T(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},c(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",TA,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),h(" "+c(e.userInfo?.username),1)],8,PA)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",DA,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",AA,[e.userInfo?.accessTokenDates?.github?(a(),l("span",IA,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",OA,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",MA,[h(c(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",VA,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",qA,[(a(!0),l(N,null,U(e.userInfo?.repositories,(o,u)=>(a(),l("div",LA,[n("div",$A,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",FA,[n("span",{class:"repo-name",textContent:c(o?.name)},null,8,UA)])]),n("div",BA,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),h(" "+c(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),$e(s,{name:"partials/admin/entityErrors.htm",state:e.viewState},null,8,["state"]),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",HA,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),h(" API tokens")],-1)),n("span",zA,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",jA,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[h("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),h(" to authenticate without GitHub OAuth (useful for development).")],-1)),O((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=de(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[O(n("input",_A,null,512),[[i,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),h(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",GA,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",WA,c(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",KA,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(N,null,U(e.tokens,(o,u)=>(a(),l("div",YA,[n("div",{role:"cell",textContent:c(o?.name)},null,8,XA),n("div",{role:"cell",textContent:c(e.fmt?.humanTime(o?.createdAt))},null,8,QA),n("div",JA,[o?.lastUsedAt?(a(),l("span",ZA,c(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",xA,"never"))]),n("div",eI,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:p=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,tI)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",nI,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",sI,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),h(" Anonymized repositories")],-1)),n("span",oI,c(e.repositories?.length),1)]),n("div",iI,[n("div",rI,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=h("All ",-1)),n("span",lI,c(e.fmt?.number(e.segCount("all"))),1)],10,aI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=h("Ready ",-1)),n("span",uI,c(e.fmt?.number(e.segCount("ready"))),1)],10,dI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=h("Preparing ",-1)),n("span",pI,c(e.fmt?.number(e.segCount("preparing"))),1)],10,cI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=h("Error ",-1)),n("span",mI,c(e.fmt?.number(e.segCount("error"))),1)],10,fI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=h("Expiring / expired ",-1)),n("span",gI,c(e.fmt?.number(e.segCount("expired"))),1)],10,hI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=h("Removing / removed ",-1)),n("span",vI,c(e.fmt?.number(e.segCount("removed"))),1)],10,yI)]),n("p",bI,[n("strong",null,c(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=h(" shown",-1))])]),O((a(),l("form",wI,[n("div",kI,[n("div",CI,[O(n("input",EI,null,512),[[i,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(a(),l("div",SI,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[65]||(t[65]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",NI,[n("div",RI,[n("div",TI,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,PI)]),n("div",DI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",AI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",II,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",OI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredRepositories,(o,u)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",MI,[O(n("input",VI,null,512),[[i,{state:e.viewState,set:p=>{e.selected[o.repoId]=p},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",qI,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",LI,[n("a",{class:"repo-name",target:"_blank",textContent:c(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,$I),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:c((p=>p.length>16?p.slice(0,14)+"\u2026":p)((o?.source?.fullName||"").split("/")[0]))},null,8,BI)):f("v-if",!0),n("span",{class:"src-repo",textContent:c((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,HI)],8,UI),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:c(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,jI)],8,zI)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:c(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,GI)],8,_I)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(o?.conference),1)],8,WI)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",KI,c(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",YI,c(e.fmt?.number(o?.options?.terms?.length))+" "+c(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,FI)])]),n("div",XI,[n("span",QI,[n("span",{class:T(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(o?.status))},null,8,JI)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,ZI)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:c(e.fmt?.number(o?.pageView||0))},null,8,xI),n("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(o?.anonymizeDate))},null,8,e8),n("div",t8,[n("div",n8,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",s8,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,o8),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,i8),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,r8)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,a8),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,l8),[[te,o?.status=="ready"||o?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,d8),[[te,o?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,u8),[[te,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,c8),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(p=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,p8),[[te,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",f8,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var m8={class:"container paper-page admin-page"},h8={class:"seg-bar"},g8={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},y8=["aria-checked"],v8={class:"count"},b8=["aria-checked"],w8={class:"count"},k8=["aria-checked"],C8={class:"count"},E8=["aria-checked"],S8={class:"count"},N8={class:"seg-countline",role:"status"},R8={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},T8={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},P8={class:"admin-filter-row"},D8={class:"search-wrap"},A8={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},I8={key:0,class:"admin-search-hint"},O8={class:"admin-filter-inline"},M8={class:"form-control form-control-sm"},V8={key:0,class:"admin-filter-inline","aria-label":"Pagination"},q8=["disabled"],L8={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$8=["disabled"],F8={key:0,class:"admin-filter-row"},U8={class:"admin-active-chips"},B8={class:"key"},H8=["onClick"],z8={key:1,class:"bulk-bar"},j8=["aria-busy"],_8={class:"paper-table-head admin-users-row",role:"row"},G8={role:"columnheader",style:{width:"28px"}},W8=["checked"],K8={role:"columnheader"},Y8={role:"columnheader"},X8={role:"cell",style:{width:"28px"}},Q8={type:"checkbox","aria-label":"Select user"},J8={class:"cell-anon",role:"cell"},Z8=["src"],x8={key:1,class:"avatar-fallback","aria-hidden":"true"},eO={class:"anon-text"},tO={class:"user-name-line"},nO=["textContent","href"],sO=["href","title","aria-label"],oO={class:"anon-sub meta-dots"},iO=["title"],rO={key:1},aO={class:"cell-views num",role:"cell"},lO=["title","textContent","href"],dO={class:"cell-status",role:"cell"},uO=["textContent"],cO={class:"cell-status",role:"cell"},pO={key:0,class:"role-pill"},fO={key:1,class:"empty-dash"},mO={class:"cell-actions",role:"cell"},hO={class:"dropdown"},gO={class:"dropdown-menu dropdown-menu-right"},yO=["href"],vO=["href"],bO=["onClick"],wO=["onClick"],kO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},CO={key:0,class:"paper-table-empty"},EO={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},SO={key:0,class:"pagination-compact"},NO=["disabled"],RO=["max"],TO=["disabled"],PO={class:"admin-filter-inline"},DO={class:"form-control form-control-sm"};function $f(e,t){let s=Le("field"),i=Le("form");return a(),l("div",m8,[t[54]||(t[54]=Pe('
Admin \xA0/\xA0 Users

Users

',3)),n("div",h8,[n("div",g8,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=r=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=h("All ",-1)),n("span",v8,c(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,y8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=r=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Active ",-1)),n("span",w8,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,b8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=r=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Banned ",-1)),n("span",C8,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,k8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=r=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Removed ",-1)),n("span",S8,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,E8)]),n("p",N8,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=h(" shown",-1))])]),e.fetchError?(a(),l("div",R8,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",T8,[n("div",P8,[n("div",D8,[O(n("input",A8,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",I8,"/"))]),n("span",O8,[t[24]||(t[24]=n("label",null,"Role",-1)),O((a(),l("select",M8,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.role=r},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=r=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",V8,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,q8),n("span",L8,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$8)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",F8,[n("div",U8,[(a(!0),l(N,null,U(e.chips,(r,o)=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",B8,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,H8)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",z8,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[30]||(t[30]=h(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=r=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=r=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",{class:T(["paper-table w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Users","aria-busy":e.listLoading?"true":"false",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},[n("div",_8,[n("div",G8,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=r=>e.selectAllOnPage()),checked:e.allSelected},null,8,W8)]),n("div",K8,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=r=>e.sortBy("username"))},[t[33]||(t[33]=h("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",Y8,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=r=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredUsers,(r,o)=>(a(),l("div",{class:T(["paper-table-row admin-users-row",{"row-selected":e.selected[r?.username]}]),role:"row"},[n("div",X8,[O(n("input",Q8,null,512),[[s,{state:e.viewState,set:u=>{e.selected[r.username]=u},value:e.selected[r?.username],form:null,options:{}}]])]),n("div",J8,[r?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(r?.photo)},null,8,Z8)):(a(),l("span",x8,c((r?.username||"?").charAt(0).toUpperCase()),1)),n("div",eO,[n("span",tO,[n("a",{class:"repo-name",textContent:c(r?.username),href:e.safeUrl("/admin/users/"+r?.username)},null,8,nO),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+r?.username),title:r?.username+" on GitHub","aria-label":r?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,sO)]),n("div",oO,[r?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:r?.emails?.[0]?.email},c(r?.emails?.[0]?.email),9,iO)):f("v-if",!0),r?.dateOfEntry?(a(),l("span",rO,"Joined "+c(e.fmt?.humanTime(r?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",aO,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:r?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:c(r?.repoCount?e.fmt?.number(r.repoCount):"Not synced"),class:T({"is-unsynced":!r?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+r?.username)},null,10,lO)]),n("div",dO,[n("span",{class:T(["status-dot","st-"+(r?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.title(r?.status))},null,8,uO)]),n("div",cO,[r?.isAdmin?(a(),l("span",pO,"Admin")):f("v-if",!0),r?.isAdmin?f("v-if",!0):(a(),l("span",fO,"\u2014"))]),n("div",mO,[n("div",hO,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",gO,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+r?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View details",-1)])],8,yO),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+r?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,vO),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.banUser(r),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])],8,bO),[[te,r?.status=="active"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.activateUser(r),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])],8,wO),[[te,r?.status=="removed"||r?.status=="banned"]])])])])],2))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],r=>(a(),l(N,{key:"skeleton-"+r},[!e.listLoaded||e.listLoading&&e.filteredUsers?.length==0?(a(),l("div",kO,[...t[47]||(t[47]=[n("div",{role:"cell",style:{width:"28px"}},null,-1),n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredUsers?.length==0?(a(),l("div",CO,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)],10,j8),n("div",EO,[t[53]||(t[53]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",SO,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[49]||(t[49]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,NO),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,RO),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[50]||(t[50]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,TO)])):f("v-if",!0),n("span",PO,[t[52]||(t[52]=n("label",null,"Per page",-1)),O((a(),l("select",DO,[...t[51]||(t[51]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])])}var AO={class:"anonymize-landing"},IO={class:"anonymize-landing-inner"},OO={class:"form-group mt-4 mb-2"},MO={class:"source-url-label-row"},VO={key:0,class:"repo-access","aria-label":"GitHub access"},qO={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},LO=["aria-pressed","disabled"],$O=["aria-pressed","disabled"],FO={key:1,class:"connection-badge"},UO={class:"landing-url-row"},BO={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},HO=["aria-disabled"],zO={key:0,class:"text-danger",role:"alert"},jO={class:"repo-picker","aria-labelledby":"repo-picker-title"},_O={class:"repo-picker-head"},GO={class:"repo-picker-title"},WO={key:0,class:"repo-picker-count",role:"status"},KO=["title"],YO={class:"repo-picker-tools"},XO=["aria-busy","title"],QO={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},JO={class:"repo-picker-row is-skeleton","aria-hidden":"true"},ZO={key:1,class:"repo-picker-list"},xO=["onMouseenter"],e5={class:"repo-picker-owner"},t5={class:"repo-picker-repo"},n5=["onClick","aria-label"],s5={key:2,class:"repo-picker-state",role:"status"},o5={key:3,class:"repo-picker-state"},i5={key:4,class:"repo-picker-state",role:"alert"},r5={key:5,class:"repo-picker-foot"},a5={key:0,class:"repo-picker-access"},l5={key:1,class:"connection-link",href:"/connections"},d5={key:1,class:"repo-picker-pagination","aria-label":"Repository pages"},u5=["disabled"],c5={class:"repo-picker-count",role:"status"},p5=["disabled","aria-label","title"],f5={key:0},m5={class:"anonymize-workspace"},h5={class:"anonymize-topbar"},g5={class:"anonymize-topbar-inner"},y5={class:"paper-crumbs"},v5={class:"here"},b5={class:"anonymize-topbar-head"},w5={class:"paper-page-title anonymize-topbar-title"},k5={key:0},C5={key:1},E5={class:"paper-page-lede anonymize-topbar-lede"},S5={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},N5={key:0,class:"alert alert-info",role:"status"},R5={key:1,class:"alert alert-info",role:"status"},T5={key:1},P5={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},D5=["aria-selected","tabindex"],A5=["aria-selected","tabindex"],I5={class:"anonymize-split"},O5=["role","aria-labelledby"],M5={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},V5={class:"anonymize-fields"},q5={class:"paper-settings-section"},L5={class:"form-group"},$5={class:"source-url-label-row"},F5={key:0,class:"repo-access","aria-label":"GitHub access"},U5={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},B5=["aria-pressed","disabled"],H5=["aria-pressed","disabled"],z5={key:1,class:"connection-badge"},j5=["disabled"],_5={key:0,class:"source-summary"},G5={key:1,class:"source-error",role:"alert"},W5={class:"invalid-feedback"},K5={key:0,class:"source-error-note"},Y5={key:1,class:"repo-access-controls"},X5={key:1,class:"btn btn-ink",href:"/connections"},Q5={key:2,class:"btn btn-ink",href:"/dashboard"},J5={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},Z5={key:0,class:"form-group"},x5=["value"],e6={key:1},t6={class:"repo-access-controls"},n6=["href"],s6={key:1,class:"repo-access-details","aria-label":"Publication"},o6={class:"repo-access-note"},i6={key:2,class:"form-text text-muted source-public-note"},r6=["open"],a6={key:0,class:"repair-step"},l6=["disabled"],d6={key:0,role:"status"},u6={class:"repair-step"},c6={key:0,role:"status"},p6={key:4,class:"form-grid-2"},f6={class:"form-group"},m6={class:"input-group"},h6={class:"form-control",id:"branch",name:"branch"},g6=["textContent","value"],y6={class:"input-group-append"},v6={class:"form-group"},b6=["disabled"],w6={class:"invalid-feedback"},k6={class:"invalid-feedback"},C6={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},E6={class:"form-check-label",for:"update"},S6={key:0,class:"paid-tag"},N6={key:0,class:"form-text text-muted",id:"update-help"},R6={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},T6={class:"paper-settings-section"},P6={class:"form-group"},D6=["disabled"],A6={class:"form-text text-muted anon-url-echo"},I6={class:"anon-url-id"},O6={class:"invalid-feedback"},M6={class:"form-group"},V6=["disabled"],q6={class:"form-text text-muted anon-url-echo"},L6={class:"anon-url-id"},$6={class:"invalid-feedback"},F6={class:"form-group"},U6=["disabled"],B6={class:"form-text text-muted anon-url-echo"},H6={class:"anon-url-id"},z6={class:"invalid-feedback"},j6={class:"form-group"},_6=["rows"],G6={class:"redaction-syntax"},W6={class:"form-text text-muted"},K6=["onClick"],Y6={key:0,class:"term-hint-more"},X6={class:"invalid-feedback"},Q6={class:"preserve-row"},J6={class:"preserve-row-text"},Z6={class:"preserve-row-value"},x6=["disabled"],eM={class:"preserve-tree"},tM={key:0,class:"preserve-status"},nM={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sM=["aria-expanded","aria-label","onClick"],oM={key:1,class:"preserve-caret-space"},iM=["id","aria-label","checked",".indeterminate","disabled","onChange"],rM=["for","onClick"],aM={key:2,class:"preserve-note"},lM={key:0,class:"preserve-status"},dM={key:0,class:"preserve-status"},uM=["open"],cM={class:"preserve-foot"},pM={class:"preserve-count","aria-live":"polite"},fM={class:"preserve-actions"},mM={class:"paper-settings-section"},hM={class:"form-check"},gM={class:"form-check-input",type:"checkbox",id:"link",name:"link"},yM={class:"form-check"},vM={class:"form-check-input",type:"checkbox",id:"image",name:"image"},bM={class:"form-check"},wM={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},kM={class:"form-check"},CM={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},EM={class:"form-check"},SM=["disabled"],NM={key:0,class:"form-text text-muted"},RM={key:1,class:"form-text text-muted"},TM={key:0,class:"form-text text-muted"},PM={class:"form-check"},DM={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},AM={class:"form-check"},IM={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},OM={class:"form-check"},MM={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},VM={class:"form-check"},qM={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},LM={class:"form-check"},$M={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},FM={class:"form-check"},UM={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},BM={class:"form-check"},HM={class:"form-check-input",type:"checkbox",id:"title",name:"title"},zM={class:"form-check"},jM={class:"form-check-input",type:"checkbox",id:"body",name:"body"},_M={class:"form-check"},GM={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},WM={class:"form-check"},KM={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},YM={class:"form-check"},XM={class:"form-check-input",type:"checkbox",id:"username",name:"username"},QM={class:"form-check"},JM={class:"form-check-input",type:"checkbox",id:"date",name:"date"},ZM={class:"form-check"},xM={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},eV={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},tV={class:"form-group conference-field"},nV=["href"],sV={class:"invalid-feedback"},oV={class:"form-text text-muted"},iV={key:0,class:"hosting-usage"},rV={key:0},aV={key:1},lV={key:2},dV={key:1,class:"hosting-limit auto-update-note",role:"status"},uV={key:2,class:"hosting-payment"},cV={key:0,class:"hosting-limit",role:"status"},pV={key:1,class:"hosting-options"},fV={class:"hosting-options-title"},mV=["value","checked","onChange"],hV={class:"hosting-option-body"},gV={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},yV=["aria-checked","onClick"],vV={key:0,class:"billing-toggle-save"},bV={class:"hosting-option-price"},wV={key:2,role:"status"},kV={key:3,class:"hosting-terms"},CV={key:4,class:"hosting-terms"},EV={key:5,class:"capacity-options"},SV=["disabled"],NV={key:3,class:"hosting-subhead"},RV={class:"expiration-choices"},TV={class:"expiration-choice-row"},PV={class:"expiration-choice"},DV=["checked","disabled"],AV={key:0,class:"dated-options"},IV={key:0,class:"expiry-meta","aria-live":"polite"},OV={class:"expiry-meta-note"},MV=["min","max"],VV={key:0,class:"date-echo","aria-live":"polite"},qV={class:"invalid-feedback"},LV={class:"invalid-feedback"},$V={class:"hosting-property"},FV={key:1,class:"expiration-choice"},UV=["checked","disabled"],BV={key:0},HV={key:4,class:"form-text text-muted"},zV={key:5,class:"inline-hosting"},jV={key:0,role:"alert",class:"text-danger"},_V={key:1,role:"alert",class:"text-danger"},GV=["disabled"],WV={key:2,role:"status"},KV={key:3,role:"status",class:"form-text text-muted"},YV={key:4,class:"hosting-terms"},XV={key:5,class:"hosting-terms"},QV={key:6,class:"repository-pass"},JV=["disabled","onClick"],ZV={class:"paper-settings-section"},xV={class:"form-group"},eq={style:{position:"relative"}},tq={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},nq={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},sq=["onClick"],oq=["src"],iq=["textContent"],rq=["textContent"],aq={class:"coauthor-list"},lq={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},dq=["src"],uq=["textContent","href"],cq=["onClick"],pq={class:"form-text text-muted"},fq=["textContent"],mq={class:"anonymize-submit-bar"},hq=["disabled"],gq=["disabled"],yq=["disabled"],vq=["disabled"],bq=["disabled"],wq=["disabled"],kq={key:5,class:"submit-reason",role:"status"},Cq={key:6,class:"checkout-return-note"},Eq={key:7,class:"draft-status",role:"status"},Sq={key:8,class:"draft-status"},Nq=["role","aria-labelledby"],Rq={class:"rp-caption"},Tq=["aria-expanded"],Pq=["title"],Dq={class:"redact-slot","aria-hidden":"true"},Aq={key:4,class:"rp-count rp-count-none"},Iq=["href"],Oq=["aria-pressed"],Mq={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},Vq={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},qq={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},Lq={class:"rp-window"},$q={class:"rp-chrome","aria-hidden":"true"},Fq={class:"rp-url"},Uq={class:"rp-bar","aria-hidden":"true"},Bq={key:0,class:"rp-bar-id"},Hq={key:1,class:"rp-bar-kind"},zq={class:"leftCol-head"},jq={class:"leftCol-body"},_q={key:0,class:"rp-state rp-loading",role:"status"},Gq={class:"rp-state-text"},Wq={class:"rp-state rp-error"},Kq={key:0,class:"rp-state-actions"},Yq={key:1,class:"btn btn-ink btn-sm",href:"/connections"},Xq={key:2,class:"btn btn-ink btn-sm",href:"/dashboard"},Qq={class:"rp-state rp-error",role:"alert"},Jq={class:"rp-state-actions"},Zq={class:"rp-state rp-error",role:"alert"},xq={class:"rp-state-actions"},eL={key:4,class:"rp-state rp-empty"},tL={key:6,class:"anonymize-preview-body"},nL={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},sL={class:"pr-title mb-1"},oL={key:0},iL=["textContent"],rL={key:0},aL={key:1},lL={key:2},dL={class:"pr-comments mt-3"},uL={class:"pr-comment"},cL={class:"pr-comment-head"},pL=["textContent"],fL={key:0,class:"pr-comment-date"},mL={key:3},hL={class:"pr-comments"},gL={class:"pr-comment"},yL={class:"pr-comment-head"},vL={key:0,class:"pr-comment-author"},bL=["textContent"],wL=["textContent"],kL={key:0,class:"pr-comment-body"},CL={key:7,class:"anonymize-preview-body"},EL={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},SL={class:"pr-title mb-1"},NL={key:0},RL=["textContent"],TL={key:0},PL={key:1,class:"pr-body"},DL={key:2,class:"paper-tabs",role:"tablist"},AL=["aria-selected","tabindex"],IL=["aria-selected","tabindex"],OL=["textContent"],ML={key:3,class:"anonymize-preview-status"},VL={class:"paper-tab-content"},qL={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},LL=["innerHTML"],$L={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},FL={class:"pr-comments"},UL={class:"pr-comment"},BL={class:"pr-comment-head"},HL={key:0,class:"pr-comment-author"},zL=["textContent"],jL=["textContent"],_L={key:0,class:"pr-comment-body"},GL={key:8,class:"rp-more"},WL=["href"],KL={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function Ff(e,t){let s=_e("tree"),i=_e("partial-view"),r=_e("gist-file"),o=_e("markdown"),u=Le("field"),p=Le("form");return a(),l("div",{class:T(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),O(n("div",AO,[n("div",IO,[t[77]||(t[77]=Pe('
My work \xA0/\xA0 New anonymization

New anonymization

Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.

  1. 1. Repository
  2. 2. Review and hosting
  3. 3. Review link
',2)),n("div",OO,[n("div",MO,[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",VO,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",qO,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=d=>e.chooseGitHubConnection("github-app"))},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,LO),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=d=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,$O)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",FO,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("div",UO,[O(n("input",BO,null,512),[[u,{state:e.viewState,set:d=>{e.sourceUrl=d},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?.trim()?null:"true",onClick:t[2]||(t[2]=d=>e.sourceUrl?.trim()&&e.urlSelected())},"Continue",8,HO)])]),e.sourceUrlError?(a(),l("p",zO,c(e.sourceUrlError),1)):f("v-if",!0),t[78]||(t[78]=n("small",{class:"form-text landing-help",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),n("section",jO,[n("div",_O,[n("div",GO,[t[67]||(t[67]=n("h2",{id:"repo-picker-title"},"Your repositories",-1)),e.userReposStatus==="loading"?(a(),l("span",WO,c(e.userRepoFilter.trim()?"Searching repositories\u2026":"Loading repositories\u2026"),1)):e.userReposStatus==="ready"&&e.userReposUpdatedLabel()?(a(),l("span",{key:1,class:"repo-picker-count repo-picker-updated",role:"status",title:e.userReposUpdatedTitle()},c(e.userReposUpdatedLabel()),9,KO)):f("v-if",!0)]),n("div",YO,[O(n("input",{type:"search",class:"form-control repo-picker-filter",placeholder:"Search repositories\u2026","aria-label":"Search your repositories",autocomplete:"off",maxlength:"200","onUpdate:modelValue":t[3]||(t[3]=d=>e.userRepoFilter=d)},null,512),[[ft,e.userRepoFilter]]),e.userReposStatus==="ready"?(a(),l("button",{key:0,type:"button",class:T(["btn btn-icon repo-picker-refresh",{"is-busy":e.userReposSyncing}]),"aria-busy":e.userReposSyncing?"true":null,onClick:t[4]||(t[4]=d=>e.refreshUserRepos()),title:e.userReposWebhooks?"Refresh from GitHub":"Refresh from GitHub to see new repositories","aria-label":"Refresh your repositories from GitHub"},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],10,XO)):f("v-if",!0)])]),e.userReposStatus==="loading"||e.userReposStatus==="idle"?(a(),l("ul",QO,[(a(),l(N,null,U([1,2,3,4],(d,g)=>n("li",JO,[n("span",{class:"skeleton skeleton-line",style:De({width:34+d*9+"%"})},null,4)])),64))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length>0?(a(),l("ul",ZO,[(a(!0),l(N,null,U(e.userRepos,(d,g)=>(a(),l("li",{key:d.id||d.fullName,class:"repo-picker-row"},[t[70]||(t[70]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("span",{class:"repo-picker-name",onMouseenter:m=>e.titleIfTruncated(m,d.fullName)},[n("span",e5,[h(c(d.fullName.split("/")[0]),1),t[69]||(t[69]=n("span",{class:"repo-picker-slash"},"/",-1))]),n("span",t5,c(d.fullName.split("/").slice(1).join("/")),1)],40,xO),n("button",{type:"button",class:"btn btn-outline-ink btn-sm repo-picker-select",onClick:m=>e.selectUserRepo(d),"aria-label":"Select "+d.fullName},"Select",8,n5)]))),128))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&e.userRepoFilter.trim()?(a(),l("p",s5,c(e.userRepoNext!==null?"No matches yet. Continue searching the remaining repositories.":e.userRepoPage>1?"No more matching repositories.":"No matching repositories found."),1)):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&!e.userRepoFilter.trim()?(a(),l("p",o5,"No repositories found. Paste a URL above, or grant access below.")):f("v-if",!0),e.userReposStatus==="error"?(a(),l("p",i5,[t[71]||(t[71]=h("Your repositories could not be loaded. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[5]||(t[5]=d=>e.loadUserRepos())},"Try again")])):f("v-if",!0),f(" Footer: the access link on the left, a compact pager on the right "),e.userRepoPage>1||e.userRepoNext!==null||!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("div",r5,[!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("p",a5,[t[74]||(t[74]=h("Don\u2019t see your repository? ",-1)),e.githubConnection!=="oauth"?(a(),l("button",{key:0,type:"button",class:"connection-link",onClick:t[6]||(t[6]=d=>e.grantGitHubAccess())},[...t[72]||(t[72]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):(a(),l("a",l5,[...t[73]||(t[73]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]))])):f("v-if",!0),e.userRepoPage>1||e.userRepoNext!==null?(a(),l("nav",d5,[e.userRepoPage>1?(a(),l("button",{key:0,type:"button",class:"repo-picker-page",disabled:e.userReposStatus==="loading",onClick:t[7]||(t[7]=d=>e.changeUserRepoPage(-1)),"aria-label":"Previous page",title:"Previous page"},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,u5)):f("v-if",!0),n("span",c5,"Page "+c(e.userRepoPage),1),n("button",{type:"button",class:T(["repo-picker-page",{"has-label":e.userRepoFilter.trim()&&!e.userRepos.length}]),disabled:e.userRepoNext===null||e.userReposStatus!=="ready",onClick:t[8]||(t[8]=d=>e.changeUserRepoPage(1)),"aria-label":e.userRepoFilter.trim()&&!e.userRepos.length?"Continue search":"Next page",title:e.userRepoFilter.trim()&&!e.userRepos.length?null:"Next page"},[e.userRepoFilter.trim()&&!e.userRepos.length?(a(),l("span",f5,"Continue search")):f("v-if",!0),t[76]||(t[76]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1))],10,p5)])):f("v-if",!0)])):f("v-if",!0)])])],512),[[te,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),O(n("div",m5,[n("header",h5,[n("div",g5,[n("div",y5,[t[79]||(t[79]=n("a",{href:"/dashboard"},"My work",-1)),t[80]||(t[80]=h(" \xA0/\xA0 ",-1)),n("span",v5,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),n("div",b5,[n("h1",w5,[e.isUpdate?f("v-if",!0):(a(),l("span",k5,"New anonymization")),e.isUpdate?(a(),l("span",C5,"Edit anonymization")):f("v-if",!0)]),O(n("span",{class:T(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[te,e.detectedType]])]),n("p",E5,c(e.isUpdate?"Changes apply to the existing anonymous link; reviewers keep the same URL.":"Choose the terms to redact, what reviewers see, and when the link expires."),1),e.isUpdate?f("v-if",!0):(a(),l("ol",S5,[...t[81]||(t[81]=[n("li",null,"1. Repository",-1),n("li",{"aria-current":"step"},"2. Review and hosting",-1),n("li",null,"3. Review link",-1)])]))])]),e.detectedType==="gist"&&e.gistAppRequired?(a(),l("aside",N5,[t[82]||(t[82]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[9]||(t[9]=d=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(a(),l("aside",R5,[t[83]||(t[83]=n("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[84]||(t[84]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[10]||(t[10]=d=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(a(),l("p",T5,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",P5,[n("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[11]||(t[11]=d=>e.previewTabKeydown(d)),onClick:t[12]||(t[12]=d=>e.selectMobilePane("settings"))},[...t[85]||(t[85]=[n("span",{class:"tab-label"},"Settings",-1)])],40,D5),n("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[13]||(t[13]=d=>e.previewTabKeydown(d)),onClick:t[14]||(t[14]=d=>e.selectMobilePane("preview"))},[...t[86]||(t[86]=[n("span",{class:"tab-label"},"Reviewer preview",-1)])],40,A5)]),n("div",I5,[f(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[O((a(),l("form",M5,[n("div",V5,[n("section",q5,[t[105]||(t[105]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",L5,[n("div",$5,[t[88]||(t[88]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",F5,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",U5,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[15]||(t[15]=d=>e.chooseGitHubConnection("github-app"))},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,B5),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[16]||(t[16]=d=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,H5)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",z5,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)]),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,j5),[[u,{state:e.viewState,set:d=>{e.sourceUrl=d},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),e.sourceSummary()&&!e.anonymize?.sourceUrl?.invalid?(a(),l("p",_5,[t[89]||(t[89]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check"})],-1)),h(c(e.sourceSummary()),1)])):f("v-if",!0),e.sourceProblem()&&e.sourceProblem().kind!=="connect"?(a(),l("div",G5,[n("p",W5,c(e.sourceProblem().text),1),e.sourceProblem().note?(a(),l("p",K5,c(e.sourceProblem().note),1)):f("v-if",!0),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",Y5,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[17]||(t[17]=d=>e.grantGitHubAccess())},[...t[90]||(t[90]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",X5,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",Q5,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink",onClick:t[18]||(t[18]=d=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])):f("v-if",!0)]),!e.isUpdate&&e.previousConfigurations.length?(a(),l("aside",J5,[t[92]||(t[92]=n("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?(a(),l("div",Z5,[t[91]||(t[91]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),O(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[19]||(t[19]=d=>e.previousConfigurationId=d)},[(a(!0),l(N,null,U(e.previousConfigurations,d=>(a(),l("option",{key:d.repoId,value:d.repoId},c(d.repoId),9,x5))),128))],512),[[qt,e.previousConfigurationId]])])):(a(),l("p",e6,c(e.previousConfigurationId),1)),t[93]||(t[93]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",t6,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,n6),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=d=>e.previousConfigurations=[])},"Create a separate one")])])):f("v-if",!0),e.details&&e.sourceIsPrivate()?(a(),l("aside",s6,[n("div",o6,[n("span",null,[t[94]||(t[94]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+c(e.detectedType==="gist"?"This secret gist will be published at a public link.":"Selected content will be published, including content from private repositories."),1)])])])):e.details?(a(),l("p",i6,"Anonymized content is public.")):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("details",{key:3,class:"repair-disclosure",open:!!(e.error||e.sourceError||e.accessRepairMessage||e.reconnectRepositoryId)},[t[98]||(t[98]=n("summary",null,"Connection problems?",-1)),e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("div",a6,[t[96]||(t[96]=n("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)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[21]||(t[21]=d=>e.repairGitHubAccess())},"Repair GitHub access",8,l6),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[22]||(t[22]=d=>e.grantGitHubAccess())},[...t[95]||(t[95]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]),e.accessRepairMessage?(a(),l("p",d6,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),n("div",u6,[t[97]||(t[97]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[23]||(t[23]=d=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(a(),l("p",c6,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])],8,r6)):f("v-if",!0),e.detectedType==="repo"?O((a(),l("div",p6,[n("div",f6,[t[100]||(t[100]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",m6,[O((a(),l("select",h6,[(a(!0),l(N,null,U(e.branches,(d,g)=>(a(),l("option",{textContent:c(d?.name),value:d?.name},null,8,g6))),256))])),[[u,{state:e.viewState,set:d=>{e.source.branch=d},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",y6,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[24]||(t[24]=d=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",v6,[t[101]||(t[101]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),O(n("input",{class:T(["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,b6),[[u,{state:e.viewState,set:d=>{e.source.commit=d},value:e.source?.commit,form:"anonymize",options:{}}]]),O(n("div",w6," The commit SHA is not valid. ",512),[[te,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),O(n("div",k6," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[te,e.anonymize?.commit?.errors?.exists]])])],512)),[[te,e.sourceReady()]]):f("v-if",!0),O(n("div",{class:T(["form-check auto-update-check",{"is-paid":!e.liveUpdatesIncluded()}])},[O(n("input",C6,null,512),[[u,{state:e.viewState,set:d=>{e.options.update=d},value:e.options?.update,form:"anonymize",options:{}}]]),n("label",E6,[t[102]||(t[102]=h("Auto-update from GitHub",-1)),e.liveUpdatesIncluded()?f("v-if",!0):(a(),l("span",S6,"Paid"))]),e.liveUpdatesIncluded()?(a(),l("small",N6,"Follows the latest version, at most once an hour.")):(a(),l("small",R6,[t[103]||(t[103]=h("Needs Live updates",-1)),e.liveUpdatesPrice()?(a(),l(N,{key:0},[h(" \xB7 "+c(e.liveUpdatesPrice()),1)],64)):f("v-if",!0),t[104]||(t[104]=h(", a Paper pack or an author subscription. ",-1)),n("a",{href:"#repository-hosting",onClick:t[25]||(t[25]=de(d=>e.showHostingOptions(),["prevent"]))},"Hosting options")]))],2),[[te,e.detectedType&&e.sourceReady()]])]),O(n("section",T6,[t[139]||(t[139]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),O(n("div",P6,[t[110]||(t[110]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,D6),[[u,{state:e.viewState,set:d=>{e.repoId=d},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",A6,[t[106]||(t[106]=h("anonymous.4open.science/",-1)),t[107]||(t[107]=n("wbr",null,null,-1)),t[108]||(t[108]=h("r/",-1)),t[109]||(t[109]=n("wbr",null,null,-1)),n("span",I6,c(e.repoId),1)]),O(n("div",O6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.repoId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[te,e.anonymize?.repoId?.errors?.used]])],512),[[te,e.detectedType==="repo"]]),O(n("div",M6,[t[115]||(t[115]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,V6),[[u,{state:e.viewState,set:d=>{e.pullRequestId=d},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",q6,[t[111]||(t[111]=h("anonymous.4open.science/",-1)),t[112]||(t[112]=n("wbr",null,null,-1)),t[113]||(t[113]=h("pr/",-1)),t[114]||(t[114]=n("wbr",null,null,-1)),n("span",L6,c(e.pullRequestId),1)]),O(n("div",$6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.pullRequestId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[te,e.anonymize?.pullRequestId?.errors?.used]])],512),[[te,e.detectedType==="pr"]]),O(n("div",F6,[t[120]||(t[120]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,U6),[[u,{state:e.viewState,set:d=>{e.gistId=d},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",B6,[t[116]||(t[116]=h("anonymous.4open.science/",-1)),t[117]||(t[117]=n("wbr",null,null,-1)),t[118]||(t[118]=h("gist/",-1)),t[119]||(t[119]=n("wbr",null,null,-1)),n("span",H6,c(e.gistId),1)]),O(n("div",z6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.gistId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[te,e.anonymize?.gistId?.errors?.used]])],512),[[te,e.detectedType==="gist"]]),n("div",j6,[t[131]||(t[131]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),O(n("textarea",{class:T(["form-control terms-input",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:Math.min(14,Math.max(4,String(e.terms||"").split(` +`+c(s.event.causeStack||""),1)],64)):f("v-if",!0)])):f("v-if",!0),n("pre",null,c(e.recordJson(s.event)),1)],8,jE)):f("v-if",!0)],2))),128))]),e.trace?.events?.length?(a(),l("p",GE,[h(c(e.errPlural(e.trace.events.length,"record"))+" with this "+c(e.traceKind())+" ID",1),e.trace.state==="partial"?(a(),l(N,{key:0},[h(" (partial)")],64)):f("v-if",!0),t[96]||(t[96]=h(". External calls come from ",-1)),t[97]||(t[97]=n("code",null,"external_request",-1)),t[98]||(t[98]=h(" records; no URLs or tokens are stored. ",-1)),e.trace.grafanaUrl?(a(),l("a",{key:1,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,WE)):f("v-if",!0)])):(a(),l("p",KE,[t[99]||(t[99]=n("strong",null,"Timeline not recorded.",-1)),t[100]||(t[100]=h()),e.traceKind()?e.issueData.source!=="central"?(a(),l(N,{key:1},[h("The application history keeps single records; the timeline needs central logs.")],64)):e.trace?.state==="unreachable"?(a(),l(N,{key:2},[h("Central logs did not answer. Retry later.")],64)):(a(),l(N,{key:3},[h("Central logs returned no other record for this "+c(e.traceKind())+".",1)],64)):(a(),l(N,{key:0},[h("This record has no request or job ID, so its other records cannot be found.")],64)),t[101]||(t[101]=h(" Only this record is shown.",-1))]))],64))])):f("v-if",!0),e.requestTab==="request"?(a(),l("div",YE,[n("dl",XE,[n("div",null,[t[102]||(t[102]=n("dt",null,"Method \xB7 route",-1)),n("dd",null,[e.currentOccurrence().route||e.selectedIssue.route?(a(),l("code",QE,c(e.currentOccurrence().method||e.selectedIssue.method)+" "+c(e.currentOccurrence().route||e.selectedIssue.route),1)):(a(),l("span",JE,"not recorded"))])]),n("div",null,[t[103]||(t[103]=n("dt",null,"Path",-1)),n("dd",null,[e.currentOccurrence().requestPath?(a(),l("code",ZE,c(e.currentOccurrence().requestPath),1)):(a(),l("span",xE,"not recorded"))])]),t[110]||(t[110]=n("div",null,[n("dt",null,"Query"),n("dd",null,[n("span",{class:"errs-placeholder"},"excluded: query strings are never logged")])],-1)),n("div",null,[t[104]||(t[104]=n("dt",null,"Body",-1)),n("dd",null,[n("span",eS,c(["GET","HEAD"].includes(e.currentOccurrence().method||e.selectedIssue.method)?"none ("+(e.currentOccurrence().method||e.selectedIssue.method)+")":"not recorded"),1)])]),n("div",null,[t[105]||(t[105]=n("dt",null,"Viewer",-1)),n("dd",null,[e.currentOccurrence().viewer?(a(),l(N,{key:0},[h(c(e.viewerLabel(e.currentOccurrence().viewer)),1),e.currentOccurrence().viewer==="visitor"||e.currentOccurrence().viewer==="anonymous"?(a(),l("span",tS," \xB7 reviewers are never identified")):f("v-if",!0)],64)):(a(),l("span",nS,"not recorded"))])]),n("div",null,[t[106]||(t[106]=n("dt",null,"Repository",-1)),n("dd",null,[e.currentOccurrence().repoId?(a(),l("a",{key:0,class:"errs-mono",href:e.errRepoHref(e.currentOccurrence().repoId)},c(e.currentOccurrence().repoId),9,sS)):(a(),l("span",oS,"not recorded")),e.ownerOf(e.currentOccurrence().repoId)?.source?(a(),l("span",iS," \xB7 "+c(e.ownerOf(e.currentOccurrence().repoId).source),1)):f("v-if",!0)])]),n("div",null,[t[107]||(t[107]=n("dt",null,"User",-1)),n("dd",null,[e.currentOccurrence().userId?(a(),l("a",{key:0,href:e.errUserHref(e.currentOccurrence().userId)},c(e.userName(e.currentOccurrence().userId)?"@"+e.userName(e.currentOccurrence().userId):e.currentOccurrence().userId),9,rS)):(a(),l("span",aS,"not recorded"))])]),n("div",null,[t[108]||(t[108]=n("dt",null,"Service \xB7 release",-1)),n("dd",null,[h(c(e.currentOccurrence().service||e.selectedIssue.service||"unknown")+" \xB7 ",1),e.currentOccurrence().release&&e.currentOccurrence().release!=="unknown"?(a(),l("code",lS,c(e.currentOccurrence().release.slice(0,7)),1)):(a(),l("span",dS,"release not recorded"))])]),(a(),l(N,null,U(["requestId","jobId"],s=>n("div",{key:s},[n("dt",null,c(s==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[e.currentOccurrence()[s]?(a(),l(N,{key:0},[n("code",uS,c(e.currentOccurrence()[s]),1),t[109]||(t[109]=h()),n("button",{type:"button",class:"errs-link-button",onClick:i=>e.copyValue(e.currentOccurrence()[s],s==="requestId"?"Request ID":"Job ID")},"Copy",8,cS)],64)):(a(),l("span",pS,"not recorded"))])])),64))])])):f("v-if",!0),e.requestTab==="exception"?(a(),l("div",fS,[e.exceptionRecord().record?(a(),l(N,{key:0},[e.exceptionRecord().fromSample?(a(),l("p",mS,"This occurrence has no stack of its own; showing the latest occurrence's.")):f("v-if",!0),n("dl",hS,[n("div",null,[t[111]||(t[111]=n("dt",null,"Type",-1)),n("dd",null,[n("code",null,c(e.exceptionRecord().record.errorType||"not recorded"),1)])]),n("div",null,[t[112]||(t[112]=n("dt",null,"Code",-1)),n("dd",null,[e.exceptionRecord().record.errorCode?(a(),l("code",gS,c(e.exceptionRecord().record.errorCode),1)):(a(),l("span",yS,"not recorded"))])]),n("div",null,[t[113]||(t[113]=n("dt",null,"Cause",-1)),n("dd",null,[e.exceptionRecord().record.causeType?(a(),l("code",vS,c(e.exceptionRecord().record.causeType),1)):(a(),l("span",bS,"not recorded"))])])]),t[115]||(t[115]=n("h3",{class:"errs-subhead"},"Stack",-1)),e.exceptionRecord().record.errorStack?(a(),l("pre",wS,c(e.exceptionRecord().record.errorStack),1)):(a(),l("p",kS,"not recorded")),e.exceptionRecord().record.causeStack?(a(),l(N,{key:3},[t[114]||(t[114]=n("h3",{class:"errs-subhead"},"Cause stack",-1)),n("pre",CS,c(e.exceptionRecord().record.causeStack),1)],64)):f("v-if",!0),t[116]||(t[116]=n("p",{class:"errs-muted"},"Frames list recognized application code only.",-1))],64)):(a(),l("p",ES,[...t[117]||(t[117]=[n("strong",null,"No exception recorded.",-1),h(" The failure was returned as a status code without an exception, type or stack.",-1)])]))])):f("v-if",!0),e.requestTab==="fields"?(a(),l("div",SS,[n("div",NS,[t[118]||(t[118]=n("p",{class:"errs-muted"},"Admin API fields only. Query strings, bodies, URLs and tokens are never stored.",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.copyValue(e.recordJson(e.occurrenceRecord()),"JSON"))},"Copy JSON")]),n("pre",RS,c(e.recordJson(e.occurrenceRecord())),1)])):f("v-if",!0)])])):f("v-if",!0)],2)}var TS=["aria-busy"],PS={key:0,class:"errs-entity-banner",role:"status"},DS=["href"],AS={class:"errs-card-head"},IS={id:"errs-entity-title"},OS={key:0,class:"errs-count"},MS={key:1,class:"errs-muted",role:"status"},VS={key:2,class:"errs-muted",role:"status"},qS={key:0,class:"errs-entity-list"},LS={class:"errs-entity-main"},$S=["href"],FS={class:"errs-muted"},US={class:"errs-entity-count"},BS=["datetime","title"],HS={class:"errs-entity-main"},zS={class:"errs-muted"},jS={class:"errs-entity-count"},_S=["datetime"],GS={key:1,class:"errs-muted"},WS={class:"errs-muted errs-entity-source"},KS=["href"];function qf(e,t){return e.entityErrors.key?(a(),l("section",{key:0,class:"errs-entity","aria-labelledby":"errs-entity-title","aria-busy":e.entityErrors.loading?"true":"false"},[e.entityFailingNow().length?(a(),l("div",PS,[t[2]||(t[2]=n("span",{class:"errs-now"},"Failing now",-1)),n("span",null,[h(c(e.errPlural(e.entityFailingNow().reduce((s,i)=>s+i.count,0),"failure"))+" in the last 24 h, the latest "+c(e.errRelTime(e.entityFailingNow()[0].last))+": ",1),n("a",{href:e.errIssueHref(e.entityFailingNow()[0].id)},c(e.entityFailingNow()[0].title),9,DS),e.entityFailingNow().length>1?(a(),l(N,{key:0},[h(" and "+c(e.entityFailingNow().length-1)+" more",1)],64)):f("v-if",!0),t[1]||(t[1]=h(".",-1))])])):f("v-if",!0),n("div",AS,[n("h2",IS,[t[3]||(t[3]=h("Errors ",-1)),e.entityIssues().length?(a(),l("span",OS,c(e.entityIssues().length),1)):f("v-if",!0)])]),e.entityErrors.loading?(a(),l("p",MS,"Loading errors\u2026")):e.entityErrors.failed?(a(),l("p",VS,[t[4]||(t[4]=h("Could not load errors. ",-1)),n("button",{type:"button",class:"errs-link-button",onClick:t[0]||(t[0]=s=>e.loadEntityErrors(!0))},"Retry")])):e.entityErrors.data?(a(),l(N,{key:3},[e.entityIssues().length||e.entityExpected().length?(a(),l("ul",qS,[(a(!0),l(N,null,U(e.entityIssues(),s=>(a(),l("li",{key:s.id},[n("span",LS,[n("a",{href:e.errIssueHref(s.id)},c(s.title),9,$S),n("span",FS,[n("code",null,c(s.code),1),s.route?(a(),l(N,{key:0},[h(" \xB7 "+c(s.method)+" "+c(s.route),1),s.routeCount>1?(a(),l(N,{key:0},[h(" +"+c(s.routeCount-1),1)],64)):f("v-if",!0)],64)):s.queue?(a(),l(N,{key:1},[h(" \xB7 job "+c(s.queue),1)],64)):f("v-if",!0)])]),n("span",US,c(e.errNumber(s.count)),1),n("time",{datetime:s.last,title:e.errDayTime(s.last)},c(s.failingNow?"now":e.errRelTime(s.last)),9,BS)]))),128)),(a(!0),l(N,null,U(e.entityExpected().slice(0,5),s=>(a(),l("li",{key:"x"+s.code+s.status,class:"is-expected"},[n("span",HS,[n("span",null,[n("code",null,c(s.code),1),t[5]||(t[5]=h()),t[6]||(t[6]=n("span",{class:"errs-tag"},"expected",-1))]),n("span",zS,"HTTP "+c(s.status||"\u2014"),1)]),n("span",jS,c(e.errNumber(s.count)),1),n("time",{datetime:s.last},c(e.errRelTime(s.last)),9,_S)]))),128))])):(a(),l("p",GS,"No errors recorded in the last 24 h.")),n("p",WS,[h(c(e.entityErrors.data.source==="central"?"From central logs":"From application history")+" \xB7 last 24 h \xB7 ",1),n("a",{href:"/admin/errors?q="+(e.entityErrors.data.filters?.repoId?"repo:"+e.entityErrors.data.filters.repoId:"user:"+(e.entityErrors.data.filters?.userId||""))},"Open in Errors",8,KS)])],64)):f("v-if",!0)],8,TS)):f("v-if",!0)}var YS={class:"container paper-page admin-page overview-page"},XS={key:0,class:"admin-empty"},QS={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},JS={class:"ov-views",role:"tablist","aria-label":"Overview sections"},ZS=["aria-selected","onClick"],xS={key:2},eN={key:0,class:"ov-health",role:"status"},tN={class:"ov-kpi-row"},nN={class:"ov-kpi-card"},sN={class:"ov-kpi-value"},oN={class:"ov-kpi-sub"},iN={class:"ov-kpi-card"},rN={class:"ov-kpi-sub"},aN={class:"ov-kpi-card"},lN={class:"ov-kpi-sub"},dN={class:"ov-kpi-card"},uN={class:"ov-kpi-sub"},cN={class:"ov-kpi-card"},pN={class:"ov-kpi-value"},fN={class:"ov-kpi-sub"},mN={class:"ov-daily-row"},hN={class:"ov-daily-card"},gN={class:"ov-daily-value"},yN={class:"ov-daily-card"},vN={class:"ov-daily-value"},bN={class:"ov-daily-sub"},wN={class:"ov-daily-card"},kN={class:"ov-daily-value"},CN={class:"ov-chart-card"},EN={class:"ov-chart-head"},SN={class:"ov-chart-legends"},NN={class:"ov-chart-legend"},RN={key:0,class:"ov-legend-missing"},TN={key:0,class:"ov-spark-bars ov-has-axis"},PN={class:"ov-yaxis","aria-hidden":"true"},DN=["data-tip","aria-label"],AN={key:1,class:"ov-spark-x"},IN={class:"ov-chart-card"},ON={class:"ov-chart-head"},MN={class:"ov-chart-legends"},VN={class:"ov-chart-legend"},qN={key:0,class:"ov-legend-missing"},LN={key:0,class:"ov-spark-bars ov-has-axis"},$N={class:"ov-yaxis","aria-hidden":"true"},FN=["data-tip","aria-label"],UN={key:1,class:"ov-spark-x"},BN={key:0,class:"ov-chart-card"},HN={class:"ov-chart-head"},zN={class:"ov-chart-legends"},jN={class:"ov-chart-legend"},_N={key:0,class:"ov-legend-missing"},GN={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},WN={class:"ov-yaxis","aria-hidden":"true"},KN=["viewBox","aria-label"],YN=["d"],XN=["d"],QN={key:1,class:"ov-spark-x"},JN={class:"ov-chart-card"},ZN={class:"ov-chart-head"},xN={class:"ov-chart-legends"},eR={class:"ov-chart-legend"},tR={key:0,class:"ov-legend-missing"},nR={key:0,class:"ov-spark-bars ov-has-axis"},sR={class:"ov-yaxis","aria-hidden":"true"},oR=["data-tip","aria-label"],iR={key:1,class:"ov-spark-x"},rR={class:"ov-triple-row"},aR={class:"ov-panel-card"},lR={class:"ov-panel-head"},dR={class:"ov-panel-meta"},uR={class:"ov-stacked-bar"},cR={class:"ov-bar-legend"},pR={href:"/admin/repositories",class:"ov-legend-item"},fR={class:"ov-legend-n"},mR={href:"/admin/repositories",class:"ov-legend-item"},hR={class:"ov-legend-n"},gR={href:"/admin/repositories",class:"ov-legend-item"},yR={class:"ov-legend-n"},vR={href:"/admin/repositories",class:"ov-legend-item"},bR={class:"ov-legend-n"},wR={href:"/admin/repositories",class:"ov-legend-item"},kR={class:"ov-legend-n"},CR={class:"ov-panel-card"},ER={class:"ov-panel-head"},SR={class:"ov-panel-meta"},NR={class:"ov-error-bars"},RR={class:"ov-ebar-row"},TR={class:"ov-ebar-track"},PR={class:"ov-ebar-n"},DR={class:"ov-ebar-row"},AR={class:"ov-ebar-track"},IR={class:"ov-ebar-n"},OR={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},MR={class:"ov-ehours-legend"},VR={class:"ov-ehours-note"},qR={class:"ov-ehours-bars"},LR=["title"],$R={key:0,class:"ov-ehours-zero"},FR={class:"ov-ebar-note"},UR={key:0,class:"ov-panel-foot"},BR={href:"/admin/errors"},HR={class:"ov-panel-card"},zR={class:"ov-routes-table"},jR={class:"ov-route-row",href:"/admin/queues"},_R={class:"ov-route-n"},GR={class:"ov-route-n"},WR={class:"ov-route-row",href:"/admin/queues"},KR={class:"ov-route-n"},YR={class:"ov-route-n"},XR={class:"ov-route-row",href:"/admin/queues"},QR={class:"ov-route-n"},JR={class:"ov-route-n"},ZR={class:"ov-services-card"},xR={class:"ov-services-head"},e4={class:"ov-panel-meta"},t4={class:"ov-services-grid"},n4={class:"ov-svc"},s4={class:"ov-svc-info"},o4={class:"ov-svc-meta"},i4={class:"ov-svc"},r4={class:"ov-svc-info"},a4={key:0,class:"ov-svc-meta"},l4={key:1,class:"ov-svc-meta"},d4={class:"ov-svc"},u4={class:"ov-svc-info"},c4={key:0,class:"ov-svc-meta"},p4={key:1,class:"ov-svc-meta"},f4={class:"ov-svc"},m4={class:"ov-svc-info"},h4={key:0,class:"ov-svc-meta"},g4={key:1,class:"ov-svc-meta"},y4={class:"ov-svc"},v4=["title"],b4={class:"ov-svc-info"},w4={class:"ov-svc-meta"},k4={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},C4={class:"ov-panel-head ov-performance-head"},E4={class:"ov-performance-window"},S4={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},N4={key:1,class:"ov-performance-empty",role:"status"},R4={key:0,class:"ov-performance-note"},T4={key:1,class:"ov-performance-note"},P4={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},D4={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},A4={class:"ov-metrics-table"},I4={scope:"row",class:"ov-event-name"},O4=["title"],M4={key:0,class:"ov-metric-bad-text"},V4={key:1,class:"budget-bar","aria-hidden":"true"},q4={class:"num"},L4={class:"num"},$4={class:"num"},F4={class:"num"},U4={key:4,class:"ov-cache-rates"},B4={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},H4={class:"ov-metrics-table"},z4={scope:"row",class:"ov-event-name"},j4={class:"ov-event-traffic"},_4={class:"num"},G4={class:"num"},W4={key:6,class:"ov-performance-empty",role:"status"},K4={class:"ov-performance-note"},Y4={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},X4={class:"ov-panel-head ov-performance-head"},Q4={class:"ov-performance-window"},J4={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Z4={key:1,class:"ov-performance-empty",role:"status"},x4={key:2},eT={id:"performance-routes",role:"region","aria-label":"Routes"},tT={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},nT={class:"ov-metrics-table"},sT={scope:"row",class:"ov-metric-name"},oT={class:"num"},iT={class:"num"},rT={class:"num"},aT={class:"num"},lT={class:"num"},dT={key:1,class:"ov-performance-empty"},uT={id:"performance-processes",role:"region","aria-label":"Processes"},cT={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},pT={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},fT={class:"ov-metrics-table"},mT={scope:"row",class:"ov-metric-name"},hT={key:0,class:"ov-metric-warn"},gT={class:"num"},yT={class:"num"},vT={class:"num"},bT={class:"num"},wT={class:"num"},kT={class:"num"},CT={class:"num"},ET={class:"num"},ST={id:"performance-stages",role:"region","aria-label":"Work stages"},NT={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},RT={class:"ov-metrics-table"},TT={scope:"row",class:"ov-metric-name"},PT={class:"num"},DT={class:"num"},AT={class:"num"},IT={key:1,class:"ov-performance-empty"};function Lf(e,t){return a(),l("div",YS,[t[95]||(t[95]=Pe('
Admin \xA0/\xA0 Overview

Overview

Live \xB7 refreshes every 30s
',2)),e.loading?(a(),l("div",XS,"Loading overview\u2026")):f("v-if",!0),e.error?(a(),l("div",QS,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.error),1)])):f("v-if",!0),n("div",JS,[(a(),l(N,null,U([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],s=>n("button",{type:"button",role:"tab",key:s.id,"aria-selected":e.ovView===s.id?"true":"false",class:T({active:e.ovView===s.id}),onClick:i=>e.setOvView(s.id)},c(s.label),11,ZS)),64))]),e.data?O((a(),l("div",xS,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(a(),l("div",eN,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,[t[9]||(t[9]=n("b",null,"Server needs attention.",-1)),h(" "+c(e.healthAlert()),1)])])):f("v-if",!0),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 "),n("section",tN,[n("div",nN,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",sN,c(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(s=>s._id!=="removed"&&s._id!=="expired").reduce((s,i)=>s+(i.count||0),0))),1),n("div",oN,c(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(s=>s._id==="removed")||{}).count||0))+" removed \xB7 "+c(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",iN,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>=75}])},c(e.data?.system?.cpuPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.cpuPercent>=75,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",rN,[e.data?.system?.cpuPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.cpuPercent>90}])},c(e.data?.system?.cpuPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)])]),n("div",aN,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>=75}])},c(e.data?.system?.memPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.memPercent>=75,crit:e.data?.system?.memPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",lN,[e.data?.system?.memPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.memPercent>90}])},c(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",dN,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>=75}])},c(e.data?.system?.diskPercent)+"%",3),n("div",{class:T(["ov-meter",{warn:e.data?.system?.diskPercent>=75,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:De({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",uN,[e.data?.system?.diskPercent>=75?(a(),l("b",{key:0,class:T(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},c(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(c(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+c(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(a(),l(N,{key:1},[h(" \xB7 "+c(e.data?.system?.diskMount),1)],64)):f("v-if",!0)])]),n("div",cN,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",pN,c(e.humanDuration(e.data?.system?.uptime)),1),n("div",fN,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 "),n("section",mN,[n("div",hN,[t[16]||(t[16]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",gN,c(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[17]||(t[17]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",yN,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",vN,c(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",bN,c(e.fmt?.number(e.data?.users?.total))+" total \xB7 +"+c(e.fmt?.number(e.usersGained()))+" in 30 days",1)]),n("div",wN,[t[19]||(t[19]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",kN,c(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[20]||(t[20]=n("div",{class:"ov-daily-sub"},"so far today",-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 "),n("section",{class:T(["ov-chart-row",{"is-three":e.usersTiny()}])},[n("div",CN,[n("div",EN,[t[23]||(t[23]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",SN,[n("span",NN,[t[21]||(t[21]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),h("views/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyPageViews"))),1)]),e.historyHasMissing()?(a(),l("span",RN,[...t[22]||(t[22]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",TN,[n("div",PN,[n("span",null,c(e.fmt?.number(e.axisMax("dailyPageViews"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyPageViews")/2)),1),t[24]||(t[24]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views")},[n("span",{class:"ov-spark-fill",style:De({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],10,DN))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",AN,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",IN,[n("div",ON,[t[27]||(t[27]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",MN,[n("span",VN,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),h("repos/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyRepositories"))),1)]),e.historyHasMissing()?(a(),l("span",qN,[...t[26]||(t[26]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",LN,[n("div",$N,[n("span",null,c(e.fmt?.number(e.axisMax("dailyRepositories"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyRepositories")/2)),1),t[28]||(t[28]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos")},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:De({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],10,FN))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",UN,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),e.usersTiny()?f("v-if",!0):(a(),l("div",BN,[n("div",HN,[t[31]||(t[31]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",zN,[n("span",jN,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),h("total users \xB7 "+c(e.fmt?.number(e.historyRange("nbUsers").max))+" now \xB7 +"+c(e.fmt?.number(Math.max(0,e.historyRange("nbUsers").max-e.usersFirst())))+" in 30 days",1)]),e.historyHasMissing()?(a(),l("span",_N,[...t[30]||(t[30]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",GN,[n("div",WN,[n("span",null,c(e.fmt?.number(e.userAxis().hi)),1),n("span",null,c(e.fmt?.number((e.userAxis().hi+e.userAxis().lo)/2)),1),n("span",null,c(e.fmt?.number(e.userAxis().lo)),1)]),(a(),l("svg",{class:"ov-step-svg",viewBox:"0 0 "+e.data.history.length+" 140",preserveAspectRatio:"none",role:"img","aria-label":"Total users over 30 days, from "+e.fmt?.number(e.usersFirst())+" to "+e.fmt?.number(e.historyRange("nbUsers").max)},[e.userAxis().lo===0?(a(),l("path",{key:0,class:"ov-step-area",d:e.userStepPath(!0)},null,8,YN)):f("v-if",!0),n("path",{class:"ov-step-line",d:e.userStepPath(!1),"vector-effect":"non-scaling-stroke"},null,8,XN)],8,KN)),e.firstDataIndex()>0?(a(),l("div",{key:0,class:"ov-step-missing",style:De({width:e.firstDataIndex()/e.data.history.length*100+"%"})},null,4)):f("v-if",!0)])):f("v-if",!0),e.data?.history?.length?(a(),l("div",QN,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])),n("div",JN,[n("div",ZN,[t[34]||(t[34]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",xN,[n("span",eR,[t[32]||(t[32]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),h("users/day \xB7 peak "+c(e.fmt?.number(e.historyMax("dailyUsers"))),1)]),e.historyHasMissing()?(a(),l("span",tR,[...t[33]||(t[33]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",nR,[n("div",sR,[n("span",null,c(e.fmt?.number(e.axisMax("dailyUsers"))),1),n("span",null,c(e.fmt?.number(e.axisMax("dailyUsers")/2)),1),t[35]||(t[35]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.data?.history,(s,i)=>(a(),l("div",{class:T(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users")},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:De({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],10,oR))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",iR,[n("span",null,c(e.historyLabel(e.data?.history[0])),1),n("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])],2),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",rR,[f(" Repo status breakdown "),n("div",aR,[n("div",lR,[t[36]||(t[36]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",dR,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",uR,[e.barPct("ready")>0?(a(),l("span",{key:0,class:"ov-bar-seg ov-bar-ready",title:"Ready",style:De({width:e.barPct("ready")+"%"})},null,4)):f("v-if",!0),e.barPct("preparing")>0?(a(),l("span",{key:1,class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:De({width:e.barPct("preparing")+"%"})},null,4)):f("v-if",!0),e.barPct("error")>0?(a(),l("span",{key:2,class:"ov-bar-seg ov-bar-error",title:"Error",style:De({width:e.barPct("error")+"%"})},null,4)):f("v-if",!0),e.barPct("expired")>0?(a(),l("span",{key:3,class:"ov-bar-seg ov-bar-expired",title:"Expiring / expired",style:De({width:e.barPct("expired")+"%"})},null,4)):f("v-if",!0),e.barPct("removed")>0?(a(),l("span",{key:4,class:"ov-bar-seg ov-bar-removed",title:"Removing / removed",style:De({width:e.barPct("removed")+"%"})},null,4)):f("v-if",!0)]),n("div",cR,[n("a",pR,[t[37]||(t[37]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[38]||(t[38]=h(" Ready ",-1)),n("span",fR,c(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",mR,[t[39]||(t[39]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[40]||(t[40]=h(" Preparing ",-1)),n("span",hR,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",gR,[t[41]||(t[41]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[42]||(t[42]=h(" Error ",-1)),n("span",yR,c(e.fmt?.number(e.statusCount("error"))),1)]),n("a",vR,[t[43]||(t[43]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[44]||(t[44]=h(" Expiring / expired ",-1)),n("span",bR,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",wR,[t[45]||(t[45]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[46]||(t[46]=h(" Removing / removed ",-1)),n("span",kR,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",CR,[n("div",ER,[t[47]||(t[47]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",SR,c(e.fmt?.number(e.realErrors()))+" "+c(e.realErrors()===1?"error":"errors"),1)]),n("div",NR,[n("div",RR,[t[48]||(t[48]=n("span",{class:"ov-ebar-label"},"Error",-1)),n("span",TR,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:De({width:e.errPct("error")+"%"})},null,4)]),n("span",PR,c(e.data?.errors?.severity?.error),1)]),n("div",DR,[t[49]||(t[49]=n("span",{class:"ov-ebar-label"},"Warning",-1)),n("span",AR,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:De({width:e.errPct("warn")+"%"})},null,4)]),n("span",IR,c(e.data?.errors?.severity?.warn),1)]),e.errorHours().length?(a(),l("div",OR,[n("div",MR,[t[52]||(t[52]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-error","aria-hidden":"true"}),h("Error")],-1)),t[53]||(t[53]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-warn","aria-hidden":"true"}),h("Warning")],-1)),n("span",VR,[t[50]||(t[50]=h("Per hour",-1)),t[51]||(t[51]=n("span",{class:"seg-sep","aria-hidden":"true"},"\xB7",-1)),h("peak "+c(e.fmt?.number(e.errorHoursPeak())),1)])]),n("div",qR,[(a(!0),l(N,null,U(e.errorHours(),s=>(a(),l("span",{key:s.key,class:T({"is-bad":s.bad,"is-zero":s.zero}),title:s.title},[s.zero?(a(),l("i",$R)):(a(),l(N,{key:1},[s.errPct?(a(),l("i",{key:0,class:"ov-ehours-e",style:De({height:s.errPct+"%"})},null,4)):f("v-if",!0),s.warnPct?(a(),l("i",{key:1,class:"ov-ehours-w",style:De({height:s.warnPct+"%"})},null,4)):f("v-if",!0)],64))],10,LR))),128))]),t[54]||(t[54]=n("div",{class:"ov-ehours-x"},[n("span",null,"24h ago"),n("span",null,"now")],-1))])):f("v-if",!0),n("p",FR,"Info "+c(e.fmt?.number(e.data?.errors?.severity?.info||0))+" \xB7 logged, not counted as errors",1)]),e.data?.repos?.recentErrors24h?(a(),l("div",UR,[n("a",BR,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",HR,[t[59]||(t[59]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",zR,[t[58]||(t[58]=Pe('
QueueActiveWaitFailed
',1)),n("a",jR,[t[55]||(t[55]=n("span",{class:"ov-route-name"},"Download",-1)),n("span",_R,c(e.data?.queues?.download?.active),1),n("span",GR,c(e.data?.queues?.download?.waiting),1),n("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),n("a",WR,[t[56]||(t[56]=n("span",{class:"ov-route-name"},"Remove",-1)),n("span",KR,c(e.data?.queues?.remove?.active),1),n("span",YR,c(e.data?.queues?.remove?.waiting),1),n("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),n("a",XR,[t[57]||(t[57]=n("span",{class:"ov-route-name"},"Cache cleanup",-1)),n("span",QR,c(e.data?.queues?.cache?.active),1),n("span",JR,c(e.data?.queues?.cache?.waiting),1),n("span",{class:T(["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 "),n("section",ZR,[n("div",xR,[t[60]||(t[60]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",e4,"5 services \xB7 "+c(e.realErrors()>0?"1 needs attention":"all healthy"),1)]),n("div",t4,[n("div",n4,[t[62]||(t[62]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",s4,[t[61]||(t[61]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",o4,c(e.data?.system?.nodeVersion)+" \xB7 up "+c(e.humanDuration(e.data?.system?.uptime)),1)])]),n("div",i4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",r4,[t[63]||(t[63]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(a(),l("span",a4,c(e.queueTotal(e.data?.queues?.download))+" "+c(e.queueTotal(e.data?.queues?.download)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(a(),l("span",l4,"idle"))])]),n("div",d4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",u4,[t[64]||(t[64]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(a(),l("span",c4,c(e.queueTotal(e.data?.queues?.cache))+" "+c(e.queueTotal(e.data?.queues?.cache)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(a(),l("span",p4,"idle"))])]),n("div",f4,[n("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",m4,[t[65]||(t[65]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(a(),l("span",h4,c(e.queueTotal(e.data?.queues?.remove))+" "+c(e.queueTotal(e.data?.queues?.remove)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(a(),l("span",g4,"idle"))])]),n("div",y4,[n("span",{class:T(["ov-svc-dot",e.realErrors()>0?"ov-dot-warn":"ov-dot-ok"]),title:e.realErrors()>0?"Errors in the last 24 hours":"No errors in the last 24 hours"},null,10,v4),n("div",b4,[t[66]||(t[66]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",w4,c(e.fmt?.number(e.realErrors()))+" / 24h",1)])])])])],512)),[[te,e.ovView==="summary"]]):f("v-if",!0),O(n("section",k4,[n("div",C4,[t[71]||(t[71]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work")],-1)),n("div",E4,[t[69]||(t[69]=n("label",{for:"cache-window"},"Time range",-1)),O(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.cacheMinutes=s),onChange:t[1]||(t[1]=s=>e.loadCache())},[...t[67]||(t[67]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[Vt,e.cacheMinutes,void 0,{number:!0}]]),t[70]||(t[70]=n("label",{for:"cache-traffic"},"Traffic",-1)),O(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=s=>e.cacheTraffic=s)},[...t[68]||(t[68]=[Pe('',6)])],512),[[Vt,e.cacheTraffic]])])]),e.cacheError?(a(),l("div",S4,[n("span",null,c(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=s=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(a(),l("p",N4,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(a(),l(N,{key:2},[e.cacheReport.enabled?f("v-if",!0):(a(),l("p",R4,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(a(),l("p",T4,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(a(),l("p",P4,c(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(a(),l("div",D4,[n("table",A4,[t[72]||(t[72]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[73]||(t[73]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col",class:"num"},"Allocated / budget"),n("th",{scope:"col",class:"num"},"Reserved for fills"),n("th",{scope:"col",class:"num"},"Original bytes"),n("th",{scope:"col",class:"num"},"Blobs"),n("th",{scope:"col",class:"num"},"Active readers")])],-1)),n("tbody",null,[(a(!0),l(N,null,U([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],s=>O((a(),l("tr",{key:s.name},[n("th",I4,c(s.name),1),n("td",{class:T(["num budget-cell",{"is-over":s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes}]),title:s.data?.budgetBytes?Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes)+"% of budget":null},[s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes?(a(),l("span",M4,"Over budget \xB7 ")):f("v-if",!0),h(c(e.humanBytes(s.data?.allocatedBytes))+" / "+c(e.humanBytes(s.data?.budgetBytes)),1),s.data?.budgetBytes?(a(),l("span",V4,[n("i",{style:De({width:Math.min(100,Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes))+"%"})},null,4)])):f("v-if",!0)],10,O4),n("td",q4,c(e.humanBytes(s.data?.reservedBytes)),1),n("td",L4,c(e.humanBytes(s.data?.originalBytes)),1),n("td",$4,c(e.fmt?.number(s.data?.blobs)),1),n("td",F4,c(e.fmt?.number(s.data?.activeReaders)),1)])),[[te,s.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(a(),l("dl",U4,[n("div",null,[t[74]||(t[74]=n("dt",null,"Source request hit rate",-1)),n("dd",null,c(e.cacheRate("source","count")),1)]),n("div",null,[t[75]||(t[75]=n("dt",null,"Source byte hit rate",-1)),n("dd",null,c(e.cacheRate("source","bytes")),1)]),n("div",null,[t[76]||(t[76]=n("dt",null,"Decision hit rate",-1)),n("dd",null,c(e.cacheRate("decision","count")),1)])])):f("v-if",!0),t[79]||(t[79]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(a(),l("div",B4,[n("table",H4,[t[77]||(t[77]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col",class:"num"},"Count"),n("th",{scope:"col",class:"num"},"Bytes"),n("th",{scope:"col",class:"num"},"Mean measured time"),n("th",{scope:"col",class:"num"},"p95 bound")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.cacheRows(),s=>(a(),l("tr",{key:s.name+":"+s.traffic},[n("th",z4,c(e.cacheEventName(s.name)),1),n("td",j4,c(s.traffic),1),n("td",_4,c(e.fmt?.number(s.count)),1),n("td",G4,c(e.humanBytes(s.bytes)),1),n("td",{class:T(["num",{"ov-muted":!s.ms}])},c(s.ms?e.fmt.duration(s.ms/s.count):"Not timed"),3),n("td",{class:T(["num",{"ov-muted":!s.ms}])},c(e.cacheP95(s)),3)]))),128))])])])):(a(),l("p",W4,"No cache events in this time range for the selected traffic.")),n("p",K4,"Updated "+c(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)],512),[[te,e.ovView==="cache"]]),O(n("section",Y4,[n("div",X4,[t[84]||(t[84]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health")],-1)),n("div",Q4,[e.performance?.available?(a(),l(N,{key:0},[t[81]||(t[81]=n("label",{for:"performance-view"},"Show",-1)),O(n("select",{id:"performance-view",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=s=>e.performanceTab=s),"aria-label":"Performance metrics"},[...t[80]||(t[80]=[n("option",{value:"routes"},"Routes",-1),n("option",{value:"processes"},"Processes",-1),n("option",{value:"stages"},"Work stages",-1)])],512),[[Vt,e.performanceTab]])],64)):f("v-if",!0),t[83]||(t[83]=n("label",{for:"performance-window"},"Time range",-1)),O(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[5]||(t[5]=s=>e.performanceMinutes=s),onChange:t[6]||(t[6]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[82]||(t[82]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Vt,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(a(),l("div",J4,[t[85]||(t[85]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,c(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(a(),l("p",Z4,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(a(),l("div",x4,[O(n("div",eT,[e.performance.routes?.length?(a(),l("div",tT,[n("table",nT,[t[86]||(t[86]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[87]||(t[87]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.routes,s=>(a(),l("tr",{key:s.service+s.method+s.route},[n("th",sT,[n("span",null,c(s.route),1),n("small",null,c(s.service)+" \xB7 "+c(s.method),1)]),n("td",oT,c(e.fmt.number(s.count)),1),n("td",iT,c(e.formatMs(s.avgMs)),1),n("td",rT,c(e.firstByteBound(s)),1),n("td",aT,c(e.latencyBound(s,"p95UpperMs")),1),n("td",lT,c(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:T(["num",{"ov-metric-warn":s.aborted>0}])},c(e.fmt.number(s.aborted)),3),n("td",{class:T(["num",{"ov-metric-bad":s.errors>0}])},c(e.fmt.number(s.errors)),3),n("td",{class:T(["num",{"ov-metric-warn":s.slow>0}])},c(e.fmt.number(s.slow)),3)]))),128))])])])):(a(),l("p",dT,"No recorded requests in this time range yet."))],512),[[te,e.performanceTab==="routes"]]),O(n("div",uT,[t[91]||(t[91]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(a(),l("div",pT,[n("table",fT,[t[89]||(t[89]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[90]||(t[90]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.instances,s=>(a(),l("tr",{key:s.instance,class:T({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",mT,[n("span",null,c(s.instance),1),e.performanceWarning(s)?(a(),l("small",hT,[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" Needs attention",-1)])])):f("v-if",!0)]),n("td",gT,[h(c(e.humanBytes(s.memory.rss))+" / "+c(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+c(e.humanBytes(e.peakRss(s))),1)]),n("td",yT,c(s.cpuPercent==null?"Unavailable":s.cpuPercent.toFixed(1)+"%"),1),n("td",vT,c(s.eventLoop?.p95Ms==null?"Not applicable":e.fmt.duration(s.eventLoop.p95Ms)),1),n("td",bT,c(s.activeRequests),1),n("td",wT,c(s.sockets?.descriptors??"Unavailable")+" / "+c(s.sockets?.closeWait??"Unavailable"),1),n("td",kT,c(s.workers?.running??0)+" / "+c(s.workers?.waiting??0),1),n("td",CT,c(e.sampleAge(s))+" s",1),n("td",ET,c(s.droppedBatches)+" / "+c(s.droppedMetrics),1)],2))),128))])])])):(a(),l("div",cT,"No recent process samples. Monitoring coverage is incomplete."))],512),[[te,e.performanceTab==="processes"]]),O(n("div",ST,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(a(),l("div",NT,[n("table",RT,[t[92]||(t[92]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[93]||(t[93]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(a(!0),l(N,null,U(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(a(),l("tr",{key:s.service+s.metric},[n("th",TT,[n("span",null,c(s.metric),1),n("small",null,c(s.service),1)]),n("td",PT,c(e.fmt.number(s.count)),1),n("td",DT,c(e.formatMs(s.avgMs)),1),n("td",AT,c(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(a(),l("p",IT,"No recorded work stages or cache results in this time range yet."))],512),[[te,e.performanceTab==="stages"]]),t[94]||(t[94]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("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)],512),[[te,e.ovView==="performance"]])])}var OT={class:"container paper-page admin-page"},MT={class:"q-header"},VT={class:"q-header-actions"},qT={class:"q-cards"},LT=["aria-pressed","onKeydown","onClick"],$T={class:"q-card-head"},FT=["title"],UT=["textContent"],BT=["textContent"],HT={class:"q-card-sub"},zT={class:"q-card-failed"},jT={key:0,class:"q-card-bar"},_T={key:0,class:"q-detail"},GT={class:"q-throughput"},WT={class:"q-range-btns"},KT={class:"q-section-label"},YT={key:0,class:"q-section-right"},XT={class:"q-chart-wrap"},QT={key:0,class:"q-chart-empty"},JT={class:"q-stats-panel"},ZT={class:"q-section-label"},xT={class:"q-stats-grid"},e3={class:"q-stat"},t3=["textContent"],n3={class:"q-stat"},s3=["textContent"],o3={class:"q-stat"},i3=["textContent"],r3={class:"q-stat"},a3=["textContent"],l3={class:"q-stat"},d3=["textContent"],u3={class:"q-stat"},c3=["textContent"],p3={class:"q-stats-actions"},f3=["disabled"],m3={class:"q-danger-group"},h3={class:"q-jobs"},g3={class:"q-jobs-header"},y3={class:"q-section-label"},v3={class:"seg-filter",role:"radiogroup","aria-label":"Filter jobs by state"},b3=["aria-checked"],w3={class:"count"},k3=["aria-checked"],C3={class:"count"},E3=["aria-checked"],S3={class:"count"},N3=["aria-checked"],R3={class:"count"},T3=["aria-checked"],P3={class:"count"},D3=["aria-checked"],A3={class:"count"},I3={class:"q-search-row"},O3={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},M3={class:"q-auto-refresh"},V3={type:"checkbox"},q3={key:0,class:"q-table"},L3=["onClick"],$3={class:"q-cell-state"},F3=["textContent"],U3=["textContent"],B3=["title"],H3=["textContent","href"],z3=["title","textContent"],j3=["textContent"],_3=["textContent"],G3={class:"q-cell-progress"},W3=["aria-label"],K3=["textContent"],Y3={class:"q-cell-actions"},X3=["onClick"],Q3=["onClick"],J3={key:0,class:"q-detail-row"},Z3={colspan:"7"},x3={class:"q-job-detail"},eP={class:"q-job-detail-grid"},tP={class:"q-job-detail-item"},nP={class:"q-job-detail-value"},sP=["textContent","href"],oP={class:"q-job-detail-item"},iP={class:"q-job-detail-value"},rP=["textContent"],aP={key:0,class:"q-job-detail-item"},lP=["textContent"],dP={key:1,class:"q-job-detail-item"},uP=["textContent"],cP={key:2,class:"q-job-detail-item"},pP={class:"q-job-detail-value"},fP={key:3,class:"q-job-detail-item"},mP=["textContent"],hP={key:4,class:"q-job-detail-item"},gP=["textContent"],yP={key:5,class:"q-job-detail-item"},vP=["textContent"],bP={key:6,class:"q-job-detail-item"},wP=["textContent"],kP={key:7,class:"q-job-detail-item"},CP=["textContent"],EP={key:0,class:"q-job-detail-error"},SP=["textContent"],NP={key:1},RP=["textContent"],TP={class:"q-job-detail-actions"},PP=["onClick"],DP=["onClick"],AP=["href"],IP={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},OP={key:0},MP={key:1};function $f(e,t){let s=Le("field");return a(),l("div",OT,[t[71]||(t[71]=n("div",{class:"paper-crumbs"},[h("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",MT,[t[18]||(t[18]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",VT,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[72]||(t[72]=Pe('',1)),f(" Queue overview cards "),n("div",qT,[(a(!0),l(N,null,U(e.queueList,(i,r)=>(a(),l("div",{class:T(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[Tt(de(o=>e.selectQueue(i.key),["prevent"]),["enter"]),Tt(de(o=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:o=>e.selectQueue(i.key)},[n("div",$T,[n("span",{class:T(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}]),title:i?.paused?"Paused":i?.counts?.failed>0?i.counts.failed+" failed jobs":i?.counts?.active||i?.counts?.waiting?"Running":"Idle"},null,10,FT),n("span",{class:"q-card-name",textContent:c(i?.label)},null,8,UT)]),n("div",{class:"q-card-count",textContent:c((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,BT),n("div",HT,[n("span",null,[h("waiting \xB7 "+c(i?.counts?.active||0)+" active",1),i?.counts?.failed?(a(),l(N,{key:0},[t[19]||(t[19]=h(" \xB7 ",-1)),n("b",zT,c(i.counts.failed)+" failed",1)],64)):f("v-if",!0),i?.paused?(a(),l(N,{key:1},[t[20]||(t[20]=h(" \xB7 ",-1)),t[21]||(t[21]=n("b",{class:"q-card-failed"},"paused",-1))],64)):f("v-if",!0)]),i?.counts?.active?(a(),l("div",jT,[n("div",{class:"q-card-bar-fill",style:De({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,LT))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(a(),l("div",_T,[n("div",GT,[n("div",WT,[n("button",{class:T(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:T(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",KT,[h("Throughput \xB7 "+c(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l("span",YT,[t[23]||(t[23]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[24]||(t[24]=h(" Completed ",-1)),t[25]||(t[25]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[26]||(t[26]=h(" Failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l(N,{key:0},[t[22]||(t[22]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),h(" Avg time \xB7 "+c(e.range),1)],64)):f("v-if",!0)])):f("v-if",!0)]),n("div",XT,[t[28]||(t[28]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(a(),l("div",QT,[...t[27]||(t[27]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):f("v-if",!0),t[29]||(t[29]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[30]||(t[30]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",JT,[n("div",ZT,"Stats \xB7 "+c(e.selectedQueue),1),n("div",xT,[n("div",e3,[t[31]||(t[31]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,t3)]),n("div",n3,[t[32]||(t[32]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,s3)]),n("div",o3,[t[33]||(t[33]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,i3)]),n("div",r3,[t[34]||(t[34]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,a3)]),n("div",l3,[t[35]||(t[35]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,d3)]),n("div",u3,[t[36]||(t[36]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,c3)])]),n("div",p3,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},c(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,f3),n("span",m3,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):f("v-if",!0),e.actionError?(a(),l("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",h3,[n("div",g3,[n("div",y3,"All jobs \xB7 "+c(e.selectedQueue),1),n("div",v3,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[10]||(t[10]=i=>e.setSegView("all"))},[t[38]||(t[38]=h("All ",-1)),n("span",w3,c(e.fmt?.number(e.segCount("all"))),1)],10,b3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="active","is-empty":!e.segCount("active")}]),"aria-checked":e.segView()==="active",onClick:t[11]||(t[11]=i=>e.setSegView("active"))},[t[39]||(t[39]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[40]||(t[40]=h("Active ",-1)),n("span",C3,c(e.fmt?.number(e.segCount("active"))),1)],10,k3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="waiting","is-empty":!e.segCount("waiting")}]),"aria-checked":e.segView()==="waiting",onClick:t[12]||(t[12]=i=>e.setSegView("waiting"))},[t[41]||(t[41]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[42]||(t[42]=h("Waiting ",-1)),n("span",S3,c(e.fmt?.number(e.segCount("waiting"))),1)],10,E3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="delayed","is-empty":!e.segCount("delayed")}]),"aria-checked":e.segView()==="delayed",onClick:t[13]||(t[13]=i=>e.setSegView("delayed"))},[t[43]||(t[43]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[44]||(t[44]=h("Delayed ",-1)),n("span",R3,c(e.fmt?.number(e.segCount("delayed"))),1)],10,N3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="failed","is-empty":!e.segCount("failed")}]),"aria-checked":e.segView()==="failed",onClick:t[14]||(t[14]=i=>e.setSegView("failed"))},[t[45]||(t[45]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[46]||(t[46]=h("Failed ",-1)),n("span",P3,c(e.fmt?.number(e.segCount("failed"))),1)],10,T3),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="completed","is-empty":!e.segCount("completed")}]),"aria-checked":e.segView()==="completed",onClick:t[15]||(t[15]=i=>e.setSegView("completed"))},[t[47]||(t[47]=n("span",{class:"seg-dot done","aria-hidden":"true"},null,-1)),t[48]||(t[48]=h("Completed ",-1)),n("span",A3,c(e.fmt?.number(e.segCount("completed"))),1)],10,D3)])]),n("div",I3,[O(n("input",O3,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",M3,[O(n("input",V3,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[49]||(t[49]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[16]||(t[16]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(a(),l("table",q3,[t[69]||(t[69]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job"),n("th",null,"Detail"),n("th",null,"Attempts"),n("th",{class:"q-th-num"},"Duration"),n("th",null,"Progress"),n("th")])],-1)),(a(!0),l(N,null,U(e.filteredJobs(),(i,r)=>(a(),l("tbody",null,[n("tr",{style:{cursor:"pointer"},class:T({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:o=>e.toggleJob(i)},[n("td",$3,[n("span",{textContent:c(i?._state),class:T("q-state-badge q-state-"+i?._state)},null,10,F3),i?._state=="delayed"&&i?.delayUntil?(a(),l("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(i?.delayUntil))},null,8,U3)):f("v-if",!0)]),n("td",{class:"q-cell-id",title:"job:"+i?.id+(i?.name&&i?.name!==i?.id?" \xB7 "+i.name:"")+(i?.data?.repoId&&i?.data?.repoId!==i?.id?" \xB7 "+i.data.repoId:"")},[(a(),l("svg",{class:T(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",class:"q-job-link",textContent:c(i?.data?.repoId||i?.id),onClick:t[17]||(t[17]=o=>o.stopPropagation()),href:e.safeUrl("/r/"+(i?.data?.repoId||i?.id))},null,8,H3)],8,B3),n("td",{class:T(["q-cell-detail",{"is-error":i?._state=="failed"}]),title:i?._state=="failed"?i?.failedReason:"",textContent:c(e.jobDetail(i))},null,10,z3),n("td",{class:"q-cell-num",textContent:c(i?.attemptsMade||1)},null,8,j3),n("td",{class:"q-cell-num q-cell-duration",textContent:c(e.jobDuration(i))},null,8,_3),n("td",G3,[n("div",{class:T(["q-progress-wrap",{"is-indeterminate":e.jobProgressPct(i)===null}]),"aria-label":e.jobProgressPct(i)===null?"Progress not reported":e.jobProgressPct(i)+"% done"},[n("div",{class:"q-progress-bar",style:De({"--pct":(e.jobProgressPct(i)||0)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(i)===null?"\u2014":e.jobProgressPct(i)+"%")},null,8,K3)],10,W3)]),n("td",Y3,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:o=>{e.retryJob(i),o.stopPropagation()},"aria-label":"Retry job"},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,X3)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:o=>{e.removeJob(i),o.stopPropagation()}},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Q3)])],10,L3),e.expanded[i?.id]?(a(),l("tr",J3,[n("td",Z3,[n("div",x3,[n("div",eP,[n("div",tP,[t[54]||(t[54]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",nP,[n("a",{target:"_blank",textContent:c(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,sP)])]),n("div",oP,[t[55]||(t[55]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",iP,[n("span",{textContent:c(i?._state),class:T("q-state-badge q-state-"+i?._state)},null,10,rP)])]),i?.data?.repoId?(a(),l("div",aP,[t[56]||(t[56]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.data?.repoId)},null,8,lP)])):f("v-if",!0),i?.timestamp?(a(),l("div",dP,[t[57]||(t[57]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.timestamp))},null,8,uP)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(a(),l("div",cP,[t[58]||(t[58]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",pP,c(e.humanTime(i?.delayUntil))+" ("+c(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(a(),l("div",fP,[t[59]||(t[59]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.processedOn))},null,8,mP)])):f("v-if",!0),i?.finishedOn?(a(),l("div",hP,[t[60]||(t[60]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.humanTime(i?.finishedOn))},null,8,gP)])):f("v-if",!0),i?.attemptsMade?(a(),l("div",yP,[t[61]||(t[61]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.attemptsMade)},null,8,vP)])):f("v-if",!0),i?.progress&&i?.progress?.status?(a(),l("div",bP,[t[62]||(t[62]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:c(i?.progress?.status)},null,8,wP)])):f("v-if",!0),e.jobProgressPct(i)!==null?(a(),l("div",kP,[t[63]||(t[63]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(i)+"%")},null,8,CP)])):f("v-if",!0)]),i?.failedReason?(a(),l("div",EP,[t[64]||(t[64]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:c(i?.failedReason)},null,8,SP)])):f("v-if",!0),i?.stacktrace?.length?(a(),l("div",NP,[t[65]||(t[65]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(a(!0),l(N,null,U(i?.stacktrace,(o,u)=>(a(),l("pre",{class:"q-error-stack",key:u},[n("code",{textContent:c(o)},null,8,RP)]))),128))])):f("v-if",!0),n("div",TP,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm",onClick:o=>e.retryJob(i)},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Retry",-1)])],8,PP)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:o=>e.removeJob(i)},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,DP),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),h(" View repo",-1)])],8,AP)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(a(),l("div",IP,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(a(),l("span",OP,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(a(),l("span",MP,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var VP={class:"container paper-page admin-page"},qP={class:"seg-bar"},LP={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},$P=["aria-checked"],FP={class:"count"},UP=["aria-checked"],BP={class:"count"},HP=["aria-checked"],zP={class:"count"},jP=["aria-checked"],_P={class:"count"},GP=["aria-checked"],WP={class:"count"},KP=["aria-checked"],YP={class:"count"},XP={class:"seg-countline",role:"status"},QP={class:"seg-meta"},JP={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},ZP={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},xP=["aria-expanded"],eD={class:"search-wrap"},tD={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},nD={key:0,class:"admin-search-hint"},sD={class:"admin-filter-inline"},oD={type:"text",class:"form-control form-control-sm",placeholder:"username"},iD={class:"admin-filter-inline"},rD={type:"text",class:"form-control form-control-sm",placeholder:"ID"},aD={key:0,class:"admin-filter-inline","aria-label":"Pagination"},lD=["disabled"],dD={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},uD=["disabled"],cD={key:0,class:"admin-filter-row"},pD={class:"admin-active-chips"},fD={class:"key"},mD=["onClick"],hD={key:1,class:"bulk-bar"},gD=["aria-busy"],yD={class:"paper-table-head",role:"row"},vD={role:"columnheader",style:{width:"28px"}},bD=["checked"],wD={role:"columnheader"},kD={role:"columnheader"},CD={role:"columnheader",class:"num"},ED={role:"columnheader"},SD={role:"cell",style:{width:"28px"}},ND={type:"checkbox","aria-label":"Select repository"},RD={class:"cell-anon",role:"cell"},TD={class:"anon-text"},PD=["textContent","href"],DD=["title"],AD=["href"],ID=["textContent"],OD=["textContent"],MD=["data-meta-label"],VD=["title","textContent","href"],qD=["data-meta-label"],LD=["textContent","href"],$D=["data-meta-label"],FD={key:3,class:"meta-item"},UD={class:"meta-item"},BD={class:"cell-status",role:"cell"},HD={class:"status-line"},zD=["textContent"],jD=["textContent","title"],_D=["data-unit"],GD=["textContent"],WD={class:"cell-expires",role:"cell"},KD=["textContent"],YD={class:"cell-actions",role:"cell"},XD={class:"dropdown"},QD={class:"dropdown-menu dropdown-menu-right"},JD=["href"],ZD=["href"],xD=["href"],eA=["onClick"],tA=["onClick"],nA=["onClick"],sA=["onClick"],oA=["onClick"],iA=["onClick"],rA={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},aA={key:0,class:"paper-table-empty"},lA={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},dA={key:0,class:"pagination-compact"},uA=["disabled"],cA=["max"],pA=["disabled"],fA={class:"admin-filter-inline"},mA={class:"form-control form-control-sm"};function Ff(e,t){let s=_e("partial-view"),i=Le("field"),r=Le("form");return a(),l("div",VP,[t[81]||(t[81]=Pe('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",qP,[n("div",LP,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=h("All ",-1)),n("span",FP,c(e.fmt?.number(e.segCount("all"))),1)],10,$P),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=h("Ready ",-1)),n("span",BP,c(e.fmt?.number(e.segCount("ready"))),1)],10,UP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=h("Preparing ",-1)),n("span",zP,c(e.fmt?.number(e.segCount("preparing"))),1)],10,HP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=h("Error ",-1)),n("span",_P,c(e.fmt?.number(e.segCount("error"))),1)],10,jP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=h("Expiring / expired ",-1)),n("span",WP,c(e.fmt?.number(e.segCount("expired"))),1)],10,GP),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=h("Removing / removed ",-1)),n("span",YP,c(e.fmt?.number(e.segCount("removed"))),1)],10,KP)]),n("p",XP,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=h(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",QP,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",JP,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",ZP,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,xP),n("div",{class:T(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",eD,[O(n("input",tD,null,512),[[i,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",nD,"/"))]),n("span",sD,[t[35]||(t[35]=n("label",null,"Owner",-1)),O(n("input",oD,null,512),[[i,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",iD,[t[36]||(t[36]=n("label",null,"Conference",-1)),O(n("input",rD,null,512),[[i,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",aD,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,lD),n("span",dD,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,uD)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",cD,[n("div",pD,[(a(!0),l(N,null,U(e.chips,(o,u)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",fD,c(o?.label),1),n("span",null,c(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:p=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,mD)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(a(),l("div",hD,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[42]||(t[42]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),$e(s,{name:"partials/admin/entityErrors.htm",state:e.viewState},null,8,["state"]),n("div",{class:T(["paper-table paper-table-repos has-bulk w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Repositories","aria-busy":e.listLoading?"true":"false"},[n("div",yD,[n("div",vD,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,bD)]),n("div",wD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",kD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",CD,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",ED,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredRepositories,(o,u)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",SD,[O(n("input",ND,null,512),[[i,{state:e.viewState,set:p=>{e.selected[o.repoId]=p},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",RD,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",TD,[n("a",{class:"repo-name",target:"_blank",textContent:c(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,PD),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:c((p=>p.length>16?p.slice(0,14)+"\u2026":p)((o?.source?.repositoryName||"").split("/")[0]))},null,8,ID)):f("v-if",!0),n("span",{class:"src-repo",textContent:c((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,OD)],8,AD),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:c(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,VD)],8,MD)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:c(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,LD)],8,qD)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(o?.conference),1)],8,$D)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",FD,c(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",UD,c(e.fmt?.number(o?.options?.terms?.length))+" "+c(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,DD)])]),n("div",BD,[n("span",HD,[n("span",{class:T(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(o?.status))},null,8,zD)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,jD)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=h()),n("span",{textContent:c(e.fmt?.number(o?.pageView||0))},null,8,GD)],8,_D),n("div",WD,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=h()),n("span",{textContent:c((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,KD)]),n("div",YD,[n("div",XD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",QD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,JD),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,ZD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,xD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,eA),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,tA),[[te,o?.status=="ready"||o?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,nA),[[te,o?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,sA),[[te,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,oA),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(p=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,iA),[[te,o?.status=="ready"]])])])])],2))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],o=>(a(),l(N,{key:"skeleton-"+o},[!e.listLoaded||e.listLoading&&e.filteredRepositories?.length==0?(a(),l("div",rA,[...t[73]||(t[73]=[n("div",{role:"cell",style:{width:"28px"}},null,-1),n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredRepositories?.length==0?(a(),l("div",aA,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[75]||(t[75]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)],10,gD),n("div",lA,[t[80]||(t[80]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",dA,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous ",-1)])],8,uA),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,cA),[[i,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[77]||(t[77]=[h(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,pA)])):f("v-if",!0),n("span",fA,[t[79]||(t[79]=n("label",null,"Per page",-1)),O((a(),l("select",mA,[...t[78]||(t[78]=[Pe('',5)])])),[[i,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var hA={class:"container paper-page admin-page"},gA={class:"paper-crumbs"},yA={class:"here"},vA={class:"paper-page-title"},bA={key:0,class:"user-detail-card"},wA={class:"user-header"},kA=["src"],CA={class:"user-header-status"},EA={class:"status-dot-wrap"},SA=["textContent"],NA={key:0,class:"type-badge type-repo"},RA={class:"user-actions",style:{"margin-top":"4px"}},TA={class:"user-detail-grid"},PA={class:"detail-value mono-id"},DA={class:"detail-value"},AA=["href"],IA={class:"detail-value"},OA={class:"detail-value"},MA={key:0},VA={key:1,class:"text-muted"},qA={class:"detail-value"},LA={key:0,style:{"margin-top":"20px"}},$A={class:"paper-table w-100",style:{"margin-top":"10px"}},FA={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},UA={class:"cell-anon",role:"cell"},BA={class:"anon-text"},HA=["textContent"],zA={class:"cell-expires",role:"cell"},jA={key:1,class:"admin-section-header"},_A={class:"section-count"},GA={key:2,class:"user-detail-card"},WA={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},KA={key:0,class:"alert alert-warning",role:"alert"},YA={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},XA={key:1,class:"paper-table w-100"},QA={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},JA=["textContent"],ZA=["textContent"],xA={role:"cell"},eI={key:0},tI={key:1,class:"text-muted"},nI={role:"cell"},sI=["onClick"],oI={key:2,class:"paper-table-empty"},iI={class:"admin-section-header"},rI={class:"section-count"},aI={class:"seg-bar"},lI={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},dI=["aria-checked"],uI={class:"count"},cI=["aria-checked"],pI={class:"count"},fI=["aria-checked"],mI={class:"count"},hI=["aria-checked"],gI={class:"count"},yI=["aria-checked"],vI={class:"count"},bI=["aria-checked"],wI={class:"count"},kI={class:"seg-countline",role:"status"},CI={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},EI={class:"admin-filter-row"},SI={class:"search-wrap"},NI={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},RI={key:3,class:"bulk-bar"},TI={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},PI={class:"paper-table-head",role:"row"},DI={role:"columnheader",style:{width:"28px"}},AI=["checked"],II={role:"columnheader"},OI={role:"columnheader"},MI={role:"columnheader",class:"num"},VI={role:"columnheader"},qI={role:"cell",style:{width:"28px"}},LI={type:"checkbox","aria-label":"Select repository"},$I={class:"cell-anon",role:"cell"},FI={class:"anon-text"},UI=["textContent","href"],BI=["title"],HI=["href"],zI=["textContent"],jI=["textContent"],_I=["data-meta-label"],GI=["title","textContent","href"],WI=["data-meta-label"],KI=["textContent","href"],YI=["data-meta-label"],XI={key:3,class:"meta-item"},QI={class:"meta-item"},JI={class:"cell-status",role:"cell"},ZI={class:"status-line"},xI=["textContent"],e8=["textContent","title"],t8=["data-unit","textContent"],n8=["textContent"],s8={class:"cell-actions",role:"cell"},o8={class:"dropdown"},i8={class:"dropdown-menu dropdown-menu-right"},r8=["href"],a8=["href"],l8=["href"],d8=["onClick"],u8=["onClick"],c8=["onClick"],p8=["onClick"],f8=["onClick"],m8=["onClick"],h8={key:0,class:"paper-table-empty"};function Uf(e,t){let s=_e("partial-view"),i=Le("field"),r=Le("form");return a(),l("div",hA,[n("div",gA,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=h(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=h(" \xA0/\xA0 ",-1)),n("span",yA,c(e.userInfo?.username||"Profile"),1)]),n("h1",vA,c(e.userInfo?.username||"User"),1),t[93]||(t[93]=Pe('',1)),e.userInfo?(a(),l("div",bA,[n("div",wA,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,kA)):f("v-if",!0),n("div",null,[n("div",CA,[n("span",EA,[n("span",{class:T(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,SA)]),e.userInfo?.isAdmin?(a(),l("span",NA,"Admin")):f("v-if",!0)]),n("div",RA,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),h(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",TA,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",PA,c(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:T(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},c(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:T(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},c(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",DA,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),h(" "+c(e.userInfo?.username),1)],8,AA)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",IA,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",OA,[e.userInfo?.accessTokenDates?.github?(a(),l("span",MA,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",VA,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",qA,[h(c(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",LA,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",$A,[(a(!0),l(N,null,U(e.userInfo?.repositories,(o,u)=>(a(),l("div",FA,[n("div",UA,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",BA,[n("span",{class:"repo-name",textContent:c(o?.name)},null,8,HA)])]),n("div",zA,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),h(" "+c(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),$e(s,{name:"partials/admin/entityErrors.htm",state:e.viewState},null,8,["state"]),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",jA,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),h(" API tokens")],-1)),n("span",_A,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",GA,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[h("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),h(" to authenticate without GitHub OAuth (useful for development).")],-1)),O((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=de(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[O(n("input",WA,null,512),[[i,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),h(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",KA,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",YA,c(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",XA,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(N,null,U(e.tokens,(o,u)=>(a(),l("div",QA,[n("div",{role:"cell",textContent:c(o?.name)},null,8,JA),n("div",{role:"cell",textContent:c(e.fmt?.humanTime(o?.createdAt))},null,8,ZA),n("div",xA,[o?.lastUsedAt?(a(),l("span",eI,c(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",tI,"never"))]),n("div",nI,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:p=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,sI)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",oI,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",iI,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),h(" Anonymized repositories")],-1)),n("span",rI,c(e.repositories?.length),1)]),n("div",aI,[n("div",lI,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=h("All ",-1)),n("span",uI,c(e.fmt?.number(e.segCount("all"))),1)],10,dI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=h("Ready ",-1)),n("span",pI,c(e.fmt?.number(e.segCount("ready"))),1)],10,cI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=h("Preparing ",-1)),n("span",mI,c(e.fmt?.number(e.segCount("preparing"))),1)],10,fI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=h("Error ",-1)),n("span",gI,c(e.fmt?.number(e.segCount("error"))),1)],10,hI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=h("Expiring / expired ",-1)),n("span",vI,c(e.fmt?.number(e.segCount("expired"))),1)],10,yI),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=h("Removing / removed ",-1)),n("span",wI,c(e.fmt?.number(e.segCount("removed"))),1)],10,bI)]),n("p",kI,[n("strong",null,c(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=h(" shown",-1))])]),O((a(),l("form",CI,[n("div",EI,[n("div",SI,[O(n("input",NI,null,512),[[i,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(a(),l("div",RI,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[65]||(t[65]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",TI,[n("div",PI,[n("div",DI,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,AI)]),n("div",II,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",OI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",MI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",VI,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredRepositories,(o,u)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",qI,[O(n("input",LI,null,512),[[i,{state:e.viewState,set:p=>{e.selected[o.repoId]=p},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",$I,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",FI,[n("a",{class:"repo-name",target:"_blank",textContent:c(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,UI),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:c((p=>p.length>16?p.slice(0,14)+"\u2026":p)((o?.source?.fullName||"").split("/")[0]))},null,8,zI)):f("v-if",!0),n("span",{class:"src-repo",textContent:c((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,jI)],8,HI),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:c(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,GI)],8,_I)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:c(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,KI)],8,WI)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(o?.conference),1)],8,YI)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",XI,c(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",QI,c(e.fmt?.number(o?.options?.terms?.length))+" "+c(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,BI)])]),n("div",JI,[n("span",ZI,[n("span",{class:T(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.statusLabel(o?.status))},null,8,xI)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,e8)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:c(e.fmt?.number(o?.pageView||0))},null,8,t8),n("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(o?.anonymizeDate))},null,8,n8),n("div",s8,[n("div",o8,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",i8,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,r8),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,a8),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,l8)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,d8),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,u8),[[te,o?.status=="ready"||o?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,c8),[[te,o?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,p8),[[te,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:de(p=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,f8),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(p=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,m8),[[te,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",h8,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var g8={class:"container paper-page admin-page"},y8={class:"seg-bar"},v8={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},b8=["aria-checked"],w8={class:"count"},k8=["aria-checked"],C8={class:"count"},E8=["aria-checked"],S8={class:"count"},N8=["aria-checked"],R8={class:"count"},T8={class:"seg-countline",role:"status"},P8={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},D8={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},A8={class:"admin-filter-row"},I8={class:"search-wrap"},O8={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},M8={key:0,class:"admin-search-hint"},V8={class:"admin-filter-inline"},q8={class:"form-control form-control-sm"},L8={key:0,class:"admin-filter-inline","aria-label":"Pagination"},$8=["disabled"],F8={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},U8=["disabled"],B8={key:0,class:"admin-filter-row"},H8={class:"admin-active-chips"},z8={class:"key"},j8=["onClick"],_8={key:1,class:"bulk-bar"},G8=["aria-busy"],W8={class:"paper-table-head admin-users-row",role:"row"},K8={role:"columnheader",style:{width:"28px"}},Y8=["checked"],X8={role:"columnheader"},Q8={role:"columnheader"},J8={role:"cell",style:{width:"28px"}},Z8={type:"checkbox","aria-label":"Select user"},x8={class:"cell-anon",role:"cell"},eO=["src"],tO={key:1,class:"avatar-fallback","aria-hidden":"true"},nO={class:"anon-text"},sO={class:"user-name-line"},oO=["textContent","href"],iO=["href","title","aria-label"],rO={class:"anon-sub meta-dots"},aO=["title"],lO={key:1},dO={class:"cell-views num",role:"cell"},uO=["title","textContent","href"],cO={class:"cell-status",role:"cell"},pO=["textContent"],fO={class:"cell-status",role:"cell"},mO={key:0,class:"role-pill"},hO={key:1,class:"empty-dash"},gO={class:"cell-actions",role:"cell"},yO={class:"dropdown"},vO={class:"dropdown-menu dropdown-menu-right"},bO=["href"],wO=["href"],kO=["onClick"],CO=["onClick"],EO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},SO={key:0,class:"paper-table-empty"},NO={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},RO={key:0,class:"pagination-compact"},TO=["disabled"],PO=["max"],DO=["disabled"],AO={class:"admin-filter-inline"},IO={class:"form-control form-control-sm"};function Bf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",g8,[t[54]||(t[54]=Pe('
Admin \xA0/\xA0 Users

Users

',3)),n("div",y8,[n("div",v8,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=r=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=h("All ",-1)),n("span",w8,c(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,b8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=r=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Active ",-1)),n("span",C8,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,k8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=r=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Banned ",-1)),n("span",S8,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,E8),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=r=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Removed ",-1)),n("span",R8,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,N8)]),n("p",T8,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=h(" shown",-1))])]),e.fetchError?(a(),l("div",P8,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fetchError),1)])):f("v-if",!0),O((a(),l("form",D8,[n("div",A8,[n("div",I8,[O(n("input",O8,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",M8,"/"))]),n("span",V8,[t[24]||(t[24]=n("label",null,"Role",-1)),O((a(),l("select",q8,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.role=r},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=r=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",L8,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,$8),n("span",F8,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,U8)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",B8,[n("div",H8,[(a(!0),l(N,null,U(e.chips,(r,o)=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",z8,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,j8)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",_8,[n("span",null,[n("strong",null,c(e.selectedCount()),1),t[30]||(t[30]=h(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=r=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=r=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",{class:T(["paper-table w-100",{"is-refreshing":e.listLoading&&e.listLoaded}]),role:"table","aria-label":"Users","aria-busy":e.listLoading?"true":"false",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},[n("div",W8,[n("div",K8,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=r=>e.selectAllOnPage()),checked:e.allSelected},null,8,Y8)]),n("div",X8,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=r=>e.sortBy("username"))},[t[33]||(t[33]=h("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",Q8,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=r=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(N,null,U(e.filteredUsers,(r,o)=>(a(),l("div",{class:T(["paper-table-row admin-users-row",{"row-selected":e.selected[r?.username]}]),role:"row"},[n("div",J8,[O(n("input",Z8,null,512),[[s,{state:e.viewState,set:u=>{e.selected[r.username]=u},value:e.selected[r?.username],form:null,options:{}}]])]),n("div",x8,[r?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(r?.photo)},null,8,eO)):(a(),l("span",tO,c((r?.username||"?").charAt(0).toUpperCase()),1)),n("div",nO,[n("span",sO,[n("a",{class:"repo-name",textContent:c(r?.username),href:e.safeUrl("/admin/users/"+r?.username)},null,8,oO),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+r?.username),title:r?.username+" on GitHub","aria-label":r?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,iO)]),n("div",rO,[r?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:r?.emails?.[0]?.email},c(r?.emails?.[0]?.email),9,aO)):f("v-if",!0),r?.dateOfEntry?(a(),l("span",lO,"Joined "+c(e.fmt?.humanTime(r?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",dO,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:r?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:c(r?.repoCount?e.fmt?.number(r.repoCount):"Not synced"),class:T({"is-unsynced":!r?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+r?.username)},null,10,uO)]),n("div",cO,[n("span",{class:T(["status-dot","st-"+(r?.status||"unknown")])},null,2),n("span",{textContent:c(e.fmt?.title(r?.status))},null,8,pO)]),n("div",fO,[r?.isAdmin?(a(),l("span",mO,"Admin")):f("v-if",!0),r?.isAdmin?f("v-if",!0):(a(),l("span",hO,"\u2014"))]),n("div",gO,[n("div",yO,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",vO,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+r?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View details",-1)])],8,bO),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+r?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,wO),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),O(n("a",{class:"dropdown-item text-danger",href:"#",onClick:de(u=>e.banUser(r),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])],8,kO),[[te,r?.status=="active"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.activateUser(r),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])],8,CO),[[te,r?.status=="removed"||r?.status=="banned"]])])])])],2))),256)),f(" Placeholder rows until the first page arrives, and while a reload has none of the new rows yet "),(a(),l(N,null,U([1,2,3,4],r=>(a(),l(N,{key:"skeleton-"+r},[!e.listLoaded||e.listLoading&&e.filteredUsers?.length==0?(a(),l("div",EO,[...t[47]||(t[47]=[n("div",{role:"cell",style:{width:"28px"}},null,-1),n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"42%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"64%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),e.listLoaded&&!e.listLoading&&e.filteredUsers?.length==0?(a(),l("div",SO,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)],10,G8),n("div",NO,[t[53]||(t[53]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",RO,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[49]||(t[49]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,TO),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,PO),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[50]||(t[50]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,DO)])):f("v-if",!0),n("span",AO,[t[52]||(t[52]=n("label",null,"Per page",-1)),O((a(),l("select",IO,[...t[51]||(t[51]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])])}var OO={class:"anonymize-landing"},MO={class:"anonymize-landing-inner"},VO={class:"form-group mt-4 mb-2"},qO={class:"source-url-label-row"},LO={key:0,class:"repo-access","aria-label":"GitHub access"},$O={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},FO=["aria-pressed","disabled"],UO=["aria-pressed","disabled"],BO={key:1,class:"connection-badge"},HO={class:"landing-url-row"},zO={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},jO=["aria-disabled"],_O={key:0,class:"text-danger",role:"alert"},GO={class:"repo-picker","aria-labelledby":"repo-picker-title"},WO={class:"repo-picker-head"},KO={class:"repo-picker-title"},YO={key:0,class:"repo-picker-count",role:"status"},XO=["title"],QO={class:"repo-picker-tools"},JO=["aria-busy","title"],ZO={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},xO={class:"repo-picker-row is-skeleton","aria-hidden":"true"},e5={key:1,class:"repo-picker-list"},t5=["onMouseenter"],n5={class:"repo-picker-owner"},s5={class:"repo-picker-repo"},o5=["onClick","aria-label"],i5={key:2,class:"repo-picker-state",role:"status"},r5={key:3,class:"repo-picker-state"},a5={key:4,class:"repo-picker-state",role:"alert"},l5={key:5,class:"repo-picker-foot"},d5={key:0,class:"repo-picker-access"},u5={key:1,class:"connection-link",href:"/connections"},c5={key:1,class:"repo-picker-pagination","aria-label":"Repository pages"},p5=["disabled"],f5={class:"repo-picker-count",role:"status"},m5=["disabled","aria-label","title"],h5={key:0},g5={class:"anonymize-workspace"},y5={class:"anonymize-topbar"},v5={class:"anonymize-topbar-inner"},b5={class:"paper-crumbs"},w5={class:"here"},k5={class:"anonymize-topbar-head"},C5={class:"paper-page-title anonymize-topbar-title"},E5={key:0},S5={key:1},N5={class:"paper-page-lede anonymize-topbar-lede"},R5={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},T5={key:0,class:"alert alert-info",role:"status"},P5={key:1,class:"alert alert-info",role:"status"},D5={key:1},A5={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},I5=["aria-selected","tabindex"],O5=["aria-selected","tabindex"],M5={class:"anonymize-split"},V5=["role","aria-labelledby"],q5={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},L5={class:"anonymize-fields"},$5={class:"paper-settings-section"},F5={class:"form-group"},U5={class:"source-url-label-row"},B5={key:0,class:"repo-access","aria-label":"GitHub access"},H5={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},z5=["aria-pressed","disabled"],j5=["aria-pressed","disabled"],_5={key:1,class:"connection-badge"},G5=["disabled"],W5={key:0,class:"source-summary"},K5={key:1,class:"source-error",role:"alert"},Y5={class:"invalid-feedback"},X5={key:0,class:"source-error-note"},Q5={key:1,class:"repo-access-controls"},J5={key:1,class:"btn btn-ink",href:"/connections"},Z5={key:2,class:"btn btn-ink",href:"/dashboard"},x5={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},e6={key:0,class:"form-group"},t6=["value"],n6={key:1},s6={class:"repo-access-controls"},o6=["href"],i6={key:1,class:"repo-access-details","aria-label":"Publication"},r6={class:"repo-access-note"},a6={key:2,class:"form-text text-muted source-public-note"},l6=["open"],d6={key:0,class:"repair-step"},u6=["disabled"],c6={key:0,role:"status"},p6={class:"repair-step"},f6={key:0,role:"status"},m6={key:4,class:"form-grid-2"},h6={class:"form-group"},g6={class:"input-group"},y6={class:"form-control",id:"branch",name:"branch"},v6=["textContent","value"],b6={class:"input-group-append"},w6={class:"form-group"},k6=["disabled"],C6={class:"invalid-feedback"},E6={class:"invalid-feedback"},S6={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},N6={class:"form-check-label",for:"update"},R6={key:0,class:"paid-tag"},T6={key:0,class:"form-text text-muted",id:"update-help"},P6={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},D6={class:"paper-settings-section"},A6={class:"form-group"},I6=["disabled"],O6={class:"form-text text-muted anon-url-echo"},M6={class:"anon-url-id"},V6={class:"invalid-feedback"},q6={class:"form-group"},L6=["disabled"],$6={class:"form-text text-muted anon-url-echo"},F6={class:"anon-url-id"},U6={class:"invalid-feedback"},B6={class:"form-group"},H6=["disabled"],z6={class:"form-text text-muted anon-url-echo"},j6={class:"anon-url-id"},_6={class:"invalid-feedback"},G6={class:"form-group"},W6=["rows"],K6={class:"redaction-syntax"},Y6={class:"form-text text-muted"},X6=["onClick"],Q6={key:0,class:"term-hint-more"},J6={class:"invalid-feedback"},Z6={class:"preserve-row"},x6={class:"preserve-row-text"},eM={class:"preserve-row-value"},tM=["disabled"],nM={class:"preserve-tree"},sM={key:0,class:"preserve-status"},oM={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},iM=["aria-expanded","aria-label","onClick"],rM={key:1,class:"preserve-caret-space"},aM=["id","aria-label","checked",".indeterminate","disabled","onChange"],lM=["for","onClick"],dM={key:2,class:"preserve-note"},uM={key:0,class:"preserve-status"},cM={key:0,class:"preserve-status"},pM=["open"],fM={class:"preserve-foot"},mM={class:"preserve-count","aria-live":"polite"},hM={class:"preserve-actions"},gM={class:"paper-settings-section"},yM={class:"form-check"},vM={class:"form-check-input",type:"checkbox",id:"link",name:"link"},bM={class:"form-check"},wM={class:"form-check-input",type:"checkbox",id:"image",name:"image"},kM={class:"form-check"},CM={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},EM={class:"form-check"},SM={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},NM={class:"form-check"},RM=["disabled"],TM={key:0,class:"form-text text-muted"},PM={key:1,class:"form-text text-muted"},DM={key:0,class:"form-text text-muted"},AM={class:"form-check"},IM={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},OM={class:"form-check"},MM={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},VM={class:"form-check"},qM={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},LM={class:"form-check"},$M={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},FM={class:"form-check"},UM={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},BM={class:"form-check"},HM={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},zM={class:"form-check"},jM={class:"form-check-input",type:"checkbox",id:"title",name:"title"},_M={class:"form-check"},GM={class:"form-check-input",type:"checkbox",id:"body",name:"body"},WM={class:"form-check"},KM={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},YM={class:"form-check"},XM={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},QM={class:"form-check"},JM={class:"form-check-input",type:"checkbox",id:"username",name:"username"},ZM={class:"form-check"},xM={class:"form-check-input",type:"checkbox",id:"date",name:"date"},eV={class:"form-check"},tV={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},nV={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},sV={class:"form-group conference-field"},oV=["href"],iV={class:"invalid-feedback"},rV={class:"form-text text-muted"},aV={key:0,class:"hosting-usage"},lV={key:0},dV={key:1},uV={key:2},cV={key:1,class:"hosting-limit auto-update-note",role:"status"},pV={key:2,class:"hosting-payment"},fV={key:0,class:"hosting-limit",role:"status"},mV={key:1,class:"hosting-options"},hV={class:"hosting-options-title"},gV=["value","checked","onChange"],yV={class:"hosting-option-body"},vV={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},bV=["aria-checked","onClick"],wV={key:0,class:"billing-toggle-save"},kV={class:"hosting-option-price"},CV={key:2,role:"status"},EV={key:3,class:"hosting-terms"},SV={key:4,class:"hosting-terms"},NV={key:5,class:"capacity-options"},RV=["disabled"],TV={key:3,class:"hosting-subhead"},PV={class:"expiration-choices"},DV={class:"expiration-choice-row"},AV={class:"expiration-choice"},IV=["checked","disabled"],OV={key:0,class:"dated-options"},MV={key:0,class:"expiry-meta","aria-live":"polite"},VV={class:"expiry-meta-note"},qV=["min","max"],LV={key:0,class:"date-echo","aria-live":"polite"},$V={class:"invalid-feedback"},FV={class:"invalid-feedback"},UV={class:"hosting-property"},BV={key:1,class:"expiration-choice"},HV=["checked","disabled"],zV={key:0},jV={key:4,class:"form-text text-muted"},_V={key:5,class:"inline-hosting"},GV={key:0,role:"alert",class:"text-danger"},WV={key:1,role:"alert",class:"text-danger"},KV=["disabled"],YV={key:2,role:"status"},XV={key:3,role:"status",class:"form-text text-muted"},QV={key:4,class:"hosting-terms"},JV={key:5,class:"hosting-terms"},ZV={key:6,class:"repository-pass"},xV=["disabled","onClick"],eq={class:"paper-settings-section"},tq={class:"form-group"},nq={style:{position:"relative"}},sq={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},oq={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},iq=["onClick"],rq=["src"],aq=["textContent"],lq=["textContent"],dq={class:"coauthor-list"},uq={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},cq=["src"],pq=["textContent","href"],fq=["onClick"],mq={class:"form-text text-muted"},hq=["textContent"],gq={class:"anonymize-submit-bar"},yq=["disabled"],vq=["disabled"],bq=["disabled"],wq=["disabled"],kq=["disabled"],Cq=["disabled"],Eq={key:5,class:"submit-reason",role:"status"},Sq={key:6,class:"checkout-return-note"},Nq={key:7,class:"draft-status",role:"status"},Rq={key:8,class:"draft-status"},Tq=["role","aria-labelledby"],Pq={class:"rp-caption"},Dq=["aria-expanded"],Aq=["title"],Iq={class:"redact-slot","aria-hidden":"true"},Oq={key:4,class:"rp-count rp-count-none"},Mq=["href"],Vq=["aria-pressed"],qq={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},Lq={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},$q={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},Fq={class:"rp-window"},Uq={class:"rp-chrome","aria-hidden":"true"},Bq={class:"rp-url"},Hq={class:"rp-bar","aria-hidden":"true"},zq={key:0,class:"rp-bar-id"},jq={key:1,class:"rp-bar-kind"},_q={class:"leftCol-head"},Gq={class:"leftCol-body"},Wq={key:0,class:"rp-state rp-loading",role:"status"},Kq={class:"rp-state-text"},Yq={class:"rp-state rp-error"},Xq={key:0,class:"rp-state-actions"},Qq={key:1,class:"btn btn-ink btn-sm",href:"/connections"},Jq={key:2,class:"btn btn-ink btn-sm",href:"/dashboard"},Zq={class:"rp-state rp-error",role:"alert"},xq={class:"rp-state-actions"},eL={class:"rp-state rp-error",role:"alert"},tL={class:"rp-state-actions"},nL={key:4,class:"rp-state rp-empty"},sL={key:6,class:"anonymize-preview-body"},oL={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},iL={class:"pr-title mb-1"},rL={key:0},aL=["textContent"],lL={key:0},dL={key:1},uL={key:2},cL={class:"pr-comments mt-3"},pL={class:"pr-comment"},fL={class:"pr-comment-head"},mL=["textContent"],hL={key:0,class:"pr-comment-date"},gL={key:3},yL={class:"pr-comments"},vL={class:"pr-comment"},bL={class:"pr-comment-head"},wL={key:0,class:"pr-comment-author"},kL=["textContent"],CL=["textContent"],EL={key:0,class:"pr-comment-body"},SL={key:7,class:"anonymize-preview-body"},NL={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},RL={class:"pr-title mb-1"},TL={key:0},PL=["textContent"],DL={key:0},AL={key:1,class:"pr-body"},IL={key:2,class:"paper-tabs",role:"tablist"},OL=["aria-selected","tabindex"],ML=["aria-selected","tabindex"],VL=["textContent"],qL={key:3,class:"anonymize-preview-status"},LL={class:"paper-tab-content"},$L={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},FL=["innerHTML"],UL={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},BL={class:"pr-comments"},HL={class:"pr-comment"},zL={class:"pr-comment-head"},jL={key:0,class:"pr-comment-author"},_L=["textContent"],GL=["textContent"],WL={key:0,class:"pr-comment-body"},KL={key:8,class:"rp-more"},YL=["href"],XL={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function Hf(e,t){let s=_e("tree"),i=_e("partial-view"),r=_e("gist-file"),o=_e("markdown"),u=Le("field"),p=Le("form");return a(),l("div",{class:T(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),O(n("div",OO,[n("div",MO,[t[77]||(t[77]=Pe('
My work \xA0/\xA0 New anonymization

New anonymization

Paste a repository, pull request, or gist URL, or pick one of your repositories. You\u2019ll choose the terms to redact next.

  1. 1. Repository
  2. 2. Review and hosting
  3. 3. Review link
',2)),n("div",VO,[n("div",qO,[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",LO,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",$O,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=d=>e.chooseGitHubConnection("github-app"))},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,FO),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=d=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,UO)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",BO,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("div",HO,[O(n("input",zO,null,512),[[u,{state:e.viewState,set:d=>{e.sourceUrl=d},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?.trim()?null:"true",onClick:t[2]||(t[2]=d=>e.sourceUrl?.trim()&&e.urlSelected())},"Continue",8,jO)])]),e.sourceUrlError?(a(),l("p",_O,c(e.sourceUrlError),1)):f("v-if",!0),t[78]||(t[78]=n("small",{class:"form-text landing-help",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),n("section",GO,[n("div",WO,[n("div",KO,[t[67]||(t[67]=n("h2",{id:"repo-picker-title"},"Your repositories",-1)),e.userReposStatus==="loading"?(a(),l("span",YO,c(e.userRepoFilter.trim()?"Searching repositories\u2026":"Loading repositories\u2026"),1)):e.userReposStatus==="ready"&&e.userReposUpdatedLabel()?(a(),l("span",{key:1,class:"repo-picker-count repo-picker-updated",role:"status",title:e.userReposUpdatedTitle()},c(e.userReposUpdatedLabel()),9,XO)):f("v-if",!0)]),n("div",QO,[O(n("input",{type:"search",class:"form-control repo-picker-filter",placeholder:"Search repositories\u2026","aria-label":"Search your repositories",autocomplete:"off",maxlength:"200","onUpdate:modelValue":t[3]||(t[3]=d=>e.userRepoFilter=d)},null,512),[[ft,e.userRepoFilter]]),e.userReposStatus==="ready"?(a(),l("button",{key:0,type:"button",class:T(["btn btn-icon repo-picker-refresh",{"is-busy":e.userReposSyncing}]),"aria-busy":e.userReposSyncing?"true":null,onClick:t[4]||(t[4]=d=>e.refreshUserRepos()),title:e.userReposWebhooks?"Refresh from GitHub":"Refresh from GitHub to see new repositories","aria-label":"Refresh your repositories from GitHub"},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],10,JO)):f("v-if",!0)])]),e.userReposStatus==="loading"||e.userReposStatus==="idle"?(a(),l("ul",ZO,[(a(),l(N,null,U([1,2,3,4],(d,g)=>n("li",xO,[n("span",{class:"skeleton skeleton-line",style:De({width:34+d*9+"%"})},null,4)])),64))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length>0?(a(),l("ul",e5,[(a(!0),l(N,null,U(e.userRepos,(d,g)=>(a(),l("li",{key:d.id||d.fullName,class:"repo-picker-row"},[t[70]||(t[70]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("span",{class:"repo-picker-name",onMouseenter:m=>e.titleIfTruncated(m,d.fullName)},[n("span",n5,[h(c(d.fullName.split("/")[0]),1),t[69]||(t[69]=n("span",{class:"repo-picker-slash"},"/",-1))]),n("span",s5,c(d.fullName.split("/").slice(1).join("/")),1)],40,t5),n("button",{type:"button",class:"btn btn-outline-ink btn-sm repo-picker-select",onClick:m=>e.selectUserRepo(d),"aria-label":"Select "+d.fullName},"Select",8,o5)]))),128))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&e.userRepoFilter.trim()?(a(),l("p",i5,c(e.userRepoNext!==null?"No matches yet. Continue searching the remaining repositories.":e.userRepoPage>1?"No more matching repositories.":"No matching repositories found."),1)):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0&&!e.userRepoFilter.trim()?(a(),l("p",r5,"No repositories found. Paste a URL above, or grant access below.")):f("v-if",!0),e.userReposStatus==="error"?(a(),l("p",a5,[t[71]||(t[71]=h("Your repositories could not be loaded. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[5]||(t[5]=d=>e.loadUserRepos())},"Try again")])):f("v-if",!0),f(" Footer: the access link on the left, a compact pager on the right "),e.userRepoPage>1||e.userRepoNext!==null||!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("div",l5,[!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.userReposStatus==="ready"?(a(),l("p",d5,[t[74]||(t[74]=h("Don\u2019t see your repository? ",-1)),e.githubConnection!=="oauth"?(a(),l("button",{key:0,type:"button",class:"connection-link",onClick:t[6]||(t[6]=d=>e.grantGitHubAccess())},[...t[72]||(t[72]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):(a(),l("a",u5,[...t[73]||(t[73]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]))])):f("v-if",!0),e.userRepoPage>1||e.userRepoNext!==null?(a(),l("nav",c5,[e.userRepoPage>1?(a(),l("button",{key:0,type:"button",class:"repo-picker-page",disabled:e.userReposStatus==="loading",onClick:t[7]||(t[7]=d=>e.changeUserRepoPage(-1)),"aria-label":"Previous page",title:"Previous page"},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,p5)):f("v-if",!0),n("span",f5,"Page "+c(e.userRepoPage),1),n("button",{type:"button",class:T(["repo-picker-page",{"has-label":e.userRepoFilter.trim()&&!e.userRepos.length}]),disabled:e.userRepoNext===null||e.userReposStatus!=="ready",onClick:t[8]||(t[8]=d=>e.changeUserRepoPage(1)),"aria-label":e.userRepoFilter.trim()&&!e.userRepos.length?"Continue search":"Next page",title:e.userRepoFilter.trim()&&!e.userRepos.length?null:"Next page"},[e.userRepoFilter.trim()&&!e.userRepos.length?(a(),l("span",h5,"Continue search")):f("v-if",!0),t[76]||(t[76]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1))],10,m5)])):f("v-if",!0)])):f("v-if",!0)])])],512),[[te,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),O(n("div",g5,[n("header",y5,[n("div",v5,[n("div",b5,[t[79]||(t[79]=n("a",{href:"/dashboard"},"My work",-1)),t[80]||(t[80]=h(" \xA0/\xA0 ",-1)),n("span",w5,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),n("div",k5,[n("h1",C5,[e.isUpdate?f("v-if",!0):(a(),l("span",E5,"New anonymization")),e.isUpdate?(a(),l("span",S5,"Edit anonymization")):f("v-if",!0)]),O(n("span",{class:T(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[te,e.detectedType]])]),n("p",N5,c(e.isUpdate?"Changes apply to the existing anonymous link; reviewers keep the same URL.":"Choose the terms to redact, what reviewers see, and when the link expires."),1),e.isUpdate?f("v-if",!0):(a(),l("ol",R5,[...t[81]||(t[81]=[n("li",null,"1. Repository",-1),n("li",{"aria-current":"step"},"2. Review and hosting",-1),n("li",null,"3. Review link",-1)])]))])]),e.detectedType==="gist"&&e.gistAppRequired?(a(),l("aside",T5,[t[82]||(t[82]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[9]||(t[9]=d=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(a(),l("aside",P5,[t[83]||(t[83]=n("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[84]||(t[84]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[10]||(t[10]=d=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(a(),l("p",D5,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",A5,[n("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[11]||(t[11]=d=>e.previewTabKeydown(d)),onClick:t[12]||(t[12]=d=>e.selectMobilePane("settings"))},[...t[85]||(t[85]=[n("span",{class:"tab-label"},"Settings",-1)])],40,I5),n("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[13]||(t[13]=d=>e.previewTabKeydown(d)),onClick:t[14]||(t[14]=d=>e.selectMobilePane("preview"))},[...t[86]||(t[86]=[n("span",{class:"tab-label"},"Reviewer preview",-1)])],40,O5)]),n("div",M5,[f(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[O((a(),l("form",q5,[n("div",L5,[n("section",$5,[t[105]||(t[105]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",F5,[n("div",U5,[t[88]||(t[88]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",B5,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",H5,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[15]||(t[15]=d=>e.chooseGitHubConnection("github-app"))},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,z5),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[16]||(t[16]=d=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,j5)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",_5,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)]),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,G5),[[u,{state:e.viewState,set:d=>{e.sourceUrl=d},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),e.sourceSummary()&&!e.anonymize?.sourceUrl?.invalid?(a(),l("p",W5,[t[89]||(t[89]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check"})],-1)),h(c(e.sourceSummary()),1)])):f("v-if",!0),e.sourceProblem()&&e.sourceProblem().kind!=="connect"?(a(),l("div",K5,[n("p",Y5,c(e.sourceProblem().text),1),e.sourceProblem().note?(a(),l("p",X5,c(e.sourceProblem().note),1)):f("v-if",!0),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",Q5,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[17]||(t[17]=d=>e.grantGitHubAccess())},[...t[90]||(t[90]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",J5,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",Z5,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink",onClick:t[18]||(t[18]=d=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])):f("v-if",!0)]),!e.isUpdate&&e.previousConfigurations.length?(a(),l("aside",x5,[t[92]||(t[92]=n("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?(a(),l("div",e6,[t[91]||(t[91]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),O(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[19]||(t[19]=d=>e.previousConfigurationId=d)},[(a(!0),l(N,null,U(e.previousConfigurations,d=>(a(),l("option",{key:d.repoId,value:d.repoId},c(d.repoId),9,t6))),128))],512),[[Vt,e.previousConfigurationId]])])):(a(),l("p",n6,c(e.previousConfigurationId),1)),t[93]||(t[93]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",s6,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,o6),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=d=>e.previousConfigurations=[])},"Create a separate one")])])):f("v-if",!0),e.details&&e.sourceIsPrivate()?(a(),l("aside",i6,[n("div",r6,[n("span",null,[t[94]||(t[94]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+c(e.detectedType==="gist"?"This secret gist will be published at a public link.":"Selected content will be published, including content from private repositories."),1)])])])):e.details?(a(),l("p",a6,"Anonymized content is public.")):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("details",{key:3,class:"repair-disclosure",open:!!(e.error||e.sourceError||e.accessRepairMessage||e.reconnectRepositoryId)},[t[98]||(t[98]=n("summary",null,"Connection problems?",-1)),e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("div",d6,[t[96]||(t[96]=n("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)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[21]||(t[21]=d=>e.repairGitHubAccess())},"Repair GitHub access",8,u6),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[22]||(t[22]=d=>e.grantGitHubAccess())},[...t[95]||(t[95]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]),e.accessRepairMessage?(a(),l("p",c6,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),n("div",p6,[t[97]||(t[97]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[23]||(t[23]=d=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(a(),l("p",f6,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])],8,l6)):f("v-if",!0),e.detectedType==="repo"?O((a(),l("div",m6,[n("div",h6,[t[100]||(t[100]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",g6,[O((a(),l("select",y6,[(a(!0),l(N,null,U(e.branches,(d,g)=>(a(),l("option",{textContent:c(d?.name),value:d?.name},null,8,v6))),256))])),[[u,{state:e.viewState,set:d=>{e.source.branch=d},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",b6,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[24]||(t[24]=d=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",w6,[t[101]||(t[101]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),O(n("input",{class:T(["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,k6),[[u,{state:e.viewState,set:d=>{e.source.commit=d},value:e.source?.commit,form:"anonymize",options:{}}]]),O(n("div",C6," The commit SHA is not valid. ",512),[[te,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),O(n("div",E6," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[te,e.anonymize?.commit?.errors?.exists]])])],512)),[[te,e.sourceReady()]]):f("v-if",!0),O(n("div",{class:T(["form-check auto-update-check",{"is-paid":!e.liveUpdatesIncluded()}])},[O(n("input",S6,null,512),[[u,{state:e.viewState,set:d=>{e.options.update=d},value:e.options?.update,form:"anonymize",options:{}}]]),n("label",N6,[t[102]||(t[102]=h("Auto-update from GitHub",-1)),e.liveUpdatesIncluded()?f("v-if",!0):(a(),l("span",R6,"Paid"))]),e.liveUpdatesIncluded()?(a(),l("small",T6,"Follows the latest version, at most once an hour.")):(a(),l("small",P6,[t[103]||(t[103]=h("Needs Live updates",-1)),e.liveUpdatesPrice()?(a(),l(N,{key:0},[h(" \xB7 "+c(e.liveUpdatesPrice()),1)],64)):f("v-if",!0),t[104]||(t[104]=h(", a Paper pack or an author subscription. ",-1)),n("a",{href:"#repository-hosting",onClick:t[25]||(t[25]=de(d=>e.showHostingOptions(),["prevent"]))},"Hosting options")]))],2),[[te,e.detectedType&&e.sourceReady()]])]),O(n("section",D6,[t[139]||(t[139]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),O(n("div",A6,[t[110]||(t[110]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,I6),[[u,{state:e.viewState,set:d=>{e.repoId=d},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",O6,[t[106]||(t[106]=h("anonymous.4open.science/",-1)),t[107]||(t[107]=n("wbr",null,null,-1)),t[108]||(t[108]=h("r/",-1)),t[109]||(t[109]=n("wbr",null,null,-1)),n("span",M6,c(e.repoId),1)]),O(n("div",V6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.repoId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[te,e.anonymize?.repoId?.errors?.used]])],512),[[te,e.detectedType==="repo"]]),O(n("div",q6,[t[115]||(t[115]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,L6),[[u,{state:e.viewState,set:d=>{e.pullRequestId=d},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",$6,[t[111]||(t[111]=h("anonymous.4open.science/",-1)),t[112]||(t[112]=n("wbr",null,null,-1)),t[113]||(t[113]=h("pr/",-1)),t[114]||(t[114]=n("wbr",null,null,-1)),n("span",F6,c(e.pullRequestId),1)]),O(n("div",U6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.pullRequestId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[te,e.anonymize?.pullRequestId?.errors?.used]])],512),[[te,e.detectedType==="pr"]]),O(n("div",B6,[t[120]||(t[120]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,H6),[[u,{state:e.viewState,set:d=>{e.gistId=d},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",z6,[t[116]||(t[116]=h("anonymous.4open.science/",-1)),t[117]||(t[117]=n("wbr",null,null,-1)),t[118]||(t[118]=h("gist/",-1)),t[119]||(t[119]=n("wbr",null,null,-1)),n("span",j6,c(e.gistId),1)]),O(n("div",_6,"ID can only contain letters and numbers.",512),[[te,e.anonymize?.gistId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[te,e.anonymize?.gistId?.errors?.used]])],512),[[te,e.detectedType==="gist"]]),n("div",G6,[t[131]||(t[131]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),O(n("textarea",{class:T(["form-control terms-input",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:Math.min(14,Math.max(4,String(e.terms||"").split(` `).length+1)),placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},null,10,_6),[[u,{state:e.viewState,set:d=>{e.terms=d},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[132]||(t[132]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",G6,[t[127]||(t[127]=n("summary",null,"Regex & replacement syntax",-1)),t[128]||(t[128]=h()),n("small",W6,[t[121]||(t[121]=h("Regex is supported. Replaced by ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[122]||(t[122]=h(", or use ",-1)),t[123]||(t[123]=n("code",null,"term=>replacement",-1)),t[124]||(t[124]=h(" to pick your own (e.g. ",-1)),t[125]||(t[125]=n("code",null,"Anonymous=>ABC",-1)),t[126]||(t[126]=h(").",-1))])]),(a(!0),l(N,null,U((e.termHints||[]).slice(0,3),d=>(a(),l("div",{class:"term-hint",key:d.line},[n("span",null,[t[129]||(t[129]=h("In ",-1)),n("code",null,c(d.term),1),t[130]||(t[130]=h(", ",-1)),n("code",null,c(d.symbols.join(" ")),1),h(" "+c(d.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:g=>e.matchTermAsWritten(d.line)},"Match as written",8,K6)]))),128)),(e.termHints||[]).length>3?(a(),l("div",Y6,c(e.termHints.length-3)+" more "+c(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):f("v-if",!0),O(n("div",X6,"Terms are in an invalid format.",512),[[te,e.anonymize?.terms?.errors?.format]])]),O(n("div",Q6,[n("div",J6,[t[133]||(t[133]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",Z6,c(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[26]||(t[26]=d=>e.openPreserveFiles())},c((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,x6)],512),[[te,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[31]||(t[31]=de(d=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[30]||(t[30]=de(d=>e.savePreserveFiles(),["prevent"]))},[t[137]||(t[137]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[138]||(t[138]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),O(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[27]||(t[27]=d=>e.preserve.search=d)},null,512),[[ft,e.preserve.search]]),n("div",eM,[e.preserve.loading?(a(),l("p",tM,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",nM,c(e.preserve.error),1)):(a(),l(N,{key:2},[(a(!0),l(N,null,U(e.preserveRows(),(d,g)=>(a(),l("div",{class:"preserve-item",key:d.kind+":"+d.path,style:De({paddingLeft:d.depth*18+6+"px"})},[d.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":d.open?"true":"false","aria-label":(d.open?"Collapse ":"Expand ")+d.label,onClick:m=>e.togglePreserveDir(d.path)},c(d.open?"\u25BE":"\u25B8"),9,sM)):(a(),l("span",oM)),n("input",{type:"checkbox",id:"pf-"+g,"aria-label":d.kind==="dir"?"Leave folder "+d.path+" unredacted":null,checked:d.state==="all",".indeterminate":d.state==="some",disabled:d.locked,onChange:m=>d.kind==="dir"?e.togglePreserveFolder(d.path):e.togglePreserveFile(d.path)},null,40,iM),n("label",{for:d.kind==="file"?"pf-"+g:null,class:"preserve-name",onClick:m=>d.kind==="dir"&&e.togglePreserveDir(d.path)},c(d.label),9,rM),d.note?(a(),l("span",aM,c(d.note),1)):f("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",lM,c(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):f("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",dM,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):f("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[134]||(t[134]=n("summary",null,"Patterns",-1)),O(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib -paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=d=>e.preserve.patterns=d)},null,512),[[ft,e.preserve.patterns]]),t[135]||(t[135]=n("small",{class:"form-text text-muted"},[h("One per line, as in .gitignore: "),n("code",null,"*.bib"),h(" matches in any folder; "),n("code",null,"/refs.bib"),h(" and "),n("code",null,"paper/refs.bib"),h(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),h(" covers everything inside it; "),n("code",null,"!private.bib"),h(" excludes again.")],-1))],8,uM),n("div",cM,[n("span",pM,c(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",fM,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=d=>e.closePreserveFiles())},"Cancel"),t[136]||(t[136]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",mM,[t[159]||(t[159]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),O(n("div",null,[n("div",hM,[O(n("input",gM,null,512),[[u,{state:e.viewState,set:d=>{e.options.link=d},value:e.options?.link,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",yM,[O(n("input",vM,null,512),[[u,{state:e.viewState,set:d=>{e.options.image=d},value:e.options?.image,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",bM,[O(n("input",wM,null,512),[[u,{state:e.viewState,set:d=>{e.options.pdf=d},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",kM,[O(n("input",CM,null,512),[[u,{state:e.viewState,set:d=>{e.options.notebook=d},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",EM,[O(n("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,SM),[[u,{state:e.viewState,set:d=>{e.options.page=d},value:e.options?.page,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",NM,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?(a(),l("small",RM,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[te,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",TM,[...t[145]||(t[145]=[h("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),O(n("div",null,[n("div",PM,[O(n("input",DM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",AM,[O(n("input",IM,null,512),[[u,{state:e.viewState,set:d=>{e.options.content=d},value:e.options?.content,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",OM,[O(n("input",MM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",VM,[O(n("input",qM,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",LM,[O(n("input",$M,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",FM,[O(n("input",UM,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[te,e.detectedType==="gist"]]),O(n("div",null,[n("div",BM,[O(n("input",HM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",zM,[O(n("input",jM,null,512),[[u,{state:e.viewState,set:d=>{e.options.body=d},value:e.options?.body,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",_M,[O(n("input",GM,null,512),[[u,{state:e.viewState,set:d=>{e.options.diff=d},value:e.options?.diff,form:"anonymize",options:{}}]]),t[154]||(t[154]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",WM,[O(n("input",KM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[155]||(t[155]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",YM,[O(n("input",XM,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[156]||(t[156]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",QM,[O(n("input",JM,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[157]||(t[157]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",ZM,[O(n("input",xM,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[158]||(t[158]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[te,e.detectedType==="pr"]])],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",eV,[t[176]||(t[176]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),n("div",tV,[t[160]||(t[160]=n("label",{class:"paper-field-label",for:"conference"},[h("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[u,{state:e.viewState,set:d=>{e.conference=d},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),O(n("p",{class:T(["conference-hosting",{"is-covered":e.conferenceHosting()}]),role:"status"},[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,nV),e.conferenceHosting()?(a(),l(N,{key:0},[h(" hosts this repository until "+c(e.fmt?.date(e.conference_data?.endDate))+", with automatic updates. You don't pay anything.",1)],64)):e.billing?.enabled&&e.detectedType==="repo"?(a(),l(N,{key:1},[h(" runs until "+c(e.fmt?.date(e.conference_data?.endDate))+". It doesn't pay for hosting, so this repository uses your own allowance.",1)],64)):(a(),l(N,{key:2},[h(" runs until "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],64))],2),[[te,e.conference_data]]),O(n("div",sV,"The conference is not activated.",512),[[te,e.anonymize?.conference?.errors?.activated]]),O(n("small",oV,"Submitting to a conference? Its code applies the venue's settings, and a paid conference hosts the repository for you.",512),[[te,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled&&!e.conferenceHosting()?(a(),l("p",iV,[e.isUpdate&&e.role!=="owner"?(a(),l("span",rV,"Uses the owner's hosting")):e.hasAuthorHosting()?(a(),l("span",aV,"Your author subscription is active.")):e.hostingQuota?.repository?(a(),l("span",lV,c(e.hostingQuota.repository.used)+" of "+c(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"&&e.options?.update&&!e.liveUpdatesIncluded()?(a(),l("p",dV,[t[161]||(t[161]=h("Automatic updates need a paid option. On free hosting, the link keeps the version you create until you refresh it from My work. Once it exists, add Live updates",-1)),e.liveUpdatesPrice()?(a(),l(N,{key:0},[h(" ("+c(e.liveUpdatesPrice())+" once)",1)],64)):f("v-if",!0),t[162]||(t[162]=h(" or a Paper pack in ",-1)),t[163]||(t[163]=n("a",{href:"/profile?billing=1"},"Settings \u203A Hosting & billing",-1)),t[164]||(t[164]=h(", or take an author subscription.",-1))])):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",uV,[e.hostingNeedsPayment()&&!e.billingPending?(a(),l(N,{key:0},[e.options.expirationMode!=="never"||e.hostingQuotaBlocked?(a(),l("p",cV,c(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(a(),l("label",{class:T(["hosting-option",{"is-selected":e.hostingChoice()===d.id||d.interval&&e.authorPlans().some(g=>g.id===e.hostingChoice())}]),key:d.id},[n("input",{type:"radio",name:"hosting-plan",value:d.id,checked:e.hostingChoice()===d.id||d.interval&&e.authorPlans().some(g=>g.id===e.hostingChoice()),onChange:g=>e.hostingPlan=d.interval?e.hostingSubscriptionPlan().id:d.id},null,40,mV),n("span",hV,[n("strong",null,c(e.hostingOptionName(d)),1),n("small",null,c(e.hostingOptionBlurb(d)),1),d.interval&&e.authorPlans().length>1&&e.authorPlans().some(g=>g.id===e.hostingChoice())?(a(),l("span",gV,[(a(!0),l(N,null,U(e.authorPlans(),g=>(a(),l("button",{type:"button",role:"radio",key:g.id,"aria-checked":e.hostingSubscriptionPlan().id===g.id?"true":"false",class:T({"is-on":e.hostingSubscriptionPlan().id===g.id}),onClick:de(m=>{e.hostingCycle=g.id,e.hostingPlan=g.id},["prevent"])},[h(c(g.interval==="year"?"Yearly":"Monthly"),1),g.interval==="year"&&e.hostingAnnualSavings()?(a(),l("span",vV,"\u2212"+c(e.hostingAnnualSavings())+"%",1)):f("v-if",!0)],10,yV))),128))])):f("v-if",!0)]),n("span",bV,[n("strong",null,c(e.billingAmount(d.interval?e.hostingSubscriptionPlan():d)),1),n("small",null,c(d.interval?"per "+e.hostingSubscriptionPlan().interval:"once"),1)])],2))),128))])):(a(),l("p",wV,"New purchases are temporarily unavailable. Your draft is kept.")),e.authorPlans().some(d=>d.id===e.hostingChoice())?(a(),l("p",kV,"Renews "+c(e.hostingChoice()==="author_annual"?"yearly":"monthly")+" until you cancel. Tax shown at checkout.",1)):(a(),l("p",CV,"One-time payment, nothing renews. Tax shown at checkout.")),e.options.expirationMode!=="never"?(a(),l("details",EV,[t[165]||(t[165]=n("summary",null,"Keep using free hosting",-1)),t[166]||(t[166]=n("p",null,"Remove a repository you no longer need, or enter the code of a paid conference above. Removing a repository affects its review link.",-1)),t[167]||(t[167]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[32]||(t[32]=d=>e.anonymizeRepo(d)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,SV)])):f("v-if",!0)],64)):f("v-if",!0)])):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("h4",NV,"Expiration")):f("v-if",!0),n("fieldset",RV,[t[173]||(t[173]=n("legend",{class:"sr-only"},"Expiration",-1)),f(' Under a plan limit the option names the date ("Expire on Apr 29, 2027"); a muted line says why, and "Change date" reveals the bounded input '),n("div",TV,[n("label",PV,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[33]||(t[33]=d=>e.useDatedHosting()),disabled:e.billingPending},null,40,DV),n("span",null,c(e.expiryChoiceLabel()),1)]),e.options.expirationMode!=="never"&&!e.expiryPickerShown()?(a(),l("button",{key:0,type:"button",class:"expiry-change",onClick:t[34]||(t[34]=d=>e.openExpiryPicker())},"Change date")):f("v-if",!0)]),e.options.expirationMode!=="never"?(a(),l("div",AV,[e.expiryCapped()&&e.expiryChoiceLabel()!=="Expire on a date"?(a(),l("p",IV,[h(c(e.expiryRelative()),1),e.expiryNote()?(a(),l(N,{key:0},[t[168]||(t[168]=n("span",{class:"expiry-meta-sep","aria-hidden":"true"}," \xB7 ",-1)),n("span",OV,c(e.expiryNote()),1)],64)):f("v-if",!0)])):f("v-if",!0),f(' One date input in every mode (the form keeps one field); under a plan limit it stays hidden until "Change date" or an invalid date '),O(n("div",{class:T(["hosting-date",{"is-capped":e.expiryCapped()}]),onReveal:t[35]||(t[35]=d=>e.expiryPickerOpen=!0)},[t[169]||(t[169]=n("label",{class:"paper-field-label",for:"expirationDate"},"Date",-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,MV),[[u,{state:e.viewState,set:d=>{e.options.expirationDate=d},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),!e.expiryCapped()&&e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",VV,c(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),O(n("div",qV,"Pick a date in the future.",512),[[te,e.anonymize?.expirationDate?.errors?.min]]),O(n("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[te,e.anonymize?.expirationDate?.errors?.max]]),O(n("div",LV,"Enter a valid expiration date.",512),[[te,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])],34),[[te,e.expiryPickerShown()]]),n("div",$V,[t[171]||(t[171]=n("label",{for:"expiration"},"After expiry",-1)),O(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[36]||(t[36]=d=>e.options.expirationMode=d)},[...t[170]||(t[170]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[qt,e.options.expirationMode]])])])):f("v-if",!0),e.detectedType==="repo"?(a(),l("label",FV,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[37]||(t[37]=d=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,UV),n("span",null,[t[172]||(t[172]=h("Never expire",-1)),(e.options.expirationMode!=="never"||e.hasAuthorHosting()||e.repositoryGrants("repo_never").length)&&!(e.hostingNeedsPayment()&&e.hostingOptionPlans().length)?(a(),l("small",BV,c(e.neverExpireTag()),1)):f("v-if",!0)])])):f("v-if",!0)]),e.options.expirationMode==="redirect"?(a(),l("p",HV,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",zV,[e.taskValidationError?(a(),l("p",jV,c(e.taskValidationError),1)):f("v-if",!0),e.billingError?(a(),l("p",_V,[h(c(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[38]||(t[38]=d=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,GV)])):f("v-if",!0),e.billingPending?(a(),l("div",WV,[...t[174]||(t[174]=[n("p",null,[n("strong",null,"Confirming your payment\u2026")],-1),n("p",{class:"form-text text-muted"},"Your draft is saved. Please do not pay again.",-1)])])):e.billingNotice?(a(),l("p",KV,c(e.billingNotice),1)):e.options.expirationMode==="never"&&!e.billingPending&&!e.hasAuthorHosting()&&e.repositoryGrants("repo_never").length?(a(),l("p",YV,"No scheduled expiration. Paid once for this repository.")):e.options.expirationMode==="never"&&!e.billingPending?(a(),l("p",XV,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):f("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()&&!e.hostingNeedsPayment()&&e.repositoryAddonPlans().length?(a(),l("details",QV,[t[175]||(t[175]=n("summary",null,"Pay once for just this repository",-1)),(a(!0),l(N,null,U(e.repositoryAddonPlans(),d=>(a(),l("div",{key:d.id},[n("p",null,[n("strong",null,c(d.name),1),h(" \xB7 "+c(e.billingPrice(d))+". "+c(d.description),1)]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:g=>e.checkoutRepository(d.id)},"Buy "+c(d.name.toLowerCase()),9,JV)]))),128))])):f("v-if",!0)])):f("v-if",!0)],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",ZV,[t[180]||(t[180]=n("h2",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[181]||(t[181]=n("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)),O(n("div",xV,[t[177]||(t[177]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",eq,[O(n("input",tq,null,512),[[u,{state:e.viewState,set:d=>{e.coauthorSearch=d},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),O(n("div",nq,[(a(!0),l(N,null,U(e.coauthorResults,(d,g)=>(a(),l("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:de(m=>e.addCoauthor(d,m),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(d?.photo)},null,8,oq),n("span",{textContent:c(d?.username)},null,8,iq)],8,sq))),256))],512),[[te,e.coauthorResults?.length>0]])]),O(n("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,rq),[[te,e.coauthorError]])],512),[[te,e.role==="owner"||e.role==="admin"]]),n("div",aq,[(a(!0),l(N,null,U(e.coauthors,(d,g)=>(a(),l("div",lq,[d?.photo?(a(),l("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(d?.photo)},null,8,dq)):f("v-if",!0),n("a",{target:"_blank",textContent:c(d?.username),href:e.safeUrl("https://github.com/"+d?.username)},null,8,uq),t[179]||(t[179]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),O(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:m=>e.removeCoauthor(d),"aria-label":"Remove co-author"},[...t[178]||(t[178]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,cq),[[te,e.role==="owner"||e.role==="admin"]])]))),256)),O(n("div",pq," No co-authors yet. ",512),[[te,!e.coauthors||e.coauthors?.length===0]])])],512),[[te,e.isUpdate&&e.detectedType==="repo"]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,fq)):f("v-if",!0)]),n("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[39]||(t[39]=d=>e.selectMobilePane("preview"))},[...t[182]||(t[182]=[h("Review preview ",-1),n("span",{"aria-hidden":"true"},"\u2192",-1)])]),O(n("div",mq,[e.detectedType==="repo"?(a(),l(N,{key:0},[e.billingPending?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[40]||(t[40]=d=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,hq)):(a(),l("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||!e.sourceReady()||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length&&!e.hostingOneTime()||e.billing?.checkoutEnabled===!1),onClick:t[41]||(t[41]=de(d=>e.submitForm(d,()=>{e.submitRepository(d)}),["prevent"]))},c(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,gq))],64)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(a(),l("button",{key:1,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[42]||(t[42]=de(d=>e.submitForm(d,()=>{e.anonymizePullRequest(d)}),["prevent"]))}," Create anonymous link ",8,yq)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(a(),l("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[43]||(t[43]=de(d=>e.submitForm(d,()=>{e.anonymizePullRequest(d)}),["prevent"]))}," Save changes ",8,vq)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(a(),l("button",{key:3,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[44]||(t[44]=de(d=>e.submitForm(d,()=>{e.anonymizeGist(d)}),["prevent"]))}," Create anonymous link ",8,bq)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(a(),l("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[45]||(t[45]=de(d=>e.submitForm(d,()=>{e.anonymizeGist(d)}),["prevent"]))}," Save changes ",8,wq)):f("v-if",!0),e.submitBlockedReason()?(a(),l("p",kq,c(e.submitBlockedReason()),1)):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("p",Cq,"You pay in Stripe, then come back here to finish.")):f("v-if",!0),e.draftRestored?(a(),l("div",Eq,[t[183]||(t[183]=h("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[46]||(t[46]=d=>e.discardDraft())},"Discard draft")])):e.unsavedChanges&&e.sourceReady()?(a(),l("div",Sq,[h(c(e.draftSaved?"Draft saved \xB7":"Unsaved changes \xB7")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[47]||(t[47]=d=>e.discardDraft())},c(e.isUpdate?"Restore saved":"Discard"),1)])):f("v-if",!0)],512),[[te,e.detectedType]])])),[[p,e.viewState]])],8,O5),f(' Preview column (right): "What reviewers will see", a miniature reviewer window '),e.detectedType?(a(),l("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col reviewer-preview"},[n("div",Rq,[t[187]||(t[187]=n("span",{class:"rp-title"},"What reviewers will see",-1)),e.detectedType==="repo"&&e.details&&e.previewStatus!=="ready"?(a(),l("button",{key:0,type:"button",class:"rp-open rp-files",onClick:t[48]||(t[48]=d=>e.previewViewer.sidebarCollapsed=!e.previewViewer.sidebarCollapsed),"aria-expanded":!e.previewViewer.sidebarCollapsed,"aria-controls":"preview-file-tree"},"Files",8,Tq)):f("v-if",!0),e.previewStatus==="ready"&&e.previewRedactions()>0?(a(),l("span",{key:1,class:"rp-count",title:e.previewRedactions()+" redacted terms in this preview"},[n("span",Dq,[n("i",null,c(e.previewRedactions()),1)]),t[184]||(t[184]=h(" redacted",-1))],8,Pq)):e.previewStatus==="ready"&&!String(e.terms||"").trim()?(a(),l("button",{key:2,type:"button",class:"rp-count rp-status-empty",onClick:t[49]||(t[49]=d=>e.focusTerms())},[...t[185]||(t[185]=[h("Nothing redacted yet: ",-1),n("span",{class:"rp-status-action"},"add terms",-1)])])):e.previewStatus==="ready"&&e.previewPreserved()?(a(),l("button",{key:3,type:"button",class:"rp-count rp-count-none",onClick:t[50]||(t[50]=d=>e.openPreserveFiles()),title:"Change it in Leave files unredacted"},c(e.previewName(e.previewFile?e.previewFile.slice(e.previewFile.lastIndexOf("/")+1):e.readmeName()))+" left unredacted",1)):e.previewStatus==="ready"?(a(),l("span",Aq,c(e.detectedType==="repo"?"No terms found in this file":"No terms found"),1)):f("v-if",!0),t[188]||(t[188]=n("span",{class:"rp-spacer"},null,-1)),e.isUpdate&&e.previewUrl()?(a(),l("a",{key:5,class:"rp-open is-external",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[186]||(t[186]=[h("Open reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,Iq)):(a(),l("button",{key:6,type:"button",class:"rp-open is-toggle",onClick:t[51]||(t[51]=d=>e.previewExpanded=!e.previewExpanded),"aria-pressed":!!e.previewExpanded},[(a(),l("svg",Mq,[e.previewExpanded?(a(),l("path",qq)):(a(),l("path",Vq))])),h(c(e.previewExpanded?"Back to settings":"Expand preview"),1)],8,Oq))]),n("div",Lq,[n("div",$q,[t[189]||(t[189]=n("i",null,null,-1)),t[190]||(t[190]=n("i",null,null,-1)),t[191]||(t[191]=n("i",null,null,-1)),n("span",Fq,c(e.previewUrl()||"anonymous.4open.science"),1)]),n("div",Uq,[t[192]||(t[192]=n("span",{class:"vb-logo"},[h("Anonymous "),n("em",null,"GitHub")],-1)),e.previewId()?(a(),l("span",Bq,c(e.previewId()),1)):f("v-if",!0),e.detectedType!=="repo"?(a(),l("span",Hq,c(e.detectedType==="pr"?"Pull request":"Gist"),1)):f("v-if",!0)]),n("div",{class:T(["rp-body",{"reviewer-explorer":e.detectedType==="repo","no-tree":e.detectedType==="repo"&&!e.details}])},[e.detectedType==="repo"?O((a(),l("aside",{key:0,id:"preview-file-tree",class:T(["leftCol",{collapsed:e.previewViewer.sidebarCollapsed}]),"aria-label":"Files reviewers will see"},[n("div",zq,[t[194]||(t[194]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{type:"button",class:"leftCol-close","aria-label":"Close files",onClick:t[52]||(t[52]=d=>e.previewViewer.sidebarCollapsed=!0)},[...t[193]||(t[193]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",jq,[$e(s,{class:"files",file:e.previewTreeFiles(),page:e.previewViewer,"selected-path":"/"+e.previewPathName(e.previewOpenPath()),onSelect:t[53]||(t[53]=d=>e.selectPreviewPath(d))},null,8,["file","page","selected-path"])])],2)),[[te,e.details]]):f("v-if",!0),e.detectedType==="repo"?O((a(),l("div",{key:1,class:"leftCol-backdrop",onClick:t[54]||(t[54]=d=>e.previewViewer.sidebarCollapsed=!0)},null,512)),[[te,!e.previewViewer.sidebarCollapsed]]):f("v-if",!0),n("div",{class:T(e.detectedType==="repo"?"explorer-main":"rp-main")},[n("div",{class:T(e.detectedType==="repo"?"explorer-content":"rp-document")},[f(" Loading: skeleton inside the window "),e.previewStatus==="loading"||e.sourceLoading&&e.previewStatus!=="ready"&&e.previewStatus!=="error"?(a(),l("div",_q,[n("span",Gq,c(e.previewDoc.loading?"Loading "+e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))+" from GitHub\u2026":e.previewStatus==="loading"?"Updating the anonymized preview\u2026":e.detectedType==="pr"?"Loading the pull request from GitHub\u2026":e.detectedType==="gist"?"Loading the gist from GitHub\u2026":"Loading the repository from GitHub\u2026"),1),t[195]||(t[195]=Pe('',7))])):!e.details&&e.sourceProblem()?(a(),l(N,{key:1},[f(" The source itself could not be loaded: the form's message, with the same actions "),n("div",Wq,[n("strong",null,c(e.sourceProblem().title),1),n("p",null,c(e.sourceProblem().text),1),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",Kq,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink btn-sm",onClick:t[55]||(t[55]=d=>e.grantGitHubAccess())},[...t[196]||(t[196]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",Yq,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",Xq,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[56]||(t[56]=d=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])],2112)):e.previewStatus==="error"&&e.previewDoc.loadError?(a(),l(N,{key:2},[f(" The open file could not be read from GitHub "),n("div",Qq,[n("strong",null,"Couldn't load "+c(e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))),1),n("p",null,c(e.previewDoc.loadError),1),n("div",Jq,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[57]||(t[57]=d=>e.retryPreview())},"Retry"),n("button",{class:"btn btn-outline-ink btn-sm",type:"button",onClick:t[58]||(t[58]=d=>e.openPreviewFile(""))},"Back to the README")])])],2112)):e.previewStatus==="error"?(a(),l(N,{key:3},[f(" The anonymized preview failed "),n("div",Zq,[t[197]||(t[197]=n("strong",null,"Couldn't apply the redactions",-1)),t[198]||(t[198]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("div",xq,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[59]||(t[59]=d=>e.retryPreview())},"Retry preview")])])],2112)):e.detectedType==="repo"&&!e.previewFile&&!e.readme&&e.previewStatus==="idle"?(a(),l("div",eL,[...t[199]||(t[199]=[n("strong",null,"No README",-1),n("p",null,"Reviewers land on the file list. Open the files you will share and check them before sending the link.",-1)])])):e.detectedType==="repo"&&e.previewStatus==="ready"?(a(),Nt(i,{key:5,name:"partials/pageView.htm",state:e.previewViewer},null,8,["state"])):e.detectedType==="gist"&&e.previewStatus==="ready"?(a(),l("div",tL,[n("div",nL,[n("h2",sL,[e.options?.title?(a(),l("span",oL,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),n("span",{class:T(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,iL)):f("v-if",!0)]),e.options?.origin?(a(),l("small",rL,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(a(),l("small",aL,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(a(),l("div",lL,[n("ul",dL,[(a(!0),l(N,null,U(e.previewGistFiles,(d,g)=>(a(),l("li",uL,[n("div",cL,[n("strong",{textContent:c(d?.filename)},null,8,pL),d?.language?(a(),l("span",fL,c(d?.language),1)):f("v-if",!0)]),$e(r,{file:d,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?(a(),l("div",mL,[t[202]||(t[202]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",hL,[(a(!0),l(N,null,U(e.details?.gist?.comments,(d,g)=>(a(),l("li",gL,[n("div",yL,[e.options?.username?(a(),l("span",vL,[t[200]||(t[200]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[201]||(t[201]=h(" @",-1)),n("span",{textContent:c(e.anonymizeGistContent(d?.author))},null,8,bL)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(d?.updatedDate))},null,8,wL)):f("v-if",!0)]),e.options?.body?(a(),l("div",kL,[$e(o,{content:e.anonymizeGistContent(d?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):e.detectedType==="pr"&&e.previewStatus==="ready"?(a(),l("div",CL,[n("div",EL,[n("h2",SL,[e.options?.title?(a(),l("span",NL,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:T(["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?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,RL)):f("v-if",!0)]),e.options?.origin?(a(),l("small",TL,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",PL,[$e(o,{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?(a(),l("nav",DL,[e.options?.diff?(a(),l("button",{key:0,class:T(["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[60]||(t[60]=d=>e.previewTabKeydown(d)),onClick:t[61]||(t[61]=d=>e.prTabState.active="diff")},[...t[203]||(t[203]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,AL)):f("v-if",!0),e.options?.comments?(a(),l("button",{key:1,class:T(["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[62]||(t[62]=d=>e.previewTabKeydown(d)),onClick:t[63]||(t[63]=d=>e.prTabState.active="comments")},[t[204]||(t[204]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,OL)],42,IL)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(a(),l("div",ML,"Diff and comments are hidden by your display settings.")):f("v-if",!0),n("div",VL,[e.options?.diff&&e.prTabState?.active=="diff"?(a(),l("div",qL,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,LL)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(a(),l("div",$L,[n("ul",FL,[(a(!0),l(N,null,U(e.details?.pullRequest?.comments,(d,g)=>(a(),l("li",UL,[n("div",BL,[e.options?.username?(a(),l("span",HL,[t[205]||(t[205]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[206]||(t[206]=h(" @",-1)),n("span",{textContent:c(e.anonymizePrContent(d?.author))},null,8,zL)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(d?.updatedDate))},null,8,jL)):f("v-if",!0)]),e.options?.body?(a(),l("div",_L,[$e(o,{content:e.anonymizePrContent(d?.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),f(" More below: a fade with a way to keep reading (hidden by CSS once the window is scrolled to the end) "),e.previewStatus==="ready"&&!(e.detectedType==="repo"&&e.previewFile&&e.previewDoc.note)?(a(),l("div",GL,[e.isUpdate&&e.previewUrl()?(a(),l("a",{key:0,class:"rp-more-btn",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[207]||(t[207]=[h("Continue reading on the reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,WL)):e.previewExpanded?(a(),l("span",KL,"Scroll for more")):(a(),l("button",{key:1,type:"button",class:"rp-more-btn",onClick:t[64]||(t[64]=d=>e.previewExpanded=!0)},"Continue reading in the expanded preview"))])):f("v-if",!0)],2)],2)],2)])],8,Nq)):f("v-if",!0)])],512),[[te,e.workspaceOpen||e.isUpdate]])],2)}var YL={class:"container-fluid h-100 anonymize-page"},XL={class:"row h-100 flex-column flex-md-row"},QL={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},JL={class:"form-group"},ZL={class:"form-group"},xL={class:"form-check"},e$={class:"form-check-input",type:"checkbox",id:"update",name:"update"},t$={class:"form-group"},n$={class:"form-text text-muted"},s$=["href"],o$={class:"invalid-feedback"},i$={class:"form-text text-muted"},r$={class:"form-group"},a$={id:"idHelp",class:"form-text text-muted"},l$={class:"invalid-feedback"},d$={class:"form-group"},u$={class:"invalid-feedback"},c$={class:"form-group"},p$={class:"form-control",id:"expiration",name:"expiration"},f$={class:"form-group",id:"expiration-date-form"},m$={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},h$={key:0,class:"date-echo","aria-live":"polite"},g$={class:"accordion mb-3",id:"options"},y$={class:"card"},v$={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},b$={class:"card-body"},w$={class:"form-group mb-0"},k$={class:"form-check"},C$={class:"form-check-input",type:"checkbox",id:"link",name:"link"},E$={class:"form-check"},S$={class:"form-check-input",type:"checkbox",id:"image",name:"image"},N$={class:"form-check"},R$={class:"form-check-input",type:"checkbox",id:"date",name:"date"},T$={class:"form-check"},P$={class:"form-check-input",type:"checkbox",id:"username",name:"username"},D$={class:"form-check"},A$={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},I$={class:"form-check"},O$={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},M$={class:"form-check"},V$={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},q$={class:"form-check"},L$={class:"form-check-input",type:"checkbox",id:"title",name:"title"},$$={class:"form-check"},F$={class:"form-check-input",type:"checkbox",id:"body",name:"body"},U$=["textContent"],B$={class:"anonymize-submit-bar"},H$={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},z$={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},j$={class:"pr-title mb-1"},_$={key:0},G$=["textContent"],W$={key:0},K$={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},Y$={class:"nav nav-tabs",id:"myTab",role:"tablist"},X$={key:0,class:"nav-item",role:"presentation"},Q$={key:1,class:"nav-item",role:"presentation"},J$=["textContent"],Z$={class:"tab-content",id:"pills-tabContent"},x$={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},eF={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},tF={style:{"overflow-x":"auto"}},nF=["innerHTML"],sF={key:0,class:"pr-comments list-group"},oF={class:"pr-comment list-group-item"},iF={class:"d-flex w-100 justify-content-between flex-wrap"},rF={key:0,class:"mb-1"},aF=["textContent"],lF={class:"mb-1"};function Uf(e,t){let s=_e("markdown"),i=Le("field"),r=Le("form");return a(),l("div",YL,[n("div",XL,[n("div",QL,[n("div",{class:T(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[O((a(),l("form",{class:T(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=Pe('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),f(" pullRequestUrl "),n("div",JL,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:o=>{e.pullRequestUrl=o},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.access]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.missing]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.used]])]),O(n("div",null,[n("div",ZL,[n("div",xL,[O(n("input",e$,null,512),[[i,{state:e.viewState,set:o=>{e.options.update=o},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=n("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]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})]),h(" Conference ID ")],-1)),f(" Conference "),n("div",t$,[t[5]||(t[5]=n("label",{for:"conference"},[h("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:o=>{e.conference=o},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),O(n("small",n$,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,s$),h(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[te,e.conference_data]]),O(n("div",o$," The conference is not activated. ",512),[[te,e.anonymize?.conference?.errors?.activated]]),O(n("small",i$," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[te,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h(" Anonymization Options ")],-1)),f(" Pull Request ID "),n("div",r$,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:o=>{e.pullRequestId=o},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",a$,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),O(n("div",l$," Repository id can only contain letters and numbers ",512),[[te,e.anonymize?.pullRequestId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[te,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),n("div",d$,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),O(n("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:o=>{e.terms=o},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=n("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),O(n("div",u$," Terms are in an invalid format ",512),[[te,e.anonymize?.terms?.errors?.format]])]),n("div",c$,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),O((a(),l("select",p$,[...t[9]||(t[9]=[n("option",{value:"never",selected:""},"Never expire",-1),n("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),n("option",{value:"remove"},"Remove when expired",-1)])])),[[i,{state:e.viewState,set:o=>{e.options.expirationMode=o},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),O(n("div",f$,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),O(n("input",m$,null,512),[[i,{state:e.viewState,set:o=>{e.options.expirationDate=o},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",h$,"Expires "+c(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),O(n("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),[[te,e.options?.expirationMode=="remove"]]),O(n("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),[[te,e.options?.expirationMode=="redirect"]])],512),[[te,e.options?.expirationMode!="never"]]),n("div",g$,[n("div",y$,[t[25]||(t[25]=Pe('

',1)),n("div",v$,[n("div",b$,[n("div",w$,[n("div",k$,[O(n("input",C$,null,512),[[i,{state:e.viewState,set:o=>{e.options.link=o},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",E$,[O(n("input",S$,null,512),[[i,{state:e.viewState,set:o=>{e.options.image=o},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",N$,[O(n("input",R$,null,512),[[i,{state:e.viewState,set:o=>{e.options.date=o},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",T$,[O(n("input",P$,null,512),[[i,{state:e.viewState,set:o=>{e.options.username=o},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",D$,[O(n("input",A$,null,512),[[i,{state:e.viewState,set:o=>{e.options.comments=o},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",I$,[O(n("input",O$,null,512),[[i,{state:e.viewState,set:o=>{e.options.diff=o},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",M$,[O(n("input",V$,null,512),[[i,{state:e.viewState,set:o=>{e.options.origin=o},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",q$,[O(n("input",L$,null,512),[[i,{state:e.viewState,set:o=>{e.options.title=o},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",$$,[O(n("input",F$,null,512),[[i,{state:e.viewState,set:o=>{e.options.body=o},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[te,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,U$)):f("v-if",!0),O(n("div",B$,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.anonymizePullRequest(o)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=de(o=>e.submitForm(o,()=>{e.updatePullRequest(o)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update ",-1)])])):f("v-if",!0)],512),[[te,e.pullRequestUrl]])],2)),[[r,e.viewState]])],2)]),e.details?(a(),l("div",H$,[n("div",z$,[n("h2",j$,[e.options?.title?(a(),l("span",_$,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:T(["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?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,G$)):f("v-if",!0)]),e.options?.origin?(a(),l("small",W$,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",K$,[$e(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",Y$,[e.options?.diff?(a(),l("li",X$,[...t[31]||(t[31]=[n("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?(a(),l("li",Q$,[n("button",{class:T(["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"},[n("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,J$)],2)])):f("v-if",!0)]),n("div",Z$,[n("div",x$,[e.options?.diff?(a(),l("div",eF,[n("pre",tF,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,nF)])])):f("v-if",!0)]),n("div",{class:T(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",sF,[(a(!0),l(N,null,U(e.details?.pullRequest?.comments,(o,u)=>(a(),l("li",oF,[n("div",iF,[e.options?.username?(a(),l("h5",rF," @"+c(e.anonymize(o?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:c(e.fmt?.date(o?.updatedDate))},null,8,aF)):f("v-if",!0)]),n("p",lF,[e.options?.body?(a(),Nt(s,{key:0,class:"pr-comment-body",content:e.anonymize(o?.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 dF={class:"container paper-page claim-page"},uF={class:"paper-settings-main claim-form"},cF={class:"form-group"},pF={class:"invalid-feedback"},fF={class:"form-group"};function Bf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",dF,[t[6]||(t[6]=Pe('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),n("div",uF,[t[5]||(t[5]=n("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),O((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.claim()}),["prevent"]))},[n("div",cF,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[s,{state:e.viewState,set:r=>{e.repoUrl=r},value:e.repoUrl,form:"claimForm",options:{}}]]),O(n("div",pF," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[te,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",fF,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[s,{state:e.viewState,set:r=>{e.repoId=r},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[h("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),h(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var mF={class:"container page paper-page conference-page"},hF={class:"paper-crumbs"},gF={class:"here"},yF={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},vF={class:"conf-title-row"},bF=["textContent"],wF={key:0,class:"conf-status"},kF=["textContent"],CF={key:0,class:"paper-page-lede"},EF=["textContent","href"],SF={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},NF=["href"],RF={class:"paper-meta-rule"},TF=["textContent"],PF=["textContent"],DF={key:0},AF={key:0,class:"conference-payment-status",role:"status"},IF=["disabled"],OF={key:1,role:"alert"},MF={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},VF={key:0,role:"status"},qF={key:1,role:"alert"},LF=["onClick","disabled"],$F={class:"dashboard-meta conf-view-meta"},FF={class:"dashboard-view-tabs",role:"group","aria-label":"Repository view"},UF=["aria-pressed"],BF=["aria-pressed","aria-label"],HF=["aria-pressed"],zF={class:"attention-count"},jF={class:"dashboard-count",role:"status"},_F={class:"search-wrap"},GF={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},WF={class:"dashboard-filter-controls"},KF={class:"dropdown"},YF={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},XF={class:"filter-btn-value"},QF={class:"dropdown-menu","aria-labelledby":"dropdownSort"},JF={class:"form-check dropdown-item"},ZF={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},xF={class:"form-check dropdown-item"},e7={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},t7={class:"form-check dropdown-item"},n7={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},s7={class:"form-check dropdown-item"},o7={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},i7={class:"dashboard-page conf-rows"},r7=["aria-busy"],a7={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},l7={class:"cell-anon",role:"cell"},d7={class:"anon-text"},u7={class:"anon-title"},c7=["title","href"],p7={class:"rn-owner"},f7={class:"rn-repo"},m7={class:"anon-sub"},h7=["title"],g7={class:"id-head"},y7={class:"id-tail"},v7=["title"],b7={class:"dashboard-row-meta",role:"presentation"},w7={class:"cell-status",role:"cell"},k7={class:"status-line"},C7=["textContent"],E7=["textContent","title"],S7=["href"],N7=["onClick","disabled"],R7={key:3,class:"status-sub status-sub-date"},T7=["data-unit","aria-label"],P7={class:"cell-expires",role:"cell"},D7={key:0,class:"expires-never"},A7=["textContent"],I7={key:2,class:"expires-past"},O7={key:3,class:"empty-dash","aria-label":"Not applicable"},M7={class:"cell-actions",role:"cell"},V7=["onClick","disabled","title","aria-label"],q7={class:"sr-only","aria-live":"polite"},L7={class:"project-type-svg","aria-hidden":"true"},$7=["href"],F7={class:"copy-url-label","aria-hidden":"true"},U7=["href","aria-label"],B7={class:"dropdown"},H7=["aria-label"],z7={class:"dropdown-menu dropdown-menu-right"},j7=["href"],_7=["href"],G7=["href"],W7={key:0,class:"paper-table-empty"},K7={key:0},Y7={key:1},X7={key:2,class:"paper-table-empty-actions"};function Hf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",mF,[n("div",null,[n("div",hF,[t[6]||(t[6]=n("a",{href:"/dashboard"},"My work",-1)),t[7]||(t[7]=h(" \xA0/\xA0 ",-1)),t[8]||(t[8]=n("a",{href:"/conferences"},"Conferences",-1)),t[9]||(t[9]=h(" \xA0/\xA0 ",-1)),n("span",gF,c(e.conference?.conferenceID),1)]),n("div",yF,[n("div",null,[n("div",vF,[n("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,bF),e.conference?.status?(a(),l("span",wF,[n("span",{class:T(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,kF)])):f("v-if",!0)]),e.conference?.url?(a(),l("p",CF,[n("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,EF)])):f("v-if",!0)]),n("div",SF,[n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[10]||(t[10]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit conference",-1)])],8,NF)])]),n("div",RF,[n("span",null,[t[11]||(t[11]=h("ID ",-1)),n("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,TF)]),n("span",null,[t[12]||(t[12]=h("Review window ",-1)),n("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[13]||(t[13]=h("Repositories ",-1)),n("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[14]||(t[14]=h("Plan ",-1)),n("b",{textContent:c(e.conferencePlanName(e.conference?.plan?.planID))},null,8,PF)]),e.conference?.price?(a(),l("span",DF,[t[15]||(t[15]=h("Cost so far ",-1)),n("b",null,c(e.fmt?.money(e.conference?.price)),1)])):f("v-if",!0)]),e.billingNotice?(a(),l("div",AF,[n("p",null,c(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,IF)])):f("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(a(),l("p",OF,c(e.billingError),1)):f("v-if",!0),e.conference?.status==="pending_payment"?(a(),l("section",MF,[t[16]||(t[16]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[17]||(t[17]=n("p",null,"This conference is waiting for payment. Authors can join after payment is confirmed. Checkout returns to this conference. Authors within the package do not pay separately.",-1)),e.billingLoading?(a(),l("p",VF,"Loading payment options\u2026")):f("v-if",!0),e.billingError?(a(),l("p",qF,c(e.billingError),1)):f("v-if",!0),(a(!0),l(N,null,U((e.billing?.plans||[]).filter(r=>r.id===e.conference?.plan?.planID),r=>(a(),l("div",{key:r.id},[n("p",null,[n("strong",null,c(r.name)+" package",1),h(": "+c(e.billingPrice(r))+" for up to "+c(r.repositories)+" repositories and "+c(e.billingBytes(r.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1)]),n("button",{type:"button",class:"btn btn-primary",onClick:o=>e.checkout(r.id,e.conference.conferenceID),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},c(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,LF)]))),128)),t[18]||(t[18]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):f("v-if",!0),n("div",$F,[n("div",FF,[n("button",{type:"button","aria-pressed":e.confView()==="current",onClick:t[1]||(t[1]=r=>e.setConfView("current")),title:"Every repository except removed links"},"Current",8,UF),e.confCount("attention")>0||e.confView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.confView()==="attention",onClick:t[2]||(t[2]=r=>e.setConfView("attention")),"aria-label":"Needs attention "+e.confCount("attention")},[t[19]||(t[19]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[20]||(t[20]=n("span",null,"attention",-1)),t[21]||(t[21]=h()),n("span",{class:T(["attention-count",{"has-attention":e.confCount("attention")>0}])},c(e.fmt?.number(e.confCount("attention"))),3)],8,BF)):f("v-if",!0),e.confCount("removed")>0||e.confView()==="removed"?(a(),l("button",{key:1,type:"button","aria-pressed":e.confView()==="removed",onClick:t[3]||(t[3]=r=>e.setConfView("removed")),title:"Links reviewers can no longer open"},[t[22]||(t[22]=h("Removed ",-1)),n("span",zF,c(e.fmt?.number(e.confCount("removed"))),1)],8,HF)):f("v-if",!0)]),n("span",jF,c(e.conferenceLoaded?e.search.trim()?e.fmt?.number(e.filteredRepositories?.length||0)+" shown":e.fmt?.number(e.filteredRepositories?.length||0)+((e.filteredRepositories?.length||0)===1?" repository":" repositories"):""),1)]),O((a(),l("form",{class:"w-100 conf-repo-toolbar","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[4]||(t[4]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",_F,[O(n("input",GF,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",WF,[n("div",KF,[n("button",YF,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",XF,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",QF,[t[28]||(t[28]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",JF,[O(n("input",ZF,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",xF,[O(n("input",e7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[25]||(t[25]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",t7,[O(n("input",n7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",s7,[O(n("input",o7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])])])],32)),[[i,e.viewState]]),n("div",i7,[n("div",{class:T(["paper-table paper-table-dashboard paper-table-conf w-100",{"is-removed-view":e.confView()==="removed"}]),role:"table","aria-label":"Repositories","aria-busy":!e.conferenceLoaded},[t[38]||(t[38]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Repository"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Views"),n("div",{role:"columnheader"},"Expires"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(),l(N,null,U([1,2,3,4],(r,o)=>(a(),l(N,null,[e.conferenceLoaded?f("v-if",!0):(a(),l("div",a7,[...t[29]||(t[29]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])]))],64))),64)),(a(!0),l(N,null,U(e.filteredRepositories,(r,o)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":r?.status=="expired"||r?.status=="removed","repo-error":r?.status=="error"}]),role:"row",key:r?.repoId},[n("div",l7,[t[31]||(t[31]=n("span",{class:"project-type-icon",role:"img","aria-label":"Repository",title:"Repository"},[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})])],-1)),n("div",d7,[n("div",u7,[n("a",{class:"repo-name",title:r?.source?.fullName,href:e.safeUrl("/r/"+r?.repoId+"/")},[(r?.source?.fullName||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",p7,c(r.source.fullName.slice(0,r.source.fullName.indexOf("/")+1)),1),t[30]||(t[30]=n("wbr",null,null,-1)),n("span",f7,c(r.source.fullName.slice(r.source.fullName.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(r?.source?.fullName||r?.repoId),1)],64))],8,c7)]),n("div",m7,[n("code",{class:"anonymous-id",title:r?.repoId},[(r?.repoId||"").length>14?(a(),l(N,{key:0},[n("span",g7,c(r.repoId.slice(0,-6)),1),n("span",y7,c(r.repoId.slice(-6)),1)],64)):(a(),l(N,{key:1},[h(c(r?.repoId),1)],64))],8,h7),r?.source?.commit?(a(),l("span",{key:0,class:"commit-hash",title:r.source.commit},c(r.source.commit.substring(0,7)),9,v7)):f("v-if",!0)])])]),n("div",b7,[n("div",w7,[n("div",k7,[n("span",{class:T(["status-dot","status-"+(r?.status=="error"?"error":r?.status=="ready"?"ready":r?.status=="expired"||r?.status=="removed"?r?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(r?.status))},null,8,C7)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,E7)):f("v-if",!0),r?.status=="error"?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl("/status/"+r?.repoId)},"View status",8,S7)):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:2,type:"button",class:"project-attention-action",onClick:de(u=>e.extendRepo(r),["stop"]),disabled:e.extendingId===r?.repoId,title:"Reviewers can no longer open this link"},"Extend 6 months",8,N7)):f("v-if",!0),r?.anonymizeDate&&r?.status!="error"&&r?.status!="expired"?(a(),l("div",R7,"anonymized "+c(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(r?.pageView||0)===1?"view":"views","aria-label":e.fmt?.number(r?.pageView||0)+((r?.pageView||0)===1?" view":" views")},[t[32]||(t[32]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,c(e.fmt?.number(r?.pageView||0)),1)],8,T7),n("div",P7,[t[34]||(t[34]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?.status=="ready"&&(r?.options?.expirationMode==="never"||!r?.options?.expirationDate)?(a(),l("span",D7,"No expiry")):f("v-if",!0),r?.status=="ready"&&r?.options?.expirationMode!=="never"&&r?.options?.expirationDate?(a(),l("span",{key:1,textContent:c((e.fmt?.humanTime(r?.options?.expirationDate)||"").replace(/^on /,""))},null,8,A7)):f("v-if",!0),r?.status=="expired"?(a(),l("span",I7,[t[33]||(t[33]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),h(c(e.fmt?.shortDate(r?.options?.expirationDate)),1)])):f("v-if",!0),r?.status!="ready"&&r?.status!="expired"?(a(),l("span",O7,"\u2014")):f("v-if",!0)])]),n("div",M7,[r?.status!="expired"&&r?.status!="removed"?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(u=>e.copyRepoLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy link: /r/"+r?.repoId+"/","aria-label":"Copy anonymous link for "+r?.repoId},[n("span",q7,c(e.copyingId===r?.repoId?"Link copied":""),1),(a(),l("svg",L7,[n("use",{href:e.copyingId===r?.repoId?"#ui-icon-check":"#project-icon-copy"},null,8,$7)])),n("span",F7,c(e.copyingId===r?.repoId?"Copied":"Copy link"),1)],8,V7)):f("v-if",!0),r?.status!="expired"&&r?.status!="removed"?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl("/r/"+r?.repoId+"/"),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+r?.repoId},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,U7)):f("v-if",!0),n("div",B7,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+r?.repoId},[...t[36]||(t[36]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,H7),n("div",z7,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+r?.repoId+"/")},"View",8,j7),n("a",{class:"dropdown-item",href:e.safeUrl("https://github.com/"+r?.source?.fullName+"/"),target:"_blank",rel:"noopener"},"Open source on GitHub",8,_7),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+r?.repoId)},"Edit",8,G7)])])])],2))),128)),e.conferenceLoaded&&e.filteredRepositories?.length==0?(a(),l("div",W7,[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(a(),l("span",K7,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(a(),l("span",Y7,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(a(),l("div",X7,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>{e.search="",e.setConfView("current")})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)],10,r7)])])])}var Q7={class:"container page paper-page conferences-page"},J7={class:"row"},Z7={class:"w-100"},x7={class:"d-flex align-items-start justify-content-between flex-wrap page-head-row page-head page-head-main",style:{gap:"12px"}},eU={key:0,href:"/conference/new",class:"btn btn-primary"},tU={class:"search-wrap"},nU={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},sU={class:"dashboard-filter-controls"},oU={class:"dropdown"},iU={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},rU={class:"filter-btn-value"},aU={class:"dropdown-menu","aria-labelledby":"dropdownSort"},lU={class:"form-check dropdown-item"},dU={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},uU={class:"form-check dropdown-item"},cU={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},pU={class:"form-check dropdown-item"},fU={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},mU={class:"dropdown"},hU={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},gU={key:0,class:"filter-btn-value"},yU={key:1,class:"filter-btn-value"},vU={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},bU={class:"form-check dropdown-item"},wU=["id"],kU=["for"],CU={key:1,class:"dashboard-meta"},EU={class:"dashboard-count"},SU={key:0},NU={key:0},RU={key:1},TU={key:0,class:"filter-chip"},PU=["onClick","aria-label"],DU={key:0,class:"conference-feedback",role:"alert"},AU={key:1,class:"sr-only",role:"status"},IU=["aria-busy"],OU={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},MU={class:"cell-anon",role:"cell"},VU={class:"anon-text"},qU=["textContent","href"],LU={class:"anon-sub"},$U={class:"anon-source"},FU=["textContent"],UU={key:0},BU=["textContent","href"],HU={class:"cell-status",role:"cell"},zU={class:"status-line"},jU=["textContent"],_U={class:"cell-views num",role:"cell"},GU=["textContent"],WU={class:"cell-expires",role:"cell"},KU={key:0},YU={key:1,class:"empty-dash","aria-label":"No review window"},XU={class:"cell-actions",role:"cell"},QU={class:"dropdown"},JU=["disabled","aria-label"],ZU={class:"dropdown-menu dropdown-menu-right"},xU=["href"],e9=["href"],t9={key:0},n9=["onClick"],s9={key:0,class:"paper-table-empty"},o9={key:0,class:"empty-icon","aria-hidden":"true"},i9={key:1,class:"ui-icon","aria-hidden":"true"},r9={key:3},a9={class:"paper-table-empty-actions"},l9={key:0,href:"/conference/new",class:"btn btn-primary conf-empty-new"};function zf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",Q7,[n("div",J7,[n("div",Z7,[n("div",x7,[t[4]||(t[4]=n("div",null,[n("h1",{class:"paper-page-title"},[h("Your "),n("em",null,"conferences")]),n("p",{class:"paper-page-lede"},"Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.")],-1)),e.conferences&&e.conferences.length==0?f("v-if",!0):(a(),l("a",eU,[...t[3]||(t[3]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New conference ",-1)])]))]),e.conferences?.length>0?O((a(),l("form",{key:0,class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",tU,[O(n("input",nU,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",sU,[n("div",oU,[n("button",iU,[t[5]||(t[5]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",rU,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",aU,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",lU,[O(n("input",dU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",uU,[O(n("input",cU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",pU,[O(n("input",fU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",mU,[n("button",hU,[t[10]||(t[10]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(a(),l("span",gU,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(a(),l("span",yU,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",vU,[t[11]||(t[11]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(a(!0),l(N,null,U(e.statusLabels,(r,o,u)=>(a(),l("div",bU,[O(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+o},null,8,wU),[[s,{state:e.viewState,set:p=>{e.filters.status[o]=p},value:e.filters?.status[o],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+o},c(r),9,kU)]))),256))])])])],32)),[[i,e.viewState]]):f("v-if",!0),e.conferences?.length>0?(a(),l("div",CU,[n("span",EU,[e.filteredConferences?.length===e.conferences?.length?(a(),l("span",SU,[h(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(a(),l("span",NU,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(a(),l("span",RU,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(a(!0),l(N,null,U(e.filters?.status,(r,o,u)=>(a(),l(N,null,[r===!1?(a(),l("span",TU,[h(" Hiding "+c(e.statusLabels[o])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[o]=!0},"aria-label":"Show "+e.statusLabels[o]+" again"},"\xD7",8,PU)])):f("v-if",!0)],64))),256))])):f("v-if",!0)]),e.error?(a(),l("div",DU,[n("span",null,c(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=r=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(a(),l("p",AU,"Loading conferences\u2026")):f("v-if",!0),n("div",{class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences","aria-busy":e.loading?"true":"false"},[t[29]||(t[29]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Conference"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Repos"),n("div",{role:"columnheader"},"Review window"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(),l(N,null,U([1,2,3],(r,o)=>(a(),l(N,null,[e.loading?(a(),l("div",OU,[...t[12]||(t[12]=[n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"46%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"30%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{class:"num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"32%","margin-left":"auto"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"72%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(N,null,U(e.filteredConferences,(r,o)=>(a(),l("div",{class:T(["paper-table-row row-clickable",{"repo-inactive":r?.status=="expired"||r?.status=="removed"}]),role:"row",key:r?.conferenceID},[n("div",MU,[t[15]||(t[15]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",VU,[n("a",{class:"repo-name",textContent:c(r?.name),href:e.safeUrl("/conference/"+r?.conferenceID)},null,8,qU),n("div",LU,[n("span",$U,[t[14]||(t[14]=h("ID ",-1)),n("span",{class:"commit-hash",textContent:c(r?.conferenceID)},null,8,FU),r?.url?(a(),l("span",UU,[t[13]||(t[13]=h(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(r?.url,60)),href:e.safeUrl(r?.url)},null,8,BU)])):f("v-if",!0)])])])]),n("div",HU,[n("div",zU,[n("span",{class:T(["status-dot","status-"+r?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(r?.status))},null,8,jU)])]),n("div",_U,[t[16]||(t[16]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[17]||(t[17]=h()),n("span",{textContent:c(e.fmt?.number(r?.nbRepositories||0))},null,8,GU)]),n("div",WU,[t[18]||(t[18]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?.startDate?(a(),l("span",KU,c(e.fmt?.date(r?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(r?.endDate,"mediumDate")),1)):f("v-if",!0),r?.startDate?f("v-if",!0):(a(),l("span",YU,"\u2014"))]),n("div",XU,[n("div",QU,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:r?.removing,"aria-label":"Actions for "+r?.name},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,JU),n("div",ZU,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/")},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View ",-1)])],8,xU),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/edit")},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,e9),r?.status!="removed"?(a(),l("div",t9,[t[23]||(t[23]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeConference(r)},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,n9)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(a(),l("div",s9,[e.conferences?.length==0?(a(),l("span",o9,[...t[24]||(t[24]=[n("svg",{class:"ui-icon"},[n("use",{href:"#project-icon-conference"})],-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("svg",i9,[...t[25]||(t[25]=[n("use",{href:"#project-icon-inbox"},null,-1)])])):f("v-if",!0),e.conferences?.length==0?(a(),l(N,{key:2},[t[26]||(t[26]=n("strong",{class:"empty-title"},"No conferences yet",-1)),t[27]||(t[27]=n("span",null,"Create one to group submissions for a venue, share a dashboard with chairs, and set a single expiry date.",-1))],64)):f("v-if",!0),e.conferences?.length>0?(a(),l("span",r9,"Nothing matches the current filters.")):f("v-if",!0),n("div",a9,[e.conferences?.length==0?(a(),l("a",l9,[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New conference",-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=r=>{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)],8,IU)])])}var d9={class:"container page dashboard-page paper-page"},u9={class:"row"},c9={class:"w-100"},p9={class:"dashboard-heading page-head page-head-main"},f9={class:"dashboard-title-line"},m9={key:0,class:"dashboard-count-head","aria-hidden":"true"},h9={key:0},g9={class:"dashboard-heading-actions"},y9=["open"],v9=["aria-expanded"],b9=["stroke-dasharray"],w9={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"},k9={key:0,class:"quota-summary-value"},C9={key:0},E9={class:"quota-panel",id:"dashboard-usage"},S9={class:"quota-panel-heading"},N9={key:1,class:"quota-loading",role:"status"},R9={key:0,class:"dashboard-meta is-loading","aria-hidden":"true"},T9={key:1,class:"dashboard-meta"},P9={key:0,class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},D9=["aria-pressed"],A9=["aria-pressed","aria-label"],I9=["aria-pressed","aria-label"],O9={key:0,class:"attention-count"},M9={key:0},V9={key:0},q9={key:1},L9={class:"search-wrap"},$9={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects\u2026",autocomplete:"off"},F9=["aria-expanded"],U9={class:"btn-group",role:"group","aria-label":"Type"},B9=["aria-pressed"],H9=["aria-pressed"],z9=["aria-pressed"],j9=["aria-pressed"],_9={class:"dropdown"},G9={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},W9={class:"filter-btn-value"},K9={class:"sr-only"},Y9={class:"dropdown-menu","aria-labelledby":"dropdownSort"},X9={class:"form-check dropdown-item"},Q9=["onClick","checked","id"],J9=["for"],Z9=["inert"],x9={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},eB={class:"filter-btn-value"},tB={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},nB={key:0,class:"form-check dropdown-item"},sB=["id"],oB=["for"],iB={key:2,class:"dashboard-active-filters dashboard-active-filters-row"},rB=["onClick","aria-label","title"],aB=["aria-busy"],lB={class:"paper-table-head",role:"row"},dB=["aria-sort"],uB=["aria-sort"],cB=["aria-sort"],pB=["aria-sort"],fB={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},mB=["onClick"],hB={class:"cell-anon",role:"cell"},gB=["aria-label","title"],yB={class:"project-type-svg","aria-hidden":"true"},vB=["href"],bB={class:"anon-text"},wB={class:"anon-title"},kB=["title","href"],CB={class:"rn-owner"},EB={class:"rn-repo"},SB={key:1,class:"repo-name repo-name-static"},NB={class:"rn-owner"},RB={class:"rn-repo"},TB={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},PB={key:0,class:"anon-sub"},DB=["title"],AB={class:"id-head"},IB={class:"id-tail"},OB=["title"],MB=["title"],VB=["textContent"],qB={class:"dashboard-row-meta",role:"presentation"},LB={class:"cell-status",role:"cell"},$B={class:"status-line"},FB=["textContent"],UB=["onClick"],BB=["textContent","title"],HB=["title"],zB=["href"],jB={key:3,class:"status-action-line"},_B={key:0,class:"status-stuck"},GB=["onClick","data-project-actions","aria-controls","aria-expanded"],WB=["onClick"],KB={key:5,class:"status-sub status-sub-date status-sub-removed"},YB={key:6,class:"status-sub status-sub-date"},XB=["data-unit","aria-label"],QB={class:"cell-expires",role:"cell"},JB={key:0,class:"expires-never"},ZB=["textContent"],xB=["title"],eH={key:3,class:"expires-past"},tH={key:4,class:"expires-past"},nH={key:5,class:"empty-dash","aria-label":"Not applicable"},sH={class:"cell-actions",role:"cell"},oH=["onClick","disabled","title","aria-label"],iH={class:"sr-only","aria-live":"polite"},rH={class:"project-type-svg","aria-hidden":"true"},aH=["href"],lH={class:"copy-url-label","aria-hidden":"true"},dH=["href","aria-label"],uH=["href","title","aria-label"],cH=["title","aria-label"],pH=["title","aria-label"],fH=["aria-label"],mH={key:6,class:"dropdown is-disabled"},hH=["aria-label"],gH={key:7,class:"dropdown"},yH=["data-project-actions","aria-label"],vH={class:"dropdown-menu dropdown-menu-right"},bH=["onClick","aria-controls","aria-expanded"],wH=["href"],kH=["href"],CH=["onClick","disabled"],EH=["href"],SH=["onClick"],NH=["onClick"],RH=["onClick"],TH={key:5},PH=["onClick"],DH={key:1,class:"project-details-row",role:"row"},AH=["id","onKeydown"],IH={class:"project-details-heading"},OH=["onClick"],MH={class:"project-details-list"},VH={key:0},qH={key:1},LH={key:0},$H={key:2},FH={key:0,class:"project-progress-help"},UH=["href"],BH=["onSubmit"],HH=["for"],zH=["id"],jH={class:"project-name-controls"},_H=["id","aria-describedby","disabled"],GH=["disabled"],WH={key:0,class:"project-name-error",role:"alert"},KH={key:1,role:"status"},YH={key:0,class:"paper-table-empty"},XH={key:0},QH={key:1},JH={class:"paper-table-empty-actions"},ZH={key:1,href:"/anonymize",class:"btn btn-ink"},xH={key:0,class:"dashboard-pagination"},ez={key:0,role:"alert"},tz=["disabled"];function jf(e,t){let s=_e("quota-usage"),i=Le("field"),r=Le("form");return a(),l("div",d9,[n("div",u9,[n("div",c9,[n("div",p9,[n("div",null,[n("div",f9,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"My work",-1)),e.dashboardLoaded&&e.isPlainView()?(a(),l("span",m9,[h(c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",h9,"s")):f("v-if",!0)])):f("v-if",!0)]),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1))]),n("div",g9,[n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=o=>e.quotaExpanded=o.target.open),onKeydown:t[2]||(t[2]=Rt(de(o=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded,class:T(e.quota?"quota-level-"+e.quota.repository.level:""),style:De(e.quota&&!e.quota.repository.unlimited?{"--quota-pct":e.quota.repository.percent+"%"}:null)},[(a(),l("svg",{class:T(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[29]||(t[29]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(a(),l("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,b9)):f("v-if",!0),e.quota?.repository.unlimited?(a(),l("path",w9)):f("v-if",!0)],2)),t[31]||(t[31]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(a(),l("span",k9,[h(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(a(),l("span",C9," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[30]||(t[30]=h(" repos",-1))])):f("v-if",!0),t[32]||(t[32]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],14,v9),n("div",E9,[n("div",S9,[t[34]||(t[34]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=o=>e.closeQuota())},[...t[33]||(t[33]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(a(),Nt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",N9,"Loading usage\u2026"))])],40,y9),t[35]||(t[35]=Pe('New anonymization',1))])]),f(" Result count + active filter chips "),f(" First load: the tab row keeps its place with placeholders, so nothing jumps when the counts arrive "),e.dashboardLoaded?f("v-if",!0):(a(),l("div",R9,[...t[36]||(t[36]=[n("div",{class:"dashboard-view-tabs"},[n("span",{class:"skeleton skeleton-line dashboard-tab-skeleton",style:{width:"56px"}}),n("span",{class:"skeleton skeleton-line dashboard-tab-skeleton",style:{width:"112px"}})],-1)])])),e.dashboardLoaded?(a(),l("div",T9,[e.showViewTabs()?(a(),l("div",P9,[n("button",{type:"button","aria-pressed":e.statusView()==="active",onClick:t[3]||(t[3]=o=>e.setStatusView("active")),title:"Every project except removed links"},"Current",8,D9),e.attentionCount()>0||e.statusView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.statusView()==="attention",onClick:t[4]||(t[4]=o=>e.setStatusView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[37]||(t[37]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[38]||(t[38]=n("span",null,"attention",-1)),t[39]||(t[39]=h()),n("span",{class:T(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,A9)):f("v-if",!0),e.removedCount>0||e.statusView()==="removed"||e.removedCount==null&&e.dashboardTotals?.total>e.dashboardTotals?.filtered?(a(),l("button",{key:1,type:"button","aria-pressed":e.statusView()==="removed",onClick:t[5]||(t[5]=o=>e.setStatusView("removed")),"aria-label":"Removed "+(e.removedCount??""),title:"Links reviewers can no longer open"},[t[40]||(t[40]=h("Removed ",-1)),e.removedCount!=null?(a(),l("span",O9,c(e.fmt?.number(e.removedCount)),1)):f("v-if",!0)],8,I9)):f("v-if",!0)])):f("v-if",!0),n("span",{class:T(["dashboard-count",{"is-plain":e.isPlainView()}])},[e.isPlainView()?(a(),l("span",M9,[h(c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",V9,"s")):f("v-if",!0)])):(a(),l("span",q9,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" shown",1))],2)])):f("v-if",!0),f(" Search + filters "),O((a(),l("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[13]||(t[13]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",L9,[O(n("input",$9,null,512),[[i,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[6]||(t[6]=o=>e.filtersExpanded=!e.filtersExpanded)},[...t[41]||(t[41]=[h("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,F9),n("div",{id:"dashboard-filter-controls",class:T(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",U9,[n("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[7]||(t[7]=o=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,B9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[8]||(t[8]=o=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[42]||(t[42]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("span",{class:"type-filter-label"},"Repos",-1)])],10,H9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[9]||(t[9]=o=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[43]||(t[43]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-pr"})],-1),n("span",{class:"type-filter-label"},"PRs",-1)])],10,z9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[10]||(t[10]=o=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[44]||(t[44]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1),n("span",{class:"type-filter-label"},"Gists",-1)])],10,j9)]),n("div",{id:"dashboard-extra-filters",class:T(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",_9,[n("button",G9,[t[46]||(t[46]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",W9,c(e.sortLabel()),1),(a(),l("svg",{class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",K9,c(e.sortDesc()?"descending":"ascending"),1)]),n("div",Y9,[t[47]||(t[47]=n("h6",{class:"dropdown-header"},"Order by",-1)),(a(!0),l(N,null,U(e.sortFields,(o,u,p)=>(a(),l("div",X9,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:d=>e.setSort(u,o.defaultDesc),checked:e.isSortedBy(u),id:"sort-"+p},null,8,Q9),n("label",{class:"form-check-label",for:"sort-"+p},c(o?.label),9,J9)]))),256)),t[48]||(t[48]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[11]||(t[11]=o=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",{class:T(["dropdown dashboard-status-filter",{"is-view-hidden":e.statusView()==="removed"}]),inert:e.statusView()==="removed"?!0:null},[n("button",x9,[t[49]||(t[49]=n("span",{class:"filter-btn-label"},"Status",-1)),n("span",eB,c(e.statusChipKeys().length===0?"Any":e.statusChipKeys().length===1?"Hiding "+(e.statusKeyLabels[e.statusChipKeys()[0]]||"").toLowerCase():e.statusChipKeys().length+" hidden"),1)]),n("div",tB,[t[50]||(t[50]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),n("button",{type:"button",class:T(["dropdown-item status-preset",{active:e.statusChipKeys().length===0}]),onClick:t[12]||(t[12]=o=>e.statusChipKeys().forEach(u=>{e.filters.status[u]=!0}))},"Any status",2),t[51]||(t[51]=n("div",{class:"dropdown-divider"},null,-1)),(a(!0),l(N,null,U(e.statusKeyLabels,(o,u,p)=>(a(),l(N,{key:u},[u!=="removed"?(a(),l("div",nB,[O(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+u},null,8,sB),[[i,{state:e.viewState,set:d=>{e.filters.status[u]=d},value:e.filters?.status[u],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+u},c(o),9,oB)])):f("v-if",!0)],64))),128))])],10,Z9)],2)],2)],32)),[[r,e.viewState]]),e.dashboardLoaded&&e.showClearFilters()?(a(),l("div",iB,[(a(!0),l(N,null,U(e.statusChipKeys(),o=>(a(),l("button",{key:o,type:"button",class:"filter-chip",onClick:u=>e.filters.status[o]=!0,"aria-label":"Show "+e.statusKeyLabels[o]+" again",title:"Show "+e.statusKeyLabels[o]+" again"},[h("Hiding "+c((e.statusKeyLabels[o]||"").toLowerCase()),1),t[52]||(t[52]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,rB))),128)),e.typeFilter!=="all"?(a(),l("button",{key:0,type:"button",class:"filter-chip",onClick:t[14]||(t[14]=o=>e.typeFilter="all"),"aria-label":"Show all project types"},[h(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[53]||(t[53]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(a(),l("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[15]||(t[15]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0)]),f(" Table "),n("div",{class:T(["paper-table paper-table-dashboard",{"is-removed-view":e.statusView()==="removed","is-refreshing":e.refreshing}]),role:"table","aria-label":"Anonymizations","aria-busy":e.loading||e.refreshing},[n("div",lB,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[16]||(t[16]=o=>e.setSort("_label"))},[t[55]||(t[55]=h(" Project ",-1)),e.isSortedBy("_label")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[54]||(t[54]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,dB),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("status")}]),onClick:t[17]||(t[17]=o=>e.setSort("status"))},[t[57]||(t[57]=h(" Status ",-1)),e.isSortedBy("status")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[56]||(t[56]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,uB),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[18]||(t[18]=o=>e.setSort("pageView"))},[t[59]||(t[59]=h(" Views ",-1)),e.isSortedBy("pageView")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[58]||(t[58]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,cB),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[19]||(t[19]=o=>e.setSort("options.expirationDate"))},[t[61]||(t[61]=h(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[60]||(t[60]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,pB),t[62]||(t[62]=n("div",{role:"columnheader",class:"col-link"},[n("span",{class:"sr-only"},"Actions")],-1))]),f(` Loading skeleton: keeps the layout stable while the lists load, and stands in - for the rows when a reload (tab, search, filter) has none of the new rows yet `),(a(),l(N,null,U([1,2,3,4],(o,u)=>(a(),l(N,null,[e.loading||e.refreshing&&e.filteredItems?.length==0?(a(),l("div",fB,[...t[63]||(t[63]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(N,null,U(e.filteredItems,(o,u)=>(a(),l(N,{key:o?._type+":"+(o?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:T(["paper-table-row",{"repo-inactive":o?._statusKey=="expired"||o?._statusKey=="removed","repo-error":o?.status=="error","row-clickable":!!o?._viewUrl}]),role:"row",onClick:p=>e.openItem(o,p)},[n("div",hB,[n("span",{class:"project-type-icon",role:"img","aria-label":o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist",title:o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",yB,[n("use",{href:"#project-type-"+o._type},null,8,vB)]))],8,gB),n("div",bB,[n("div",wB,[o?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:o._label,href:e.safeUrl(o?._viewUrl)},[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",CB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",EB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))],8,kB)):f("v-if",!0),o?._viewUrl?f("v-if",!0):(a(),l("span",SB,[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",NB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[65]||(t[65]=n("wbr",null,null,-1)),n("span",RB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))])),o?.role==="coauthor"?(a(),l("span",TB,"Co-author")):f("v-if",!0)]),o?._id||o?._type==="repo"&&o?.source?.commit||o?.conference?(a(),l("div",PB,[o?._id?(a(),l("code",{key:0,class:"anonymous-id",title:o._id},[o._id.length>14?(a(),l(N,{key:0},[n("span",AB,c(o._id.slice(0,-6)),1),n("span",IB,c(o._id.slice(-6)),1)],64)):(a(),l(N,{key:1},[h(c(o._id),1)],64))],8,DB)):f("v-if",!0),o?._type==="repo"&&o?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:o.source.commit},c(o.source.commit.substring(0,7)),9,OB)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+o.conference},[t[66]||(t[66]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:c(o?.conference)},null,8,VB)],8,MB)):f("v-if",!0)])):f("v-if",!0)])]),n("div",qB,[n("div",LB,[n("div",$B,[n("span",{class:T(["status-dot","status-"+o?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(o?.status))},null,8,FB),o?.status=="removed"?(a(),l(N,{key:0},[t[67]||(t[67]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,UB)],64)):f("v-if",!0)]),o?.status=="error"&&o?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,BB)):f("v-if",!0),o?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(o?.anonymizeDate||o?.lastView)},c(e.idleText(o)),9,HB)):f("v-if",!0),o.status==="error"&&o._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(o._editUrl)},"Fix source",8,zB)):f("v-if",!0),o._stale||o._broken?(a(),l("div",jB,[o._stale&&!o._broken?(a(),l("span",_B,[...t[68]||(t[68]=[h("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),o._stale||o._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(o),["stop"]),"data-project-actions":o._broken?encodeURIComponent(o._type+":"+o._id):null,"aria-controls":o._broken?e.projectDetailsId(o):null,"aria-expanded":o._broken?e.selectedProject===o:null},c(o._broken?"Review details":"Check progress"),9,GB)):f("v-if",!0)])):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,WB)):f("v-if",!0),o?.status=="removed"&&o?.anonymizeDate?(a(),l("div",KB,"anonymized "+c(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0),o?.status!="error"&&o?.status!="expired"&&o?.status!="removed"&&!o?._stale&&o?.anonymizeDate?(a(),l("div",YB," anonymized "+c(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":o.pageView===1?"view":"views","aria-label":e.fmt.number(o.pageView)+(o.pageView===1?" view":" views")},[t[69]||(t[69]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,c(e.fmt.number(o.pageView)),1)],8,XB),n("div",QB,[t[73]||(t[73]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?._expiry?.kind==="never"?(a(),l("span",JB,"No expiry")):f("v-if",!0),o?._expiry?.kind==="date"&&!o?._expiry?.soon?(a(),l("span",{key:1,textContent:c((e.fmt?.humanTime(o?._expiry?.date)||"").replace(/^on /,""))},null,8,ZB)):f("v-if",!0),o?._expiry?.kind==="date"&&o?._expiry?.soon?(a(),l("span",{key:2,class:"expires-soon",title:"Expires "+e.fmt?.humanTime(o?._expiry?.date)},[t[70]||(t[70]=n("svg",{class:"project-type-svg expires-soon-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[71]||(t[71]=n("span",{class:"expires-soon-prefix"},"Expires ",-1)),h(c(o._expiry.soon),1)],8,xB)):f("v-if",!0),o?._expiry?.kind==="expired"&&o?._expiry?.date?(a(),l("span",eH,[t[72]||(t[72]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),h(c(o?._expiry?.label||e.fmt?.humanTime(o?._expiry?.date)),1)])):f("v-if",!0),o?._expiry?.kind==="expired"&&!o?._expiry?.date?(a(),l("span",tH,"Expired")):f("v-if",!0),o?._expiry?.kind==="none"?(a(),l("span",nH,"\u2014")):f("v-if",!0)])]),n("div",sH,[o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed")?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(p=>e.copyLink(o),["stop"]),disabled:!!e.copyingId,title:"Copy link: "+o._viewUrl,"aria-label":"Copy anonymous link for "+o._label},[n("span",iH,c(e.copyingId===o._type+":"+o._id?"Link copied":""),1),(a(),l("svg",rH,[n("use",{href:e.copyingId===o._type+":"+o._id?"#ui-icon-check":"#project-icon-copy"},null,8,aH)])),n("span",lH,c(e.copyingId===o._type+":"+o._id?"Copied":"Copy link"),1)],8,oH)):f("v-if",!0),o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed")?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl(o._viewUrl),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+o._label},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,dH)):f("v-if",!0),o?._editUrl&&!o?._broken&&o?._statusKey!="removed"?(a(),l("a",{key:2,class:"row-edit",href:e.safeUrl(o._editUrl),title:"Edit "+o._name,"aria-label":"Edit "+o._name},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,uH)):f("v-if",!0),!(o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed"))&&o?._statusKey!="removed"&&o?._statusKey!="expired"?(a(),l("button",{key:3,type:"button",class:"copy-url is-disabled","aria-disabled":"true",onClick:t[20]||(t[20]=de(()=>{},["stop"])),title:o?._statusKey=="expired"?"Link expired: reviewers can no longer open it":o?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Copy link unavailable for "+o._label},[...t[76]||(t[76]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),n("span",{class:"copy-url-label","aria-hidden":"true"},"Copy link",-1)])],8,cH)):f("v-if",!0),!(o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed"))&&o?._statusKey!="removed"&&o?._statusKey!="expired"?(a(),l("button",{key:4,type:"button",class:"row-edit row-open is-disabled","aria-disabled":"true",onClick:t[21]||(t[21]=de(()=>{},["stop"])),title:o?._statusKey=="expired"?"Link expired: reviewers can no longer open it":o?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Open unavailable for "+o._label},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,pH)):f("v-if",!0),o?._editUrl&&!o?._broken?f("v-if",!0):(a(),l("button",{key:5,type:"button",class:"row-edit is-disabled","aria-disabled":"true",onClick:t[22]||(t[22]=de(()=>{},["stop"])),title:"Can't edit: this record is incomplete","aria-label":"Edit unavailable for "+o._label},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,fH)),o?._broken?(a(),l("div",mH,[n("button",{type:"button",class:"btn btn-icon-dots is-disabled","aria-disabled":"true",onClick:t[23]||(t[23]=de(()=>{},["stop"])),title:"No actions: this record is incomplete. Use Review details.","aria-label":"No actions available for "+o._label},[...t[79]||(t[79]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,hH)])):f("v-if",!0),o?._broken?f("v-if",!0):(a(),l("div",gH,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(o._type+":"+o._id),"aria-label":"Actions for "+o?._name},[...t[80]||(t[80]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,yH),n("div",vH,[n("button",{type:"button",class:"dropdown-item",onClick:p=>e.showProjectDetails(o),"aria-controls":e.projectDetailsId(o),"aria-expanded":e.selectedProject===o},"Project details & name",8,bH),n("a",{class:"dropdown-item",href:e.safeUrl(o?._viewUrl)}," View ",8,wH),o?._type==="repo"&&o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")}," View page ",8,kH)):f("v-if",!0),o?._viewUrl?(a(),l("button",{key:1,type:"button",class:"dropdown-item",onClick:p=>e.copyLink(o),disabled:!!e.copyingId}," Copy anonymous link ",8,CH)):f("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(o?._editUrl)}," Edit ",8,EH),o?.status=="ready"||o?.status=="error"?(a(),l("button",{key:2,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(o)}," Force update ",8,SH)):f("v-if",!0),o?.status=="removed"?(a(),l("button",{key:3,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(o)}," Enable ",8,NH)):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"dropdown-item",onClick:p=>e.extendItem(o)}," Extend 6 months ",8,RH)):f("v-if",!0),(o?.status=="ready"||o?.status=="expired"||o?.status=="error")&&o?.role!=="coauthor"?(a(),l("div",TH,[t[81]||(t[81]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:p=>e.removeItem(o)}," Remove ",8,PH)])):f("v-if",!0)])]))])],10,mB)),!e.loading&&e.selectedProject===o?(a(),l("div",DH,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(o),tabindex:"-1",onKeydown:Rt(de(p=>e.closeProjectDetails(o),["stop"]),["esc"])},[n("div",IH,[t[83]||(t[83]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:p=>e.closeProjectDetails(o),"aria-label":"Close project details"},[...t[82]||(t[82]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,OH)]),n("dl",MH,[n("div",null,[t[84]||(t[84]=n("dt",null,"Source",-1)),n("dd",null,c(o._source||"Not available"),1)]),n("div",null,[t[85]||(t[85]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,c(o._id||"Missing identifier"),1)])]),o.source?.commit?(a(),l("div",VH,[t[86]||(t[86]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,c(o.source.commit),1)])])):f("v-if",!0),o.conference?(a(),l("div",qH,[t[87]||(t[87]=n("dt",null,"Conference",-1)),n("dd",null,c(o.conference),1)])):f("v-if",!0),n("div",null,[t[88]||(t[88]=n("dt",null,"Status",-1)),n("dd",null,[h(c(e.fmt.statusLabel(o.status)),1),o.statusMessage?(a(),l("span",LH," \xB7 "+c(e.fmt.statusMsg(o.statusMessage)),1)):f("v-if",!0)])]),o.anonymizeDate?(a(),l("div",$H,[t[89]||(t[89]=n("dt",null,"Last anonymized",-1)),n("dd",null,c(e.fmt.humanTime(o.anonymizeDate)),1)])):f("v-if",!0)]),o._stale?(a(),l("p",FH,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),o._editUrl?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl(o._editUrl)},c(e.needsAttention(o)?"Check source settings":"Edit anonymization settings"),9,UH)):f("v-if",!0),o._id?(a(),l("form",{key:2,class:"project-name-form",onSubmit:de(p=>e.saveProjectName(o),["prevent"])},[n("label",{for:"project-name-"+o._type+"-"+o._id},"Project name",8,HH),n("p",{id:"project-name-help-"+o._type+"-"+o._id},"Only you see this name. Leave it blank to use the default.",8,zH),n("div",jH,[O(n("input",{class:"form-control",type:"text",id:"project-name-"+o._type+"-"+o._id,"aria-describedby":"project-name-help-"+o._type+"-"+o._id,maxlength:"100","onUpdate:modelValue":t[24]||(t[24]=p=>e.projectName=p),disabled:e.nameSaving},null,8,_H),[[ft,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,GH)]),e.nameError?(a(),l("p",WH,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(a(),l("p",KH,c(e.nameMessage),1)):f("v-if",!0)],40,BH)):f("v-if",!0)],40,AH)])):f("v-if",!0)],64))),128)),!e.loading&&!e.refreshing&&e.filteredItems?.length==0?(a(),l("div",YH,[t[91]||(t[91]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(a(),l("span",XH,"You have no anonymizations yet.")),e.hasProjects()?(a(),l("span",QH,"Nothing matches the current filters.")):f("v-if",!0),n("div",JH,[e.hasActiveFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[25]||(t[25]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(a(),l("a",ZH,[...t[90]||(t[90]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New anonymization",-1)])]))])])):f("v-if",!0)],10,aB)]),e.dashboardCursor||e.dashboardError?(a(),l("div",xH,[e.dashboardError?(a(),l("p",ez,c(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(a(),l("button",{key:1,type:"button",class:"btn",onClick:t[26]||(t[26]=o=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,tz)):f("v-if",!0)])):f("v-if",!0)])}var nz={class:"viewer-bar"},sz={class:"vb-left"},oz=["aria-label","title"],iz=["href","title"],rz={class:"vb-artifact-id"},az={class:"vb-right"},lz=["title"],dz={class:"vb-help"},uz=["aria-expanded"],cz={key:0,class:"acct-menu vb-help-menu",role:"menu"},pz=["aria-label","title"],fz={class:"ui-icon","aria-hidden":"true"},mz=["href"],hz={key:1,class:"acct"},gz=["aria-label","aria-expanded"],yz=["src"],vz={key:1,class:"acct-initial"},bz={key:0,class:"acct-menu",role:"menu"},wz={class:"acct-menu-head"},kz={key:2,class:"vb-signin",href:"/signin",target:"_self"},Cz={key:0,class:"vb-context"},Ez=["href","title"],Sz={key:0,class:"vb-context-date"},Nz=["aria-label"],Rz={class:"ui-icon","aria-hidden":"true"},Tz=["href"],Pz=["textContent"],Dz={class:"leftCol-head"},Az={class:"leftCol-search"},Iz={class:"tree-search-box"},Oz=["href"],Mz={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},Vz=["title","href"],qz={class:"leftCol-body"},Lz={key:0,class:"paper-inline-warning",role:"alert"},$z={key:1,class:"paper-inline-warning",role:"alert"},Fz={class:"explorer-main"},Uz={class:"breadcrumb paths","aria-label":"Path"},Bz={class:"breadcrumb-item breadcrumb-root"},Hz=["href","title","textContent"],zz=["aria-current","textContent"],jz=["aria-label","title"],_z={class:"ui-icon","aria-hidden":"true"},Gz=["href"],Wz={class:"status-bar-actions"},Kz=["href"],Yz={class:"d-none d-md-inline"},Xz={class:"ui-icon","aria-hidden":"true"},Qz=["href"],Jz={class:"d-none d-md-inline"},Zz=["href"],xz={class:"explorer-content"};function _f(e,t){let s=_e("tree"),i=_e("partial-view"),r=Le("field");return a(),l("div",{class:T(["explorer-page",{"files-hidden":e.sidebarHidden}]),style:De({"--sidebar-w":e.sidebarWidth+"px"})},[n("header",nz,[n("div",sz,[t[15]||(t[15]=n("a",{class:"vb-logo",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),n("button",{type:"button",class:"vb-icon vb-sidebar","aria-label":e.sidebarHidden?"Show file tree":"Hide file tree",title:e.sidebarHidden?"Show file tree":"Hide file tree",onClick:t[0]||(t[0]=o=>e.sidebarHidden=!e.sidebarHidden)},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],8,oz),e.repoId?(a(),l("a",{key:0,class:"vb-artifact",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},[t[14]||(t[14]=n("span",{class:"sr-only"},"Artifact ",-1)),n("span",rz,c(e.repoId),1)],8,iz)):f("v-if",!0)]),n("div",az,[e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",{key:0,class:"vb-snapshot",title:(e.options?.expirationDate?"Available until "+e.fmt?.date(e.options.expirationDate)+". ":"")+(e.options?.anonymizedAt&&!e.options?.publishedAt?"Older repositories have no recorded publication date. The source commit date does not establish when files became available here.":(e.options?.sourceCommitDate?"Source commit ":e.options?.anonymizedAt?"Anonymized ":"Updated ")+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+(e.options?.publishedAt?" \xB7 snapshot ready "+e.fmt?.date(e.options.publishedAt):""))},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[17]||(t[17]=n("span",null,"Snapshot",-1)),n("span",null,c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)],8,lz)):f("v-if",!0),t[25]||(t[25]=n("a",{class:"vb-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Support Anonymous GitHub \u2014 help keep it free for researchers"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),n("span",null,"Support")],-1)),n("div",dz,[n("button",{type:"button",class:"vb-help-btn","aria-haspopup":"true","aria-expanded":e.helpOpen?"true":"false",onClick:t[1]||(t[1]=de(o=>e.helpOpen=!e.helpOpen,["stop"]))},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),n("span",null,"Help",-1)])],8,uz),e.helpOpen?(a(),l("div",cz,[...t[19]||(t[19]=[n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),n("span",null,[h("FAQ"),n("small",null,"How anonymization works")])],-1),n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),n("span",null,[h("Report a bug"),n("small",null,"About this service, not the paper")])],-1)])])):f("v-if",!0)]),n("button",{type:"button",class:"vb-icon","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Light mode":"Dark mode",onClick:t[2]||(t[2]=o=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",fz,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,mz)]))],8,pz),e.user?(a(),l("div",hz,[n("button",{type:"button",class:"acct-chip","aria-haspopup":"true","aria-label":"Account: "+e.user?.username,"aria-expanded":e.accountOpen?"true":"false",onClick:t[3]||(t[3]=de(o=>e.accountOpen=!e.accountOpen,["stop"]))},[e.user?.photo?(a(),l("img",{key:0,src:e.safeUrl(e.user.photo),alt:"",width:"26",height:"26"},null,8,yz)):(a(),l("span",vz,c((e.user?.username||"?").charAt(0).toUpperCase()),1))],8,gz),e.accountOpen?(a(),l("div",bz,[n("div",wz,[t[20]||(t[20]=h("Signed in as ",-1)),n("b",null,"@"+c(e.user?.username),1)]),t[21]||(t[21]=n("a",{role:"menuitem",href:"/dashboard"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})]),h("My work")],-1)),t[22]||(t[22]=n("a",{role:"menuitem",href:"/profile"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})]),h("Settings")],-1)),t[23]||(t[23]=n("a",{role:"menuitem",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),h("Sign out")],-1))])):f("v-if",!0)])):(a(),l("a",kz,[...t[24]||(t[24]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])]))])]),e.repoId?(a(),l("div",Cz,[n("a",{class:"vb-context-id",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},c(e.repoId),9,Ez),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",Sz,"Snapshot "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)):f("v-if",!0)])):f("v-if",!0),O(n("button",{class:"sidebar-toggle",onClick:t[4]||(t[4]=o=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(a(),l("svg",Rz,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,Tz)])),n("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,Pz)],8,Nz),[[te,e.files?.length]]),O(n("div",{class:T(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",Dz,[t[27]||(t[27]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[5]||(t[5]=o=>e.sidebarCollapsed=!0)},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",Az,[n("div",Iz,[(a(),l("svg",{class:T(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[n("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,Oz)],2)),O(n("input",Mz,null,512),[[r,{state:e.viewState,set:o=>{e.fileSearchQuery=o},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),O(n("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[te,!e.fileSearchQuery]]),O(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[6]||(t[6]=o=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[te,e.fileSearchQuery]])]),e.options?.download?(a(),l("a",{key:0,target:"_self",class:"search-zip","aria-label":"Download repository as ZIP",title:"Download the repository (snapshot "+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+") as ZIP",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"search-zip-label","aria-hidden":"true"},"ZIP",-1)])],8,Vz)):f("v-if",!0)]),n("div",qz,[e.options?.truncatedFolders?.length>0?(a(),l("div",Lz,[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(a(),l("div",$z,[t[30]||(t[30]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),$e(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])])],2),[[te,e.files?.length]]),O(n("div",{class:"leftCol-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize file tree",title:"Drag to resize",onPointerdown:t[7]||(t[7]=o=>e.startSidebarResize(o))},null,544),[[te,e.files?.length&&!e.sidebarHidden]]),O(n("div",{class:"leftCol-backdrop",onClick:t[8]||(t[8]=o=>e.sidebarCollapsed=!0)},null,512),[[te,e.files?.length&&!e.sidebarCollapsed]]),n("div",Fz,[O(n("div",{class:T(["status-bar",{"is-redundant":["code","text","html"].includes(e.type)&&e.content!=null||e.fileFrame()}])},[O(n("button",{type:"button",class:"btn btn-sm status-files-btn","aria-label":"Show files",title:"Show files",onClick:t[9]||(t[9]=o=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-folder"})],-1),n("span",null,"Files",-1)])],512),[[te,e.files?.length]]),n("ol",Uz,[n("li",Bz,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,Hz)]),(a(!0),l(N,null,U(e.paths,(o,u)=>(a(),l("li",{class:"breadcrumb-item","aria-current":u===e.paths.length-1?"page":null,textContent:c(o)},null,8,zz))),256))]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy path",title:e.pathCopied?"Path copied":"Copy path",onClick:t[10]||(t[10]=o=>e.copyPath())},[(a(),l("svg",_z,[n("use",{href:e.pathCopied?"#ui-icon-check":"#project-icon-copy"},null,8,Gz)]))],8,jz),[[te,e.filePath]]),n("div",Wz,[e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,Kz)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(a(),l("button",{key:1,class:T(["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[11]||(t[11]=o=>e.toggleAllowScripts())},[t[33]||(t[33]=n("i",{class:"fab fa-js"},null,-1)),n("span",Yz,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(a(),l("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[12]||(t[12]=o=>e.toggleSource())},[(a(),l("svg",Xz,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,Qz)])),n("span",Jz,c(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),n("span",{class:"d-none d-md-inline"}," Website",-1)])],8,Zz)):f("v-if",!0)])],2),[[te,e.type!="error"||e.files?.length]]),n("div",xz,[$e(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])],6)}var ej={class:"paper-faq"},tj={class:"paper-faq-body"},nj={class:"paper-faq-toc"},sj={class:"faq-search",role:"search"},oj={class:"faq-search-field"},ij={id:"faq-search-status",class:"faq-search-status","aria-live":"polite"},rj={key:0,class:"faq-search-empty"},aj={class:"faq-search-empty-actions"};function Gf(e,t){let s=_e("partial-view"),i=Le("paper-scrollspy");return a(),l(N,null,[n("div",ej,[t[12]||(t[12]=n("div",{class:"paper-faq-hero"},[n("div",{class:"paper-faq-eyebrow"},"Help"),n("h1",{class:"paper-faq-title"},[h("Mirrors, redaction, and "),n("em",null,"what reviewers see.")]),n("p",{class:"paper-faq-lede"}," How to set up an anonymous mirror, what it hides, and how long it stays online. ")],-1)),n("div",tj,[O((a(),l("aside",nj,[...t[5]||(t[5]=[Pe('
Contents
',2)])])),[[i]]),n("section",{class:T(["faq-section",{"faq-searching":!!e.faqQuery.trim()}]),"aria-label":"FAQs"},[n("div",sj,[t[7]||(t[7]=n("label",{for:"faq-search-input"},"Search questions",-1)),n("div",oj,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),O(n("input",{id:"faq-search-input",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=r=>e.faqQuery=r),onInput:t[1]||(t[1]=r=>e.filterFaq()),onSearch:t[2]||(t[2]=r=>e.filterFaq()),onKeydown:t[3]||(t[3]=Rt(r=>e.clearFaqSearch(),["esc"])),placeholder:"e.g. expiry, pull request, PDF",autocomplete:"off",spellcheck:"false","aria-describedby":"faq-search-status"},null,544),[[ft,e.faqQuery]])]),n("p",ij,[e.faqQuery.trim()&&e.faqResults?(a(),l(N,{key:0},[h(c(e.faqResults===1?"1 result":e.faqResults+" results"),1)],64)):f("v-if",!0)])]),e.faqQuery.trim()&&e.faqResults===0?(a(),l("div",rj,[n("strong",null,"No questions match \u201C"+c(e.faqQuery.trim())+"\u201D.",1),t[9]||(t[9]=n("p",null,"Try a shorter word, or ask us directly.",-1)),n("div",aj,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[4]||(t[4]=r=>e.clearFaqSearch())},"Clear search"),t[8]||(t[8]=n("a",{class:"btn btn-link btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue",-1))])])):f("v-if",!0),t[10]||(t[10]=n("div",{class:"faq-list"},[f(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h("General ")]),n("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[n("h3",{class:"panel-title"},[n("a",{role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"true","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse show",role:"tabpanel","aria-labelledby":"headingWhatIs"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub is an open-source tool with free hosting and optional paid plans that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information, such as the repository owner, organization name, and custom terms, so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[n("div",{class:"panel-body p-3"},[n("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix, 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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[n("div",{class:"panel-body p-3"},[n("p",null," A free account includes 5 owned repositories and 5 GiB of source files. Optional paid plans offer more capacity, automatic refresh, and, with an author subscription, never-expiring repositories. Reviewers can read shared repositories without an account or payment. "),n("p",null,[h(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" for available plans and current prices. Offers depend on whether payments are enabled on this instance; the checkout shows the amount before you pay. Subscriptions help fund hosting, storage, backups, and continued maintenance. ")]),n("p",null,[h(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),h(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),h(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),f(" Plans and billing "),n("h4",{class:"faq-cat",id:"faq-plans-title"},"Plans and billing"),n("div",{class:"panel-group",id:"faq-plans",role:"tablist","aria-label":"Plans and billing","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhyPaid"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#whyPaid","aria-expanded":"false","aria-controls":"whyPaid"},"Why is Anonymous GitHub no longer completely free?")])]),n("div",{id:"whyPaid",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhyPaid"},[n("div",{class:"panel-body p-3"},[n("p",null,"Anonymous GitHub started as a small free service and was paid for out of pocket. Three things have changed since then:"),n("ul",null,[n("li",null,[n("strong",null,"Servers cost much more."),h(" Every hosted repository needs storage, bandwidth and backups, and these costs have risen sharply.")]),n("li",null,[n("strong",null,"Many more people use it."),h(" More users means more repositories to store and keep up to date, more support requests and more maintenance.")]),n("li",null,[n("strong",null,"AI has made security work heavier."),h(" AI-driven scrapers and automated abuse send far more traffic than before. Blocking them and keeping hosted content safe takes constant work.")])]),n("p",null,"The core service stays free: anonymizing a repository, sharing the link and reviewer access cost nothing, and reviewers never need an account. Most authors never need to pay. The paid options are small one-time payments for one repository, plus an optional subscription for heavy users. They are priced to cover running costs, not to make a profit."),n("p",null,[h("The source code remains open, so you can still "),n("a",{href:"#faq-hosting"},"host your own instance"),h(" for free.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFreePlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#freePlan","aria-expanded":"false","aria-controls":"freePlan"},"What is included in a free account?")])]),n("div",{id:"freePlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFreePlan"},[n("div",{class:"panel-body p-3"},[n("p",null,"The default free allowance is 5 repositories you own and 5 GiB of source files in total. Core anonymization and reviewer access remain free. You can manually refresh a repository within your allowance and choose a dated expiration up to 5 months ahead, then extend it again before it expires. Repositories submitted to a conference can stay online until the end of its review window."),n("p",null,"Repositories shared with you as a co-author do not use your own slots. Gists and pull requests are not included in these repository quotas. The usage shown in your account is the allowance available on this instance.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingAuthorPlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#authorPlans","aria-expanded":"false","aria-controls":"authorPlans"},"What do monthly and annual author subscriptions include?")])]),n("div",{id:"authorPlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingAuthorPlans"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Both include 20 owned repositories and 40 GiB of source files in total. They also allow automatic refresh when enabled in repository settings and let the owner choose "),n("strong",null,"Never expire"),h(".")]),n("p",null,[h("Monthly and annual plans offer the same features with different billing periods. They renew automatically until you cancel renewal. Current prices are shown in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,"Paid plans do not change how anonymization works. File-size limits and other service safeguards still apply. Review your anonymized content before sharing it.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingReviewPass"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#reviewPass","aria-expanded":"false","aria-controls":"reviewPass"},"Can I pay for one repository without subscribing?")])]),n("div",{id:"reviewPass",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingReviewPass"},[n("div",{class:"panel-body p-3"},[n("p",null,"Yes. These one-time add-ons apply to a single repository you own. None of them renews automatically:"),n("ul",null,[n("li",null,[n("strong",null,"Paper pack"),h(": an extra repository, automatic updates for 180 days and one more year before it expires, in a single payment. It covers what one paper usually needs during review.")]),n("li",null,[n("strong",null,"Extra repository"),h(": host one more repository once your free repositories are used up. It has its own 2 GiB allowance and does not count toward your free repositories. It lasts as long as the repository exists.")]),n("li",null,[n("strong",null,"Live updates"),h(": automatic refresh for 180 days, with a separate 2 GiB allowance.")]),n("li",null,[n("strong",null,"Extended expiration"),h(": choose an expiration date up to one year after purchase. Buying it again adds another year.")]),n("li",null,[n("strong",null,"Never expire"),h(": the repository has no expiration date. A full refund or a payment dispute ends it after a 90-day grace period.")])]),n("p",null,[h("When your free allowance is full, the Extra repository and Paper pack options are offered as you create the repository. You can also buy an add-on from the repository's edit page, or enter the anonymized ID of an existing repository in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(". Current prices are shown there.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConferencePlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#conferencePlans","aria-expanded":"false","aria-controls":"conferencePlans"},"Can a conference or lab pay for a group?")])]),n("div",{id:"conferencePlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConferencePlans"},[n("div",{class:"panel-body p-3"},[n("p",null,"A conference review package provides a shared allowance for a review window of up to 180 days, with automatic updates for every submission. It comes in three sizes: Workshop (25 repositories, 10 GiB), Conference (100 repositories, 50 GiB) and Large conference (400 repositories, 200 GiB). Choose the size when you create the conference; it cannot change afterwards. The organizer pays once and authors pay nothing (the price is shown when you create the conference); the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"New conferences no longer have a free plan: every new conference is a review package. Conferences created earlier keep working as before. The conference must be activated by payment before authors can submit under its Conference ID. Eligible repositories use the conference allowance before an author's personal allowance, so authors do not each need a subscription for that capacity."),n("p",null,"The package has a fixed review window. Never expire still requires the repository owner's author subscription or a Never expire add-on for that repository.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaidCoauthors"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paidCoauthors","aria-expanded":"false","aria-controls":"paidCoauthors"},"Does every co-author need to pay?")])]),n("div",{id:"paidCoauthors",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaidCoauthors"},[n("div",{class:"panel-body p-3"},[n("p",null,"No. Co-authors can collaborate without buying a subscription. A shared repository uses its owner's allowance, unless a repository pass or paid conference covers it. It does not consume each co-author's personal allowance."),n("p",null,"A co-author's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a co-author's refresh or edit may also be blocked. Reviewers never need a paid account.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCapacity"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#capacity","aria-expanded":"false","aria-controls":"capacity"},"What counts toward my allowance, and what happens at the limit?")])]),n("div",{id:"capacity",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCapacity"},[n("div",{class:"panel-body p-3"},[n("p",null,"The repository limit counts work you own. Storage counts the source-file sizes reserved for those repositories, not just files a reviewer opens. Archived or failed repositories can still reserve capacity, and a refresh does not automatically reduce a previous storage reservation."),n("p",null,"At the repository limit you cannot add another repository to that allowance. An edit or refresh must also fit the available storage. Remove work you no longer need, add an Extra repository for the new one, choose a subscription, or use an eligible conference allowance."),n("p",null,"Removing a repository releases its reservation when capacity is next checked. Expired repositories may continue to reserve capacity until cleanup. Reaching a limit does not itself delete existing review links.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingNeverExpire"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#neverExpire","aria-expanded":"false","aria-controls":"neverExpire"},"What happens to Never expire repositories if I stop subscribing?")])]),n("div",{id:"neverExpire",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingNeverExpire"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Never expire is available to monthly and annual author subscribers, or for one repository with the one-time Never expire add-on. If a subscription ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),h(", then expire and their hosted content is removed.")]),n("p",null,"Renewing during the grace period keeps them active. After expiration, you must renew and explicitly reactivate the repository; restoring content also requires access to its GitHub source. A repository does not become public on GitHub when it expires."),n("p",null,"Existing never-expiring repositories created before this billing policy retain their settings. Never expire is not a guarantee of perpetual service availability.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCancelPlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#cancelPlan","aria-expanded":"false","aria-controls":"cancelPlan"},"How do I cancel, and what happens after paid access ends?")])]),n("div",{id:"cancelPlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCancelPlan"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" and choose "),n("strong",null,"Manage billing and invoices"),h(" to manage renewal. Cancelling renewal keeps subscription benefits until the end of the paid period.")]),n("p",null,"After paid access ends, repositories fall back to another eligible allowance or the free allowance. Automatic refresh pauses on the free allowance; manual refresh remains available within its limits. Existing review links keep their configured expiration dates, except paid Never expire repositories, which follow the 90-day grace period described above."),n("p",null,"A repository pass or conference package ends after its paid window without automatic renewal.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingRefunds"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#refunds","aria-expanded":"false","aria-controls":"refunds"},"Can I get a refund?")])]),n("div",{id:"refunds",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingRefunds"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Refunds are handled case by case. "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the date of the payment and the repository it was for.")]),n("p",null,"A full refund ends what that payment bought. For a Paper pack, this means all three parts: the extra repository, automatic updates and the extended expiration. A Never expire repository then expires after a 90-day grace period. A partial refund keeps your access."),n("p",null,"To stop a subscription, cancel its renewal instead of asking for a refund. You keep access until the end of the period you paid for.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaymentHandling"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paymentHandling","aria-expanded":"false","aria-controls":"paymentHandling"},"How are payments handled?")])]),n("div",{id:"paymentHandling",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaymentHandling"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Stripe processes checkout and billing management. Anonymous GitHub does not store your card details. You can access billing management and invoices from "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,[h("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),h(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),f(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),h("Features ")]),n("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub can display and render a wide variety of file types: "),n("ul",null,[n("li",null,[n("strong",null,"Text and source code"),h(": displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),h(": rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),h(" (PNG, JPG, SVG, etc.): displayed inline")]),n("li",null,[n("strong",null,"PDFs"),h(": rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),h(": rendered with code cells and outputs")])]),n("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[n("div",{class:"panel-body p-3"},[n("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),n("ul",null,[n("li",null,[n("strong",null,"Never expire"),h(": with a monthly or annual author subscription, no scheduled expiration while subscribed. A 90-day grace period applies after paid access ends. See "),n("a",{href:"#neverExpire"},"the subscription expiration policy"),h(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),h(": after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),h(": after expiration, the anonymized content is deleted from the server.")])])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[n("div",{class:"panel-body p-3"},[n("p",null," You can refresh the anonymized repository from GitHub without creating a new share link. Free accounts can request a manual refresh within their allowance. Automatic refresh requires an eligible paid allowance and must be enabled in repository settings. It pauses when the repository falls back to the free allowance. "),n("p",null," After changing files or contributor names, review your anonymization terms before sharing the updated content. If GitHub access is revoked or the source is deleted, the service cannot fetch updates. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[n("div",{class:"panel-body p-3"},[n("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: "),n("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[n("code",null,`npm install -g @tdurieux/anonymous_github -anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),h("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("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 and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),h(" page.")]),n("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."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("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 "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),h("Self"),n("span",{class:"serif-hy"},"-"),h("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{class:"panel-body p-3"},[n("p",null,[h(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. Billing is optional and disabled by default for self-hosted instances; paid hosted plans are not required to run your own server. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),h(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[h("Create a "),n("code",null,".env"),h(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[h("Run "),n("code",null,"docker-compose up -d")])])])])])])],-1))],2),t[11]||(t[11]=n("aside",{class:"paper-faq-help","aria-label":"More help"},[n("div",{class:"paper-faq-help-card"},[n("strong",null,"Still stuck?"),n("p",null,"Open an issue on GitHub about the service. For a paper's content, contact the conference instead."),n("a",{class:"btn btn-outline-ink btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue")])],-1))])]),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var lj={class:"pr-page review-page"},dj={class:"container paper-page pr-page-inner"},uj={class:"pr-header"},cj={class:"pr-title-row"},pj={class:"paper-page-title pr-title"},fj={key:0},mj=["aria-label"],hj={key:1,class:"text-muted"},gj=["href"],yj={class:"pr-header-meta"},vj={key:0,class:"pr-meta-item"},bj=["aria-label"],wj={key:1,class:"pr-meta-item"},kj=["textContent"],Cj={key:2,class:"pr-meta-item"},Ej=["textContent"],Sj={key:0,class:"paper-tabs",role:"tablist"},Nj=["aria-selected","tabindex"],Rj=["textContent"],Tj=["aria-selected","tabindex"],Pj=["textContent"],Dj={class:"paper-tab-content"},Aj={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},Ij={class:"toc-main"},Oj={key:0,class:"toc-bar"},Mj={class:"toc-menu"},Vj=["aria-expanded"],qj={key:0,class:"toc-menu-current"},Lj=["aria-label"],$j={key:0,class:"toc-menu-pop toc-rail","aria-label":"In this gist"},Fj=["href","aria-current","onClick"],Uj={class:"toc-file-name"},Bj=["aria-label"],Hj={class:"toc-file-meta"},zj=["href","aria-current","onClick"],jj=["aria-label"],_j=["id","aria-labelledby"],Gj={class:"gist-file-head"},Wj=["id"],Kj=["aria-label"],Yj={class:"gist-file-meta"},Xj={class:"gist-file-tools"},Qj=["aria-label"],Jj=["aria-checked","onClick"],Zj=["aria-checked","onClick"],xj=["aria-checked","onClick"],e_={key:1,class:"tb-file gist-file-actions",role:"group","aria-label":"File actions"},t_=["href","title"],n_=["aria-label","title","onClick"],s_={class:"ui-icon","aria-hidden":"true"},o_=["href"],i_=["href","download"],r_={key:2,class:"notebook-body"},a_={key:4,class:"media-stage"},l_=["src","alt"],d_={key:5,class:"media-stage"},u_=["src"],c_={key:6,class:"media-stage is-audio"},p_=["src"],f_={key:8,class:"file-state"},m_={key:9,class:"file-state",role:"note"},h_={key:10,class:"file-state",role:"note"},g_={key:11,class:"file-state"},y_={key:1,class:"paper-table-empty"},v_={key:0,class:"page-toc","aria-label":"In this gist"},b_={class:"toc-rail"},w_=["href","aria-current","onClick"],k_={class:"toc-file-name"},C_=["aria-label"],E_={class:"toc-file-meta"},S_=["href","aria-current","onClick"],N_=["aria-label"],R_={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},T_={class:"pr-comments"},P_={key:0,class:"paper-table-empty"};function Wf(e,t){let s=_e("gist-file"),i=_e("notebook"),r=_e("data-table"),o=_e("pdfviewer"),u=_e("pr-thread");return a(),l("div",lj,[n("div",dj,[t[27]||(t[27]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",uj,[n("div",cj,[n("h1",pj,[e.details?.description?(a(),l("span",fj,[(a(!0),l(N,null,U(e.redactParts(e.details.description),(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,mj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))])):f("v-if",!0),e.details?.description?f("v-if",!0):(a(),l("span",hj,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[5]||(t[5]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,gj)):f("v-if",!0)]),n("div",yj,[n("span",{class:T(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(a(),l("span",vj,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[7]||(t[7]=h()),n("span",{class:T(["pr-author",{"is-redacted":e.isRedactedName(e.details.ownerLogin)}])},[e.isRedactedName(e.details.ownerLogin)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.ownerLogin),(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,bj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))],2)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",wj,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[9]||(t[9]=h()),n("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,kj)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",Cj,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[11]||(t[11]=h(" Anonymized ",-1)),n("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,Ej)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(a(),l("nav",Sj,[e.details?.files?(a(),l("button",{key:0,class:T(["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]=p=>e.previewTabKeydown(p)),onClick:t[1]||(t[1]=p=>e.tabState.active="files")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,Rj)],42,Nj)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:T(["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]=p=>e.previewTabKeydown(p)),onClick:t[3]||(t[3]=p=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Pj)],42,Tj)):f("v-if",!0)])):f("v-if",!0),n("div",Dj,[e.details?.files&&e.tabState?.active=="files"?(a(),l("div",Aj,[n("div",{class:T(["toc-layout",{"has-toc":e.showGistToc()}])},[n("div",Ij,[e.showGistToc()?(a(),l("div",Oj,[n("div",Mj,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost toc-menu-btn",{"is-on":e.tocOpen}]),"aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[4]||(t[4]=de(p=>e.tocOpen=!e.tocOpen,["stop"]))},[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)),t[15]||(t[15]=n("span",{class:"toc-menu-label"},"In this gist",-1)),e.gistToc()[e.activeFileIndex()]?(a(),l("span",qj,[(a(!0),l(N,null,U(e.gistToc()[e.activeFileIndex()].parts,(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,Lj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))])):f("v-if",!0),t[16]||(t[16]=n("svg",{class:"ui-icon toc-menu-chevron","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,Vj),e.tocOpen?(a(),l("nav",$j,[(a(!0),l(N,null,U(e.gistToc(),p=>(a(),l(N,{key:p.id},[n("a",{href:"#"+p.id,class:T(["toc-file",{"is-current":e.activeFileIndex()===p.index,"is-active":e.activeFileIndex()===p.index&&!p.headings.some(d=>d.id===e.activeAnchor)}]),"aria-current":e.activeFileIndex()===p.index?"location":null,onClick:de(d=>e.jumpToAnchor(p.id),["prevent"])},[n("span",Uj,[(a(!0),l(N,null,U(p.parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,Bj)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),n("span",Hj,c(p.language)+" \xB7 "+c(p.lines!=null?e.fmt.plural(p.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p.size||0)),1)],10,Fj),(a(!0),l(N,null,U(p.headings,d=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["toc-heading","depth-"+d.depth,{"is-active":e.activeAnchor===d.id}]),"aria-current":e.activeAnchor===d.id?"location":null,onClick:de(g=>e.jumpToAnchor(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,jj)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,zj))),128))],64))),128))])):f("v-if",!0)])])):f("v-if",!0),(a(!0),l(N,null,U(e.details?.files,(p,d)=>(a(),l("section",{class:"gist-file-card",key:d,id:e.gistFileId(d),"aria-labelledby":e.gistFileId(d)+"-name"},[n("header",Gj,[t[19]||(t[19]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),n("h2",{class:"gist-file-name",id:e.gistFileId(d)+"-name"},[(a(!0),l(N,null,U(e.redactParts(p?.filename),(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,Kj)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],8,Wj),n("span",Yj,[h(c(e.gistToc()[d]?.language),1),t[17]||(t[17]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.gistToc()[d]?.lines!=null?e.fmt.plural(e.gistToc()[d]?.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p?.size||0)),1)]),n("div",Xj,[e.gistHasRendered(d)?(a(),l("div",{key:0,class:"seg-filter gist-view-toggle",role:"radiogroup","aria-label":"View of "+p?.filename},[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="rendered"}]),"aria-checked":e.gistView(d)==="rendered"?"true":"false",onClick:g=>e.setGistView(d,"rendered")},c(e.gistKind(d)==="csv"?"Table":"Preview"),11,Jj),e.gistKind(d)==="csv"?(a(),l("button",{key:0,type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="chart"}]),"aria-checked":e.gistView(d)==="chart"?"true":"false",onClick:g=>e.setGistView(d,"chart")},"Chart",10,Zj)):f("v-if",!0),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="raw"}]),"aria-checked":e.gistView(d)==="raw"?"true":"false",onClick:g=>e.setGistView(d,"raw")},"Source",10,xj)],8,Qj)):f("v-if",!0),["too-large","hidden","empty","binary"].includes(e.gistKind(d))?f("v-if",!0):(a(),l("div",e_,[n("a",{class:"tb-seg-btn",href:e.safeUrl(e.gistRawUrl(p)),target:"_blank",rel:"noopener",title:p?.encoding==="base64"?"Open the file":"Open the raw file"},"Raw",8,t_),p?.encoding!=="base64"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.gistCopied===d?"Copied":"Copy file contents",title:e.gistCopied===d?"Copied":"Copy file contents",onClick:g=>e.copyGistFile(d)},[(a(),l("svg",s_,[n("use",{href:e.gistCopied===d?"#ui-icon-check":"#project-icon-copy"},null,8,o_)]))],8,n_)):f("v-if",!0),n("a",{class:"tb-seg-btn tb-seg-icon",href:e.safeUrl(e.gistRawUrl(p)),download:p?.filename,"aria-label":"Download file",title:"Download file"},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,i_)]))])]),n("div",{class:T(["gist-file-body","is-"+(e.gistView(d)==="raw"&&e.gistHasRendered(d)?"code":e.gistKind(d))])},[e.gistKind(d)==="markdown"&&e.gistView(d)==="rendered"?(a(),Nt(s,{key:0,file:p,reader:!0,"id-prefix":e.gistFileId(d)+"-",onOutline:g=>e.setFileOutline(d,g)},null,8,["file","id-prefix","onOutline"])):e.gistKind(d)==="code"||e.gistHasRendered(d)&&e.gistView(d)==="raw"?(a(),Nt(s,{key:1,file:e.gistSourceFile(d),reader:!0},null,8,["file"])):e.gistKind(d)==="notebook"?(a(),l("div",r_,[$e(i,{class:"markdown-body",content:p.content},null,8,["content"])])):e.gistKind(d)==="csv"?(a(),Nt(r,{key:p?.filename,rows:e.gistCsvRows(p),name:p?.filename,"state-key":"table-"+(d+1),view:e.gistView(d)==="chart"?"chart":"table"},null,8,["rows","name","state-key","view"])):e.gistKind(d)==="image"||e.gistKind(d)==="svg"?(a(),l("div",a_,[n("img",{class:"image-content",src:e.safeUrl(e.gistMediaUrl(p)),alt:p?.filename},null,8,l_)])):e.gistKind(d)==="video"?(a(),l("div",d_,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.gistMediaUrl(p))},null,8,u_)])):e.gistKind(d)==="audio"?(a(),l("div",c_,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.gistMediaUrl(p))},null,8,p_)])):e.gistKind(d)==="pdf"?(a(),Nt(o,{key:7,src:e.safeUrl(e.gistMediaUrl(p))},null,8,["src"])):e.gistKind(d)==="binary"?(a(),l("div",f_,[...t[20]||(t[20]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"This file isn't shared",-1),n("p",{class:"file-state-msg"},"Binary files other than images can carry author details that anonymization can't remove, so anonymized gists don't include them.",-1)])])):e.gistKind(d)==="too-large"?(a(),l("div",m_,[...t[21]||(t[21]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),n("h3",{class:"file-state-title"},"This file is too large to preview",-1),n("p",{class:"file-state-msg"},"It is over the size limit for anonymized gist files, so it can't be shown or downloaded from this link.",-1)])])):e.gistKind(d)==="hidden"?(a(),l("div",h_,[...t[22]||(t[22]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"Image not shown",-1),n("p",{class:"file-state-msg"},"The author chose not to display images in this anonymized gist.",-1)])])):(a(),l("div",g_,[...t[23]||(t[23]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])]))],2)],8,_j))),128)),e.details?.files?.length?f("v-if",!0):(a(),l("div",y_,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))]),e.showGistToc()?(a(),l("aside",v_,[t[25]||(t[25]=n("div",{class:"page-toc-head"},"In this gist",-1)),n("nav",b_,[(a(!0),l(N,null,U(e.gistToc(),p=>(a(),l(N,{key:p.id},[n("a",{href:"#"+p.id,class:T(["toc-file",{"is-current":e.activeFileIndex()===p.index,"is-active":e.activeFileIndex()===p.index&&!p.headings.some(d=>d.id===e.activeAnchor)}]),"aria-current":e.activeFileIndex()===p.index?"location":null,onClick:de(d=>e.jumpToAnchor(p.id),["prevent"])},[n("span",k_,[(a(!0),l(N,null,U(p.parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,C_)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),n("span",E_,c(p.language)+" \xB7 "+c(p.lines!=null?e.fmt.plural(p.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p.size||0)),1)],10,w_),(a(!0),l(N,null,U(p.headings,d=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["toc-heading","depth-"+d.depth,{"is-active":e.activeAnchor===d.id}]),"aria-current":e.activeAnchor===d.id?"location":null,onClick:de(g=>e.jumpToAnchor(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,N_)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,S_))),128))],64))),128))])])):f("v-if",!0)],2)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",R_,[n("ul",T_,[(a(!0),l(N,null,U(e.details?.comments,(p,d)=>(a(),l("li",{class:"pr-timeline-item",key:d},[$e(u,{comments:[p],fmt:e.fmt},null,8,["comments","fmt"])]))),128)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",P_,[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var D_={key:0,class:"nav-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs","aria-label":"Donate on Ko-fi to help cover hosting costs"},A_={key:1,class:"nav-heart-m",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener","aria-label":"Support Anonymous GitHub",title:"Support Anonymous GitHub"},I_=["aria-label","title"],O_={class:"ui-icon","aria-hidden":"true"},M_=["href"],V_={key:3,class:"nav-signin-m",href:"/signin",target:"_self","aria-label":"Sign in with GitHub"},q_={class:"collapse navbar-collapse",id:"navbarSupportedContent"},L_={class:"navbar-nav mr-auto smooth-scroll"},$_={key:0,class:"nav-item nav-home-item"},F_={key:1,class:"nav-item"},U_={key:2,class:"nav-item"},B_={key:3,class:"nav-item"},H_={class:"nav-item"},z_={key:4,class:"nav-item"},j_={class:"navbar-nav"},__={key:0,class:"nav-item d-lg-none"},G_={key:1,class:"nav-item"},W_={key:2,class:"nav-item"},K_={key:3,class:"nav-item nav-signin-item"},Y_={key:4,class:"nav-item"},X_={key:5,class:"nav-item dropdown user-chip-wrap"},Q_={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},J_=["src"],Z_={class:"user-chip-name"},x_={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},eG={class:"dropdown-header"},tG={key:0,class:"dropdown-item um-extra",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},nG=["innerHTML"],sG=["disabled"],oG={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},iG={class:"email-prompt-actions"},rG=["disabled"],aG=["disabled"],lG=["disabled"];function Kf(e,t){return a(),l(N,null,[n("nav",{class:T(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[28]||(t[28]=n("a",{class:"navbar-brand",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),e.headerShowSupport?(a(),l("a",D_,[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",{class:"nav-support-label"},"Support",-1)])])):f("v-if",!0),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("a",A_,[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1)])])),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("button",{key:2,type:"button",class:"nav-theme-m","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Switch to light mode":"Switch to dark mode",onClick:t[0]||(t[0]=s=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",O_,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,M_)]))],8,I_)),!e.user&&!/^\/(r|w|pr|gist)\//.test(e.path||"")?(a(),l("a",V_,[...t[11]||(t[11]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])])):f("v-if",!0),t[29]||(t[29]=n("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"navbar-toggler-icon"})],-1)),n("div",q_,[n("ul",L_,[e.user?f("v-if",!0):(a(),l("li",$_,[n("a",{class:T(["nav-link",{active:e.path=="/"}]),href:"/"},[...t[12]||(t[12]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-home"})],-1),h(" Home ",-1)])],2)])),e.user?(a(),l("li",F_,[n("a",{class:T(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[13]||(t[13]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),h(" My work ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",U_,[n("a",{class:T(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[14]||(t[14]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",B_,[n("a",{class:T(["nav-link",{active:e.path=="/conferences"||e.path?.startsWith("/conference/")}]),href:"/conferences"},[...t[15]||(t[15]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),h(" Conferences ",-1)])],2)])):f("v-if",!0),n("li",H_,[n("a",{class:T(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[16]||(t[16]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),h("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(a(),l("li",z_,[n("a",{class:T(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[17]||(t[17]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Admin ",-1)])],2)])):f("v-if",!0)]),n("ul",j_,[e.user||!e.isReviewerRoute?(a(),l("li",__,[...t[18]||(t[18]=[n("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"},[n("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 +jane.smith@example.org`},null,10,W6),[[u,{state:e.viewState,set:d=>{e.terms=d},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[132]||(t[132]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",K6,[t[127]||(t[127]=n("summary",null,"Regex & replacement syntax",-1)),t[128]||(t[128]=h()),n("small",Y6,[t[121]||(t[121]=h("Regex is supported. Replaced by ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[122]||(t[122]=h(", or use ",-1)),t[123]||(t[123]=n("code",null,"term=>replacement",-1)),t[124]||(t[124]=h(" to pick your own (e.g. ",-1)),t[125]||(t[125]=n("code",null,"Anonymous=>ABC",-1)),t[126]||(t[126]=h(").",-1))])]),(a(!0),l(N,null,U((e.termHints||[]).slice(0,3),d=>(a(),l("div",{class:"term-hint",key:d.line},[n("span",null,[t[129]||(t[129]=h("In ",-1)),n("code",null,c(d.term),1),t[130]||(t[130]=h(", ",-1)),n("code",null,c(d.symbols.join(" ")),1),h(" "+c(d.symbols.length>1?"are regex symbols":"is a regex symbol")+", so it may not match the text as written.",1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:g=>e.matchTermAsWritten(d.line)},"Match as written",8,X6)]))),128)),(e.termHints||[]).length>3?(a(),l("div",Q6,c(e.termHints.length-3)+" more "+c(e.termHints.length-3===1?"term uses":"terms use")+" regex symbols.",1)):f("v-if",!0),O(n("div",J6,"Terms are in an invalid format.",512),[[te,e.anonymize?.terms?.errors?.format]])]),O(n("div",Z6,[n("div",x6,[t[133]||(t[133]=n("span",{class:"paper-field-label",id:"preserve-files-label"},"Unredacted files",-1)),n("span",eM,c(e.preserveSummary()),1)]),n("button",{type:"button",class:"btn btn-outline-ink btn-sm","aria-describedby":"preserve-files-label",disabled:!e.source?.commit,onClick:t[26]||(t[26]=d=>e.openPreserveFiles())},c((e.options?.preserveFiles||[]).length?"Edit":"Choose files"),9,tM)],512),[[te,e.detectedType==="repo"]]),e.preserve?.open?(a(),l("dialog",{key:0,id:"preserve-files-dialog",class:"preserve-dialog","aria-labelledby":"preserve-files-title",onCancel:t[31]||(t[31]=de(d=>e.closePreserveFiles(),["prevent"]))},[n("form",{onSubmit:t[30]||(t[30]=de(d=>e.savePreserveFiles(),["prevent"]))},[t[137]||(t[137]=n("h2",{id:"preserve-files-title"},"Leave files unredacted",-1)),t[138]||(t[138]=n("p",{class:"preserve-intro"},"Checked files are shown exactly as written, for example a bibliography where redacted self-citations would reveal you. File names are still redacted.",-1)),O(n("input",{type:"search",id:"preserve-files-search",class:"form-control",placeholder:"Search files","aria-label":"Search files",autocomplete:"off","onUpdate:modelValue":t[27]||(t[27]=d=>e.preserve.search=d)},null,512),[[ft,e.preserve.search]]),n("div",nM,[e.preserve.loading?(a(),l("p",sM,"Loading files from GitHub\u2026")):e.preserve.error?(a(),l("p",oM,c(e.preserve.error),1)):(a(),l(N,{key:2},[(a(!0),l(N,null,U(e.preserveRows(),(d,g)=>(a(),l("div",{class:"preserve-item",key:d.kind+":"+d.path,style:De({paddingLeft:d.depth*18+6+"px"})},[d.kind==="dir"?(a(),l("button",{key:0,type:"button",class:"preserve-caret","aria-expanded":d.open?"true":"false","aria-label":(d.open?"Collapse ":"Expand ")+d.label,onClick:m=>e.togglePreserveDir(d.path)},c(d.open?"\u25BE":"\u25B8"),9,iM)):(a(),l("span",rM)),n("input",{type:"checkbox",id:"pf-"+g,"aria-label":d.kind==="dir"?"Leave folder "+d.path+" unredacted":null,checked:d.state==="all",".indeterminate":d.state==="some",disabled:d.locked,onChange:m=>d.kind==="dir"?e.togglePreserveFolder(d.path):e.togglePreserveFile(d.path)},null,40,aM),n("label",{for:d.kind==="file"?"pf-"+g:null,class:"preserve-name",onClick:m=>d.kind==="dir"&&e.togglePreserveDir(d.path)},c(d.label),9,lM),d.note?(a(),l("span",dM,c(d.note),1)):f("v-if",!0)],4))),128)),!e.preserve.loading&&!e.preserveRows().length?(a(),l("p",uM,c(e.preserve.search?"No file matches your search.":"No text files in this commit."),1)):f("v-if",!0)],64))]),e.preserve.truncated?(a(),l("p",cM,"This repository has too many files to list them all. Use a pattern for files you cannot find.")):f("v-if",!0),n("details",{class:"preserve-patterns",open:e.preserve.patternsOpen},[t[134]||(t[134]=n("summary",null,"Patterns",-1)),O(n("textarea",{class:"form-control",rows:"3","aria-label":"Patterns",placeholder:`*.bib +paper/appendix/**`,"onUpdate:modelValue":t[28]||(t[28]=d=>e.preserve.patterns=d)},null,512),[[ft,e.preserve.patterns]]),t[135]||(t[135]=n("small",{class:"form-text text-muted"},[h("One per line, as in .gitignore: "),n("code",null,"*.bib"),h(" matches in any folder; "),n("code",null,"/refs.bib"),h(" and "),n("code",null,"paper/refs.bib"),h(" match from the repository root; a folder name such as "),n("code",null,"drafts/"),h(" covers everything inside it; "),n("code",null,"!private.bib"),h(" excludes again.")],-1))],8,pM),n("div",fM,[n("span",mM,c(e.preserve.loading||e.preserve.error?"":e.preserveCount()+(e.preserveCount()===1?" file":" files")+" will be shown as written"),1),n("span",hM,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[29]||(t[29]=d=>e.closePreserveFiles())},"Cancel"),t[136]||(t[136]=n("button",{type:"submit",class:"btn btn-ink"},"Save",-1))])])],32)],32)):f("v-if",!0)],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",gM,[t[159]||(t[159]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),O(n("div",null,[n("div",yM,[O(n("input",vM,null,512),[[u,{state:e.viewState,set:d=>{e.options.link=d},value:e.options?.link,form:"anonymize",options:{}}]]),t[140]||(t[140]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",bM,[O(n("input",wM,null,512),[[u,{state:e.viewState,set:d=>{e.options.image=d},value:e.options?.image,form:"anonymize",options:{}}]]),t[141]||(t[141]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",kM,[O(n("input",CM,null,512),[[u,{state:e.viewState,set:d=>{e.options.pdf=d},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[142]||(t[142]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",EM,[O(n("input",SM,null,512),[[u,{state:e.viewState,set:d=>{e.options.notebook=d},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[143]||(t[143]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1))]),n("div",NM,[O(n("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,RM),[[u,{state:e.viewState,set:d=>{e.options.page=d},value:e.options?.page,form:"anonymize",options:{}}]]),t[144]||(t[144]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(a(),l("small",TM,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?(a(),l("small",PM,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[te,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(a(),l("p",DM,[...t[145]||(t[145]=[h("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):f("v-if",!0),O(n("div",null,[n("div",AM,[O(n("input",IM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[146]||(t[146]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",OM,[O(n("input",MM,null,512),[[u,{state:e.viewState,set:d=>{e.options.content=d},value:e.options?.content,form:"anonymize",options:{}}]]),t[147]||(t[147]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",VM,[O(n("input",qM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[148]||(t[148]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",LM,[O(n("input",$M,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[149]||(t[149]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",FM,[O(n("input",UM,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[150]||(t[150]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",BM,[O(n("input",HM,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[151]||(t[151]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[te,e.detectedType==="gist"]]),O(n("div",null,[n("div",zM,[O(n("input",jM,null,512),[[u,{state:e.viewState,set:d=>{e.options.title=d},value:e.options?.title,form:"anonymize",options:{}}]]),t[152]||(t[152]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",_M,[O(n("input",GM,null,512),[[u,{state:e.viewState,set:d=>{e.options.body=d},value:e.options?.body,form:"anonymize",options:{}}]]),t[153]||(t[153]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",WM,[O(n("input",KM,null,512),[[u,{state:e.viewState,set:d=>{e.options.diff=d},value:e.options?.diff,form:"anonymize",options:{}}]]),t[154]||(t[154]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",YM,[O(n("input",XM,null,512),[[u,{state:e.viewState,set:d=>{e.options.comments=d},value:e.options?.comments,form:"anonymize",options:{}}]]),t[155]||(t[155]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",QM,[O(n("input",JM,null,512),[[u,{state:e.viewState,set:d=>{e.options.username=d},value:e.options?.username,form:"anonymize",options:{}}]]),t[156]||(t[156]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",ZM,[O(n("input",xM,null,512),[[u,{state:e.viewState,set:d=>{e.options.date=d},value:e.options?.date,form:"anonymize",options:{}}]]),t[157]||(t[157]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",eV,[O(n("input",tV,null,512),[[u,{state:e.viewState,set:d=>{e.options.origin=d},value:e.options?.origin,form:"anonymize",options:{}}]]),t[158]||(t[158]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[te,e.detectedType==="pr"]])],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",nV,[t[176]||(t[176]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),n("div",sV,[t[160]||(t[160]=n("label",{class:"paper-field-label",for:"conference"},[h("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[u,{state:e.viewState,set:d=>{e.conference=d},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),O(n("p",{class:T(["conference-hosting",{"is-covered":e.conferenceHosting()}]),role:"status"},[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,oV),e.conferenceHosting()?(a(),l(N,{key:0},[h(" hosts this repository until "+c(e.fmt?.date(e.conference_data?.endDate))+", with automatic updates. You don't pay anything.",1)],64)):e.billing?.enabled&&e.detectedType==="repo"?(a(),l(N,{key:1},[h(" runs until "+c(e.fmt?.date(e.conference_data?.endDate))+". It doesn't pay for hosting, so this repository uses your own allowance.",1)],64)):(a(),l(N,{key:2},[h(" runs until "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],64))],2),[[te,e.conference_data]]),O(n("div",iV,"The conference is not activated.",512),[[te,e.anonymize?.conference?.errors?.activated]]),O(n("small",rV,"Submitting to a conference? Its code applies the venue's settings, and a paid conference hosts the repository for you.",512),[[te,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled&&!e.conferenceHosting()?(a(),l("p",aV,[e.isUpdate&&e.role!=="owner"?(a(),l("span",lV,"Uses the owner's hosting")):e.hasAuthorHosting()?(a(),l("span",dV,"Your author subscription is active.")):e.hostingQuota?.repository?(a(),l("span",uV,c(e.hostingQuota.repository.used)+" of "+c(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"&&e.options?.update&&!e.liveUpdatesIncluded()?(a(),l("p",cV,[t[161]||(t[161]=h("Automatic updates need a paid option. On free hosting, the link keeps the version you create until you refresh it from My work. Once it exists, add Live updates",-1)),e.liveUpdatesPrice()?(a(),l(N,{key:0},[h(" ("+c(e.liveUpdatesPrice())+" once)",1)],64)):f("v-if",!0),t[162]||(t[162]=h(" or a Paper pack in ",-1)),t[163]||(t[163]=n("a",{href:"/profile?billing=1"},"Settings \u203A Hosting & billing",-1)),t[164]||(t[164]=h(", or take an author subscription.",-1))])):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",pV,[e.hostingNeedsPayment()&&!e.billingPending?(a(),l(N,{key:0},[e.options.expirationMode!=="never"||e.hostingQuotaBlocked?(a(),l("p",fV,c(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(a(),l("label",{class:T(["hosting-option",{"is-selected":e.hostingChoice()===d.id||d.interval&&e.authorPlans().some(g=>g.id===e.hostingChoice())}]),key:d.id},[n("input",{type:"radio",name:"hosting-plan",value:d.id,checked:e.hostingChoice()===d.id||d.interval&&e.authorPlans().some(g=>g.id===e.hostingChoice()),onChange:g=>e.hostingPlan=d.interval?e.hostingSubscriptionPlan().id:d.id},null,40,gV),n("span",yV,[n("strong",null,c(e.hostingOptionName(d)),1),n("small",null,c(e.hostingOptionBlurb(d)),1),d.interval&&e.authorPlans().length>1&&e.authorPlans().some(g=>g.id===e.hostingChoice())?(a(),l("span",vV,[(a(!0),l(N,null,U(e.authorPlans(),g=>(a(),l("button",{type:"button",role:"radio",key:g.id,"aria-checked":e.hostingSubscriptionPlan().id===g.id?"true":"false",class:T({"is-on":e.hostingSubscriptionPlan().id===g.id}),onClick:de(m=>{e.hostingCycle=g.id,e.hostingPlan=g.id},["prevent"])},[h(c(g.interval==="year"?"Yearly":"Monthly"),1),g.interval==="year"&&e.hostingAnnualSavings()?(a(),l("span",wV,"\u2212"+c(e.hostingAnnualSavings())+"%",1)):f("v-if",!0)],10,bV))),128))])):f("v-if",!0)]),n("span",kV,[n("strong",null,c(e.billingAmount(d.interval?e.hostingSubscriptionPlan():d)),1),n("small",null,c(d.interval?"per "+e.hostingSubscriptionPlan().interval:"once"),1)])],2))),128))])):(a(),l("p",CV,"New purchases are temporarily unavailable. Your draft is kept.")),e.authorPlans().some(d=>d.id===e.hostingChoice())?(a(),l("p",EV,"Renews "+c(e.hostingChoice()==="author_annual"?"yearly":"monthly")+" until you cancel. Tax shown at checkout.",1)):(a(),l("p",SV,"One-time payment, nothing renews. Tax shown at checkout.")),e.options.expirationMode!=="never"?(a(),l("details",NV,[t[165]||(t[165]=n("summary",null,"Keep using free hosting",-1)),t[166]||(t[166]=n("p",null,"Remove a repository you no longer need, or enter the code of a paid conference above. Removing a repository affects its review link.",-1)),t[167]||(t[167]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[32]||(t[32]=d=>e.anonymizeRepo(d)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,RV)])):f("v-if",!0)],64)):f("v-if",!0)])):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("h4",TV,"Expiration")):f("v-if",!0),n("fieldset",PV,[t[173]||(t[173]=n("legend",{class:"sr-only"},"Expiration",-1)),f(' Under a plan limit the option names the date ("Expire on Apr 29, 2027"); a muted line says why, and "Change date" reveals the bounded input '),n("div",DV,[n("label",AV,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[33]||(t[33]=d=>e.useDatedHosting()),disabled:e.billingPending},null,40,IV),n("span",null,c(e.expiryChoiceLabel()),1)]),e.options.expirationMode!=="never"&&!e.expiryPickerShown()?(a(),l("button",{key:0,type:"button",class:"expiry-change",onClick:t[34]||(t[34]=d=>e.openExpiryPicker())},"Change date")):f("v-if",!0)]),e.options.expirationMode!=="never"?(a(),l("div",OV,[e.expiryCapped()&&e.expiryChoiceLabel()!=="Expire on a date"?(a(),l("p",MV,[h(c(e.expiryRelative()),1),e.expiryNote()?(a(),l(N,{key:0},[t[168]||(t[168]=n("span",{class:"expiry-meta-sep","aria-hidden":"true"}," \xB7 ",-1)),n("span",VV,c(e.expiryNote()),1)],64)):f("v-if",!0)])):f("v-if",!0),f(' One date input in every mode (the form keeps one field); under a plan limit it stays hidden until "Change date" or an invalid date '),O(n("div",{class:T(["hosting-date",{"is-capped":e.expiryCapped()}]),onReveal:t[35]||(t[35]=d=>e.expiryPickerOpen=!0)},[t[169]||(t[169]=n("label",{class:"paper-field-label",for:"expirationDate"},"Date",-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,qV),[[u,{state:e.viewState,set:d=>{e.options.expirationDate=d},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),!e.expiryCapped()&&e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",LV,c(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),O(n("div",$V,"Pick a date in the future.",512),[[te,e.anonymize?.expirationDate?.errors?.min]]),O(n("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[te,e.anonymize?.expirationDate?.errors?.max]]),O(n("div",FV,"Enter a valid expiration date.",512),[[te,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])],34),[[te,e.expiryPickerShown()]]),n("div",UV,[t[171]||(t[171]=n("label",{for:"expiration"},"After expiry",-1)),O(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[36]||(t[36]=d=>e.options.expirationMode=d)},[...t[170]||(t[170]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[Vt,e.options.expirationMode]])])])):f("v-if",!0),e.detectedType==="repo"?(a(),l("label",BV,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[37]||(t[37]=d=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,HV),n("span",null,[t[172]||(t[172]=h("Never expire",-1)),(e.options.expirationMode!=="never"||e.hasAuthorHosting()||e.repositoryGrants("repo_never").length)&&!(e.hostingNeedsPayment()&&e.hostingOptionPlans().length)?(a(),l("small",zV,c(e.neverExpireTag()),1)):f("v-if",!0)])])):f("v-if",!0)]),e.options.expirationMode==="redirect"?(a(),l("p",jV,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):f("v-if",!0),e.detectedType==="repo"&&e.billing?.enabled?(a(),l("div",_V,[e.taskValidationError?(a(),l("p",GV,c(e.taskValidationError),1)):f("v-if",!0),e.billingError?(a(),l("p",WV,[h(c(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[38]||(t[38]=d=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,KV)])):f("v-if",!0),e.billingPending?(a(),l("div",YV,[...t[174]||(t[174]=[n("p",null,[n("strong",null,"Confirming your payment\u2026")],-1),n("p",{class:"form-text text-muted"},"Your draft is saved. Please do not pay again.",-1)])])):e.billingNotice?(a(),l("p",XV,c(e.billingNotice),1)):e.options.expirationMode==="never"&&!e.billingPending&&!e.hasAuthorHosting()&&e.repositoryGrants("repo_never").length?(a(),l("p",QV,"No scheduled expiration. Paid once for this repository.")):e.options.expirationMode==="never"&&!e.billingPending?(a(),l("p",JV,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):f("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()&&!e.hostingNeedsPayment()&&e.repositoryAddonPlans().length?(a(),l("details",ZV,[t[175]||(t[175]=n("summary",null,"Pay once for just this repository",-1)),(a(!0),l(N,null,U(e.repositoryAddonPlans(),d=>(a(),l("div",{key:d.id},[n("p",null,[n("strong",null,c(d.name),1),h(" \xB7 "+c(e.billingPrice(d))+". "+c(d.description),1)]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:g=>e.checkoutRepository(d.id)},"Buy "+c(d.name.toLowerCase()),9,xV)]))),128))])):f("v-if",!0)])):f("v-if",!0)],512),[[te,e.detectedType&&e.sourceReady()]]),O(n("section",eq,[t[180]||(t[180]=n("h2",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[181]||(t[181]=n("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)),O(n("div",tq,[t[177]||(t[177]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",nq,[O(n("input",sq,null,512),[[u,{state:e.viewState,set:d=>{e.coauthorSearch=d},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),O(n("div",oq,[(a(!0),l(N,null,U(e.coauthorResults,(d,g)=>(a(),l("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:de(m=>e.addCoauthor(d,m),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(d?.photo)},null,8,rq),n("span",{textContent:c(d?.username)},null,8,aq)],8,iq))),256))],512),[[te,e.coauthorResults?.length>0]])]),O(n("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,lq),[[te,e.coauthorError]])],512),[[te,e.role==="owner"||e.role==="admin"]]),n("div",dq,[(a(!0),l(N,null,U(e.coauthors,(d,g)=>(a(),l("div",uq,[d?.photo?(a(),l("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(d?.photo)},null,8,cq)):f("v-if",!0),n("a",{target:"_blank",textContent:c(d?.username),href:e.safeUrl("https://github.com/"+d?.username)},null,8,pq),t[179]||(t[179]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),O(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:m=>e.removeCoauthor(d),"aria-label":"Remove co-author"},[...t[178]||(t[178]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,fq),[[te,e.role==="owner"||e.role==="admin"]])]))),256)),O(n("div",mq," No co-authors yet. ",512),[[te,!e.coauthors||e.coauthors?.length===0]])])],512),[[te,e.isUpdate&&e.detectedType==="repo"]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,hq)):f("v-if",!0)]),n("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[39]||(t[39]=d=>e.selectMobilePane("preview"))},[...t[182]||(t[182]=[h("Review preview ",-1),n("span",{"aria-hidden":"true"},"\u2192",-1)])]),O(n("div",gq,[e.detectedType==="repo"?(a(),l(N,{key:0},[e.billingPending?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[40]||(t[40]=d=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,yq)):(a(),l("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||!e.sourceReady()||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length&&!e.hostingOneTime()||e.billing?.checkoutEnabled===!1),onClick:t[41]||(t[41]=de(d=>e.submitForm(d,()=>{e.submitRepository(d)}),["prevent"]))},c(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,vq))],64)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(a(),l("button",{key:1,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[42]||(t[42]=de(d=>e.submitForm(d,()=>{e.anonymizePullRequest(d)}),["prevent"]))}," Create anonymous link ",8,bq)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(a(),l("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[43]||(t[43]=de(d=>e.submitForm(d,()=>{e.anonymizePullRequest(d)}),["prevent"]))}," Save changes ",8,wq)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(a(),l("button",{key:3,type:"submit",disabled:e.sourceLoading||!e.details,class:"btn btn-ink",onClick:t[44]||(t[44]=de(d=>e.submitForm(d,()=>{e.anonymizeGist(d)}),["prevent"]))}," Create anonymous link ",8,kq)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(a(),l("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[45]||(t[45]=de(d=>e.submitForm(d,()=>{e.anonymizeGist(d)}),["prevent"]))}," Save changes ",8,Cq)):f("v-if",!0),e.submitBlockedReason()?(a(),l("p",Eq,c(e.submitBlockedReason()),1)):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(a(),l("p",Sq,"You pay in Stripe, then come back here to finish.")):f("v-if",!0),e.draftRestored?(a(),l("div",Nq,[t[183]||(t[183]=h("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[46]||(t[46]=d=>e.discardDraft())},"Discard draft")])):e.unsavedChanges&&e.sourceReady()?(a(),l("div",Rq,[h(c(e.draftSaved?"Draft saved \xB7":"Unsaved changes \xB7")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[47]||(t[47]=d=>e.discardDraft())},c(e.isUpdate?"Restore saved":"Discard"),1)])):f("v-if",!0)],512),[[te,e.detectedType]])])),[[p,e.viewState]])],8,V5),f(' Preview column (right): "What reviewers will see", a miniature reviewer window '),e.detectedType?(a(),l("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col reviewer-preview"},[n("div",Pq,[t[187]||(t[187]=n("span",{class:"rp-title"},"What reviewers will see",-1)),e.detectedType==="repo"&&e.details&&e.previewStatus!=="ready"?(a(),l("button",{key:0,type:"button",class:"rp-open rp-files",onClick:t[48]||(t[48]=d=>e.previewViewer.sidebarCollapsed=!e.previewViewer.sidebarCollapsed),"aria-expanded":!e.previewViewer.sidebarCollapsed,"aria-controls":"preview-file-tree"},"Files",8,Dq)):f("v-if",!0),e.previewStatus==="ready"&&e.previewRedactions()>0?(a(),l("span",{key:1,class:"rp-count",title:e.previewRedactions()+" redacted terms in this preview"},[n("span",Iq,[n("i",null,c(e.previewRedactions()),1)]),t[184]||(t[184]=h(" redacted",-1))],8,Aq)):e.previewStatus==="ready"&&!String(e.terms||"").trim()?(a(),l("button",{key:2,type:"button",class:"rp-count rp-status-empty",onClick:t[49]||(t[49]=d=>e.focusTerms())},[...t[185]||(t[185]=[h("Nothing redacted yet: ",-1),n("span",{class:"rp-status-action"},"add terms",-1)])])):e.previewStatus==="ready"&&e.previewPreserved()?(a(),l("button",{key:3,type:"button",class:"rp-count rp-count-none",onClick:t[50]||(t[50]=d=>e.openPreserveFiles()),title:"Change it in Leave files unredacted"},c(e.previewName(e.previewFile?e.previewFile.slice(e.previewFile.lastIndexOf("/")+1):e.readmeName()))+" left unredacted",1)):e.previewStatus==="ready"?(a(),l("span",Oq,c(e.detectedType==="repo"?"No terms found in this file":"No terms found"),1)):f("v-if",!0),t[188]||(t[188]=n("span",{class:"rp-spacer"},null,-1)),e.isUpdate&&e.previewUrl()?(a(),l("a",{key:5,class:"rp-open is-external",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[186]||(t[186]=[h("Open reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,Mq)):(a(),l("button",{key:6,type:"button",class:"rp-open is-toggle",onClick:t[51]||(t[51]=d=>e.previewExpanded=!e.previewExpanded),"aria-pressed":!!e.previewExpanded},[(a(),l("svg",qq,[e.previewExpanded?(a(),l("path",$q)):(a(),l("path",Lq))])),h(c(e.previewExpanded?"Back to settings":"Expand preview"),1)],8,Vq))]),n("div",Fq,[n("div",Uq,[t[189]||(t[189]=n("i",null,null,-1)),t[190]||(t[190]=n("i",null,null,-1)),t[191]||(t[191]=n("i",null,null,-1)),n("span",Bq,c(e.previewUrl()||"anonymous.4open.science"),1)]),n("div",Hq,[t[192]||(t[192]=n("span",{class:"vb-logo"},[h("Anonymous "),n("em",null,"GitHub")],-1)),e.previewId()?(a(),l("span",zq,c(e.previewId()),1)):f("v-if",!0),e.detectedType!=="repo"?(a(),l("span",jq,c(e.detectedType==="pr"?"Pull request":"Gist"),1)):f("v-if",!0)]),n("div",{class:T(["rp-body",{"reviewer-explorer":e.detectedType==="repo","no-tree":e.detectedType==="repo"&&!e.details}])},[e.detectedType==="repo"?O((a(),l("aside",{key:0,id:"preview-file-tree",class:T(["leftCol",{collapsed:e.previewViewer.sidebarCollapsed}]),"aria-label":"Files reviewers will see"},[n("div",_q,[t[194]||(t[194]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{type:"button",class:"leftCol-close","aria-label":"Close files",onClick:t[52]||(t[52]=d=>e.previewViewer.sidebarCollapsed=!0)},[...t[193]||(t[193]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",Gq,[$e(s,{class:"files",file:e.previewTreeFiles(),page:e.previewViewer,"selected-path":"/"+e.previewPathName(e.previewOpenPath()),onSelect:t[53]||(t[53]=d=>e.selectPreviewPath(d))},null,8,["file","page","selected-path"])])],2)),[[te,e.details]]):f("v-if",!0),e.detectedType==="repo"?O((a(),l("div",{key:1,class:"leftCol-backdrop",onClick:t[54]||(t[54]=d=>e.previewViewer.sidebarCollapsed=!0)},null,512)),[[te,!e.previewViewer.sidebarCollapsed]]):f("v-if",!0),n("div",{class:T(e.detectedType==="repo"?"explorer-main":"rp-main")},[n("div",{class:T(e.detectedType==="repo"?"explorer-content":"rp-document")},[f(" Loading: skeleton inside the window "),e.previewStatus==="loading"||e.sourceLoading&&e.previewStatus!=="ready"&&e.previewStatus!=="error"?(a(),l("div",Wq,[n("span",Kq,c(e.previewDoc.loading?"Loading "+e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))+" from GitHub\u2026":e.previewStatus==="loading"?"Updating the anonymized preview\u2026":e.detectedType==="pr"?"Loading the pull request from GitHub\u2026":e.detectedType==="gist"?"Loading the gist from GitHub\u2026":"Loading the repository from GitHub\u2026"),1),t[195]||(t[195]=Pe('',7))])):!e.details&&e.sourceProblem()?(a(),l(N,{key:1},[f(" The source itself could not be loaded: the form's message, with the same actions "),n("div",Yq,[n("strong",null,c(e.sourceProblem().title),1),n("p",null,c(e.sourceProblem().text),1),e.sourceProblem().manage||e.sourceProblem().retry||e.sourceProblem().dashboard?(a(),l("div",Xq,[e.sourceProblem().manage==="app"?(a(),l("button",{key:0,type:"button",class:"btn btn-ink btn-sm",onClick:t[55]||(t[55]=d=>e.grantGitHubAccess())},[...t[196]||(t[196]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.sourceProblem().manage==="link"?(a(),l("a",Qq,"Manage GitHub access")):f("v-if",!0),e.sourceProblem().dashboard?(a(),l("a",Jq,"Open My work")):f("v-if",!0),e.sourceProblem().retry?(a(),l("button",{key:3,type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[56]||(t[56]=d=>e.urlSelected(!0))},"Try again")):f("v-if",!0)])):f("v-if",!0)])],2112)):e.previewStatus==="error"&&e.previewDoc.loadError?(a(),l(N,{key:2},[f(" The open file could not be read from GitHub "),n("div",Zq,[n("strong",null,"Couldn't load "+c(e.previewName(e.previewFile.slice(e.previewFile.lastIndexOf("/")+1))),1),n("p",null,c(e.previewDoc.loadError),1),n("div",xq,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[57]||(t[57]=d=>e.retryPreview())},"Retry"),n("button",{class:"btn btn-outline-ink btn-sm",type:"button",onClick:t[58]||(t[58]=d=>e.openPreviewFile(""))},"Back to the README")])])],2112)):e.previewStatus==="error"?(a(),l(N,{key:3},[f(" The anonymized preview failed "),n("div",eL,[t[197]||(t[197]=n("strong",null,"Couldn't apply the redactions",-1)),t[198]||(t[198]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("div",tL,[n("button",{class:"btn btn-ink btn-sm",type:"button",onClick:t[59]||(t[59]=d=>e.retryPreview())},"Retry preview")])])],2112)):e.detectedType==="repo"&&!e.previewFile&&!e.readme&&e.previewStatus==="idle"?(a(),l("div",nL,[...t[199]||(t[199]=[n("strong",null,"No README",-1),n("p",null,"Reviewers land on the file list. Open the files you will share and check them before sending the link.",-1)])])):e.detectedType==="repo"&&e.previewStatus==="ready"?(a(),Rt(i,{key:5,name:"partials/pageView.htm",state:e.previewViewer},null,8,["state"])):e.detectedType==="gist"&&e.previewStatus==="ready"?(a(),l("div",sL,[n("div",oL,[n("h2",iL,[e.options?.title?(a(),l("span",rL,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),n("span",{class:T(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,aL)):f("v-if",!0)]),e.options?.origin?(a(),l("small",lL,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(a(),l("small",dL,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(a(),l("div",uL,[n("ul",cL,[(a(!0),l(N,null,U(e.previewGistFiles,(d,g)=>(a(),l("li",pL,[n("div",fL,[n("strong",{textContent:c(d?.filename)},null,8,mL),d?.language?(a(),l("span",hL,c(d?.language),1)):f("v-if",!0)]),$e(r,{file:d,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?(a(),l("div",gL,[t[202]||(t[202]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",yL,[(a(!0),l(N,null,U(e.details?.gist?.comments,(d,g)=>(a(),l("li",vL,[n("div",bL,[e.options?.username?(a(),l("span",wL,[t[200]||(t[200]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[201]||(t[201]=h(" @",-1)),n("span",{textContent:c(e.anonymizeGistContent(d?.author))},null,8,kL)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(d?.updatedDate))},null,8,CL)):f("v-if",!0)]),e.options?.body?(a(),l("div",EL,[$e(o,{content:e.anonymizeGistContent(d?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):e.detectedType==="pr"&&e.previewStatus==="ready"?(a(),l("div",SL,[n("div",NL,[n("h2",RL,[e.options?.title?(a(),l("span",TL,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:T(["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?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,PL)):f("v-if",!0)]),e.options?.origin?(a(),l("small",DL,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",AL,[$e(o,{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?(a(),l("nav",IL,[e.options?.diff?(a(),l("button",{key:0,class:T(["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[60]||(t[60]=d=>e.previewTabKeydown(d)),onClick:t[61]||(t[61]=d=>e.prTabState.active="diff")},[...t[203]||(t[203]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,OL)):f("v-if",!0),e.options?.comments?(a(),l("button",{key:1,class:T(["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[62]||(t[62]=d=>e.previewTabKeydown(d)),onClick:t[63]||(t[63]=d=>e.prTabState.active="comments")},[t[204]||(t[204]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,VL)],42,ML)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(a(),l("div",qL,"Diff and comments are hidden by your display settings.")):f("v-if",!0),n("div",LL,[e.options?.diff&&e.prTabState?.active=="diff"?(a(),l("div",$L,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,FL)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(a(),l("div",UL,[n("ul",BL,[(a(!0),l(N,null,U(e.details?.pullRequest?.comments,(d,g)=>(a(),l("li",HL,[n("div",zL,[e.options?.username?(a(),l("span",jL,[t[205]||(t[205]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[206]||(t[206]=h(" @",-1)),n("span",{textContent:c(e.anonymizePrContent(d?.author))},null,8,_L)])):f("v-if",!0),e.options?.date?(a(),l("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(d?.updatedDate))},null,8,GL)):f("v-if",!0)]),e.options?.body?(a(),l("div",WL,[$e(o,{content:e.anonymizePrContent(d?.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),f(" More below: a fade with a way to keep reading (hidden by CSS once the window is scrolled to the end) "),e.previewStatus==="ready"&&!(e.detectedType==="repo"&&e.previewFile&&e.previewDoc.note)?(a(),l("div",KL,[e.isUpdate&&e.previewUrl()?(a(),l("a",{key:0,class:"rp-more-btn",href:e.safeUrl(e.previewPath()),target:"_blank",rel:"noopener"},[...t[207]||(t[207]=[h("Continue reading on the reviewer page ",-1),n("span",{"aria-hidden":"true"},"\u2197",-1)])],8,YL)):e.previewExpanded?(a(),l("span",XL,"Scroll for more")):(a(),l("button",{key:1,type:"button",class:"rp-more-btn",onClick:t[64]||(t[64]=d=>e.previewExpanded=!0)},"Continue reading in the expanded preview"))])):f("v-if",!0)],2)],2)],2)])],8,Tq)):f("v-if",!0)])],512),[[te,e.workspaceOpen||e.isUpdate]])],2)}var QL={class:"container-fluid h-100 anonymize-page"},JL={class:"row h-100 flex-column flex-md-row"},ZL={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},xL={class:"form-group"},e$={class:"form-group"},t$={class:"form-check"},n$={class:"form-check-input",type:"checkbox",id:"update",name:"update"},s$={class:"form-group"},o$={class:"form-text text-muted"},i$=["href"],r$={class:"invalid-feedback"},a$={class:"form-text text-muted"},l$={class:"form-group"},d$={id:"idHelp",class:"form-text text-muted"},u$={class:"invalid-feedback"},c$={class:"form-group"},p$={class:"invalid-feedback"},f$={class:"form-group"},m$={class:"form-control",id:"expiration",name:"expiration"},h$={class:"form-group",id:"expiration-date-form"},g$={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},y$={key:0,class:"date-echo","aria-live":"polite"},v$={class:"accordion mb-3",id:"options"},b$={class:"card"},w$={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},k$={class:"card-body"},C$={class:"form-group mb-0"},E$={class:"form-check"},S$={class:"form-check-input",type:"checkbox",id:"link",name:"link"},N$={class:"form-check"},R$={class:"form-check-input",type:"checkbox",id:"image",name:"image"},T$={class:"form-check"},P$={class:"form-check-input",type:"checkbox",id:"date",name:"date"},D$={class:"form-check"},A$={class:"form-check-input",type:"checkbox",id:"username",name:"username"},I$={class:"form-check"},O$={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},M$={class:"form-check"},V$={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},q$={class:"form-check"},L$={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},$$={class:"form-check"},F$={class:"form-check-input",type:"checkbox",id:"title",name:"title"},U$={class:"form-check"},B$={class:"form-check-input",type:"checkbox",id:"body",name:"body"},H$=["textContent"],z$={class:"anonymize-submit-bar"},j$={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},_$={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},G$={class:"pr-title mb-1"},W$={key:0},K$=["textContent"],Y$={key:0},X$={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},Q$={class:"nav nav-tabs",id:"myTab",role:"tablist"},J$={key:0,class:"nav-item",role:"presentation"},Z$={key:1,class:"nav-item",role:"presentation"},x$=["textContent"],eF={class:"tab-content",id:"pills-tabContent"},tF={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},nF={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},sF={style:{"overflow-x":"auto"}},oF=["innerHTML"],iF={key:0,class:"pr-comments list-group"},rF={class:"pr-comment list-group-item"},aF={class:"d-flex w-100 justify-content-between flex-wrap"},lF={key:0,class:"mb-1"},dF=["textContent"],uF={class:"mb-1"};function zf(e,t){let s=_e("markdown"),i=Le("field"),r=Le("form");return a(),l("div",QL,[n("div",JL,[n("div",ZL,[n("div",{class:T(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[O((a(),l("form",{class:T(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=Pe('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),f(" pullRequestUrl "),n("div",xL,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:o=>{e.pullRequestUrl=o},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.access]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.missing]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[te,e.anonymize?.pullRequestUrl?.errors?.used]])]),O(n("div",null,[n("div",e$,[n("div",t$,[O(n("input",n$,null,512),[[i,{state:e.viewState,set:o=>{e.options.update=o},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=n("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]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})]),h(" Conference ID ")],-1)),f(" Conference "),n("div",s$,[t[5]||(t[5]=n("label",{for:"conference"},[h("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),O(n("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:o=>{e.conference=o},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),O(n("small",o$,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,i$),h(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[te,e.conference_data]]),O(n("div",r$," The conference is not activated. ",512),[[te,e.anonymize?.conference?.errors?.activated]]),O(n("small",a$," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[te,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h(" Anonymization Options ")],-1)),f(" Pull Request ID "),n("div",l$,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:o=>{e.pullRequestId=o},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",d$,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),O(n("div",u$," Repository id can only contain letters and numbers ",512),[[te,e.anonymize?.pullRequestId?.errors?.format]]),O(n("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[te,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),n("div",c$,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),O(n("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:o=>{e.terms=o},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=n("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),O(n("div",p$," Terms are in an invalid format ",512),[[te,e.anonymize?.terms?.errors?.format]])]),n("div",f$,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),O((a(),l("select",m$,[...t[9]||(t[9]=[n("option",{value:"never",selected:""},"Never expire",-1),n("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),n("option",{value:"remove"},"Remove when expired",-1)])])),[[i,{state:e.viewState,set:o=>{e.options.expirationMode=o},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),O(n("div",h$,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),O(n("input",g$,null,512),[[i,{state:e.viewState,set:o=>{e.options.expirationDate=o},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),e.fmt?.dateEcho(e.options?.expirationDate)?(a(),l("p",y$,"Expires "+c(e.fmt?.dateEcho(e.options?.expirationDate)),1)):f("v-if",!0),O(n("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),[[te,e.options?.expirationMode=="remove"]]),O(n("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),[[te,e.options?.expirationMode=="redirect"]])],512),[[te,e.options?.expirationMode!="never"]]),n("div",v$,[n("div",b$,[t[25]||(t[25]=Pe('

',1)),n("div",w$,[n("div",k$,[n("div",C$,[n("div",E$,[O(n("input",S$,null,512),[[i,{state:e.viewState,set:o=>{e.options.link=o},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",N$,[O(n("input",R$,null,512),[[i,{state:e.viewState,set:o=>{e.options.image=o},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",T$,[O(n("input",P$,null,512),[[i,{state:e.viewState,set:o=>{e.options.date=o},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",D$,[O(n("input",A$,null,512),[[i,{state:e.viewState,set:o=>{e.options.username=o},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",I$,[O(n("input",O$,null,512),[[i,{state:e.viewState,set:o=>{e.options.comments=o},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",M$,[O(n("input",V$,null,512),[[i,{state:e.viewState,set:o=>{e.options.diff=o},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",q$,[O(n("input",L$,null,512),[[i,{state:e.viewState,set:o=>{e.options.origin=o},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",$$,[O(n("input",F$,null,512),[[i,{state:e.viewState,set:o=>{e.options.title=o},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",U$,[O(n("input",B$,null,512),[[i,{state:e.viewState,set:o=>{e.options.body=o},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[te,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,H$)):f("v-if",!0),O(n("div",z$,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.anonymizePullRequest(o)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=de(o=>e.submitForm(o,()=>{e.updatePullRequest(o)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update ",-1)])])):f("v-if",!0)],512),[[te,e.pullRequestUrl]])],2)),[[r,e.viewState]])],2)]),e.details?(a(),l("div",j$,[n("div",_$,[n("h2",G$,[e.options?.title?(a(),l("span",W$,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:T(["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?(a(),l("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,K$)):f("v-if",!0)]),e.options?.origin?(a(),l("small",Y$,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",X$,[$e(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",Q$,[e.options?.diff?(a(),l("li",J$,[...t[31]||(t[31]=[n("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?(a(),l("li",Z$,[n("button",{class:T(["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"},[n("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,x$)],2)])):f("v-if",!0)]),n("div",eF,[n("div",tF,[e.options?.diff?(a(),l("div",nF,[n("pre",sF,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,oF)])])):f("v-if",!0)]),n("div",{class:T(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",iF,[(a(!0),l(N,null,U(e.details?.pullRequest?.comments,(o,u)=>(a(),l("li",rF,[n("div",aF,[e.options?.username?(a(),l("h5",lF," @"+c(e.anonymize(o?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:c(e.fmt?.date(o?.updatedDate))},null,8,dF)):f("v-if",!0)]),n("p",uF,[e.options?.body?(a(),Rt(s,{key:0,class:"pr-comment-body",content:e.anonymize(o?.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 cF={class:"container paper-page claim-page"},pF={class:"paper-settings-main claim-form"},fF={class:"form-group"},mF={class:"invalid-feedback"},hF={class:"form-group"};function jf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",cF,[t[6]||(t[6]=Pe('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),n("div",pF,[t[5]||(t[5]=n("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),O((a(),l("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{e.claim()}),["prevent"]))},[n("div",fF,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[s,{state:e.viewState,set:r=>{e.repoUrl=r},value:e.repoUrl,form:"claimForm",options:{}}]]),O(n("div",mF," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[te,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",hF,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[s,{state:e.viewState,set:r=>{e.repoId=r},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[h("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),h(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var gF={class:"container page paper-page conference-page"},yF={class:"paper-crumbs"},vF={class:"here"},bF={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},wF={class:"conf-title-row"},kF=["textContent"],CF={key:0,class:"conf-status"},EF=["textContent"],SF={key:0,class:"paper-page-lede"},NF=["textContent","href"],RF={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},TF=["href"],PF={class:"paper-meta-rule"},DF=["textContent"],AF=["textContent"],IF={key:0},OF={key:0,class:"conference-payment-status",role:"status"},MF=["disabled"],VF={key:1,role:"alert"},qF={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},LF={key:0,role:"status"},$F={key:1,role:"alert"},FF=["onClick","disabled"],UF={class:"dashboard-meta conf-view-meta"},BF={class:"dashboard-view-tabs",role:"group","aria-label":"Repository view"},HF=["aria-pressed"],zF=["aria-pressed","aria-label"],jF=["aria-pressed"],_F={class:"attention-count"},GF={class:"dashboard-count",role:"status"},WF={class:"search-wrap"},KF={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},YF={class:"dashboard-filter-controls"},XF={class:"dropdown"},QF={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},JF={class:"filter-btn-value"},ZF={class:"dropdown-menu","aria-labelledby":"dropdownSort"},xF={class:"form-check dropdown-item"},e7={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},t7={class:"form-check dropdown-item"},n7={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},s7={class:"form-check dropdown-item"},o7={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},i7={class:"form-check dropdown-item"},r7={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},a7={class:"dashboard-page conf-rows"},l7=["aria-busy"],d7={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},u7={class:"cell-anon",role:"cell"},c7={class:"anon-text"},p7={class:"anon-title"},f7=["title","href"],m7={class:"rn-owner"},h7={class:"rn-repo"},g7={class:"anon-sub"},y7=["title"],v7={class:"id-head"},b7={class:"id-tail"},w7=["title"],k7={class:"dashboard-row-meta",role:"presentation"},C7={class:"cell-status",role:"cell"},E7={class:"status-line"},S7=["textContent"],N7=["textContent","title"],R7=["href"],T7=["onClick","disabled"],P7={key:3,class:"status-sub status-sub-date"},D7=["data-unit","aria-label"],A7={class:"cell-expires",role:"cell"},I7={key:0,class:"expires-never"},O7=["textContent"],M7={key:2,class:"expires-past"},V7={key:3,class:"empty-dash","aria-label":"Not applicable"},q7={class:"cell-actions",role:"cell"},L7=["onClick","disabled","title","aria-label"],$7={class:"sr-only","aria-live":"polite"},F7={class:"project-type-svg","aria-hidden":"true"},U7=["href"],B7={class:"copy-url-label","aria-hidden":"true"},H7=["href","aria-label"],z7={class:"dropdown"},j7=["aria-label"],_7={class:"dropdown-menu dropdown-menu-right"},G7=["href"],W7=["href"],K7=["href"],Y7={key:0,class:"paper-table-empty"},X7={key:0},Q7={key:1},J7={key:2,class:"paper-table-empty-actions"};function _f(e,t){let s=Le("field"),i=Le("form");return a(),l("div",gF,[n("div",null,[n("div",yF,[t[6]||(t[6]=n("a",{href:"/dashboard"},"My work",-1)),t[7]||(t[7]=h(" \xA0/\xA0 ",-1)),t[8]||(t[8]=n("a",{href:"/conferences"},"Conferences",-1)),t[9]||(t[9]=h(" \xA0/\xA0 ",-1)),n("span",vF,c(e.conference?.conferenceID),1)]),n("div",bF,[n("div",null,[n("div",wF,[n("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,kF),e.conference?.status?(a(),l("span",CF,[n("span",{class:T(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,EF)])):f("v-if",!0)]),e.conference?.url?(a(),l("p",SF,[n("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,NF)])):f("v-if",!0)]),n("div",RF,[n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[10]||(t[10]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit conference",-1)])],8,TF)])]),n("div",PF,[n("span",null,[t[11]||(t[11]=h("ID ",-1)),n("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,DF)]),n("span",null,[t[12]||(t[12]=h("Review window ",-1)),n("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[13]||(t[13]=h("Repositories ",-1)),n("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[14]||(t[14]=h("Plan ",-1)),n("b",{textContent:c(e.conferencePlanName(e.conference?.plan?.planID))},null,8,AF)]),e.conference?.price?(a(),l("span",IF,[t[15]||(t[15]=h("Cost so far ",-1)),n("b",null,c(e.fmt?.money(e.conference?.price)),1)])):f("v-if",!0)]),e.billingNotice?(a(),l("div",OF,[n("p",null,c(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,MF)])):f("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(a(),l("p",VF,c(e.billingError),1)):f("v-if",!0),e.conference?.status==="pending_payment"?(a(),l("section",qF,[t[16]||(t[16]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[17]||(t[17]=n("p",null,"This conference is waiting for payment. Authors can join after payment is confirmed. Checkout returns to this conference. Authors within the package do not pay separately.",-1)),e.billingLoading?(a(),l("p",LF,"Loading payment options\u2026")):f("v-if",!0),e.billingError?(a(),l("p",$F,c(e.billingError),1)):f("v-if",!0),(a(!0),l(N,null,U((e.billing?.plans||[]).filter(r=>r.id===e.conference?.plan?.planID),r=>(a(),l("div",{key:r.id},[n("p",null,[n("strong",null,c(r.name)+" package",1),h(": "+c(e.billingPrice(r))+" for up to "+c(r.repositories)+" repositories and "+c(e.billingBytes(r.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1)]),n("button",{type:"button",class:"btn btn-primary",onClick:o=>e.checkout(r.id,e.conference.conferenceID),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},c(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,FF)]))),128)),t[18]||(t[18]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):f("v-if",!0),n("div",UF,[n("div",BF,[n("button",{type:"button","aria-pressed":e.confView()==="current",onClick:t[1]||(t[1]=r=>e.setConfView("current")),title:"Every repository except removed links"},"Current",8,HF),e.confCount("attention")>0||e.confView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.confView()==="attention",onClick:t[2]||(t[2]=r=>e.setConfView("attention")),"aria-label":"Needs attention "+e.confCount("attention")},[t[19]||(t[19]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[20]||(t[20]=n("span",null,"attention",-1)),t[21]||(t[21]=h()),n("span",{class:T(["attention-count",{"has-attention":e.confCount("attention")>0}])},c(e.fmt?.number(e.confCount("attention"))),3)],8,zF)):f("v-if",!0),e.confCount("removed")>0||e.confView()==="removed"?(a(),l("button",{key:1,type:"button","aria-pressed":e.confView()==="removed",onClick:t[3]||(t[3]=r=>e.setConfView("removed")),title:"Links reviewers can no longer open"},[t[22]||(t[22]=h("Removed ",-1)),n("span",_F,c(e.fmt?.number(e.confCount("removed"))),1)],8,jF)):f("v-if",!0)]),n("span",GF,c(e.conferenceLoaded?e.search.trim()?e.fmt?.number(e.filteredRepositories?.length||0)+" shown":e.fmt?.number(e.filteredRepositories?.length||0)+((e.filteredRepositories?.length||0)===1?" repository":" repositories"):""),1)]),O((a(),l("form",{class:"w-100 conf-repo-toolbar","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[4]||(t[4]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",WF,[O(n("input",KF,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",YF,[n("div",XF,[n("button",QF,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",JF,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",ZF,[t[28]||(t[28]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",xF,[O(n("input",e7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",t7,[O(n("input",n7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[25]||(t[25]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",s7,[O(n("input",o7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",i7,[O(n("input",r7,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])])])],32)),[[i,e.viewState]]),n("div",a7,[n("div",{class:T(["paper-table paper-table-dashboard paper-table-conf w-100",{"is-removed-view":e.confView()==="removed"}]),role:"table","aria-label":"Repositories","aria-busy":!e.conferenceLoaded},[t[38]||(t[38]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Repository"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Views"),n("div",{role:"columnheader"},"Expires"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(),l(N,null,U([1,2,3,4],(r,o)=>(a(),l(N,null,[e.conferenceLoaded?f("v-if",!0):(a(),l("div",d7,[...t[29]||(t[29]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])]))],64))),64)),(a(!0),l(N,null,U(e.filteredRepositories,(r,o)=>(a(),l("div",{class:T(["paper-table-row",{"repo-inactive":r?.status=="expired"||r?.status=="removed","repo-error":r?.status=="error"}]),role:"row",key:r?.repoId},[n("div",u7,[t[31]||(t[31]=n("span",{class:"project-type-icon",role:"img","aria-label":"Repository",title:"Repository"},[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})])],-1)),n("div",c7,[n("div",p7,[n("a",{class:"repo-name",title:r?.source?.fullName,href:e.safeUrl("/r/"+r?.repoId+"/")},[(r?.source?.fullName||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",m7,c(r.source.fullName.slice(0,r.source.fullName.indexOf("/")+1)),1),t[30]||(t[30]=n("wbr",null,null,-1)),n("span",h7,c(r.source.fullName.slice(r.source.fullName.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(r?.source?.fullName||r?.repoId),1)],64))],8,f7)]),n("div",g7,[n("code",{class:"anonymous-id",title:r?.repoId},[(r?.repoId||"").length>14?(a(),l(N,{key:0},[n("span",v7,c(r.repoId.slice(0,-6)),1),n("span",b7,c(r.repoId.slice(-6)),1)],64)):(a(),l(N,{key:1},[h(c(r?.repoId),1)],64))],8,y7),r?.source?.commit?(a(),l("span",{key:0,class:"commit-hash",title:r.source.commit},c(r.source.commit.substring(0,7)),9,w7)):f("v-if",!0)])])]),n("div",k7,[n("div",C7,[n("div",E7,[n("span",{class:T(["status-dot","status-"+(r?.status=="error"?"error":r?.status=="ready"?"ready":r?.status=="expired"||r?.status=="removed"?r?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(r?.status))},null,8,S7)]),r?.status=="error"&&r?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,N7)):f("v-if",!0),r?.status=="error"?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl("/status/"+r?.repoId)},"View status",8,R7)):f("v-if",!0),r?.status=="expired"?(a(),l("button",{key:2,type:"button",class:"project-attention-action",onClick:de(u=>e.extendRepo(r),["stop"]),disabled:e.extendingId===r?.repoId,title:"Reviewers can no longer open this link"},"Extend 6 months",8,T7)):f("v-if",!0),r?.anonymizeDate&&r?.status!="error"&&r?.status!="expired"?(a(),l("div",P7,"anonymized "+c(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(r?.pageView||0)===1?"view":"views","aria-label":e.fmt?.number(r?.pageView||0)+((r?.pageView||0)===1?" view":" views")},[t[32]||(t[32]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,c(e.fmt?.number(r?.pageView||0)),1)],8,D7),n("div",A7,[t[34]||(t[34]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?.status=="ready"&&(r?.options?.expirationMode==="never"||!r?.options?.expirationDate)?(a(),l("span",I7,"No expiry")):f("v-if",!0),r?.status=="ready"&&r?.options?.expirationMode!=="never"&&r?.options?.expirationDate?(a(),l("span",{key:1,textContent:c((e.fmt?.humanTime(r?.options?.expirationDate)||"").replace(/^on /,""))},null,8,O7)):f("v-if",!0),r?.status=="expired"?(a(),l("span",M7,[t[33]||(t[33]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),h(c(e.fmt?.shortDate(r?.options?.expirationDate)),1)])):f("v-if",!0),r?.status!="ready"&&r?.status!="expired"?(a(),l("span",V7,"\u2014")):f("v-if",!0)])]),n("div",q7,[r?.status!="expired"&&r?.status!="removed"?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(u=>e.copyRepoLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy link: /r/"+r?.repoId+"/","aria-label":"Copy anonymous link for "+r?.repoId},[n("span",$7,c(e.copyingId===r?.repoId?"Link copied":""),1),(a(),l("svg",F7,[n("use",{href:e.copyingId===r?.repoId?"#ui-icon-check":"#project-icon-copy"},null,8,U7)])),n("span",B7,c(e.copyingId===r?.repoId?"Copied":"Copy link"),1)],8,L7)):f("v-if",!0),r?.status!="expired"&&r?.status!="removed"?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl("/r/"+r?.repoId+"/"),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+r?.repoId},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,H7)):f("v-if",!0),n("div",z7,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+r?.repoId},[...t[36]||(t[36]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,j7),n("div",_7,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+r?.repoId+"/")},"View",8,G7),n("a",{class:"dropdown-item",href:e.safeUrl("https://github.com/"+r?.source?.fullName+"/"),target:"_blank",rel:"noopener"},"Open source on GitHub",8,W7),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+r?.repoId)},"Edit",8,K7)])])])],2))),128)),e.conferenceLoaded&&e.filteredRepositories?.length==0?(a(),l("div",Y7,[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(a(),l("span",X7,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(a(),l("span",Q7,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(a(),l("div",J7,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>{e.search="",e.setConfView("current")})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)],10,l7)])])])}var Z7={class:"container page paper-page conferences-page"},x7={class:"row"},eU={class:"w-100"},tU={class:"d-flex align-items-start justify-content-between flex-wrap page-head-row page-head page-head-main",style:{gap:"12px"}},nU={key:0,href:"/conference/new",class:"btn btn-primary"},sU={class:"search-wrap"},oU={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},iU={class:"dashboard-filter-controls"},rU={class:"dropdown"},aU={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},lU={class:"filter-btn-value"},dU={class:"dropdown-menu","aria-labelledby":"dropdownSort"},uU={class:"form-check dropdown-item"},cU={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},pU={class:"form-check dropdown-item"},fU={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},mU={class:"form-check dropdown-item"},hU={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},gU={class:"dropdown"},yU={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},vU={key:0,class:"filter-btn-value"},bU={key:1,class:"filter-btn-value"},wU={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},kU={class:"form-check dropdown-item"},CU=["id"],EU=["for"],SU={key:1,class:"dashboard-meta"},NU={class:"dashboard-count"},RU={key:0},TU={key:0},PU={key:1},DU={key:0,class:"filter-chip"},AU=["onClick","aria-label"],IU={key:0,class:"conference-feedback",role:"alert"},OU={key:1,class:"sr-only",role:"status"},MU=["aria-busy"],VU={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},qU={class:"cell-anon",role:"cell"},LU={class:"anon-text"},$U=["textContent","href"],FU={class:"anon-sub"},UU={class:"anon-source"},BU=["textContent"],HU={key:0},zU=["textContent","href"],jU={class:"cell-status",role:"cell"},_U={class:"status-line"},GU=["textContent"],WU={class:"cell-views num",role:"cell"},KU=["textContent"],YU={class:"cell-expires",role:"cell"},XU={key:0},QU={key:1,class:"empty-dash","aria-label":"No review window"},JU={class:"cell-actions",role:"cell"},ZU={class:"dropdown"},xU=["disabled","aria-label"],e9={class:"dropdown-menu dropdown-menu-right"},t9=["href"],n9=["href"],s9={key:0},o9=["onClick"],i9={key:0,class:"paper-table-empty"},r9={key:0,class:"empty-icon","aria-hidden":"true"},a9={key:1,class:"ui-icon","aria-hidden":"true"},l9={key:3},d9={class:"paper-table-empty-actions"},u9={key:0,href:"/conference/new",class:"btn btn-primary conf-empty-new"};function Gf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",Z7,[n("div",x7,[n("div",eU,[n("div",tU,[t[4]||(t[4]=n("div",null,[n("h1",{class:"paper-page-title"},[h("Your "),n("em",null,"conferences")]),n("p",{class:"paper-page-lede"},"Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.")],-1)),e.conferences&&e.conferences.length==0?f("v-if",!0):(a(),l("a",nU,[...t[3]||(t[3]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New conference ",-1)])]))]),e.conferences?.length>0?O((a(),l("form",{key:0,class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=de(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",sU,[O(n("input",oU,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",iU,[n("div",rU,[n("button",aU,[t[5]||(t[5]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",lU,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",dU,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",uU,[O(n("input",cU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",pU,[O(n("input",fU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",mU,[O(n("input",hU,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",gU,[n("button",yU,[t[10]||(t[10]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(a(),l("span",vU,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(a(),l("span",bU,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",wU,[t[11]||(t[11]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(a(!0),l(N,null,U(e.statusLabels,(r,o,u)=>(a(),l("div",kU,[O(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+o},null,8,CU),[[s,{state:e.viewState,set:p=>{e.filters.status[o]=p},value:e.filters?.status[o],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+o},c(r),9,EU)]))),256))])])])],32)),[[i,e.viewState]]):f("v-if",!0),e.conferences?.length>0?(a(),l("div",SU,[n("span",NU,[e.filteredConferences?.length===e.conferences?.length?(a(),l("span",RU,[h(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(a(),l("span",TU,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(a(),l("span",PU,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(a(!0),l(N,null,U(e.filters?.status,(r,o,u)=>(a(),l(N,null,[r===!1?(a(),l("span",DU,[h(" Hiding "+c(e.statusLabels[o])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:p=>{e.filters.status[o]=!0},"aria-label":"Show "+e.statusLabels[o]+" again"},"\xD7",8,AU)])):f("v-if",!0)],64))),256))])):f("v-if",!0)]),e.error?(a(),l("div",IU,[n("span",null,c(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=r=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(a(),l("p",OU,"Loading conferences\u2026")):f("v-if",!0),n("div",{class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences","aria-busy":e.loading?"true":"false"},[t[29]||(t[29]=n("div",{class:"paper-table-head",role:"row"},[n("div",{role:"columnheader"},"Conference"),n("div",{role:"columnheader"},"Status"),n("div",{role:"columnheader",class:"num"},"Repos"),n("div",{role:"columnheader"},"Review window"),n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")])],-1)),(a(),l(N,null,U([1,2,3],(r,o)=>(a(),l(N,null,[e.loading?(a(),l("div",VU,[...t[12]||(t[12]=[n("div",{class:"cell-anon",role:"cell"},[n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"46%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"30%"}})])],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"56%"}})],-1),n("div",{class:"num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"32%","margin-left":"auto"}})],-1),n("div",{role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"72%"}})],-1),n("div",{role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(N,null,U(e.filteredConferences,(r,o)=>(a(),l("div",{class:T(["paper-table-row row-clickable",{"repo-inactive":r?.status=="expired"||r?.status=="removed"}]),role:"row",key:r?.conferenceID},[n("div",qU,[t[15]||(t[15]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",LU,[n("a",{class:"repo-name",textContent:c(r?.name),href:e.safeUrl("/conference/"+r?.conferenceID)},null,8,$U),n("div",FU,[n("span",UU,[t[14]||(t[14]=h("ID ",-1)),n("span",{class:"commit-hash",textContent:c(r?.conferenceID)},null,8,BU),r?.url?(a(),l("span",HU,[t[13]||(t[13]=h(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(r?.url,60)),href:e.safeUrl(r?.url)},null,8,zU)])):f("v-if",!0)])])])]),n("div",jU,[n("div",_U,[n("span",{class:T(["status-dot","status-"+r?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(r?.status))},null,8,GU)])]),n("div",WU,[t[16]||(t[16]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[17]||(t[17]=h()),n("span",{textContent:c(e.fmt?.number(r?.nbRepositories||0))},null,8,KU)]),n("div",YU,[t[18]||(t[18]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?.startDate?(a(),l("span",XU,c(e.fmt?.date(r?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(r?.endDate,"mediumDate")),1)):f("v-if",!0),r?.startDate?f("v-if",!0):(a(),l("span",QU,"\u2014"))]),n("div",JU,[n("div",ZU,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:r?.removing,"aria-label":"Actions for "+r?.name},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,xU),n("div",e9,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/")},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View ",-1)])],8,t9),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+r?.conferenceID+"/edit")},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,n9),r?.status!="removed"?(a(),l("div",s9,[t[23]||(t[23]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeConference(r)},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,o9)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(a(),l("div",i9,[e.conferences?.length==0?(a(),l("span",r9,[...t[24]||(t[24]=[n("svg",{class:"ui-icon"},[n("use",{href:"#project-icon-conference"})],-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("svg",a9,[...t[25]||(t[25]=[n("use",{href:"#project-icon-inbox"},null,-1)])])):f("v-if",!0),e.conferences?.length==0?(a(),l(N,{key:2},[t[26]||(t[26]=n("strong",{class:"empty-title"},"No conferences yet",-1)),t[27]||(t[27]=n("span",null,"Create one to group submissions for a venue, share a dashboard with chairs, and set a single expiry date.",-1))],64)):f("v-if",!0),e.conferences?.length>0?(a(),l("span",l9,"Nothing matches the current filters.")):f("v-if",!0),n("div",d9,[e.conferences?.length==0?(a(),l("a",u9,[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New conference",-1)])])):f("v-if",!0),e.conferences?.length>0?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=r=>{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)],8,MU)])])}var c9={class:"container page dashboard-page paper-page"},p9={class:"row"},f9={class:"w-100"},m9={class:"dashboard-heading page-head page-head-main"},h9={class:"dashboard-title-line"},g9={key:0,class:"dashboard-count-head","aria-hidden":"true"},y9={key:0},v9={class:"dashboard-heading-actions"},b9=["open"],w9=["aria-expanded"],k9=["stroke-dasharray"],C9={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"},E9={key:0,class:"quota-summary-value"},S9={key:0},N9={class:"quota-panel",id:"dashboard-usage"},R9={class:"quota-panel-heading"},T9={key:1,class:"quota-loading",role:"status"},P9={key:0,class:"dashboard-meta is-loading","aria-hidden":"true"},D9={key:1,class:"dashboard-meta"},A9={key:0,class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},I9=["aria-pressed"],O9=["aria-pressed","aria-label"],M9=["aria-pressed","aria-label"],V9={key:0,class:"attention-count"},q9={key:0},L9={key:0},$9={key:1},F9={class:"search-wrap"},U9={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects\u2026",autocomplete:"off"},B9=["aria-expanded"],H9={class:"btn-group",role:"group","aria-label":"Type"},z9=["aria-pressed"],j9=["aria-pressed"],_9=["aria-pressed"],G9=["aria-pressed"],W9={class:"dropdown"},K9={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},Y9={class:"filter-btn-value"},X9={class:"sr-only"},Q9={class:"dropdown-menu","aria-labelledby":"dropdownSort"},J9={class:"form-check dropdown-item"},Z9=["onClick","checked","id"],x9=["for"],eB=["inert"],tB={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},nB={class:"filter-btn-value"},sB={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},oB={key:0,class:"form-check dropdown-item"},iB=["id"],rB=["for"],aB={key:2,class:"dashboard-active-filters dashboard-active-filters-row"},lB=["onClick","aria-label","title"],dB=["aria-busy"],uB={class:"paper-table-head",role:"row"},cB=["aria-sort"],pB=["aria-sort"],fB=["aria-sort"],mB=["aria-sort"],hB={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},gB=["onClick"],yB={class:"cell-anon",role:"cell"},vB=["aria-label","title"],bB={class:"project-type-svg","aria-hidden":"true"},wB=["href"],kB={class:"anon-text"},CB={class:"anon-title"},EB=["title","href"],SB={class:"rn-owner"},NB={class:"rn-repo"},RB={key:1,class:"repo-name repo-name-static"},TB={class:"rn-owner"},PB={class:"rn-repo"},DB={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},AB={key:0,class:"anon-sub"},IB=["title"],OB={class:"id-head"},MB={class:"id-tail"},VB=["title"],qB=["title"],LB=["textContent"],$B={class:"dashboard-row-meta",role:"presentation"},FB={class:"cell-status",role:"cell"},UB={class:"status-line"},BB=["textContent"],HB=["onClick"],zB=["textContent","title"],jB=["title"],_B=["href"],GB={key:3,class:"status-action-line"},WB={key:0,class:"status-stuck"},KB=["onClick","data-project-actions","aria-controls","aria-expanded"],YB=["onClick"],XB={key:5,class:"status-sub status-sub-date status-sub-removed"},QB={key:6,class:"status-sub status-sub-date"},JB=["data-unit","aria-label"],ZB={class:"cell-expires",role:"cell"},xB={key:0,class:"expires-never"},eH=["textContent"],tH=["title"],nH={key:3,class:"expires-past"},sH={key:4,class:"expires-past"},oH={key:5,class:"empty-dash","aria-label":"Not applicable"},iH={class:"cell-actions",role:"cell"},rH=["onClick","disabled","title","aria-label"],aH={class:"sr-only","aria-live":"polite"},lH={class:"project-type-svg","aria-hidden":"true"},dH=["href"],uH={class:"copy-url-label","aria-hidden":"true"},cH=["href","aria-label"],pH=["href","title","aria-label"],fH=["title","aria-label"],mH=["title","aria-label"],hH=["aria-label"],gH={key:6,class:"dropdown is-disabled"},yH=["aria-label"],vH={key:7,class:"dropdown"},bH=["data-project-actions","aria-label"],wH={class:"dropdown-menu dropdown-menu-right"},kH=["onClick","aria-controls","aria-expanded"],CH=["href"],EH=["href"],SH=["onClick","disabled"],NH=["href"],RH=["onClick"],TH=["onClick"],PH=["onClick"],DH={key:5},AH=["onClick"],IH={key:1,class:"project-details-row",role:"row"},OH=["id","onKeydown"],MH={class:"project-details-heading"},VH=["onClick"],qH={class:"project-details-list"},LH={key:0},$H={key:1},FH={key:0},UH={key:2},BH={key:0,class:"project-progress-help"},HH=["href"],zH=["onSubmit"],jH=["for"],_H=["id"],GH={class:"project-name-controls"},WH=["id","aria-describedby","disabled"],KH=["disabled"],YH={key:0,class:"project-name-error",role:"alert"},XH={key:1,role:"status"},QH={key:0,class:"paper-table-empty"},JH={key:0},ZH={key:1},xH={class:"paper-table-empty-actions"},ez={key:1,href:"/anonymize",class:"btn btn-ink"},tz={key:0,class:"dashboard-pagination"},nz={key:0,role:"alert"},sz=["disabled"];function Wf(e,t){let s=_e("quota-usage"),i=Le("field"),r=Le("form");return a(),l("div",c9,[n("div",p9,[n("div",f9,[n("div",m9,[n("div",null,[n("div",h9,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"My work",-1)),e.dashboardLoaded&&e.isPlainView()?(a(),l("span",g9,[h(c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",y9,"s")):f("v-if",!0)])):f("v-if",!0)]),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1))]),n("div",v9,[n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=o=>e.quotaExpanded=o.target.open),onKeydown:t[2]||(t[2]=Tt(de(o=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded,class:T(e.quota?"quota-level-"+e.quota.repository.level:""),style:De(e.quota&&!e.quota.repository.unlimited?{"--quota-pct":e.quota.repository.percent+"%"}:null)},[(a(),l("svg",{class:T(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[29]||(t[29]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(a(),l("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,k9)):f("v-if",!0),e.quota?.repository.unlimited?(a(),l("path",C9)):f("v-if",!0)],2)),t[31]||(t[31]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(a(),l("span",E9,[h(c(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(a(),l("span",S9," / "+c(e.fmt.number(e.quota.repository.total)),1)),t[30]||(t[30]=h(" repos",-1))])):f("v-if",!0),t[32]||(t[32]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],14,w9),n("div",N9,[n("div",R9,[t[34]||(t[34]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=o=>e.closeQuota())},[...t[33]||(t[33]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(a(),Rt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",T9,"Loading usage\u2026"))])],40,b9),t[35]||(t[35]=Pe('New anonymization',1))])]),f(" Result count + active filter chips "),f(" First load: the tab row keeps its place with placeholders, so nothing jumps when the counts arrive "),e.dashboardLoaded?f("v-if",!0):(a(),l("div",P9,[...t[36]||(t[36]=[n("div",{class:"dashboard-view-tabs"},[n("span",{class:"skeleton skeleton-line dashboard-tab-skeleton",style:{width:"56px"}}),n("span",{class:"skeleton skeleton-line dashboard-tab-skeleton",style:{width:"112px"}})],-1)])])),e.dashboardLoaded?(a(),l("div",D9,[e.showViewTabs()?(a(),l("div",A9,[n("button",{type:"button","aria-pressed":e.statusView()==="active",onClick:t[3]||(t[3]=o=>e.setStatusView("active")),title:"Every project except removed links"},"Current",8,I9),e.attentionCount()>0||e.statusView()==="attention"?(a(),l("button",{key:0,type:"button","aria-pressed":e.statusView()==="attention",onClick:t[4]||(t[4]=o=>e.setStatusView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[37]||(t[37]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[38]||(t[38]=n("span",null,"attention",-1)),t[39]||(t[39]=h()),n("span",{class:T(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,O9)):f("v-if",!0),e.removedCount>0||e.statusView()==="removed"||e.removedCount==null&&e.dashboardTotals?.total>e.dashboardTotals?.filtered?(a(),l("button",{key:1,type:"button","aria-pressed":e.statusView()==="removed",onClick:t[5]||(t[5]=o=>e.setStatusView("removed")),"aria-label":"Removed "+(e.removedCount??""),title:"Links reviewers can no longer open"},[t[40]||(t[40]=h("Removed ",-1)),e.removedCount!=null?(a(),l("span",V9,c(e.fmt?.number(e.removedCount)),1)):f("v-if",!0)],8,M9)):f("v-if",!0)])):f("v-if",!0),n("span",{class:T(["dashboard-count",{"is-plain":e.isPlainView()}])},[e.isPlainView()?(a(),l("span",q9,[h(c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" project",1),(e.dashboardTotals?.filtered??e.filteredItems?.length)!==1?(a(),l("span",L9,"s")):f("v-if",!0)])):(a(),l("span",$9,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" shown",1))],2)])):f("v-if",!0),f(" Search + filters "),O((a(),l("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[13]||(t[13]=de(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",F9,[O(n("input",U9,null,512),[[i,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[6]||(t[6]=o=>e.filtersExpanded=!e.filtersExpanded)},[...t[41]||(t[41]=[h("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,B9),n("div",{id:"dashboard-filter-controls",class:T(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",H9,[n("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[7]||(t[7]=o=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,z9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[8]||(t[8]=o=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[42]||(t[42]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("span",{class:"type-filter-label"},"Repos",-1)])],10,j9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[9]||(t[9]=o=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[43]||(t[43]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-pr"})],-1),n("span",{class:"type-filter-label"},"PRs",-1)])],10,_9),n("button",{type:"button",class:T(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[10]||(t[10]=o=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[44]||(t[44]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1),n("span",{class:"type-filter-label"},"Gists",-1)])],10,G9)]),n("div",{id:"dashboard-extra-filters",class:T(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",W9,[n("button",K9,[t[46]||(t[46]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",Y9,c(e.sortLabel()),1),(a(),l("svg",{class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",X9,c(e.sortDesc()?"descending":"ascending"),1)]),n("div",Q9,[t[47]||(t[47]=n("h6",{class:"dropdown-header"},"Order by",-1)),(a(!0),l(N,null,U(e.sortFields,(o,u,p)=>(a(),l("div",J9,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:d=>e.setSort(u,o.defaultDesc),checked:e.isSortedBy(u),id:"sort-"+p},null,8,Z9),n("label",{class:"form-check-label",for:"sort-"+p},c(o?.label),9,x9)]))),256)),t[48]||(t[48]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[11]||(t[11]=o=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",{class:T(["dropdown dashboard-status-filter",{"is-view-hidden":e.statusView()==="removed"}]),inert:e.statusView()==="removed"?!0:null},[n("button",tB,[t[49]||(t[49]=n("span",{class:"filter-btn-label"},"Status",-1)),n("span",nB,c(e.statusChipKeys().length===0?"Any":e.statusChipKeys().length===1?"Hiding "+(e.statusKeyLabels[e.statusChipKeys()[0]]||"").toLowerCase():e.statusChipKeys().length+" hidden"),1)]),n("div",sB,[t[50]||(t[50]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),n("button",{type:"button",class:T(["dropdown-item status-preset",{active:e.statusChipKeys().length===0}]),onClick:t[12]||(t[12]=o=>e.statusChipKeys().forEach(u=>{e.filters.status[u]=!0}))},"Any status",2),t[51]||(t[51]=n("div",{class:"dropdown-divider"},null,-1)),(a(!0),l(N,null,U(e.statusKeyLabels,(o,u,p)=>(a(),l(N,{key:u},[u!=="removed"?(a(),l("div",oB,[O(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+u},null,8,iB),[[i,{state:e.viewState,set:d=>{e.filters.status[u]=d},value:e.filters?.status[u],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+u},c(o),9,rB)])):f("v-if",!0)],64))),128))])],10,eB)],2)],2)],32)),[[r,e.viewState]]),e.dashboardLoaded&&e.showClearFilters()?(a(),l("div",aB,[(a(!0),l(N,null,U(e.statusChipKeys(),o=>(a(),l("button",{key:o,type:"button",class:"filter-chip",onClick:u=>e.filters.status[o]=!0,"aria-label":"Show "+e.statusKeyLabels[o]+" again",title:"Show "+e.statusKeyLabels[o]+" again"},[h("Hiding "+c((e.statusKeyLabels[o]||"").toLowerCase()),1),t[52]||(t[52]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,lB))),128)),e.typeFilter!=="all"?(a(),l("button",{key:0,type:"button",class:"filter-chip",onClick:t[14]||(t[14]=o=>e.typeFilter="all"),"aria-label":"Show all project types"},[h(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[53]||(t[53]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(a(),l("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[15]||(t[15]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0)]),f(" Table "),n("div",{class:T(["paper-table paper-table-dashboard",{"is-removed-view":e.statusView()==="removed","is-refreshing":e.refreshing}]),role:"table","aria-label":"Anonymizations","aria-busy":e.loading||e.refreshing},[n("div",uB,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[16]||(t[16]=o=>e.setSort("_label"))},[t[55]||(t[55]=h(" Project ",-1)),e.isSortedBy("_label")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[54]||(t[54]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,cB),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("status")}]),onClick:t[17]||(t[17]=o=>e.setSort("status"))},[t[57]||(t[57]=h(" Status ",-1)),e.isSortedBy("status")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[56]||(t[56]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,pB),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[18]||(t[18]=o=>e.setSort("pageView"))},[t[59]||(t[59]=h(" Views ",-1)),e.isSortedBy("pageView")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[58]||(t[58]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,fB),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[19]||(t[19]=o=>e.setSort("options.expirationDate"))},[t[61]||(t[61]=h(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(a(),l("svg",{key:0,class:T(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[60]||(t[60]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,mB),t[62]||(t[62]=n("div",{role:"columnheader",class:"col-link"},[n("span",{class:"sr-only"},"Actions")],-1))]),f(` Loading skeleton: keeps the layout stable while the lists load, and stands in + for the rows when a reload (tab, search, filter) has none of the new rows yet `),(a(),l(N,null,U([1,2,3,4],(o,u)=>(a(),l(N,null,[e.loading||e.refreshing&&e.filteredItems?.length==0?(a(),l("div",hB,[...t[63]||(t[63]=[n("div",{class:"cell-anon",role:"cell"},[n("span",{class:"skeleton skeleton-badge"}),n("div",{class:"anon-text"},[n("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),n("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),n("div",{class:"cell-status",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),n("div",{class:"cell-views num",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),n("div",{class:"cell-expires",role:"cell"},[n("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),n("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(a(!0),l(N,null,U(e.filteredItems,(o,u)=>(a(),l(N,{key:o?._type+":"+(o?._id||u)},[e.loading?f("v-if",!0):(a(),l("div",{key:0,class:T(["paper-table-row",{"repo-inactive":o?._statusKey=="expired"||o?._statusKey=="removed","repo-error":o?.status=="error","row-clickable":!!o?._viewUrl}]),role:"row",onClick:p=>e.openItem(o,p)},[n("div",yB,[n("span",{class:"project-type-icon",role:"img","aria-label":o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist",title:o?._type==="repo"?"Repository":o?._type==="pr"?"Pull request":"Gist"},[(a(),l("svg",bB,[n("use",{href:"#project-type-"+o._type},null,8,wB)]))],8,vB),n("div",kB,[n("div",CB,[o?._viewUrl?(a(),l("a",{key:0,class:"repo-name",title:o._label,href:e.safeUrl(o?._viewUrl)},[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",SB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[64]||(t[64]=n("wbr",null,null,-1)),n("span",NB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))],8,EB)):f("v-if",!0),o?._viewUrl?f("v-if",!0):(a(),l("span",RB,[(o?._label||"").indexOf("/")>0?(a(),l(N,{key:0},[n("span",TB,c(o._label.slice(0,o._label.indexOf("/")+1)),1),t[65]||(t[65]=n("wbr",null,null,-1)),n("span",PB,c(o._label.slice(o._label.indexOf("/")+1)),1)],64)):(a(),l(N,{key:1},[h(c(o?._label),1)],64))])),o?.role==="coauthor"?(a(),l("span",DB,"Co-author")):f("v-if",!0)]),o?._id||o?._type==="repo"&&o?.source?.commit||o?.conference?(a(),l("div",AB,[o?._id?(a(),l("code",{key:0,class:"anonymous-id",title:o._id},[o._id.length>14?(a(),l(N,{key:0},[n("span",OB,c(o._id.slice(0,-6)),1),n("span",MB,c(o._id.slice(-6)),1)],64)):(a(),l(N,{key:1},[h(c(o._id),1)],64))],8,IB)):f("v-if",!0),o?._type==="repo"&&o?.source?.commit?(a(),l("span",{key:1,class:"commit-hash",title:o.source.commit},c(o.source.commit.substring(0,7)),9,VB)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"cell-conf conf-tag",title:"Conference: "+o.conference},[t[66]||(t[66]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),n("span",{class:"conf-name",textContent:c(o?.conference)},null,8,LB)],8,qB)):f("v-if",!0)])):f("v-if",!0)])]),n("div",$B,[n("div",FB,[n("div",UB,[n("span",{class:T(["status-dot","status-"+o?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(o?.status))},null,8,BB),o?.status=="removed"?(a(),l(N,{key:0},[t[67]||(t[67]=n("span",{class:"seg-sep status-removed-sep","aria-hidden":"true"},"\xB7",-1)),n("button",{type:"button",class:"project-attention-action status-enable",onClick:de(p=>e.refreshItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Enable again",8,HB)],64)):f("v-if",!0)]),o?.status=="error"&&o?.statusMessage?(a(),l("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,zB)):f("v-if",!0),o?._stale?(a(),l("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(o?.anonymizeDate||o?.lastView)},c(e.idleText(o)),9,jB)):f("v-if",!0),o.status==="error"&&o._editUrl?(a(),l("a",{key:2,class:"project-attention-action",href:e.safeUrl(o._editUrl)},"Fix source",8,_B)):f("v-if",!0),o._stale||o._broken?(a(),l("div",GB,[o._stale&&!o._broken?(a(),l("span",WB,[...t[68]||(t[68]=[h("May be stuck",-1),n("span",{"aria-hidden":"true"}," \xB7 ",-1)])])):f("v-if",!0),o._stale||o._broken?(a(),l("button",{key:1,type:"button",class:"project-attention-action",onClick:de(p=>e.showProjectDetails(o),["stop"]),"data-project-actions":o._broken?encodeURIComponent(o._type+":"+o._id):null,"aria-controls":o._broken?e.projectDetailsId(o):null,"aria-expanded":o._broken?e.selectedProject===o:null},c(o._broken?"Review details":"Check progress"),9,KB)):f("v-if",!0)])):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"project-attention-action",onClick:de(p=>e.extendItem(o),["stop"]),title:"Reviewers can no longer open this link"},"Extend 6 months",8,YB)):f("v-if",!0),o?.status=="removed"&&o?.anonymizeDate?(a(),l("div",XB,"anonymized "+c(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0),o?.status!="error"&&o?.status!="expired"&&o?.status!="removed"&&!o?._stale&&o?.anonymizeDate?(a(),l("div",QB," anonymized "+c(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":o.pageView===1?"view":"views","aria-label":e.fmt.number(o.pageView)+(o.pageView===1?" view":" views")},[t[69]||(t[69]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,c(e.fmt.number(o.pageView)),1)],8,JB),n("div",ZB,[t[73]||(t[73]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?._expiry?.kind==="never"?(a(),l("span",xB,"No expiry")):f("v-if",!0),o?._expiry?.kind==="date"&&!o?._expiry?.soon?(a(),l("span",{key:1,textContent:c((e.fmt?.humanTime(o?._expiry?.date)||"").replace(/^on /,""))},null,8,eH)):f("v-if",!0),o?._expiry?.kind==="date"&&o?._expiry?.soon?(a(),l("span",{key:2,class:"expires-soon",title:"Expires "+e.fmt?.humanTime(o?._expiry?.date)},[t[70]||(t[70]=n("svg",{class:"project-type-svg expires-soon-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[71]||(t[71]=n("span",{class:"expires-soon-prefix"},"Expires ",-1)),h(c(o._expiry.soon),1)],8,tH)):f("v-if",!0),o?._expiry?.kind==="expired"&&o?._expiry?.date?(a(),l("span",nH,[t[72]||(t[72]=n("span",{class:"expires-past-prefix"},"Expired ",-1)),h(c(o?._expiry?.label||e.fmt?.humanTime(o?._expiry?.date)),1)])):f("v-if",!0),o?._expiry?.kind==="expired"&&!o?._expiry?.date?(a(),l("span",sH,"Expired")):f("v-if",!0),o?._expiry?.kind==="none"?(a(),l("span",oH,"\u2014")):f("v-if",!0)])]),n("div",iH,[o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed")?(a(),l("button",{key:0,type:"button",class:"copy-url",onClick:de(p=>e.copyLink(o),["stop"]),disabled:!!e.copyingId,title:"Copy link: "+o._viewUrl,"aria-label":"Copy anonymous link for "+o._label},[n("span",aH,c(e.copyingId===o._type+":"+o._id?"Link copied":""),1),(a(),l("svg",lH,[n("use",{href:e.copyingId===o._type+":"+o._id?"#ui-icon-check":"#project-icon-copy"},null,8,dH)])),n("span",uH,c(e.copyingId===o._type+":"+o._id?"Copied":"Copy link"),1)],8,rH)):f("v-if",!0),o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed")?(a(),l("a",{key:1,class:"row-edit row-open",href:e.safeUrl(o._viewUrl),target:"_blank",rel:"noopener",title:"Open what reviewers see","aria-label":"Open anonymous page for "+o._label},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,cH)):f("v-if",!0),o?._editUrl&&!o?._broken&&o?._statusKey!="removed"?(a(),l("a",{key:2,class:"row-edit",href:e.safeUrl(o._editUrl),title:"Edit "+o._name,"aria-label":"Edit "+o._name},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,pH)):f("v-if",!0),!(o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed"))&&o?._statusKey!="removed"&&o?._statusKey!="expired"?(a(),l("button",{key:3,type:"button",class:"copy-url is-disabled","aria-disabled":"true",onClick:t[20]||(t[20]=de(()=>{},["stop"])),title:o?._statusKey=="expired"?"Link expired: reviewers can no longer open it":o?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Copy link unavailable for "+o._label},[...t[76]||(t[76]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),n("span",{class:"copy-url-label","aria-hidden":"true"},"Copy link",-1)])],8,fH)):f("v-if",!0),!(o._viewUrl&&!(o?._statusKey=="expired"||o?._statusKey=="removed"))&&o?._statusKey!="removed"&&o?._statusKey!="expired"?(a(),l("button",{key:4,type:"button",class:"row-edit row-open is-disabled","aria-disabled":"true",onClick:t[21]||(t[21]=de(()=>{},["stop"])),title:o?._statusKey=="expired"?"Link expired: reviewers can no longer open it":o?._statusKey=="removed"?"Link offline: reviewers can no longer open it":"No link: this record is incomplete","aria-label":"Open unavailable for "+o._label},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])],8,mH)):f("v-if",!0),o?._editUrl&&!o?._broken?f("v-if",!0):(a(),l("button",{key:5,type:"button",class:"row-edit is-disabled","aria-disabled":"true",onClick:t[22]||(t[22]=de(()=>{},["stop"])),title:"Can't edit: this record is incomplete","aria-label":"Edit unavailable for "+o._label},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1)])],8,hH)),o?._broken?(a(),l("div",gH,[n("button",{type:"button",class:"btn btn-icon-dots is-disabled","aria-disabled":"true",onClick:t[23]||(t[23]=de(()=>{},["stop"])),title:"No actions: this record is incomplete. Use Review details.","aria-label":"No actions available for "+o._label},[...t[79]||(t[79]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,yH)])):f("v-if",!0),o?._broken?f("v-if",!0):(a(),l("div",vH,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(o._type+":"+o._id),"aria-label":"Actions for "+o?._name},[...t[80]||(t[80]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,bH),n("div",wH,[n("button",{type:"button",class:"dropdown-item",onClick:p=>e.showProjectDetails(o),"aria-controls":e.projectDetailsId(o),"aria-expanded":e.selectedProject===o},"Project details & name",8,kH),n("a",{class:"dropdown-item",href:e.safeUrl(o?._viewUrl)}," View ",8,CH),o?._type==="repo"&&o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")}," View page ",8,EH)):f("v-if",!0),o?._viewUrl?(a(),l("button",{key:1,type:"button",class:"dropdown-item",onClick:p=>e.copyLink(o),disabled:!!e.copyingId}," Copy anonymous link ",8,SH)):f("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(o?._editUrl)}," Edit ",8,NH),o?.status=="ready"||o?.status=="error"?(a(),l("button",{key:2,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(o)}," Force update ",8,RH)):f("v-if",!0),o?.status=="removed"?(a(),l("button",{key:3,type:"button",class:"dropdown-item",onClick:p=>e.refreshItem(o)}," Enable ",8,TH)):f("v-if",!0),o?.status=="expired"?(a(),l("button",{key:4,type:"button",class:"dropdown-item",onClick:p=>e.extendItem(o)}," Extend 6 months ",8,PH)):f("v-if",!0),(o?.status=="ready"||o?.status=="expired"||o?.status=="error")&&o?.role!=="coauthor"?(a(),l("div",DH,[t[81]||(t[81]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:p=>e.removeItem(o)}," Remove ",8,AH)])):f("v-if",!0)])]))])],10,gB)),!e.loading&&e.selectedProject===o?(a(),l("div",IH,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(o),tabindex:"-1",onKeydown:Tt(de(p=>e.closeProjectDetails(o),["stop"]),["esc"])},[n("div",MH,[t[83]||(t[83]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:p=>e.closeProjectDetails(o),"aria-label":"Close project details"},[...t[82]||(t[82]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,VH)]),n("dl",qH,[n("div",null,[t[84]||(t[84]=n("dt",null,"Source",-1)),n("dd",null,c(o._source||"Not available"),1)]),n("div",null,[t[85]||(t[85]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,c(o._id||"Missing identifier"),1)])]),o.source?.commit?(a(),l("div",LH,[t[86]||(t[86]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,c(o.source.commit),1)])])):f("v-if",!0),o.conference?(a(),l("div",$H,[t[87]||(t[87]=n("dt",null,"Conference",-1)),n("dd",null,c(o.conference),1)])):f("v-if",!0),n("div",null,[t[88]||(t[88]=n("dt",null,"Status",-1)),n("dd",null,[h(c(e.fmt.statusLabel(o.status)),1),o.statusMessage?(a(),l("span",FH," \xB7 "+c(e.fmt.statusMsg(o.statusMessage)),1)):f("v-if",!0)])]),o.anonymizeDate?(a(),l("div",UH,[t[89]||(t[89]=n("dt",null,"Last anonymized",-1)),n("dd",null,c(e.fmt.humanTime(o.anonymizeDate)),1)])):f("v-if",!0)]),o._stale?(a(),l("p",BH,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),o._editUrl?(a(),l("a",{key:1,class:"project-attention-action",href:e.safeUrl(o._editUrl)},c(e.needsAttention(o)?"Check source settings":"Edit anonymization settings"),9,HH)):f("v-if",!0),o._id?(a(),l("form",{key:2,class:"project-name-form",onSubmit:de(p=>e.saveProjectName(o),["prevent"])},[n("label",{for:"project-name-"+o._type+"-"+o._id},"Project name",8,jH),n("p",{id:"project-name-help-"+o._type+"-"+o._id},"Only you see this name. Leave it blank to use the default.",8,_H),n("div",GH,[O(n("input",{class:"form-control",type:"text",id:"project-name-"+o._type+"-"+o._id,"aria-describedby":"project-name-help-"+o._type+"-"+o._id,maxlength:"100","onUpdate:modelValue":t[24]||(t[24]=p=>e.projectName=p),disabled:e.nameSaving},null,8,WH),[[ft,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,KH)]),e.nameError?(a(),l("p",YH,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(a(),l("p",XH,c(e.nameMessage),1)):f("v-if",!0)],40,zH)):f("v-if",!0)],40,OH)])):f("v-if",!0)],64))),128)),!e.loading&&!e.refreshing&&e.filteredItems?.length==0?(a(),l("div",QH,[t[91]||(t[91]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(a(),l("span",JH,"You have no anonymizations yet.")),e.hasProjects()?(a(),l("span",ZH,"Nothing matches the current filters.")):f("v-if",!0),n("div",xH,[e.hasActiveFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[25]||(t[25]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(a(),l("a",ez,[...t[90]||(t[90]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),h(" New anonymization",-1)])]))])])):f("v-if",!0)],10,dB)]),e.dashboardCursor||e.dashboardError?(a(),l("div",tz,[e.dashboardError?(a(),l("p",nz,c(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(a(),l("button",{key:1,type:"button",class:"btn",onClick:t[26]||(t[26]=o=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,sz)):f("v-if",!0)])):f("v-if",!0)])}var oz={class:"viewer-bar"},iz={class:"vb-left"},rz=["aria-label","title"],az=["href","title"],lz={class:"vb-artifact-id"},dz={class:"vb-right"},uz=["title"],cz={class:"vb-help"},pz=["aria-expanded"],fz={key:0,class:"acct-menu vb-help-menu",role:"menu"},mz=["aria-label","title"],hz={class:"ui-icon","aria-hidden":"true"},gz=["href"],yz={key:1,class:"acct"},vz=["aria-label","aria-expanded"],bz=["src"],wz={key:1,class:"acct-initial"},kz={key:0,class:"acct-menu",role:"menu"},Cz={class:"acct-menu-head"},Ez={key:2,class:"vb-signin",href:"/signin",target:"_self"},Sz={key:0,class:"vb-context"},Nz=["href","title"],Rz={key:0,class:"vb-context-date"},Tz=["aria-label"],Pz={class:"ui-icon","aria-hidden":"true"},Dz=["href"],Az=["textContent"],Iz={class:"leftCol-head"},Oz={class:"leftCol-search"},Mz={class:"tree-search-box"},Vz=["href"],qz={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},Lz=["title","href"],$z={class:"leftCol-body"},Fz={key:0,class:"paper-inline-warning",role:"alert"},Uz={key:1,class:"paper-inline-warning",role:"alert"},Bz={class:"explorer-main"},Hz={class:"breadcrumb paths","aria-label":"Path"},zz={class:"breadcrumb-item breadcrumb-root"},jz=["href","title","textContent"],_z=["aria-current","textContent"],Gz=["aria-label","title"],Wz={class:"ui-icon","aria-hidden":"true"},Kz=["href"],Yz={class:"status-bar-actions"},Xz=["href"],Qz={class:"d-none d-md-inline"},Jz={class:"ui-icon","aria-hidden":"true"},Zz=["href"],xz={class:"d-none d-md-inline"},ej=["href"],tj={class:"explorer-content"};function Kf(e,t){let s=_e("tree"),i=_e("partial-view"),r=Le("field");return a(),l("div",{class:T(["explorer-page",{"files-hidden":e.sidebarHidden}]),style:De({"--sidebar-w":e.sidebarWidth+"px"})},[n("header",oz,[n("div",iz,[t[15]||(t[15]=n("a",{class:"vb-logo",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),n("button",{type:"button",class:"vb-icon vb-sidebar","aria-label":e.sidebarHidden?"Show file tree":"Hide file tree",title:e.sidebarHidden?"Show file tree":"Hide file tree",onClick:t[0]||(t[0]=o=>e.sidebarHidden=!e.sidebarHidden)},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1)])],8,rz),e.repoId?(a(),l("a",{key:0,class:"vb-artifact",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},[t[14]||(t[14]=n("span",{class:"sr-only"},"Artifact ",-1)),n("span",lz,c(e.repoId),1)],8,az)):f("v-if",!0)]),n("div",dz,[e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",{key:0,class:"vb-snapshot",title:(e.options?.expirationDate?"Available until "+e.fmt?.date(e.options.expirationDate)+". ":"")+(e.options?.anonymizedAt&&!e.options?.publishedAt?"Older repositories have no recorded publication date. The source commit date does not establish when files became available here.":(e.options?.sourceCommitDate?"Source commit ":e.options?.anonymizedAt?"Anonymized ":"Updated ")+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+(e.options?.publishedAt?" \xB7 snapshot ready "+e.fmt?.date(e.options.publishedAt):""))},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[17]||(t[17]=n("span",null,"Snapshot",-1)),n("span",null,c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)],8,uz)):f("v-if",!0),t[25]||(t[25]=n("a",{class:"vb-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Support Anonymous GitHub \u2014 help keep it free for researchers"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),n("span",null,"Support")],-1)),n("div",cz,[n("button",{type:"button",class:"vb-help-btn","aria-haspopup":"true","aria-expanded":e.helpOpen?"true":"false",onClick:t[1]||(t[1]=de(o=>e.helpOpen=!e.helpOpen,["stop"]))},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),n("span",null,"Help",-1)])],8,pz),e.helpOpen?(a(),l("div",fz,[...t[19]||(t[19]=[n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),n("span",null,[h("FAQ"),n("small",null,"How anonymization works")])],-1),n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),n("span",null,[h("Report a bug"),n("small",null,"About this service, not the paper")])],-1)])])):f("v-if",!0)]),n("button",{type:"button",class:"vb-icon","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Light mode":"Dark mode",onClick:t[2]||(t[2]=o=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",hz,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,gz)]))],8,mz),e.user?(a(),l("div",yz,[n("button",{type:"button",class:"acct-chip","aria-haspopup":"true","aria-label":"Account: "+e.user?.username,"aria-expanded":e.accountOpen?"true":"false",onClick:t[3]||(t[3]=de(o=>e.accountOpen=!e.accountOpen,["stop"]))},[e.user?.photo?(a(),l("img",{key:0,src:e.safeUrl(e.user.photo),alt:"",width:"26",height:"26"},null,8,bz)):(a(),l("span",wz,c((e.user?.username||"?").charAt(0).toUpperCase()),1))],8,vz),e.accountOpen?(a(),l("div",kz,[n("div",Cz,[t[20]||(t[20]=h("Signed in as ",-1)),n("b",null,"@"+c(e.user?.username),1)]),t[21]||(t[21]=n("a",{role:"menuitem",href:"/dashboard"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})]),h("My work")],-1)),t[22]||(t[22]=n("a",{role:"menuitem",href:"/profile"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})]),h("Settings")],-1)),t[23]||(t[23]=n("a",{role:"menuitem",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),h("Sign out")],-1))])):f("v-if",!0)])):(a(),l("a",Ez,[...t[24]||(t[24]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])]))])]),e.repoId?(a(),l("div",Sz,[n("a",{class:"vb-context-id",href:e.safeUrl("/r/"+e.repoId+"/"),title:"Anonymous artifact "+e.repoId},c(e.repoId),9,Nz),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("span",Rz,"Snapshot "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)):f("v-if",!0)])):f("v-if",!0),O(n("button",{class:"sidebar-toggle",onClick:t[4]||(t[4]=o=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(a(),l("svg",Pz,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,Dz)])),n("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,Az)],8,Tz),[[te,e.files?.length]]),O(n("div",{class:T(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",Iz,[t[27]||(t[27]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[5]||(t[5]=o=>e.sidebarCollapsed=!0)},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",Oz,[n("div",Mz,[(a(),l("svg",{class:T(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[n("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,Vz)],2)),O(n("input",qz,null,512),[[r,{state:e.viewState,set:o=>{e.fileSearchQuery=o},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),O(n("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[te,!e.fileSearchQuery]]),O(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[6]||(t[6]=o=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[te,e.fileSearchQuery]])]),e.options?.download?(a(),l("a",{key:0,target:"_self",class:"search-zip","aria-label":"Download repository as ZIP",title:"Download the repository (snapshot "+e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)+") as ZIP",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"search-zip-label","aria-hidden":"true"},"ZIP",-1)])],8,Lz)):f("v-if",!0)]),n("div",$z,[e.options?.truncatedFolders?.length>0?(a(),l("div",Fz,[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(a(),l("div",Uz,[t[30]||(t[30]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),$e(s,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])])],2),[[te,e.files?.length]]),O(n("div",{class:"leftCol-resizer",role:"separator","aria-orientation":"vertical","aria-label":"Resize file tree",title:"Drag to resize",onPointerdown:t[7]||(t[7]=o=>e.startSidebarResize(o))},null,544),[[te,e.files?.length&&!e.sidebarHidden]]),O(n("div",{class:"leftCol-backdrop",onClick:t[8]||(t[8]=o=>e.sidebarCollapsed=!0)},null,512),[[te,e.files?.length&&!e.sidebarCollapsed]]),n("div",Bz,[O(n("div",{class:T(["status-bar",{"is-redundant":["code","text","html"].includes(e.type)&&e.content!=null||e.fileFrame()}])},[O(n("button",{type:"button",class:"btn btn-sm status-files-btn","aria-label":"Show files",title:"Show files",onClick:t[9]||(t[9]=o=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-folder"})],-1),n("span",null,"Files",-1)])],512),[[te,e.files?.length]]),n("ol",Hz,[n("li",zz,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,jz)]),(a(!0),l(N,null,U(e.paths,(o,u)=>(a(),l("li",{class:"breadcrumb-item","aria-current":u===e.paths.length-1?"page":null,textContent:c(o)},null,8,_z))),256))]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy path",title:e.pathCopied?"Path copied":"Copy path",onClick:t[10]||(t[10]=o=>e.copyPath())},[(a(),l("svg",Wz,[n("use",{href:e.pathCopied?"#ui-icon-check":"#project-icon-copy"},null,8,Kz)]))],8,Gz),[[te,e.filePath]]),n("div",Yz,[e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,Xz)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(a(),l("button",{key:1,class:T(["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[11]||(t[11]=o=>e.toggleAllowScripts())},[t[33]||(t[33]=n("i",{class:"fab fa-js"},null,-1)),n("span",Qz,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(a(),l("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[12]||(t[12]=o=>e.toggleSource())},[(a(),l("svg",Jz,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,Zz)])),n("span",xz,c(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),n("span",{class:"d-none d-md-inline"}," Website",-1)])],8,ej)):f("v-if",!0)])],2),[[te,e.type!="error"||e.files?.length]]),n("div",tj,[$e(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])],6)}var nj={class:"paper-faq"},sj={class:"paper-faq-body"},oj={class:"paper-faq-toc"},ij={class:"faq-search",role:"search"},rj={class:"faq-search-field"},aj={id:"faq-search-status",class:"faq-search-status","aria-live":"polite"},lj={key:0,class:"faq-search-empty"},dj={class:"faq-search-empty-actions"};function Yf(e,t){let s=_e("partial-view"),i=Le("paper-scrollspy");return a(),l(N,null,[n("div",nj,[t[12]||(t[12]=n("div",{class:"paper-faq-hero"},[n("div",{class:"paper-faq-eyebrow"},"Help"),n("h1",{class:"paper-faq-title"},[h("Mirrors, redaction, and "),n("em",null,"what reviewers see.")]),n("p",{class:"paper-faq-lede"}," How to set up an anonymous mirror, what it hides, and how long it stays online. ")],-1)),n("div",sj,[O((a(),l("aside",oj,[...t[5]||(t[5]=[Pe('
Contents
',2)])])),[[i]]),n("section",{class:T(["faq-section",{"faq-searching":!!e.faqQuery.trim()}]),"aria-label":"FAQs"},[n("div",ij,[t[7]||(t[7]=n("label",{for:"faq-search-input"},"Search questions",-1)),n("div",rj,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),O(n("input",{id:"faq-search-input",type:"search",class:"form-control","onUpdate:modelValue":t[0]||(t[0]=r=>e.faqQuery=r),onInput:t[1]||(t[1]=r=>e.filterFaq()),onSearch:t[2]||(t[2]=r=>e.filterFaq()),onKeydown:t[3]||(t[3]=Tt(r=>e.clearFaqSearch(),["esc"])),placeholder:"e.g. expiry, pull request, PDF",autocomplete:"off",spellcheck:"false","aria-describedby":"faq-search-status"},null,544),[[ft,e.faqQuery]])]),n("p",aj,[e.faqQuery.trim()&&e.faqResults?(a(),l(N,{key:0},[h(c(e.faqResults===1?"1 result":e.faqResults+" results"),1)],64)):f("v-if",!0)])]),e.faqQuery.trim()&&e.faqResults===0?(a(),l("div",lj,[n("strong",null,"No questions match \u201C"+c(e.faqQuery.trim())+"\u201D.",1),t[9]||(t[9]=n("p",null,"Try a shorter word, or ask us directly.",-1)),n("div",dj,[n("button",{type:"button",class:"btn btn-outline-ink btn-sm",onClick:t[4]||(t[4]=r=>e.clearFaqSearch())},"Clear search"),t[8]||(t[8]=n("a",{class:"btn btn-link btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue",-1))])])):f("v-if",!0),t[10]||(t[10]=n("div",{class:"faq-list"},[f(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h("General ")]),n("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[n("h3",{class:"panel-title"},[n("a",{role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"true","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse show",role:"tabpanel","aria-labelledby":"headingWhatIs"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub is an open-source tool with free hosting and optional paid plans that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information, such as the repository owner, organization name, and custom terms, so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[n("div",{class:"panel-body p-3"},[n("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix, 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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[n("div",{class:"panel-body p-3"},[n("p",null," A free account includes 5 owned repositories and 5 GiB of source files. Optional paid plans offer more capacity, automatic refresh, and, with an author subscription, never-expiring repositories. Reviewers can read shared repositories without an account or payment. "),n("p",null,[h(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" for available plans and current prices. Offers depend on whether payments are enabled on this instance; the checkout shows the amount before you pay. Subscriptions help fund hosting, storage, backups, and continued maintenance. ")]),n("p",null,[h(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),h(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),h(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),f(" Plans and billing "),n("h4",{class:"faq-cat",id:"faq-plans-title"},"Plans and billing"),n("div",{class:"panel-group",id:"faq-plans",role:"tablist","aria-label":"Plans and billing","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingWhyPaid"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#whyPaid","aria-expanded":"false","aria-controls":"whyPaid"},"Why is Anonymous GitHub no longer completely free?")])]),n("div",{id:"whyPaid",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhyPaid"},[n("div",{class:"panel-body p-3"},[n("p",null,"Anonymous GitHub started as a small free service and was paid for out of pocket. Three things have changed since then:"),n("ul",null,[n("li",null,[n("strong",null,"Servers cost much more."),h(" Every hosted repository needs storage, bandwidth and backups, and these costs have risen sharply.")]),n("li",null,[n("strong",null,"Many more people use it."),h(" More users means more repositories to store and keep up to date, more support requests and more maintenance.")]),n("li",null,[n("strong",null,"AI has made security work heavier."),h(" AI-driven scrapers and automated abuse send far more traffic than before. Blocking them and keeping hosted content safe takes constant work.")])]),n("p",null,"The core service stays free: anonymizing a repository, sharing the link and reviewer access cost nothing, and reviewers never need an account. Most authors never need to pay. The paid options are small one-time payments for one repository, plus an optional subscription for heavy users. They are priced to cover running costs, not to make a profit."),n("p",null,[h("The source code remains open, so you can still "),n("a",{href:"#faq-hosting"},"host your own instance"),h(" for free.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFreePlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#freePlan","aria-expanded":"false","aria-controls":"freePlan"},"What is included in a free account?")])]),n("div",{id:"freePlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFreePlan"},[n("div",{class:"panel-body p-3"},[n("p",null,"The default free allowance is 5 repositories you own and 5 GiB of source files in total. Core anonymization and reviewer access remain free. You can manually refresh a repository within your allowance and choose a dated expiration up to 5 months ahead, then extend it again before it expires. Repositories submitted to a conference can stay online until the end of its review window."),n("p",null,"Repositories shared with you as a co-author do not use your own slots. Gists and pull requests are not included in these repository quotas. The usage shown in your account is the allowance available on this instance.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingAuthorPlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#authorPlans","aria-expanded":"false","aria-controls":"authorPlans"},"What do monthly and annual author subscriptions include?")])]),n("div",{id:"authorPlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingAuthorPlans"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Both include 20 owned repositories and 40 GiB of source files in total. They also allow automatic refresh when enabled in repository settings and let the owner choose "),n("strong",null,"Never expire"),h(".")]),n("p",null,[h("Monthly and annual plans offer the same features with different billing periods. They renew automatically until you cancel renewal. Current prices are shown in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,"Paid plans do not change how anonymization works. File-size limits and other service safeguards still apply. Review your anonymized content before sharing it.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingReviewPass"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#reviewPass","aria-expanded":"false","aria-controls":"reviewPass"},"Can I pay for one repository without subscribing?")])]),n("div",{id:"reviewPass",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingReviewPass"},[n("div",{class:"panel-body p-3"},[n("p",null,"Yes. These one-time add-ons apply to a single repository you own. None of them renews automatically:"),n("ul",null,[n("li",null,[n("strong",null,"Paper pack"),h(": an extra repository, automatic updates for 180 days and one more year before it expires, in a single payment. It covers what one paper usually needs during review.")]),n("li",null,[n("strong",null,"Extra repository"),h(": host one more repository once your free repositories are used up. It has its own 2 GiB allowance and does not count toward your free repositories. It lasts as long as the repository exists.")]),n("li",null,[n("strong",null,"Live updates"),h(": automatic refresh for 180 days, with a separate 2 GiB allowance.")]),n("li",null,[n("strong",null,"Extended expiration"),h(": choose an expiration date up to one year after purchase. Buying it again adds another year.")]),n("li",null,[n("strong",null,"Never expire"),h(": the repository has no expiration date. A full refund or a payment dispute ends it after a 90-day grace period.")])]),n("p",null,[h("When your free allowance is full, the Extra repository and Paper pack options are offered as you create the repository. You can also buy an add-on from the repository's edit page, or enter the anonymized ID of an existing repository in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(". Current prices are shown there.")])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConferencePlans"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#conferencePlans","aria-expanded":"false","aria-controls":"conferencePlans"},"Can a conference or lab pay for a group?")])]),n("div",{id:"conferencePlans",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConferencePlans"},[n("div",{class:"panel-body p-3"},[n("p",null,"A conference review package provides a shared allowance for a review window of up to 180 days, with automatic updates for every submission. It comes in three sizes: Workshop (25 repositories, 10 GiB), Conference (100 repositories, 50 GiB) and Large conference (400 repositories, 200 GiB). Choose the size when you create the conference; it cannot change afterwards. The organizer pays once and authors pay nothing (the price is shown when you create the conference); the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"New conferences no longer have a free plan: every new conference is a review package. Conferences created earlier keep working as before. The conference must be activated by payment before authors can submit under its Conference ID. Eligible repositories use the conference allowance before an author's personal allowance, so authors do not each need a subscription for that capacity."),n("p",null,"The package has a fixed review window. Never expire still requires the repository owner's author subscription or a Never expire add-on for that repository.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaidCoauthors"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paidCoauthors","aria-expanded":"false","aria-controls":"paidCoauthors"},"Does every co-author need to pay?")])]),n("div",{id:"paidCoauthors",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaidCoauthors"},[n("div",{class:"panel-body p-3"},[n("p",null,"No. Co-authors can collaborate without buying a subscription. A shared repository uses its owner's allowance, unless a repository pass or paid conference covers it. It does not consume each co-author's personal allowance."),n("p",null,"A co-author's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a co-author's refresh or edit may also be blocked. Reviewers never need a paid account.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCapacity"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#capacity","aria-expanded":"false","aria-controls":"capacity"},"What counts toward my allowance, and what happens at the limit?")])]),n("div",{id:"capacity",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCapacity"},[n("div",{class:"panel-body p-3"},[n("p",null,"The repository limit counts work you own. Storage counts the source-file sizes reserved for those repositories, not just files a reviewer opens. Archived or failed repositories can still reserve capacity, and a refresh does not automatically reduce a previous storage reservation."),n("p",null,"At the repository limit you cannot add another repository to that allowance. An edit or refresh must also fit the available storage. Remove work you no longer need, add an Extra repository for the new one, choose a subscription, or use an eligible conference allowance."),n("p",null,"Removing a repository releases its reservation when capacity is next checked. Expired repositories may continue to reserve capacity until cleanup. Reaching a limit does not itself delete existing review links.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingNeverExpire"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#neverExpire","aria-expanded":"false","aria-controls":"neverExpire"},"What happens to Never expire repositories if I stop subscribing?")])]),n("div",{id:"neverExpire",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingNeverExpire"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Never expire is available to monthly and annual author subscribers, or for one repository with the one-time Never expire add-on. If a subscription ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),h(", then expire and their hosted content is removed.")]),n("p",null,"Renewing during the grace period keeps them active. After expiration, you must renew and explicitly reactivate the repository; restoring content also requires access to its GitHub source. A repository does not become public on GitHub when it expires."),n("p",null,"Existing never-expiring repositories created before this billing policy retain their settings. Never expire is not a guarantee of perpetual service availability.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCancelPlan"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#cancelPlan","aria-expanded":"false","aria-controls":"cancelPlan"},"How do I cancel, and what happens after paid access ends?")])]),n("div",{id:"cancelPlan",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCancelPlan"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(" and choose "),n("strong",null,"Manage billing and invoices"),h(" to manage renewal. Cancelling renewal keeps subscription benefits until the end of the paid period.")]),n("p",null,"After paid access ends, repositories fall back to another eligible allowance or the free allowance. Automatic refresh pauses on the free allowance; manual refresh remains available within its limits. Existing review links keep their configured expiration dates, except paid Never expire repositories, which follow the 90-day grace period described above."),n("p",null,"A repository pass or conference package ends after its paid window without automatic renewal.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingRefunds"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#refunds","aria-expanded":"false","aria-controls":"refunds"},"Can I get a refund?")])]),n("div",{id:"refunds",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingRefunds"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Refunds are handled case by case. "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the date of the payment and the repository it was for.")]),n("p",null,"A full refund ends what that payment bought. For a Paper pack, this means all three parts: the extra repository, automatic updates and the extended expiration. A Never expire repository then expires after a 90-day grace period. A partial refund keeps your access."),n("p",null,"To stop a subscription, cancel its renewal instead of asking for a refund. You keep access until the end of the period you paid for.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPaymentHandling"},[n("h3",{class:"panel-title"},[n("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-plans",href:"#paymentHandling","aria-expanded":"false","aria-controls":"paymentHandling"},"How are payments handled?")])]),n("div",{id:"paymentHandling",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPaymentHandling"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("Stripe processes checkout and billing management. Anonymous GitHub does not store your card details. You can access billing management and invoices from "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),h(".")]),n("p",null,[h("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),h(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),f(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),h("Features ")]),n("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[n("div",{class:"panel-body p-3"},[n("p",null," Anonymous GitHub can display and render a wide variety of file types: "),n("ul",null,[n("li",null,[n("strong",null,"Text and source code"),h(": displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),h(": rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),h(" (PNG, JPG, SVG, etc.): displayed inline")]),n("li",null,[n("strong",null,"PDFs"),h(": rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),h(": rendered with code cells and outputs")])]),n("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[n("div",{class:"panel-body p-3"},[n("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),n("ul",null,[n("li",null,[n("strong",null,"Never expire"),h(": with a monthly or annual author subscription, no scheduled expiration while subscribed. A 90-day grace period applies after paid access ends. See "),n("a",{href:"#neverExpire"},"the subscription expiration policy"),h(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),h(": after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),h(": after expiration, the anonymized content is deleted from the server.")])])])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[n("div",{class:"panel-body p-3"},[n("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. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[n("div",{class:"panel-body p-3"},[n("p",null," You can refresh the anonymized repository from GitHub without creating a new share link. Free accounts can request a manual refresh within their allowance. Automatic refresh requires an eligible paid allowance and must be enabled in repository settings. It pauses when the repository falls back to the free allowance. "),n("p",null," After changing files or contributor names, review your anonymization terms before sharing the updated content. If GitHub access is revoked or the source is deleted, the service cannot fetch updates. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[n("div",{class:"panel-body p-3"},[n("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: "),n("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[n("code",null,`npm install -g @tdurieux/anonymous_github +anonymous_github`)])])])])]),f(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),h("Limitations ")]),n("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[n("div",{class:"panel-body p-3"},[n("ul",null,[n("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),n("li",null," Files larger than 8 MB are not supported. "),n("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),n("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 and security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),h("Privacy and security ")]),n("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[n("div",{class:"panel-body p-3"},[n("p",null," Repository data is used to provide the anonymization service. If you purchase a plan, Stripe processes payment and billing information. When a repository is removed or expires, only its configuration is retained. This makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[n("div",{class:"panel-body p-3"},[n("p",null,[h("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),n("a",{href:"/connections"},"GitHub connections"),h(" page.")]),n("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."),n("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[n("div",{class:"panel-body p-3"},[n("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 "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),h("Self"),n("span",{class:"serif-hy"},"-"),h("hosting ")]),n("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[n("div",{class:"panel panel-default mb-3"},[n("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[n("h3",{class:"panel-title"},[n("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? ")])]),n("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[n("div",{class:"panel-body p-3"},[n("p",null,[h(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. Billing is optional and disabled by default for self-hosted instances; paid hosted plans are not required to run your own server. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),h(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[h("Create a "),n("code",null,".env"),h(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[h("Run "),n("code",null,"docker-compose up -d")])])])])])])],-1))],2),t[11]||(t[11]=n("aside",{class:"paper-faq-help","aria-label":"More help"},[n("div",{class:"paper-faq-help-card"},[n("strong",null,"Still stuck?"),n("p",null,"Open an issue on GitHub about the service. For a paper's content, contact the conference instead."),n("a",{class:"btn btn-outline-ink btn-sm",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml"},"Open an issue")])],-1))])]),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var uj={class:"pr-page review-page"},cj={class:"container paper-page pr-page-inner"},pj={class:"pr-header"},fj={class:"pr-title-row"},mj={class:"paper-page-title pr-title"},hj={key:0},gj=["aria-label"],yj={key:1,class:"text-muted"},vj=["href"],bj={class:"pr-header-meta"},wj={key:0,class:"pr-meta-item"},kj=["aria-label"],Cj={key:1,class:"pr-meta-item"},Ej=["textContent"],Sj={key:2,class:"pr-meta-item"},Nj=["textContent"],Rj={key:0,class:"paper-tabs",role:"tablist"},Tj=["aria-selected","tabindex"],Pj=["textContent"],Dj=["aria-selected","tabindex"],Aj=["textContent"],Ij={class:"paper-tab-content"},Oj={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},Mj={class:"toc-main"},Vj={key:0,class:"toc-bar"},qj={class:"toc-menu"},Lj=["aria-expanded"],$j={key:0,class:"toc-menu-current"},Fj=["aria-label"],Uj={key:0,class:"toc-menu-pop toc-rail","aria-label":"In this gist"},Bj=["href","aria-current","onClick"],Hj={class:"toc-file-name"},zj=["aria-label"],jj={class:"toc-file-meta"},_j=["href","aria-current","onClick"],Gj=["aria-label"],Wj=["id","aria-labelledby"],Kj={class:"gist-file-head"},Yj=["id"],Xj=["aria-label"],Qj={class:"gist-file-meta"},Jj={class:"gist-file-tools"},Zj=["aria-label"],xj=["aria-checked","onClick"],e_=["aria-checked","onClick"],t_=["aria-checked","onClick"],n_={key:1,class:"tb-file gist-file-actions",role:"group","aria-label":"File actions"},s_=["href","title"],o_=["aria-label","title","onClick"],i_={class:"ui-icon","aria-hidden":"true"},r_=["href"],a_=["href","download"],l_={key:2,class:"notebook-body"},d_={key:4,class:"media-stage"},u_=["src","alt"],c_={key:5,class:"media-stage"},p_=["src"],f_={key:6,class:"media-stage is-audio"},m_=["src"],h_={key:8,class:"file-state"},g_={key:9,class:"file-state",role:"note"},y_={key:10,class:"file-state",role:"note"},v_={key:11,class:"file-state"},b_={key:1,class:"paper-table-empty"},w_={key:0,class:"page-toc","aria-label":"In this gist"},k_={class:"toc-rail"},C_=["href","aria-current","onClick"],E_={class:"toc-file-name"},S_=["aria-label"],N_={class:"toc-file-meta"},R_=["href","aria-current","onClick"],T_=["aria-label"],P_={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},D_={class:"pr-comments"},A_={key:0,class:"paper-table-empty"};function Xf(e,t){let s=_e("gist-file"),i=_e("notebook"),r=_e("data-table"),o=_e("pdfviewer"),u=_e("pr-thread");return a(),l("div",uj,[n("div",cj,[t[27]||(t[27]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",pj,[n("div",fj,[n("h1",mj,[e.details?.description?(a(),l("span",hj,[(a(!0),l(N,null,U(e.redactParts(e.details.description),(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,gj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))])):f("v-if",!0),e.details?.description?f("v-if",!0):(a(),l("span",yj,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[5]||(t[5]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,vj)):f("v-if",!0)]),n("div",bj,[n("span",{class:T(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(a(),l("span",wj,[t[6]||(t[6]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[7]||(t[7]=h()),n("span",{class:T(["pr-author",{"is-redacted":e.isRedactedName(e.details.ownerLogin)}])},[e.isRedactedName(e.details.ownerLogin)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.ownerLogin),(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,kj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))],2)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",Cj,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[9]||(t[9]=h()),n("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,Ej)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",Sj,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[11]||(t[11]=h(" Anonymized ",-1)),n("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,Nj)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(a(),l("nav",Rj,[e.details?.files?(a(),l("button",{key:0,class:T(["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]=p=>e.previewTabKeydown(p)),onClick:t[1]||(t[1]=p=>e.tabState.active="files")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,Pj)],42,Tj)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:T(["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]=p=>e.previewTabKeydown(p)),onClick:t[3]||(t[3]=p=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Aj)],42,Dj)):f("v-if",!0)])):f("v-if",!0),n("div",Ij,[e.details?.files&&e.tabState?.active=="files"?(a(),l("div",Oj,[n("div",{class:T(["toc-layout",{"has-toc":e.showGistToc()}])},[n("div",Mj,[e.showGistToc()?(a(),l("div",Vj,[n("div",qj,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost toc-menu-btn",{"is-on":e.tocOpen}]),"aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[4]||(t[4]=de(p=>e.tocOpen=!e.tocOpen,["stop"]))},[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)),t[15]||(t[15]=n("span",{class:"toc-menu-label"},"In this gist",-1)),e.gistToc()[e.activeFileIndex()]?(a(),l("span",$j,[(a(!0),l(N,null,U(e.gistToc()[e.activeFileIndex()].parts,(p,d)=>(a(),l(N,{key:d},[p.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+p.n},[n("i",null,c(p.n),1)],8,Fj)):(a(),l(N,{key:1},[h(c(p.t),1)],64))],64))),128))])):f("v-if",!0),t[16]||(t[16]=n("svg",{class:"ui-icon toc-menu-chevron","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,Lj),e.tocOpen?(a(),l("nav",Uj,[(a(!0),l(N,null,U(e.gistToc(),p=>(a(),l(N,{key:p.id},[n("a",{href:"#"+p.id,class:T(["toc-file",{"is-current":e.activeFileIndex()===p.index,"is-active":e.activeFileIndex()===p.index&&!p.headings.some(d=>d.id===e.activeAnchor)}]),"aria-current":e.activeFileIndex()===p.index?"location":null,onClick:de(d=>e.jumpToAnchor(p.id),["prevent"])},[n("span",Hj,[(a(!0),l(N,null,U(p.parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,zj)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),n("span",jj,c(p.language)+" \xB7 "+c(p.lines!=null?e.fmt.plural(p.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p.size||0)),1)],10,Bj),(a(!0),l(N,null,U(p.headings,d=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["toc-heading","depth-"+d.depth,{"is-active":e.activeAnchor===d.id}]),"aria-current":e.activeAnchor===d.id?"location":null,onClick:de(g=>e.jumpToAnchor(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,Gj)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,_j))),128))],64))),128))])):f("v-if",!0)])])):f("v-if",!0),(a(!0),l(N,null,U(e.details?.files,(p,d)=>(a(),l("section",{class:"gist-file-card",key:d,id:e.gistFileId(d),"aria-labelledby":e.gistFileId(d)+"-name"},[n("header",Kj,[t[19]||(t[19]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),n("h2",{class:"gist-file-name",id:e.gistFileId(d)+"-name"},[(a(!0),l(N,null,U(e.redactParts(p?.filename),(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,Xj)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],8,Yj),n("span",Qj,[h(c(e.gistToc()[d]?.language),1),t[17]||(t[17]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.gistToc()[d]?.lines!=null?e.fmt.plural(e.gistToc()[d]?.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p?.size||0)),1)]),n("div",Jj,[e.gistHasRendered(d)?(a(),l("div",{key:0,class:"seg-filter gist-view-toggle",role:"radiogroup","aria-label":"View of "+p?.filename},[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="rendered"}]),"aria-checked":e.gistView(d)==="rendered"?"true":"false",onClick:g=>e.setGistView(d,"rendered")},c(e.gistKind(d)==="csv"?"Table":"Preview"),11,xj),e.gistKind(d)==="csv"?(a(),l("button",{key:0,type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="chart"}]),"aria-checked":e.gistView(d)==="chart"?"true":"false",onClick:g=>e.setGistView(d,"chart")},"Chart",10,e_)):f("v-if",!0),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.gistView(d)==="raw"}]),"aria-checked":e.gistView(d)==="raw"?"true":"false",onClick:g=>e.setGistView(d,"raw")},"Source",10,t_)],8,Zj)):f("v-if",!0),["too-large","hidden","empty","binary"].includes(e.gistKind(d))?f("v-if",!0):(a(),l("div",n_,[n("a",{class:"tb-seg-btn",href:e.safeUrl(e.gistRawUrl(p)),target:"_blank",rel:"noopener",title:p?.encoding==="base64"?"Open the file":"Open the raw file"},"Raw",8,s_),p?.encoding!=="base64"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.gistCopied===d?"Copied":"Copy file contents",title:e.gistCopied===d?"Copied":"Copy file contents",onClick:g=>e.copyGistFile(d)},[(a(),l("svg",i_,[n("use",{href:e.gistCopied===d?"#ui-icon-check":"#project-icon-copy"},null,8,r_)]))],8,o_)):f("v-if",!0),n("a",{class:"tb-seg-btn tb-seg-icon",href:e.safeUrl(e.gistRawUrl(p)),download:p?.filename,"aria-label":"Download file",title:"Download file"},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,a_)]))])]),n("div",{class:T(["gist-file-body","is-"+(e.gistView(d)==="raw"&&e.gistHasRendered(d)?"code":e.gistKind(d))])},[e.gistKind(d)==="markdown"&&e.gistView(d)==="rendered"?(a(),Rt(s,{key:0,file:p,reader:!0,"id-prefix":e.gistFileId(d)+"-",onOutline:g=>e.setFileOutline(d,g)},null,8,["file","id-prefix","onOutline"])):e.gistKind(d)==="code"||e.gistHasRendered(d)&&e.gistView(d)==="raw"?(a(),Rt(s,{key:1,file:e.gistSourceFile(d),reader:!0},null,8,["file"])):e.gistKind(d)==="notebook"?(a(),l("div",l_,[$e(i,{class:"markdown-body",content:p.content},null,8,["content"])])):e.gistKind(d)==="csv"?(a(),Rt(r,{key:p?.filename,rows:e.gistCsvRows(p),name:p?.filename,"state-key":"table-"+(d+1),view:e.gistView(d)==="chart"?"chart":"table"},null,8,["rows","name","state-key","view"])):e.gistKind(d)==="image"||e.gistKind(d)==="svg"?(a(),l("div",d_,[n("img",{class:"image-content",src:e.safeUrl(e.gistMediaUrl(p)),alt:p?.filename},null,8,u_)])):e.gistKind(d)==="video"?(a(),l("div",c_,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.gistMediaUrl(p))},null,8,p_)])):e.gistKind(d)==="audio"?(a(),l("div",f_,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.gistMediaUrl(p))},null,8,m_)])):e.gistKind(d)==="pdf"?(a(),Rt(o,{key:7,src:e.safeUrl(e.gistMediaUrl(p))},null,8,["src"])):e.gistKind(d)==="binary"?(a(),l("div",h_,[...t[20]||(t[20]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"This file isn't shared",-1),n("p",{class:"file-state-msg"},"Binary files other than images can carry author details that anonymization can't remove, so anonymized gists don't include them.",-1)])])):e.gistKind(d)==="too-large"?(a(),l("div",g_,[...t[21]||(t[21]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),n("h3",{class:"file-state-title"},"This file is too large to preview",-1),n("p",{class:"file-state-msg"},"It is over the size limit for anonymized gist files, so it can't be shown or downloaded from this link.",-1)])])):e.gistKind(d)==="hidden"?(a(),l("div",y_,[...t[22]||(t[22]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"Image not shown",-1),n("p",{class:"file-state-msg"},"The author chose not to display images in this anonymized gist.",-1)])])):(a(),l("div",v_,[...t[23]||(t[23]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h3",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])]))],2)],8,Wj))),128)),e.details?.files?.length?f("v-if",!0):(a(),l("div",b_,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))]),e.showGistToc()?(a(),l("aside",w_,[t[25]||(t[25]=n("div",{class:"page-toc-head"},"In this gist",-1)),n("nav",k_,[(a(!0),l(N,null,U(e.gistToc(),p=>(a(),l(N,{key:p.id},[n("a",{href:"#"+p.id,class:T(["toc-file",{"is-current":e.activeFileIndex()===p.index,"is-active":e.activeFileIndex()===p.index&&!p.headings.some(d=>d.id===e.activeAnchor)}]),"aria-current":e.activeFileIndex()===p.index?"location":null,onClick:de(d=>e.jumpToAnchor(p.id),["prevent"])},[n("span",E_,[(a(!0),l(N,null,U(p.parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,S_)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),n("span",N_,c(p.language)+" \xB7 "+c(p.lines!=null?e.fmt.plural(p.lines,{one:"1 line",other:"{} lines"}):e.fmt.humanFileSize(p.size||0)),1)],10,C_),(a(!0),l(N,null,U(p.headings,d=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["toc-heading","depth-"+d.depth,{"is-active":e.activeAnchor===d.id}]),"aria-current":e.activeAnchor===d.id?"location":null,onClick:de(g=>e.jumpToAnchor(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,T_)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,R_))),128))],64))),128))])])):f("v-if",!0)],2)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",P_,[n("ul",D_,[(a(!0),l(N,null,U(e.details?.comments,(p,d)=>(a(),l("li",{class:"pr-timeline-item",key:d},[$e(u,{comments:[p],fmt:e.fmt},null,8,["comments","fmt"])]))),128)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",A_,[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var I_={key:0,class:"nav-support",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs","aria-label":"Donate on Ko-fi to help cover hosting costs"},O_={key:1,class:"nav-heart-m",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener","aria-label":"Support Anonymous GitHub",title:"Support Anonymous GitHub"},M_=["aria-label","title"],V_={class:"ui-icon","aria-hidden":"true"},q_=["href"],L_={key:3,class:"nav-signin-m",href:"/signin",target:"_self","aria-label":"Sign in with GitHub"},$_={class:"collapse navbar-collapse",id:"navbarSupportedContent"},F_={class:"navbar-nav mr-auto smooth-scroll"},U_={key:0,class:"nav-item nav-home-item"},B_={key:1,class:"nav-item"},H_={key:2,class:"nav-item"},z_={key:3,class:"nav-item"},j_={class:"nav-item"},__={key:4,class:"nav-item"},G_={class:"navbar-nav"},W_={key:0,class:"nav-item d-lg-none"},K_={key:1,class:"nav-item"},Y_={key:2,class:"nav-item"},X_={key:3,class:"nav-item nav-signin-item"},Q_={key:4,class:"nav-item"},J_={key:5,class:"nav-item dropdown user-chip-wrap"},Z_={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},x_=["src"],eG={class:"user-chip-name"},tG={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},nG={class:"dropdown-header"},sG={key:0,class:"dropdown-item um-extra",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},oG=["innerHTML"],iG=["disabled"],rG={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},aG={class:"email-prompt-actions"},lG=["disabled"],dG=["disabled"],uG=["disabled"];function Qf(e,t){return a(),l(N,null,[n("nav",{class:T(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[28]||(t[28]=n("a",{class:"navbar-brand",href:"/"},[h("Anonymous "),n("em",null,"GitHub")],-1)),e.headerShowSupport?(a(),l("a",I_,[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",{class:"nav-support-label"},"Support",-1)])])):f("v-if",!0),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("a",O_,[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1)])])),/^\/(r|w|pr|gist)\//.test(e.path||"")?f("v-if",!0):(a(),l("button",{key:2,type:"button",class:"nav-theme-m","aria-label":e.isDarkMode?"Switch to light mode":"Switch to dark mode",title:e.isDarkMode?"Switch to light mode":"Switch to dark mode",onClick:t[0]||(t[0]=s=>e.darkMode(!e.isDarkMode))},[(a(),l("svg",V_,[n("use",{href:e.isDarkMode?"#ui-icon-sun":"#ui-icon-moon"},null,8,q_)]))],8,M_)),!e.user&&!/^\/(r|w|pr|gist)\//.test(e.path||"")?(a(),l("a",L_,[...t[11]||(t[11]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1),h("Sign in",-1)])])):f("v-if",!0),t[29]||(t[29]=n("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[n("span",{class:"navbar-toggler-icon"})],-1)),n("div",$_,[n("ul",F_,[e.user?f("v-if",!0):(a(),l("li",U_,[n("a",{class:T(["nav-link",{active:e.path=="/"}]),href:"/"},[...t[12]||(t[12]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-home"})],-1),h(" Home ",-1)])],2)])),e.user?(a(),l("li",B_,[n("a",{class:T(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[13]||(t[13]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),h(" My work ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",H_,[n("a",{class:T(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[14]||(t[14]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(a(),l("li",z_,[n("a",{class:T(["nav-link",{active:e.path=="/conferences"||e.path?.startsWith("/conference/")}]),href:"/conferences"},[...t[15]||(t[15]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),h(" Conferences ",-1)])],2)])):f("v-if",!0),n("li",j_,[n("a",{class:T(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[16]||(t[16]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),h("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(a(),l("li",__,[n("a",{class:T(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[17]||(t[17]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Admin ",-1)])],2)])):f("v-if",!0)]),n("ul",G_,[e.user||!e.isReviewerRoute?(a(),l("li",W_,[...t[18]||(t[18]=[n("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"},[n("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. `),n("li",{class:T(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug ")],-1)])],2),n("li",{class:T(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),h("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",G_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",W_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",K_,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),h(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",Y_,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",X_,[n("a",Q_,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,J_)):f("v-if",!0),n("span",Z_,c(e.user?.username),1)]),n("div",x_,[n("h6",eG,"Signed in as @"+c(e.user?.username),1),t[25]||(t[25]=Pe('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource code',6)),e.headerShowSupport?(a(),l("a",tG,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,nG)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),O(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,sG),[[ft,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p",oG,c(e.emailPromptError),1)):f("v-if",!0),n("div",iG,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=s=>e.respondToEmailPrompt("later"))},"Remind me later",8,rG),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=s=>e.respondToEmailPrompt("never"))},"Never",8,aG),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,lG)])],32)],32)):f("v-if",!0)],64)}var dG={class:"paper-landing"},uG={class:"paper-hero"},cG={class:"paper-hero-copy"},pG={class:"paper-cta-row"},fG={key:0,href:"/signin",target:"_self",class:"btn-hero"},mG={key:1,href:"/anonymize",class:"btn-hero"},hG={class:"paper-stats-meta"},gG={key:0,class:"paper-stats-meta-left"},yG={key:0,class:"paper-stats-grid"},vG={class:"paper-stat-label"},bG={key:0,class:"paper-stat-delta"},wG={class:"demo paper-wrap","aria-label":"Try redaction"},kG={class:"demo-terms"},CG={class:"demo-panes"},EG={class:"pane"},SG={class:"demo-input-wrap"},NG={class:"pane-body demo-backdrop","aria-hidden":"true"},RG={key:0,class:"demo-match"},TG={class:"pane pane-after"},PG={class:"pane-header"},DG={class:"pane-url"},AG={class:"meta-redact"},IG={class:"pane-body demo-output","aria-live":"polite"},OG=["title"],MG={class:"paper-features paper-wrap","aria-label":"Product features"},VG={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},qG=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],LG={class:"paper-eyebrow"},$G={class:"pf-num"},FG={class:"pf-name"},UG={class:"paper-feature-title"},BG={key:0,class:"serif-hy"},HG={class:"paper-feature-more"},zG={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},jG={key:0,class:"serif-hy"},_G=["href","target"],GG={class:"paper-features-stage"},WG=["id","aria-labelledby"],KG={class:"paper-frame"},YG={class:"paper-frame-bar","aria-hidden":"true"},XG={class:"url"},QG=["aria-label"],JG={key:0,class:"fm-form"},ZG={key:1,class:"fm-viewer"},xG={key:2,class:"fm-dash"};function Yf(e,t){let s=_e("partial-view");return a(),l("div",dG,[f(" Hero: copy on the left, the product on the right "),n("section",uG,[n("div",cG,[t[5]||(t[5]=n("div",{class:"paper-eyebrow"},"For double-anonymous peer review",-1)),t[6]||(t[6]=n("h1",{class:"hero-title"},[h(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[7]||(t[7]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",pG,[e.user?f("v-if",!0):(a(),l("a",fG,[...t[3]||(t[3]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),h("Sign in with GitHub ",-1)])])),e.user?(a(),l("a",mG," Anonymize a repository \u2192 ")):f("v-if",!0),t[4]||(t[4]=n("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[8]||(t[8]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1)),t[9]||(t[9]=n("p",{class:"paper-proof-mobile"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),t[10]||(t[10]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[h("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),h(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),h(".")]),n("p",{class:"hm-opt"},"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2 hm-opt"},"Quick start"),n("pre",{class:"hm-opt"},`pip install -r requirements.txt -python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:T(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",hG,[e.statsEmpty()?f("v-if",!0):(a(),l("div",gG,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),h(),n("span",null,[h("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",yG,[(a(!0),l(N,null,U(e.cards,(i,r)=>(a(),l("div",{class:"paper-stat-card",key:i?.key},[n("div",{class:T(["paper-stat-value",{"is-pending":!e.stat}])},c(e.stat?e.fmt?.bigNum(i?.total):"\u2014"),3),n("div",vG,c(i?.label),1),e.history[i?.key].bars?.length>1&&e.history[i?.key].deltaToday>0?(a(),l("div",bG," +"+c(e.fmt?.number(e.history[i?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[h("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",wG,[n("div",kG,[t[13]||(t[13]=n("label",{for:"demo-terms"},[h("Terms to redact "),n("span",null,[h("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),O(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=i=>e.demoTerms=i),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=Rt(de(()=>{},["prevent"]),["enter"]))},null,544),[[ft,e.demoTerms]])]),n("div",CG,[n("div",EG,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[h("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",SG,[n("div",NG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("mark",RG,c(i.original),1)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128)),t[14]||(t[14]=h("\u200B",-1))]),O(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=i=>e.demoText=i),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ft,e.demoText]])])]),n("div",TG,[n("div",PG,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",DG,[n("span",AG,c(e.demoCount())+" redacted",1)])]),n("div",IG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+i.original+"\u201D"},c(i.text),9,OG)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",MG,[n("div",VG,[(a(!0),l(N,null,U(e.features,(i,r)=>(a(),l("div",{class:T(["paper-feature",{"is-on":e.feature===i?.key}]),key:i?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:o=>e.selectFeature(i.key),onKeydown:o=>e.featureKeydown(o,r),id:"feature-tab-"+i?.key,"aria-controls":"feature-panel-"+i?.key,"aria-selected":e.feature===i?.key,tabindex:e.feature===i?.key?0:-1},[n("span",LG,[n("span",$G,c(i?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",FG,c(i?.eyebrow),1)]),n("span",UG,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",BG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)])],40,qG),n("div",HG,[n("span",zG,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",jG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)]),n("p",null,c(i?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(i)),target:e.featureTarget(i)},c(i?.cta)+" \u2192",9,_G)])],2))),128))]),n("div",GG,[(a(!0),l(N,null,U(e.features,(i,r)=>O((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:i?.key,id:"feature-panel-"+i?.key,"aria-labelledby":"feature-tab-"+i?.key},[n("div",KG,[n("div",YG,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",XG,c(i?.url),1)]),n("div",{class:T(["feat-mock","is-"+i?.key]),role:"img","aria-label":i?.alt},[i?.key==="anonymize"?(a(),l("div",JG,[...t[19]||(t[19]=[Pe('
GitHub repository
github.com/jane-smith/DeepLearnUtils
Terms to redact
Jane SmithMIT CSAILjane.smith@mit.edu+ Add term
Reviewers can see
ImagesPDFsLinksNotebooks
Expires
Mar 31, 2027
Anonymize repository
',6)])])):i?.key==="review"?(a(),l("div",ZG,[...t[20]||(t[20]=[Pe(`
data
src
train.py
README.md
LICENSE
train.py48 lines \xB7 Python
1# Training loop for DeepLearnUtils
+           label names the service and the tooltip says who to contact. `),n("li",{class:T(["nav-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[19]||(t[19]=[n("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug ")],-1)])],2),n("li",{class:T(["nav-item nav-support-item nav-extra-item d-none d-lg-block",{"in-user-menu":!!e.user?.username}])},[...t[20]||(t[20]=[n("a",{class:"nav-link nav-support-inline",href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener",title:"Donate on Ko-fi to help cover hosting costs"},[n("svg",{class:"ui-icon nav-heart","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})]),h("Support ")],-1)])],2),e.isDarkMode?f("v-if",!0):(a(),l("li",K_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to dark mode","aria-label":"Switch to dark mode",onClick:t[1]||(t[1]=s=>{e.darkMode(!0)})},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(a(),l("li",Y_,[n("button",{type:"button",class:"nav-link nav-icon",title:"Switch to light mode","aria-label":"Switch to light mode",onClick:t[2]||(t[2]=s=>{e.darkMode(!1)})},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(a(),l("li",X_,[...t[23]||(t[23]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),h(" Sign in ")],-1)])])):f("v-if",!0),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(a(),l("li",Q_,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[3]||(t[3]=de(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(a(),l("li",J_,[n("a",Z_,[e.user?.photo?(a(),l("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,x_)):f("v-if",!0),n("span",eG,c(e.user?.username),1)]),n("div",tG,[n("h6",nG,"Signed in as @"+c(e.user?.username),1),t[25]||(t[25]=Pe('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource code',6)),e.headerShowSupport?(a(),l("a",sG,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-heart"})],-1),n("span",null,"Support the project",-1)])])):f("v-if",!0),t[26]||(t[26]=n("div",{class:"dropdown-divider"},null,-1)),t[27]||(t[27]=n("a",{class:"dropdown-item",href:"/api/user/logout",target:"_self"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-logout"})]),n("span",null,"Sign out")],-1))])])):f("v-if",!0)])])],2),e.generalMessage?(a(),l("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,oG)):f("v-if",!0),e.emailPromptOpen?(a(),l("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[8]||(t[8]=de(s=>e.respondToEmailPrompt("later"),["prevent"]))},[n("form",{onSubmit:t[7]||(t[7]=de(s=>e.respondToEmailPrompt("save"),["prevent"]))},[t[30]||(t[30]=n("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[31]||(t[31]=n("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[32]||(t[32]=n("label",{for:"email-prompt-address"},"Email address",-1)),O(n("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailPromptAddress=s),disabled:e.emailPromptBusy},null,8,iG),[[ft,e.emailPromptAddress]]),e.emailPromptError?(a(),l("p",rG,c(e.emailPromptError),1)):f("v-if",!0),n("div",aG,[n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[5]||(t[5]=s=>e.respondToEmailPrompt("later"))},"Remind me later",8,lG),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[6]||(t[6]=s=>e.respondToEmailPrompt("never"))},"Never",8,dG),n("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,uG)])],32)],32)):f("v-if",!0)],64)}var cG={class:"paper-landing"},pG={class:"paper-hero"},fG={class:"paper-hero-copy"},mG={class:"paper-cta-row"},hG={key:0,href:"/signin",target:"_self",class:"btn-hero"},gG={key:1,href:"/anonymize",class:"btn-hero"},yG={class:"paper-stats-meta"},vG={key:0,class:"paper-stats-meta-left"},bG={key:0,class:"paper-stats-grid"},wG={class:"paper-stat-label"},kG={key:0,class:"paper-stat-delta"},CG={class:"demo paper-wrap","aria-label":"Try redaction"},EG={class:"demo-terms"},SG={class:"demo-panes"},NG={class:"pane"},RG={class:"demo-input-wrap"},TG={class:"pane-body demo-backdrop","aria-hidden":"true"},PG={key:0,class:"demo-match"},DG={class:"pane pane-after"},AG={class:"pane-header"},IG={class:"pane-url"},OG={class:"meta-redact"},MG={class:"pane-body demo-output","aria-live":"polite"},VG=["title"],qG={class:"paper-features paper-wrap","aria-label":"Product features"},LG={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},$G=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],FG={class:"paper-eyebrow"},UG={class:"pf-num"},BG={class:"pf-name"},HG={class:"paper-feature-title"},zG={key:0,class:"serif-hy"},jG={class:"paper-feature-more"},_G={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},GG={key:0,class:"serif-hy"},WG=["href","target"],KG={class:"paper-features-stage"},YG=["id","aria-labelledby"],XG={class:"paper-frame"},QG={class:"paper-frame-bar","aria-hidden":"true"},JG={class:"url"},ZG=["aria-label"],xG={key:0,class:"fm-form"},eW={key:1,class:"fm-viewer"},tW={key:2,class:"fm-dash"};function Jf(e,t){let s=_e("partial-view");return a(),l("div",cG,[f(" Hero: copy on the left, the product on the right "),n("section",pG,[n("div",fG,[t[5]||(t[5]=n("div",{class:"paper-eyebrow"},"For double-anonymous peer review",-1)),t[6]||(t[6]=n("h1",{class:"hero-title"},[h(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[7]||(t[7]=n("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),n("div",mG,[e.user?f("v-if",!0):(a(),l("a",hG,[...t[3]||(t[3]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),h("Sign in with GitHub ",-1)])])),e.user?(a(),l("a",gG," Anonymize a repository \u2192 ")):f("v-if",!0),t[4]||(t[4]=n("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[8]||(t[8]=n("ul",{class:"paper-reassure"},[n("li",null,"Free, open source"),n("li",null,"Read-only access"),n("li",null,"Set an expiry date")],-1)),t[9]||(t[9]=n("p",{class:"paper-proof-mobile"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),t[10]||(t[10]=n("div",{class:"paper-hero-shot"},[n("div",{class:"paper-frame"},[n("div",{class:"paper-frame-bar","aria-hidden":"true"},[n("span",{class:"dots"},[n("i"),n("i"),n("i")]),n("span",{class:"url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"hero-mock",role:"img","aria-label":"A reviewer browsing an anonymized repository: the author, affiliation, and email in the README are replaced by anonymous terms"},[n("div",{class:"hero-mock-tree","aria-hidden":"true"},[n("div",{class:"hero-mock-tree-title"},"Files"),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("data")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("experiments")]),n("div",{class:"hero-mock-row is-folder"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})]),h("src")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("LICENSE")]),n("div",{class:"hero-mock-row is-active"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("README.md")]),n("div",{class:"hero-mock-row"},[n("svg",{viewBox:"0 0 16 16"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})]),h("requirements.txt")])]),n("div",{class:"hero-mock-doc","aria-hidden":"true"},[n("div",{class:"hero-mock-doc-bar"},[n("strong",null,"README.md"),n("span",{class:"hero-mock-count"},"3 redacted")]),n("div",{class:"hero-mock-doc-body"},[n("div",{class:"hero-mock-h1"},"DeepLearnUtils"),n("p",null,[h("Developed by "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 1"},[n("i",null,"1")]),h(" at "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 2"},[n("i",null,"2")]),h(".")]),n("p",{class:"hm-opt"},"Utilities for reproducing the paper\u2019s experiments."),n("div",{class:"hero-mock-h2 hm-opt"},"Quick start"),n("pre",{class:"hm-opt"},`pip install -r requirements.txt
+python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",role:"img","aria-label":"Redacted term 3"},[n("i",null,"3")])])])])])])],-1))]),f(" Live stats "),n("section",{class:T(["paper-stats paper-wrap",{"is-empty":e.statsEmpty()}]),id:"metrics","aria-label":"Usage over the last 60 days"},[n("div",yG,[e.statsEmpty()?f("v-if",!0):(a(),l("div",vG,[...t[11]||(t[11]=[n("span",{class:"paper-stats-dot","aria-hidden":"true"},null,-1),h(),n("span",null,[h("Live \xB7 last 60 days"),n("span",{class:"paper-stats-daily"}," \xB7 updated daily")],-1)])])),t[12]||(t[12]=n("div",{class:"paper-stats-meta-right"},"Used by authors at ICSE \xB7 FSE \xB7 OOPSLA",-1))]),e.statsEmpty()?f("v-if",!0):(a(),l("div",bG,[(a(!0),l(N,null,U(e.cards,(i,r)=>(a(),l("div",{class:"paper-stat-card",key:i?.key},[n("div",{class:T(["paper-stat-value",{"is-pending":!e.stat}])},c(e.stat?e.fmt?.bigNum(i?.total):"\u2014"),3),n("div",wG,c(i?.label),1),e.history[i?.key].bars?.length>1&&e.history[i?.key].deltaToday>0?(a(),l("div",kG," +"+c(e.fmt?.number(e.history[i?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))]))],2),f(" Before / after "),t[22]||(t[22]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Try it"),n("h2",null,[h("The same repository, "),n("em",null,"minus you.")])]),n("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),n("div",CG,[n("div",EG,[t[13]||(t[13]=n("label",{for:"demo-terms"},[h("Terms to redact "),n("span",null,[h("comma-separated"),n("span",{class:"dt-try"},", try adding your own")])],-1)),O(n("textarea",{id:"demo-terms",class:"demo-terms-input",rows:"1","onUpdate:modelValue":t[0]||(t[0]=i=>e.demoTerms=i),spellcheck:"false",autocomplete:"off",onKeydown:t[1]||(t[1]=Tt(de(()=>{},["prevent"]),["enter"]))},null,544),[[ft,e.demoTerms]])]),n("div",SG,[n("div",NG,[t[15]||(t[15]=n("div",{class:"pane-header"},[n("span",{class:"pane-label"},[h("Your repository "),n("span",{class:"pane-edit-hint"},"\xB7 editable")]),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")],-1)),n("div",RG,[n("div",TG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("mark",PG,c(i.original),1)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128)),t[14]||(t[14]=h("\u200B",-1))]),O(n("textarea",{class:"pane-body demo-input","onUpdate:modelValue":t[2]||(t[2]=i=>e.demoText=i),spellcheck:"false","aria-label":"Sample README to anonymize"},null,512),[[ft,e.demoText]])])]),n("div",DG,[n("div",AG,[t[16]||(t[16]=n("span",{class:"pane-label"},"What reviewers see",-1)),n("span",IG,[n("span",OG,c(e.demoCount())+" redacted",1)])]),n("div",MG,[(a(!0),l(N,null,U(e.demoParts(),(i,r)=>(a(),l(N,{key:r},[i.redacted?(a(),l("span",{key:0,class:"redact-chip",title:"Replaces \u201C"+i.original+"\u201D"},c(i.text),9,VG)):(a(),l(N,{key:1},[h(c(i.text),1)],64))],64))),128))])])])]),f(" What you get: one screenshot, three tabs "),t[23]||(t[23]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,"Anonymize, review, manage.")]),n("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),n("section",qG,[n("div",LG,[(a(!0),l(N,null,U(e.features,(i,r)=>(a(),l("div",{class:T(["paper-feature",{"is-on":e.feature===i?.key}]),key:i?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:o=>e.selectFeature(i.key),onKeydown:o=>e.featureKeydown(o,r),id:"feature-tab-"+i?.key,"aria-controls":"feature-panel-"+i?.key,"aria-selected":e.feature===i?.key,tabindex:e.feature===i?.key?0:-1},[n("span",FG,[n("span",UG,c(i?.num),1),t[17]||(t[17]=n("span",{class:"pf-sep"}," \xB7 ",-1)),n("span",BG,c(i?.eyebrow),1)]),n("span",HG,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",zG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)])],40,$G),n("div",jG,[n("span",_G,[h(c(i?.title.split("-")[0]),1),i?.title.includes("-")?(a(),l("span",GG,"-")):f("v-if",!0),h(c(i?.title.split("-").slice(1).join("-"))+" "+c(i?.accent),1)]),n("p",null,c(i?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(i)),target:e.featureTarget(i)},c(i?.cta)+" \u2192",9,WG)])],2))),128))]),n("div",KG,[(a(!0),l(N,null,U(e.features,(i,r)=>O((a(),l("div",{class:"paper-feature-panel",role:"tabpanel",key:i?.key,id:"feature-panel-"+i?.key,"aria-labelledby":"feature-tab-"+i?.key},[n("div",XG,[n("div",QG,[t[18]||(t[18]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",JG,c(i?.url),1)]),n("div",{class:T(["feat-mock","is-"+i?.key]),role:"img","aria-label":i?.alt},[i?.key==="anonymize"?(a(),l("div",xG,[...t[19]||(t[19]=[Pe('
GitHub repository
github.com/jane-smith/DeepLearnUtils
Terms to redact
Jane SmithMIT CSAILjane.smith@mit.edu+ Add term
Reviewers can see
ImagesPDFsLinksNotebooks
Expires
Mar 31, 2027
Anonymize repository
',6)])])):i?.key==="review"?(a(),l("div",eW,[...t[20]||(t[20]=[Pe(`
data
src
train.py
README.md
LICENSE
train.py48 lines \xB7 Python
1# Training loop for DeepLearnUtils
 2# Author: XXXX-1, XXXX-2
 3import torch
 4from utils import load_config
@@ -64,18 +64,18 @@ python experiments/run.py`),n("p",null,[h("Contact: "),n("span",{class:"redact",
 7    model = build_model(config)
 8    for epoch in range(config.epochs):
 9        loss = step(model)
-10        log("epoch %d: %.3f", epoch, loss)
`,2)])])):(a(),l("div",xG,[...t[21]||(t[21]=[Pe('
ProjectStatusViewsExpires
DeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027
vision-bench#212pull request \xB7 FSE 2027Ready12Never
graph-repairgr-91abUpdating5Jan 5, 2027
JarSiftOOPSLA 2025Expired72Sep 28, 2026
',5)])]))],10,QG)])],8,WG)),[[te,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Pe('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
What access does GitHub sign-in require?

The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

Ready for review?

Create an anonymous mirror in a couple of minutes. Reviewers just open the link.

',2)),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var eW={class:"paper-empty"},tW={class:"paper-empty-inner"},nW={key:0,class:"paper-eyebrow"},sW={key:1,class:"paper-eyebrow"},oW={key:2,class:"paper-empty-title"},iW=["textContent"];function Xf(e,t){return a(),l("div",eW,[n("div",tW,[e.error?f("v-if",!0):(a(),l("div",nW,"Working")),e.error?(a(),l("div",sW,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",oW,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,iW)):f("v-if",!0)])])}var rW={class:"container paper-page paper-settings"},aW={class:"paper-crumbs"},lW={class:"here"},dW={class:"paper-page-title"},uW={class:"paper-settings-body"},cW={class:"paper-settings-toc"},pW={href:"#conf-billing"},fW={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},mW={id:"conf-basics",class:"paper-settings-section"},hW={class:"form-group"},gW={class:"invalid-feedback"},yW={class:"invalid-feedback"},vW={class:"form-group"},bW={class:"invalid-feedback"},wW={class:"form-group"},kW={class:"invalid-feedback"},CW={class:"invalid-feedback"},EW={id:"conf-window",class:"paper-settings-section"},SW={class:"form-grid-2"},NW={class:"form-group"},RW={class:"invalid-feedback"},TW={class:"invalid-feedback"},PW={class:"form-group"},DW={class:"invalid-feedback"},AW={class:"invalid-feedback"},IW={id:"conf-rendering",class:"paper-settings-section"},OW={class:"form-check"},MW={class:"form-check-input",type:"checkbox",id:"link",name:"link"},VW={class:"form-check"},qW={class:"form-check-input",type:"checkbox",id:"image",name:"image"},LW={class:"form-check"},$W={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},FW={class:"form-check"},UW={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},BW={id:"conf-features",class:"paper-settings-section"},HW={class:"form-check"},zW={class:"form-check-input",type:"checkbox",id:"update",name:"update"},jW={class:"form-check"},_W={class:"form-check-input",type:"checkbox",id:"page",name:"page"},GW={id:"conf-plan",class:"paper-settings-section"},WW={key:0,class:"paper-section-copy"},KW={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},YW=["value","checked","onChange"],XW={class:"conference-tier-head"},QW={key:0,class:"conference-tier-pill"},JW={class:"conference-tier-who"},ZW={key:0,class:"conference-tier-price"},xW={class:"conference-tier-size"},eK={key:1,class:"conference-tier-per"},tK={key:2,class:"paper-plan-grid"},nK=["value"],sK=["textContent"],oK={class:"paper-plan-price"},iK=["innerHTML"],rK={key:3,class:"settings-notice",role:"status"},aK={key:0,id:"conf-billing",class:"paper-settings-section"},lK={class:"form-group"},dK={class:"form-group"},uK={class:"form-group"},cK={class:"form-group"},pK={class:"form-grid-3"},fK={class:"form-group"},mK={class:"form-group"},hK={class:"form-group"},gK={class:"form-group"},yK={class:"paper-settings-footer"},vK=["textContent"],bK=["textContent"],wK=["disabled"];function Qf(e,t){let s=Le("paper-scrollspy"),i=Le("field"),r=Le("form");return a(),l("div",rW,[n("div",aW,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=h(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=h(" \xA0/\xA0 ",-1)),n("span",lW,c(e.editionMode?"Edit":"New"),1)]),n("h1",dW,[h(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",uW,[O((a(),l("aside",cW,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Pe('BasicsReview windowRendering defaultsFeaturesPlan',5)),O(n("a",pW,"Billing",512),[[te,e.plan?.pricePerRepo>0]])])])),[[s]]),O((a(),l("form",fW,[n("section",mW,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",hW,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:o=>{e.options.name=o},value:e.options?.name,form:"conference",options:{}}]]),O(n("div",gW," The name of the conference is invalid. ",512),[[te,e.conference?.name?.errors?.invalid]]),O(n("div",yW," The name of the conference is required. ",512),[[te,e.conference?.name?.errors?.required]])]),n("div",vW,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),O(n("input",{type:"url",class:T(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:o=>{e.options.url=o},value:e.options?.url,form:"conference",options:{}}]]),O(n("div",bW," The url of the conference is invalid. ",512),[[te,e.conference?.url?.errors?.url]])]),n("div",wW,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:o=>{e.options.conferenceID=o},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[h("3\u201310 characters, letters, numbers, "),n("code",null,"-"),h(" and "),n("code",null,"_"),h(". Authors reference this when they anonymize.")],-1)),O(n("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[te,e.conference?.conferenceID?.errors?.used]]),O(n("div",kW," The conference ID is required. ",512),[[te,e.conference?.conferenceID?.errors?.required]]),O(n("div",CW," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[te,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",EW,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",SW,[n("div",NW,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),O(n("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:o=>{e.options.startDate=o},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),O(n("div",RW," Start date is required. ",512),[[te,e.conference?.startDate?.errors?.required]]),O(n("div",TW," Start date must be before end date. ",512),[[te,e.conference?.startDate?.errors?.invalid]])]),n("div",PW,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),O(n("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:o=>{e.options.endDate=o},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),O(n("div",DW," End date is required. ",512),[[te,e.conference?.endDate?.errors?.required]]),O(n("div",AW," End date is invalid. ",512),[[te,e.conference?.endDate?.errors?.invalid]])])])]),n("section",IW,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",OW,[O(n("input",MW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.link=o},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",VW,[O(n("input",qW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.image=o},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",LW,[O(n("input",$W,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.pdf=o},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",FW,[O(n("input",UW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.notebook=o},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",BW,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",HW,[O(n("input",zW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.update=o},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",jW,[O(n("input",_W,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.page=o},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",GW,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",WW,c(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(N,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",KW,[(a(!0),l(N,null,U(e.conferenceTiers(),o=>(a(),l("label",{class:T(["conference-tier",{"is-selected":e.options?.plan?.planID===o.id}]),key:o.id},[n("input",{type:"radio",name:"planPicker",value:o.id,checked:e.options?.plan?.planID===o.id,onChange:u=>e.options.plan.planID=o.id},null,40,YW),n("span",XW,[n("strong",null,c(o.name),1),o.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",QW,"Most common")):f("v-if",!0)]),n("span",JW,c(e.conferenceAudience(o.id)),1),o.amount!=null?(a(),l("span",ZW,[n("strong",null,c(e.conferenceAmount(o)),1),t[32]||(t[32]=h(" once",-1))])):f("v-if",!0),n("span",xW,"Up to "+c(o.repositories)+" papers \xB7 "+c(e.conferenceBytes(o.storage)),1),o.amount!=null&&o.repositories?(a(),l("span",eK,"About "+c(e.conferenceAmount(o,o.amount/o.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Pe('

Every package includes

  • A review window of up to 180 days
  • Automatic updates for every submission
  • Links stay online until the review window ends
  • A dashboard of every submission for chairs

Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science

Create the conference, then pay from its page. Authors can submit once the payment is confirmed.

',2))],64)):e.plans.length?(a(),l("div",tK,[(a(!0),l(N,null,U(e.plans,o=>(a(),l("label",{class:T(["paper-plan-card",{selected:e.options?.plan?.planID==o?.id}]),key:o.id},[O(n("input",{type:"radio",name:"planPicker",value:o?.id},null,8,nK),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:c(o?.name)},null,8,sK),n("div",oK,c(o.pricePerRepo>0?e.fmt?.number(o.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(o?.description)},null,8,iK)],2))),128))])):e.plansLoaded?(a(),l("p",rK,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",aK,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",lK,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.name=o},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",dK,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),O(n("input",{type:"email",class:T(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.email=o},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",uK,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.address=o},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",cK,[O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.address2=o},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",pK,[n("div",fK,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.city=o},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",mK,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.country=o},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",hK,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.zip=o},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",gK,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.vat=o},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",yK,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,vK)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,bK)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.submit(o)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,wK)])])),[[r,e.viewState]])])])}var kK={key:0,class:"dir-card","aria-label":"Repository files"},CK=["onClick"],EK={class:"dir-name"},SK=["href"],NK={class:"dir-name"},RK={class:"dir-meta"},TK={class:"file-card-head"},PK={class:"file-card-path"},DK={class:"breadcrumb paths","aria-label":"Path"},AK={class:"breadcrumb-item breadcrumb-root"},IK=["href","title","textContent"],OK=["aria-current"],MK=["aria-label"],VK={class:"mobile-sub ms"},qK=["title"],LK={class:"ms-item"},$K={key:1,class:"ms-item"},FK={key:2,class:"ms-item"},UK=["aria-label","title"],BK={class:"ui-icon","aria-hidden":"true"},HK=["href"],zK={key:0,class:"file-card-meta"},jK=["title"],_K={class:"meta-extra"},GK={key:1,class:"file-card-meta"},WK=["title"],KK={class:"file-card-actions"},YK={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},XK=["aria-checked"],QK=["aria-checked"],JK=["aria-checked"],ZK={key:1,class:"symbols"},xK=["aria-expanded"],eY={key:0,class:"symbols-menu",role:"menu"},tY={class:"symbols-head"},nY=["onClick"],sY={class:"symbols-name"},oY={class:"symbols-line"},iY=["title"],rY={key:3,class:"tb-view",role:"group","aria-label":"View tools"},aY=["title"],lY=["aria-pressed"],dY=["title"],uY={key:4,class:"tb-file",role:"group","aria-label":"File actions"},cY=["target","title","href"],pY=["aria-label","title"],fY={class:"ui-icon","aria-hidden":"true"},mY=["href"],hY=["target","href","download"],gY=["aria-label"],yY={class:"ui-icon","aria-hidden":"true"},vY=["href"],bY={key:6,class:"tb-toc-m"},wY=["aria-expanded"],kY=["aria-label"],CY=["aria-current","onClick"],EY=["aria-label"],SY={class:"tb-more"},NY=["aria-expanded"],RY={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},TY={key:0,class:"tb-menu-note"},PY={key:1,class:"tb-menu-note tb-menu-meta"},DY={key:2,class:"tb-menu-sep"},AY={key:4,class:"tb-menu-sep"},IY=["aria-checked"],OY={key:0,class:"tb-menu-check"},MY=["aria-checked","onClick"],VY={class:"ui-icon","aria-hidden":"true"},qY=["href"],LY={key:0,class:"tb-menu-check"},$Y={key:9,class:"tb-menu-sep"},FY=["target","href"],UY=["target","href"],BY=["target","href","download"],HY=["target","href"],zY=["href"],jY=["target","href"],_Y=["placeholder","aria-invalid"],GY={key:1,class:"file-card-body"},WY={key:2,class:"md-find-bar",role:"search"},KY=["value"],YY={class:"md-find-nav"},XY=["disabled"],QY=["disabled"],JY={class:"md-find-count","aria-live":"polite"},ZY=["aria-pressed"],xY={key:3,class:"reading-layout"},eX=["innerHTML"],tX={key:0,class:"readme-toc","aria-label":"On this page"},nX={class:"toc-rail"},sX=["aria-label"],oX=["href","aria-current","onClick"],iX=["aria-label"],rX={class:"file-card-head"},aX={class:"file-card-path"},lX={class:"breadcrumb paths","aria-label":"Path"},dX={class:"breadcrumb-item breadcrumb-root"},uX=["href","title","textContent"],cX=["aria-current"],pX=["aria-label"],fX={class:"mobile-sub ms"},mX=["title"],hX={class:"ms-item"},gX={key:1,class:"ms-item"},yX={key:2,class:"ms-item"},vX=["aria-label","title"],bX={class:"ui-icon","aria-hidden":"true"},wX=["href"],kX={class:"file-card-meta"},CX=["title"],EX={class:"file-card-actions"},SX={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},NX={key:1,class:"tb-file",role:"group","aria-label":"File actions"},RX=["target","title","href"],TX=["target","href","download"],PX={class:"tb-more"},DX=["aria-expanded"],AX={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},IX={key:0,class:"tb-menu-note"},OX={key:1,class:"tb-menu-sep"},MX=["target","href"],VX=["target","href","download"],qX=["target","href"],LX={key:0,class:"media-stage"},$X=["src","alt"],FX={key:1,class:"media-stage"},UX=["src"],BX={key:2,class:"media-stage is-audio"},HX=["src"],zX={key:4,class:"notebook-body"},jX={key:5,class:"file-state"},_X={class:"file-state-msg"},GX={key:0,class:"file-state-actions"},WX=["target","href","download"],KX={key:6,class:"file-state",role:"alert"},YX={class:"file-state-title"},XX={key:0,class:"file-state-msg"},QX={key:1,class:"file-state-msg"},JX={key:2,class:"file-state-actions"},ZX=["href"],xX={key:7,class:"file-state"},eQ={key:4,class:"file-error container d-flex h-100"},tQ={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},nQ={class:"paper-error-msg"},sQ={key:5,class:"file-error container d-flex h-100"},oQ={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},iQ={id:"viewer-error-title",class:"paper-empty-title"},rQ={class:"paper-error-actions"},aQ={key:0,href:"/",class:"btn btn-sm"},lQ={key:1,href:"/faq",class:"btn btn-sm"},dQ={key:2,class:"btn btn-outline-ink",href:"/dashboard"},uQ={key:6,class:"viewer-loading","aria-busy":"true"},cQ={class:"viewer-loading-status",role:"status","aria-live":"polite"},pQ={class:"viewer-loading-name sr-only"},fQ={key:0},mQ={class:"viewer-loading-lines","aria-hidden":"true"},hQ={key:7,class:"file-error container d-flex h-100"},gQ={key:8,class:"file-error container d-flex h-100"};function Jf(e,t){let s=_e("data-table"),i=_e("html-doc"),r=_e("pdfviewer"),o=_e("notebook"),u=Le("code-editor"),p=Le("data-tables");return a(),l(N,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",kK,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:T(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(N,null,U(e.rootEntries(),d=>(a(),l("li",{key:d.name},[d.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:g=>e.revealFolder(d.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",EK,c(d.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,CK)):(a(),l("a",{key:1,class:T(["dir-row",{"is-current":d.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(d.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",NK,c(d.name),1),n("span",RK,c(e.formatSize(d.size)),1)],10,SK))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=d=>e.dirExpanded=!0)},"Show all "+c(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:T(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",TK,[n("div",PK,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",DK,[n("li",AK,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,IK)]),(a(!0),l(N,null,U(e.paths,(d,g)=>(a(),l("li",{class:"breadcrumb-item","aria-current":g===e.paths.length-1?"page":null},[(a(!0),l(N,null,U(e.redactParts(d),(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,MK)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],8,OK))),256))]),n("span",VK,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,qK)):f("v-if",!0),n("span",LK,c(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",$K,c(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",FK,c(e.fmt?.number(e.content.split(` -`).length))+" lines",1)):f("v-if",!0)]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",BK,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,HK)]))],8,UK),[[te,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",zK,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,jK),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(c(e.languageName||"Text"),1),n("span",_K,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.fmt?.number(e.content.split(` -`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",GK,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,WK),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(N,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",KK,[e.isCsv()?(a(),l("div",YK,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,XK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="chart"}]),"aria-checked":e.csvView==="chart",onClick:t[5]||(t[5]=d=>e.csvView="chart"),title:"Chart the table"},"Chart",10,QK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[6]||(t[6]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,JK)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",ZK,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[7]||(t[7]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,xK),e.symbolsOpen?(a(),l("div",eY,[n("div",tY,c(e.symbols().length)+" "+c(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(N,null,U(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:g=>e.goToSymbol(d.line)},[n("span",{class:T(["symbols-kind","is-"+d.kind])},c(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",sY,c(d.name),1),n("span",oY,c(d.line),1)],8,nY))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[8]||(t[8]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,iY)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?(a(),l("div",rY,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[9]||(t[9]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,aY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[10]||(t[10]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,lY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[11]||(t[11]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,dY)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",uY,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,cY),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",fY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,mY)]))],8,pY)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,hY)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[13]||(t[13]=d=>e.copyContent())},[(a(),l("svg",yY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,vY)]))],8,gY)):f("v-if",!0),e.type=="html"&&e.tocCount()>=3?(a(),l("div",bY,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[14]||(t[14]=de(d=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,wY),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[16]||(t[16]=d=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:T(["tb-menu-toc","lvl-2","toc-title",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[15]||(t[15]=d=>e.scrollToHeading(null))},[e.tocTitle()?(a(!0),l(N,{key:0},U(e.tocTitle().parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,kY)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128)):(a(),l(N,{key:1},[h("Introduction")],64))],2),(a(!0),l(N,null,U(e.readmeToc(),d=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+d.id,class:T(["tb-menu-toc","lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:g=>e.scrollToHeading(d.id)},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,EY)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,CY))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",SY,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[17]||(t[17]=de(d=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",RY,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,NY),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",TY,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",PY,[h(c(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+c(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(N,{key:0},[h(" \xB7 "+c(e.fmt?.number(e.content.split(` -`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",DY)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",AY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[20]||(t[20]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[21]||(t[21]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",OY,"\u2713")):f("v-if",!0)],8,IY)):f("v-if",!0),e.isCsv()?(a(),l(N,{key:8},U(["table","chart","raw"],d=>n("button",{type:"button",role:"menuitemradio",class:"tb-csv-view",key:d,"aria-checked":e.csvView===d?"true":"false",onClick:g=>{e.csvView=d,e.moreOpen=!1}},[(a(),l("svg",VY,[n("use",{href:d==="raw"?"#ui-icon-code":d==="chart"?"#ui-icon-chart":"#ui-icon-list"},null,8,qY)])),h(c(d==="raw"?"Show as text":d==="chart"?"Show as chart":"Show as table"),1),e.csvView===d?(a(),l("span",LY,"\u2713")):f("v-if",!0)],8,MY)),64)):f("v-if",!0),e.type!="html"?(a(),l("div",$Y)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,FY)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,UY)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,BY)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,HY)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,zY)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,jY)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=de(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),O(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` -`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=Rt(de(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,_Y),[[ft,e.gotoValue]]),n("span",{class:T(["goto-hint",{"is-error":e.gotoError}])},c(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView!=="raw"?(a(),Nt(s,{key:e.paths?.join("/"),rows:e.csvRows(),name:e.paths?.[e.paths.length-1],"state-key":e.preview?null:"table",view:e.csvView},null,8,["rows","name","state-key","view"])):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?O((a(),l("div",GY,null,512)),[[u,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",WY,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Rt(de(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Rt(de(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,KY),n("span",YY,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[83]||(t[83]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,XY),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,QY)]),n("span",JY,c(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:T(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,ZY),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",xY,[O(n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,eX),[[p]]),e.tocCount()>=3?(a(),l("aside",tX,[t[85]||(t[85]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",nX,[n("a",{href:"#",class:T(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=de(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(N,{key:0},U(e.tocTitle().parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,sX)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128)):(a(),l(N,{key:1},[h("Introduction")],64))],2),(a(!0),l(N,null,U(e.readmeToc(),(d,g)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:de(m=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,iX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],10,oX))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Nt(i,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:T(["file-card file-card-media","view-"+e.type])},[n("header",rX,[n("div",aX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",lX,[n("li",dX,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,uX)]),(a(!0),l(N,null,U(e.paths,(d,g)=>(a(),l("li",{class:"breadcrumb-item","aria-current":g===e.paths.length-1?"page":null},[(a(!0),l(N,null,U(e.redactParts(d),(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,pX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],8,cX))),256))]),n("span",fX,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[87]||(t[87]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,mX)):f("v-if",!0),n("span",hX,c(e.fileKind()),1),e.imageSize?(a(),l("span",gX,c(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",yX,c(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=d=>e.copyPath())},[(a(),l("svg",bX,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,wX)]))],8,vX),[[te,e.filePath]])]),n("span",kX,[e.type=="IPython"&&e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,CX),t[89]||(t[89]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(c(e.fileKind()),1),e.imageSize?(a(),l(N,{key:1},[t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(N,{key:2},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",EX,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",SX,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),h("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",NX,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,RX),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,TX)])):f("v-if",!0),n("div",PX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=de(d=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",AX,[...t[94]||(t[94]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,DX),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",IX,[t[95]||(t[95]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",OX)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),h(c(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,MX)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[97]||(t[97]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,VX)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,qX)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=d=>e.copyPath())},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[100]||(t[100]=n("div",{class:"tb-menu-sep"},null,-1)),t[101]||(t[101]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",LX,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=d=>e.onImageLoad(d))},null,40,$X)])):f("v-if",!0),e.type=="media"?(a(),l("div",FX,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,UX)])):f("v-if",!0),e.type=="audio"?(a(),l("div",BX,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,HX)])):f("v-if",!0),e.type=="pdf"?(a(),Nt(r,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",zX,[$e(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",jX,[t[104]||(t[104]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[105]||(t[105]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",_X,c(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",GX,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[103]||(t[103]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,WX)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",KX,[t[107]||(t[107]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",YX,c(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",XX,c(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",QX,c(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",JX,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,ZX),t[106]||(t[106]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",xX,[...t[108]||(t[108]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",eQ,[n("div",tQ,[t[111]||(t[111]=Pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",nQ,[t[109]||(t[109]=h("This repository will be available in ",-1)),n("strong",null,c(e.rateLimitCountdown),1),t[110]||(t[110]=h(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",sQ,[n("section",oQ,[n("h1",iQ,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(N,{key:0},[n("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",rQ,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",aQ,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",lQ,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=d=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",dQ,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",uQ,[n("div",cQ,[n("strong",null,c(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",pQ,c(e.filePath),1),e.fileLoadingSlow?(a(),l("p",fQ,c(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",mQ,[(a(),l(N,null,U(10,d=>n("span",{key:d})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",hQ,[...t[112]||(t[112]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"repository"),h(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",gQ,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"file"),h(".")],-1)])])):f("v-if",!0)],64)}var yQ={class:"container page dashboard-page paper-page"},vQ={class:"row"},bQ={class:"w-100"},wQ={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},kQ={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},CQ={class:"flex-grow-1"},EQ={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},SQ={class:"d-flex flex-wrap",style:{gap:"6px"}},NQ={class:"dropdown"},RQ={class:"dropdown-menu","aria-labelledby":"dropdownSort"},TQ={class:"form-check dropdown-item"},PQ={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},DQ={class:"form-check dropdown-item"},AQ={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},IQ={class:"form-check dropdown-item"},OQ={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},MQ={class:"form-check dropdown-item"},VQ={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},qQ={class:"form-check dropdown-item"},LQ={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},$Q={class:"dropdown"},FQ={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},UQ={class:"form-check dropdown-item"},BQ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},HQ={class:"form-check dropdown-item"},zQ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},jQ={class:"form-check dropdown-item"},_Q={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},GQ={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},WQ={class:"filter-chip"},KQ=["onClick"],YQ={class:"repo-list w-100"},XQ={class:"repo-list-item-content"},QQ={class:"repo-list-item-main"},JQ={class:"repo-list-item-header"},ZQ=["textContent","href"],xQ=["textContent"],eJ=["textContent"],tJ={class:"repo-source"},nJ=["href"],sJ={class:"repo-date"},oJ={class:"repo-meta"},iJ={key:0,title:"Conference"},rJ=["title"],aJ=["title"],lJ=["title"],dJ={key:1},uJ={class:"repo-list-item-actions"},cJ={class:"dropdown"},pJ={class:"dropdown-menu dropdown-menu-right"},fJ=["href"],mJ=["onClick"],hJ=["onClick"],gJ=["onClick"],yJ=["href"],vJ={key:0,class:"repo-list-empty"};function Zf(e,t){let s=Le("field"),i=Le("form");return a(),l("div",yQ,[n("div",vQ,[n("div",bQ,[t[12]||(t[12]=Pe('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),f(" Search + filters row "),O((a(),l("form",wQ,[n("div",kQ,[n("div",CQ,[O(n("input",EQ,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",SQ,[n("div",NQ,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",RQ,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",TQ,[O(n("input",PQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",DQ,[O(n("input",AQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",IQ,[O(n("input",OQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",MQ,[O(n("input",VQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",qQ,[O(n("input",LQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",$Q,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",FQ,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",UQ,[O(n("input",BQ,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.ready=r},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",HQ,[O(n("input",zQ,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.expired=r},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",jQ,[O(n("input",_Q,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.removed=r},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),O(n("div",GQ,[(a(!0),l(N,null,U(e.filters?.status,(r,o,u)=>O((a(),l("span",WQ,[h(c(e.fmt?.title(o))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[o]=!0}}," \xD7 ",8,KQ)],512)),[[te,!r]])),256))],512),[[te,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",YQ,[(a(!0),l(N,null,U(e.filteredPullRequests,(r,o)=>(a(),l("li",{class:T(["repo-list-item",{"repo-inactive":r?.status=="expired"||r?.status=="removed"||r?.status=="error"}])},[n("div",XQ,[n("div",QQ,[n("div",JQ,[n("a",{class:"repo-name",textContent:c(r?.pullRequestId),href:e.safeUrl("/pr/"+r?.pullRequestId)},null,8,ZQ),n("span",{class:T(["status-badge",{"status-removed":r?.status=="removed"||r?.status=="expired"||r?.status=="removing"||r?.status=="expiring","status-preparing":r?.status=="preparing"||r?.status=="download","status-ready":r?.status=="ready","status-error":r?.status=="error"}])},[n("span",{textContent:c(e.fmt?.title(r?.status))},null,8,xQ),r?.status=="error"?(a(),l("span",{key:0,textContent:c(": "+r?.statusMessage)},null,8,eJ)):f("v-if",!0)],2)]),n("div",tJ,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+r?.source?.repositoryFullName+"/pull/"+r?.source?.pullRequestId)},c(r?.source?.repositoryFullName)+"#"+c(r?.source?.pullRequestId),9,nJ)]),n("span",{class:T(["status-badge",{"status-ready":r?.merged,"status-removed":r?.state=="open","status-error":r?.state=="closed"&&!r?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(r?.merged?"merged":r?.state)),3),n("span",sJ,"anonymized "+c(e.fmt?.humanTime(r?.anonymizeDate)),1)])]),n("div",oJ,[r?.conference?(a(),l("span",iJ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(r?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+r?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" "+c(e.fmt?.number(r?.options?.terms?.length)),1)],8,rJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(r?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),h(" "+c(e.fmt?.number(r?.pageView)),1)],8,aJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(r?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),h(" "+c(e.fmt?.humanTime(r?.lastView)),1)],8,lJ),r?.options?.expirationMode!="never"&&r?.status=="ready"?(a(),l("span",dJ,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Expire: "+c(e.fmt?.humanTime(r?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",uJ,[n("div",cJ,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",pJ,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+r?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,fJ),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(r),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update ",-1)])],8,mJ),[[te,r?.status=="ready"||r?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(r),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable ",-1)])],8,hJ),[[te,r?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removePullRequest(r),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,gJ),[[te,r?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+r?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View PR ",-1)])],8,yJ)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",vJ,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var bJ={class:"container paper-page user-settings"},wJ={class:"settings-nav","aria-label":"Settings"},kJ=["aria-current","onClick"],CJ={class:"settings-row"},EJ=["rows"],SJ={class:"settings-syntax"},NJ={class:"invalid-feedback"},RJ={class:"settings-row"},TJ={class:"settings-checks"},PJ={class:"settings-check"},DJ={class:"form-check-input",type:"checkbox",id:"link",name:"link"},AJ={class:"settings-check"},IJ={class:"form-check-input",type:"checkbox",id:"image",name:"image"},OJ={class:"settings-check"},MJ={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},VJ={class:"settings-check"},qJ={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},LJ={class:"settings-check"},$J={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},FJ={class:"settings-check"},UJ={class:"form-check-input",type:"checkbox",id:"page",name:"page"},BJ={class:"settings-row"},HJ={class:"settings-check"},zJ={class:"form-check-input",type:"checkbox",id:"update",name:"update"},jJ={class:"settings-row"},_J={class:"form-control",id:"expiration",name:"expiration"},GJ={class:"settings-help"},WJ={class:"settings-save"},KJ={class:"settings-save-status draft-status",role:"status"},YJ={key:0},XJ={key:1},QJ={key:2},JJ=["disabled"],ZJ={key:1,class:"settings-save-error",role:"alert"},xJ=["aria-busy"],eZ={key:0,role:"status"},tZ={key:1,class:"settings-notice",role:"alert"},nZ=["disabled"],sZ={key:2,class:"settings-notice",role:"status"},oZ={key:3,class:"settings-notice",role:"status"},iZ=["disabled"],rZ={class:"billing-summary"},aZ={class:"billing-summary-head"},lZ={class:"billing-plan-name"},dZ={key:0,class:"billing-plan-meta"},uZ={key:1,class:"billing-plan-meta"},cZ={key:0,class:"billing-summary-actions"},pZ=["disabled"],fZ={id:"settings-quota"},mZ={key:1,role:"status"},hZ={key:0,class:"settings-notice"},gZ={key:1,class:"settings-notice"},yZ={key:2,class:"settings-notice"},vZ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},bZ={key:0,class:"billing-offers"},wZ={key:0,class:"billing-offer is-recommended"},kZ={class:"billing-offer-price"},CZ={class:"billing-offer-list"},EZ=["disabled"],SZ={key:1,class:"billing-offer"},NZ={class:"billing-offer-head"},RZ={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},TZ=["aria-checked","onClick"],PZ={key:0,class:"billing-toggle-save"},DZ={class:"billing-offer-price"},AZ={class:"billing-offer-list"},IZ=["disabled"],OZ={key:1,class:"billing-addons"},MZ={class:"billing-addon-rows"},VZ={class:"billing-addon-price"},qZ=["onClick","disabled"],LZ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},$Z={class:"billing-buy-info"},FZ={class:"billing-offer-price"},UZ={class:"billing-offer-list"},BZ={class:"billing-buy-form"},HZ=["value"],zZ=["disabled"],jZ={key:1,class:"billing-buy-desc"},_Z={key:2,class:"billing-footnote"},GZ={class:"billing-compare"},WZ={class:"billing-compare-card"},KZ={class:"settings-comparison"},YZ={key:0,scope:"col",class:"is-recommended"},XZ={key:1,scope:"col"},QZ={key:0,class:"is-recommended"},JZ={key:1},ZZ={key:0,class:"is-recommended"},xZ={key:1},ex={key:0,class:"is-recommended"},tx={key:1},nx={key:0,class:"is-recommended"},sx={key:1},ox={key:0,class:"is-recommended"},ix={key:1},rx={key:0,class:"is-recommended"},ax={key:1},lx={key:3,class:"billing-footnote"},dx={key:5,class:"billing-section"},ux={class:"billing-section-head"},cx=["disabled"],px={key:0,class:"billing-empty"},fx={key:1,class:"billing-history-head","aria-hidden":"true"},mx={key:2,class:"billing-history"},hx={class:"billing-history-main"},gx=["href"],yx=["href"],vx={class:"billing-history-term"},bx={class:"billing-history-paid"},wx={class:"billing-history-status"},kx={class:"billing-manage"},Cx={key:0},Ex={key:1},Sx=["disabled"],Nx={class:"billing-conference"},Rx={id:"settings-account",class:"settings-account-panel"},Tx={class:"paper-account-card"},Px=["src"],Dx={class:"paper-account-identity"},Ax={class:"paper-account-name"},Ix=["disabled"],Ox={key:0,role:"status"},Mx={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Vx=["disabled"],qx={key:3,role:"status"},Lx={class:"paper-danger-zone"},$x={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Fx=["textContent"],Ux=["disabled"],Bx={key:1,class:"settings-delete-confirm"},Hx={for:"delete-username"},zx={class:"settings-actions"},jx=["disabled"],_x=["disabled"];function xf(e,t){let s=_e("quota-usage"),i=Le("field"),r=Le("form");return a(),l("div",bJ,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",wJ,[(a(),l(N,null,U([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],o=>n("button",{type:"button","aria-current":e.settingsTab===o.id?"page":null,onClick:u=>e.settingsTab=o.id},c(o.label),9,kJ)),64))]),O(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),O((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=o=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=de(o=>e.submitForm(o,()=>{e.saveDefault(o)}),["prevent"]))},[n("section",CJ,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[O(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` +10 log("epoch %d: %.3f", epoch, loss)
`,2)])])):(a(),l("div",tW,[...t[21]||(t[21]=[Pe('
ProjectStatusViewsExpires
DeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027
vision-bench#212pull request \xB7 FSE 2027Ready12Never
graph-repairgr-91abUpdating5Jan 5, 2027
JarSiftOOPSLA 2025Expired72Sep 28, 2026
',5)])]))],10,ZG)])],8,YG)),[[te,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Pe('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
What access does GitHub sign-in require?

The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

Ready for review?

Create an anonymous mirror in a couple of minutes. Reviewers just open the link.

',2)),$e(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var nW={class:"paper-empty"},sW={class:"paper-empty-inner"},oW={key:0,class:"paper-eyebrow"},iW={key:1,class:"paper-eyebrow"},rW={key:2,class:"paper-empty-title"},aW=["textContent"];function Zf(e,t){return a(),l("div",nW,[n("div",sW,[e.error?f("v-if",!0):(a(),l("div",oW,"Working")),e.error?(a(),l("div",iW,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",rW,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,aW)):f("v-if",!0)])])}var lW={class:"container paper-page paper-settings"},dW={class:"paper-crumbs"},uW={class:"here"},cW={class:"paper-page-title"},pW={class:"paper-settings-body"},fW={class:"paper-settings-toc"},mW={href:"#conf-billing"},hW={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},gW={id:"conf-basics",class:"paper-settings-section"},yW={class:"form-group"},vW={class:"invalid-feedback"},bW={class:"invalid-feedback"},wW={class:"form-group"},kW={class:"invalid-feedback"},CW={class:"form-group"},EW={class:"invalid-feedback"},SW={class:"invalid-feedback"},NW={id:"conf-window",class:"paper-settings-section"},RW={class:"form-grid-2"},TW={class:"form-group"},PW={class:"invalid-feedback"},DW={class:"invalid-feedback"},AW={class:"form-group"},IW={class:"invalid-feedback"},OW={class:"invalid-feedback"},MW={id:"conf-rendering",class:"paper-settings-section"},VW={class:"form-check"},qW={class:"form-check-input",type:"checkbox",id:"link",name:"link"},LW={class:"form-check"},$W={class:"form-check-input",type:"checkbox",id:"image",name:"image"},FW={class:"form-check"},UW={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},BW={class:"form-check"},HW={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},zW={id:"conf-features",class:"paper-settings-section"},jW={class:"form-check"},_W={class:"form-check-input",type:"checkbox",id:"update",name:"update"},GW={class:"form-check"},WW={class:"form-check-input",type:"checkbox",id:"page",name:"page"},KW={id:"conf-plan",class:"paper-settings-section"},YW={key:0,class:"paper-section-copy"},XW={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},QW=["value","checked","onChange"],JW={class:"conference-tier-head"},ZW={key:0,class:"conference-tier-pill"},xW={class:"conference-tier-who"},eK={key:0,class:"conference-tier-price"},tK={class:"conference-tier-size"},nK={key:1,class:"conference-tier-per"},sK={key:2,class:"paper-plan-grid"},oK=["value"],iK=["textContent"],rK={class:"paper-plan-price"},aK=["innerHTML"],lK={key:3,class:"settings-notice",role:"status"},dK={key:0,id:"conf-billing",class:"paper-settings-section"},uK={class:"form-group"},cK={class:"form-group"},pK={class:"form-group"},fK={class:"form-group"},mK={class:"form-grid-3"},hK={class:"form-group"},gK={class:"form-group"},yK={class:"form-group"},vK={class:"form-group"},bK={class:"paper-settings-footer"},wK=["textContent"],kK=["textContent"],CK=["disabled"];function xf(e,t){let s=Le("paper-scrollspy"),i=Le("field"),r=Le("form");return a(),l("div",lW,[n("div",dW,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=h(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=h(" \xA0/\xA0 ",-1)),n("span",uW,c(e.editionMode?"Edit":"New"),1)]),n("h1",cW,[h(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",pW,[O((a(),l("aside",fW,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Pe('BasicsReview windowRendering defaultsFeaturesPlan',5)),O(n("a",mW,"Billing",512),[[te,e.plan?.pricePerRepo>0]])])])),[[s]]),O((a(),l("form",hW,[n("section",gW,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",yW,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:o=>{e.options.name=o},value:e.options?.name,form:"conference",options:{}}]]),O(n("div",vW," The name of the conference is invalid. ",512),[[te,e.conference?.name?.errors?.invalid]]),O(n("div",bW," The name of the conference is required. ",512),[[te,e.conference?.name?.errors?.required]])]),n("div",wW,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),O(n("input",{type:"url",class:T(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:o=>{e.options.url=o},value:e.options?.url,form:"conference",options:{}}]]),O(n("div",kW," The url of the conference is invalid. ",512),[[te,e.conference?.url?.errors?.url]])]),n("div",CW,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:o=>{e.options.conferenceID=o},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[h("3\u201310 characters, letters, numbers, "),n("code",null,"-"),h(" and "),n("code",null,"_"),h(". Authors reference this when they anonymize.")],-1)),O(n("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[te,e.conference?.conferenceID?.errors?.used]]),O(n("div",EW," The conference ID is required. ",512),[[te,e.conference?.conferenceID?.errors?.required]]),O(n("div",SW," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[te,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",NW,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",RW,[n("div",TW,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),O(n("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:o=>{e.options.startDate=o},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),O(n("div",PW," Start date is required. ",512),[[te,e.conference?.startDate?.errors?.required]]),O(n("div",DW," Start date must be before end date. ",512),[[te,e.conference?.startDate?.errors?.invalid]])]),n("div",AW,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),O(n("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:o=>{e.options.endDate=o},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),O(n("div",IW," End date is required. ",512),[[te,e.conference?.endDate?.errors?.required]]),O(n("div",OW," End date is invalid. ",512),[[te,e.conference?.endDate?.errors?.invalid]])])])]),n("section",MW,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",VW,[O(n("input",qW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.link=o},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",LW,[O(n("input",$W,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.image=o},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",FW,[O(n("input",UW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.pdf=o},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",BW,[O(n("input",HW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.notebook=o},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",zW,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",jW,[O(n("input",_W,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.update=o},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",GW,[O(n("input",WW,null,512),[[i,{state:e.viewState,set:o=>{e.options.options.page=o},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",KW,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",YW,c(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(N,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",XW,[(a(!0),l(N,null,U(e.conferenceTiers(),o=>(a(),l("label",{class:T(["conference-tier",{"is-selected":e.options?.plan?.planID===o.id}]),key:o.id},[n("input",{type:"radio",name:"planPicker",value:o.id,checked:e.options?.plan?.planID===o.id,onChange:u=>e.options.plan.planID=o.id},null,40,QW),n("span",JW,[n("strong",null,c(o.name),1),o.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",ZW,"Most common")):f("v-if",!0)]),n("span",xW,c(e.conferenceAudience(o.id)),1),o.amount!=null?(a(),l("span",eK,[n("strong",null,c(e.conferenceAmount(o)),1),t[32]||(t[32]=h(" once",-1))])):f("v-if",!0),n("span",tK,"Up to "+c(o.repositories)+" papers \xB7 "+c(e.conferenceBytes(o.storage)),1),o.amount!=null&&o.repositories?(a(),l("span",nK,"About "+c(e.conferenceAmount(o,o.amount/o.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Pe('

Every package includes

  • A review window of up to 180 days
  • Automatic updates for every submission
  • Links stay online until the review window ends
  • A dashboard of every submission for chairs

Nothing renews \xB7 Tax shown at checkout \xB7 Expecting more submissions? Email tdurieux@anonymous.4open.science

Create the conference, then pay from its page. Authors can submit once the payment is confirmed.

',2))],64)):e.plans.length?(a(),l("div",sK,[(a(!0),l(N,null,U(e.plans,o=>(a(),l("label",{class:T(["paper-plan-card",{selected:e.options?.plan?.planID==o?.id}]),key:o.id},[O(n("input",{type:"radio",name:"planPicker",value:o?.id},null,8,oK),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:c(o?.name)},null,8,iK),n("div",rK,c(o.pricePerRepo>0?e.fmt?.number(o.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(o?.description)},null,8,aK)],2))),128))])):e.plansLoaded?(a(),l("p",lK,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",dK,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",uK,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.name=o},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",cK,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),O(n("input",{type:"email",class:T(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.email=o},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",pK,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.address=o},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",fK,[O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.address2=o},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",mK,[n("div",hK,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.city=o},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",gK,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.country=o},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",yK,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.zip=o},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",vK,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),O(n("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:o=>{e.options.billing.vat=o},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",bK,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,wK)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,kK)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=de(o=>e.submitForm(o,()=>{e.submit(o)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,CK)])])),[[r,e.viewState]])])])}var EK={key:0,class:"dir-card","aria-label":"Repository files"},SK=["onClick"],NK={class:"dir-name"},RK=["href"],TK={class:"dir-name"},PK={class:"dir-meta"},DK={class:"file-card-head"},AK={class:"file-card-path"},IK={class:"breadcrumb paths","aria-label":"Path"},OK={class:"breadcrumb-item breadcrumb-root"},MK=["href","title","textContent"],VK=["aria-current"],qK=["aria-label"],LK={class:"mobile-sub ms"},$K=["title"],FK={class:"ms-item"},UK={key:1,class:"ms-item"},BK={key:2,class:"ms-item"},HK=["aria-label","title"],zK={class:"ui-icon","aria-hidden":"true"},jK=["href"],_K={key:0,class:"file-card-meta"},GK=["title"],WK={class:"meta-extra"},KK={key:1,class:"file-card-meta"},YK=["title"],XK={class:"file-card-actions"},QK={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},JK=["aria-checked"],ZK=["aria-checked"],xK=["aria-checked"],eY={key:1,class:"symbols"},tY=["aria-expanded"],nY={key:0,class:"symbols-menu",role:"menu"},sY={class:"symbols-head"},oY=["onClick"],iY={class:"symbols-name"},rY={class:"symbols-line"},aY=["title"],lY={key:3,class:"tb-view",role:"group","aria-label":"View tools"},dY=["title"],uY=["aria-pressed"],cY=["title"],pY={key:4,class:"tb-file",role:"group","aria-label":"File actions"},fY=["target","title","href"],mY=["aria-label","title"],hY={class:"ui-icon","aria-hidden":"true"},gY=["href"],yY=["target","href","download"],vY=["aria-label"],bY={class:"ui-icon","aria-hidden":"true"},wY=["href"],kY={key:6,class:"tb-toc-m"},CY=["aria-expanded"],EY=["aria-label"],SY=["aria-current","onClick"],NY=["aria-label"],RY={class:"tb-more"},TY=["aria-expanded"],PY={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},DY={key:0,class:"tb-menu-note"},AY={key:1,class:"tb-menu-note tb-menu-meta"},IY={key:2,class:"tb-menu-sep"},OY={key:4,class:"tb-menu-sep"},MY=["aria-checked"],VY={key:0,class:"tb-menu-check"},qY=["aria-checked","onClick"],LY={class:"ui-icon","aria-hidden":"true"},$Y=["href"],FY={key:0,class:"tb-menu-check"},UY={key:9,class:"tb-menu-sep"},BY=["target","href"],HY=["target","href"],zY=["target","href","download"],jY=["target","href"],_Y=["href"],GY=["target","href"],WY=["placeholder","aria-invalid"],KY={key:1,class:"file-card-body"},YY={key:2,class:"md-find-bar",role:"search"},XY=["value"],QY={class:"md-find-nav"},JY=["disabled"],ZY=["disabled"],xY={class:"md-find-count","aria-live":"polite"},eX=["aria-pressed"],tX={key:3,class:"reading-layout"},nX=["innerHTML"],sX={key:0,class:"readme-toc","aria-label":"On this page"},oX={class:"toc-rail"},iX=["aria-label"],rX=["href","aria-current","onClick"],aX=["aria-label"],lX={class:"file-card-head"},dX={class:"file-card-path"},uX={class:"breadcrumb paths","aria-label":"Path"},cX={class:"breadcrumb-item breadcrumb-root"},pX=["href","title","textContent"],fX=["aria-current"],mX=["aria-label"],hX={class:"mobile-sub ms"},gX=["title"],yX={class:"ms-item"},vX={key:1,class:"ms-item"},bX={key:2,class:"ms-item"},wX=["aria-label","title"],kX={class:"ui-icon","aria-hidden":"true"},CX=["href"],EX={class:"file-card-meta"},SX=["title"],NX={class:"file-card-actions"},RX={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},TX={key:1,class:"tb-file",role:"group","aria-label":"File actions"},PX=["target","title","href"],DX=["target","href","download"],AX={class:"tb-more"},IX=["aria-expanded"],OX={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},MX={key:0,class:"tb-menu-note"},VX={key:1,class:"tb-menu-sep"},qX=["target","href"],LX=["target","href","download"],$X=["target","href"],FX={key:0,class:"media-stage"},UX=["src","alt"],BX={key:1,class:"media-stage"},HX=["src"],zX={key:2,class:"media-stage is-audio"},jX=["src"],_X={key:4,class:"notebook-body"},GX={key:5,class:"file-state"},WX={class:"file-state-msg"},KX={key:0,class:"file-state-actions"},YX=["target","href","download"],XX={key:6,class:"file-state",role:"alert"},QX={class:"file-state-title"},JX={key:0,class:"file-state-msg"},ZX={key:1,class:"file-state-msg"},xX={key:2,class:"file-state-actions"},eQ=["href"],tQ={key:7,class:"file-state"},nQ={key:4,class:"file-error container d-flex h-100"},sQ={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},oQ={class:"paper-error-msg"},iQ={key:5,class:"file-error container d-flex h-100"},rQ={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},aQ={id:"viewer-error-title",class:"paper-empty-title"},lQ={class:"paper-error-actions"},dQ={key:0,href:"/",class:"btn btn-sm"},uQ={key:1,href:"/faq",class:"btn btn-sm"},cQ={key:2,class:"btn btn-outline-ink",href:"/dashboard"},pQ={key:6,class:"viewer-loading","aria-busy":"true"},fQ={class:"viewer-loading-status",role:"status","aria-live":"polite"},mQ={class:"viewer-loading-name sr-only"},hQ={key:0},gQ={class:"viewer-loading-lines","aria-hidden":"true"},yQ={key:7,class:"file-error container d-flex h-100"},vQ={key:8,class:"file-error container d-flex h-100"};function em(e,t){let s=_e("data-table"),i=_e("html-doc"),r=_e("pdfviewer"),o=_e("notebook"),u=Le("code-editor"),p=Le("data-tables");return a(),l(N,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",EK,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:T(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(N,null,U(e.rootEntries(),d=>(a(),l("li",{key:d.name},[d.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:g=>e.revealFolder(d.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",NK,c(d.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,SK)):(a(),l("a",{key:1,class:T(["dir-row",{"is-current":d.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(d.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",TK,c(d.name),1),n("span",PK,c(e.formatSize(d.size)),1)],10,RK))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=d=>e.dirExpanded=!0)},"Show all "+c(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:T(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",DK,[n("div",AK,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",IK,[n("li",OK,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,MK)]),(a(!0),l(N,null,U(e.paths,(d,g)=>(a(),l("li",{class:"breadcrumb-item","aria-current":g===e.paths.length-1?"page":null},[(a(!0),l(N,null,U(e.redactParts(d),(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,qK)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],8,VK))),256))]),n("span",LK,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,$K)):f("v-if",!0),n("span",FK,c(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",UK,c(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",BK,c(e.fmt?.number(e.content.split(` +`).length))+" lines",1)):f("v-if",!0)]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=d=>e.copyPath())},[(a(),l("svg",zK,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,jK)]))],8,HK),[[te,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",_K,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,GK),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(c(e.languageName||"Text"),1),n("span",WK,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.fmt?.number(e.content.split(` +`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",KK,[e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,YK),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(N,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",XK,[e.isCsv()?(a(),l("div",QK,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=d=>e.csvView="table")},"Table",10,JK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="chart"}]),"aria-checked":e.csvView==="chart",onClick:t[5]||(t[5]=d=>e.csvView="chart"),title:"Chart the table"},"Chart",10,ZK),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[6]||(t[6]=d=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,xK)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",eY,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[7]||(t[7]=d=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,tY),e.symbolsOpen?(a(),l("div",nY,[n("div",sY,c(e.symbols().length)+" "+c(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(N,null,U(e.symbols(),d=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:d.line+d.name,onClick:g=>e.goToSymbol(d.line)},[n("span",{class:T(["symbols-kind","is-"+d.kind])},c(d.kind==="class"?"C":d.kind==="function"?"\u0192":"v"),3),n("span",iY,c(d.name),1),n("span",rY,c(d.line),1)],8,oY))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[8]||(t[8]=d=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,aY)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?(a(),l("div",lY,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[9]||(t[9]=d=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,dY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[10]||(t[10]=d=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,uY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[11]||(t[11]=d=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,cY)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",pY,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,fY),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=d=>e.copyContent())},[(a(),l("svg",hY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,gY)]))],8,mY)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,yY)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[13]||(t[13]=d=>e.copyContent())},[(a(),l("svg",bY,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,wY)]))],8,vY)):f("v-if",!0),e.type=="html"&&e.tocCount()>=3?(a(),l("div",kY,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[14]||(t[14]=de(d=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,CY),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[16]||(t[16]=d=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:T(["tb-menu-toc","lvl-2","toc-title",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[15]||(t[15]=d=>e.scrollToHeading(null))},[e.tocTitle()?(a(!0),l(N,{key:0},U(e.tocTitle().parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,EY)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128)):(a(),l(N,{key:1},[h("Introduction")],64))],2),(a(!0),l(N,null,U(e.readmeToc(),d=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+d.id,class:T(["tb-menu-toc","lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:g=>e.scrollToHeading(d.id)},[(a(!0),l(N,null,U(d.parts,(g,m)=>(a(),l(N,{key:m},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,c(g.n),1)],8,NY)):(a(),l(N,{key:1},[h(c(g.t),1)],64))],64))),128))],10,SY))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",RY,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[17]||(t[17]=de(d=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",PY,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,TY),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",DY,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",AY,[h(c(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+c(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(N,{key:0},[h(" \xB7 "+c(e.fmt?.number(e.content.split(` +`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",IY)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[18]||(t[18]=d=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",OY)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[19]||(t[19]=d=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[20]||(t[20]=d=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[21]||(t[21]=d=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",VY,"\u2713")):f("v-if",!0)],8,MY)):f("v-if",!0),e.isCsv()?(a(),l(N,{key:8},U(["table","chart","raw"],d=>n("button",{type:"button",role:"menuitemradio",class:"tb-csv-view",key:d,"aria-checked":e.csvView===d?"true":"false",onClick:g=>{e.csvView=d,e.moreOpen=!1}},[(a(),l("svg",LY,[n("use",{href:d==="raw"?"#ui-icon-code":d==="chart"?"#ui-icon-chart":"#ui-icon-list"},null,8,$Y)])),h(c(d==="raw"?"Show as text":d==="chart"?"Show as chart":"Show as table"),1),e.csvView===d?(a(),l("span",FY,"\u2713")):f("v-if",!0)],8,qY)),64)):f("v-if",!0),e.type!="html"?(a(),l("div",UY)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,BY)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,HY)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,zY)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,jY)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,_Y)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,GY)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=d=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=de(d=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),O(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` +`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=d=>e.gotoValue=d),onKeydown:t[25]||(t[25]=Tt(de(d=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,WY),[[ft,e.gotoValue]]),n("span",{class:T(["goto-hint",{"is-error":e.gotoError}])},c(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView!=="raw"?(a(),Rt(s,{key:e.paths?.join("/"),rows:e.csvRows(),name:e.paths?.[e.paths.length-1],"state-key":e.preview?null:"table",view:e.csvView},null,8,["rows","name","state-key","view"])):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView!=="raw")?O((a(),l("div",KY,null,512)),[[u,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",YY,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=d=>{e.mdFindQuery=d.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Tt(de(d=>d.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Tt(de(d=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,XY),n("span",QY,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=d=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[83]||(t[83]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,JY),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=d=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,ZY)]),n("span",xY,c(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:T(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=d=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,eX),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=d=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",tX,[O(n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,nX),[[p]]),e.tocCount()>=3?(a(),l("aside",sX,[t[85]||(t[85]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",oX,[n("a",{href:"#",class:T(["lvl-2 toc-top",{"is-active":!e.activeHeading||e.activeHeading===e.tocTitle()?.id}]),onClick:t[34]||(t[34]=de(d=>e.scrollToHeading(null),["prevent"]))},[e.tocTitle()?(a(!0),l(N,{key:0},U(e.tocTitle().parts,(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,iX)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128)):(a(),l(N,{key:1},[h("Introduction")],64))],2),(a(!0),l(N,null,U(e.readmeToc(),(d,g)=>(a(),l("a",{key:d.id,href:"#"+d.id,class:T(["lvl-"+(d.depth+2),{"is-active":e.activeHeading===d.id}]),"aria-current":e.activeHeading===d.id?"location":null,onClick:de(m=>e.scrollToHeading(d.id),["prevent"])},[(a(!0),l(N,null,U(d.parts,(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,aX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],10,rX))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Rt(i,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:T(["file-card file-card-media","view-"+e.type])},[n("header",lX,[n("div",dX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=d=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",uX,[n("li",cX,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:c(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,pX)]),(a(!0),l(N,null,U(e.paths,(d,g)=>(a(),l("li",{class:"breadcrumb-item","aria-current":g===e.paths.length-1?"page":null},[(a(!0),l(N,null,U(e.redactParts(d),(m,v)=>(a(),l(N,{key:v},[m.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+m.n},[n("i",null,c(m.n),1)],8,mX)):(a(),l(N,{key:1},[h(c(m.t),1)],64))],64))),128))],8,fX))),256))]),n("span",hX,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[87]||(t[87]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,gX)):f("v-if",!0),n("span",yX,c(e.fileKind()),1),e.imageSize?(a(),l("span",vX,c(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",bX,c(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),O(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=d=>e.copyPath())},[(a(),l("svg",kX,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,CX)]))],8,wX),[[te,e.filePath]])]),n("span",EX,[e.type=="IPython"&&e.redactionCount()?(a(),l(N,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(c(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,SX),t[89]||(t[89]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(c(e.fileKind()),1),e.imageSize?(a(),l(N,{key:1},[t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(N,{key:2},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),h(c(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=d=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",NX,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",RX,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),h("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",TX,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,PX),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,DX)])):f("v-if",!0),n("div",AX,[n("button",{type:"button",class:T(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=de(d=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",OX,[...t[94]||(t[94]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,IX),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=d=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",MX,[t[95]||(t[95]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+c(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",VX)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),h(c(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,qX)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[97]||(t[97]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,LX)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,$X)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=d=>e.copyPath())},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[100]||(t[100]=n("div",{class:"tb-menu-sep"},null,-1)),t[101]||(t[101]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",FX,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=d=>e.onImageLoad(d))},null,40,UX)])):f("v-if",!0),e.type=="media"?(a(),l("div",BX,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,HX)])):f("v-if",!0),e.type=="audio"?(a(),l("div",zX,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,jX)])):f("v-if",!0),e.type=="pdf"?(a(),Rt(r,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",_X,[$e(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",GX,[t[104]||(t[104]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[105]||(t[105]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",WX,c(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",KX,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[103]||(t[103]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,YX)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",XX,[t[107]||(t[107]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",QX,c(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",JX,c(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",ZX,c(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",xX,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,eQ),t[106]||(t[106]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",tQ,[...t[108]||(t[108]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",nQ,[n("div",sQ,[t[111]||(t[111]=Pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",oQ,[t[109]||(t[109]=h("This repository will be available in ",-1)),n("strong",null,c(e.rateLimitCountdown),1),t[110]||(t[110]=h(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",iQ,[n("section",rQ,[n("h1",aQ,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(N,{key:0},[n("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",lQ,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",dQ,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",uQ,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=d=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",cQ,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",pQ,[n("div",fQ,[n("strong",null,c(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",mQ,c(e.filePath),1),e.fileLoadingSlow?(a(),l("p",hQ,c(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",gQ,[(a(),l(N,null,U(10,d=>n("span",{key:d})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",yQ,[...t[112]||(t[112]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"repository"),h(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",vQ,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"file"),h(".")],-1)])])):f("v-if",!0)],64)}var bQ={class:"container page dashboard-page paper-page"},wQ={class:"row"},kQ={class:"w-100"},CQ={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},EQ={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},SQ={class:"flex-grow-1"},NQ={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},RQ={class:"d-flex flex-wrap",style:{gap:"6px"}},TQ={class:"dropdown"},PQ={class:"dropdown-menu","aria-labelledby":"dropdownSort"},DQ={class:"form-check dropdown-item"},AQ={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},IQ={class:"form-check dropdown-item"},OQ={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},MQ={class:"form-check dropdown-item"},VQ={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},qQ={class:"form-check dropdown-item"},LQ={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},$Q={class:"form-check dropdown-item"},FQ={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},UQ={class:"dropdown"},BQ={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},HQ={class:"form-check dropdown-item"},zQ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},jQ={class:"form-check dropdown-item"},_Q={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},GQ={class:"form-check dropdown-item"},WQ={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},KQ={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},YQ={class:"filter-chip"},XQ=["onClick"],QQ={class:"repo-list w-100"},JQ={class:"repo-list-item-content"},ZQ={class:"repo-list-item-main"},xQ={class:"repo-list-item-header"},eJ=["textContent","href"],tJ=["textContent"],nJ=["textContent"],sJ={class:"repo-source"},oJ=["href"],iJ={class:"repo-date"},rJ={class:"repo-meta"},aJ={key:0,title:"Conference"},lJ=["title"],dJ=["title"],uJ=["title"],cJ={key:1},pJ={class:"repo-list-item-actions"},fJ={class:"dropdown"},mJ={class:"dropdown-menu dropdown-menu-right"},hJ=["href"],gJ=["onClick"],yJ=["onClick"],vJ=["onClick"],bJ=["href"],wJ={key:0,class:"repo-list-empty"};function tm(e,t){let s=Le("field"),i=Le("form");return a(),l("div",bQ,[n("div",wQ,[n("div",kQ,[t[12]||(t[12]=Pe('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),f(" Search + filters row "),O((a(),l("form",CQ,[n("div",EQ,[n("div",SQ,[O(n("input",NQ,null,512),[[s,{state:e.viewState,set:r=>{e.search=r},value:e.search,form:null,options:{}}]])]),n("div",RQ,[n("div",TQ,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",PQ,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",DQ,[O(n("input",AQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",IQ,[O(n("input",OQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",MQ,[O(n("input",VQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",qQ,[O(n("input",LQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",$Q,[O(n("input",FQ,null,512),[[s,{state:e.viewState,set:r=>{e.orderBy=r},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",UQ,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",BQ,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",HQ,[O(n("input",zQ,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.ready=r},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",jQ,[O(n("input",_Q,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.expired=r},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",GQ,[O(n("input",WQ,null,512),[[s,{state:e.viewState,set:r=>{e.filters.status.removed=r},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),O(n("div",KQ,[(a(!0),l(N,null,U(e.filters?.status,(r,o,u)=>O((a(),l("span",YQ,[h(c(e.fmt?.title(o))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[o]=!0}}," \xD7 ",8,XQ)],512)),[[te,!r]])),256))],512),[[te,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",QQ,[(a(!0),l(N,null,U(e.filteredPullRequests,(r,o)=>(a(),l("li",{class:T(["repo-list-item",{"repo-inactive":r?.status=="expired"||r?.status=="removed"||r?.status=="error"}])},[n("div",JQ,[n("div",ZQ,[n("div",xQ,[n("a",{class:"repo-name",textContent:c(r?.pullRequestId),href:e.safeUrl("/pr/"+r?.pullRequestId)},null,8,eJ),n("span",{class:T(["status-badge",{"status-removed":r?.status=="removed"||r?.status=="expired"||r?.status=="removing"||r?.status=="expiring","status-preparing":r?.status=="preparing"||r?.status=="download","status-ready":r?.status=="ready","status-error":r?.status=="error"}])},[n("span",{textContent:c(e.fmt?.title(r?.status))},null,8,tJ),r?.status=="error"?(a(),l("span",{key:0,textContent:c(": "+r?.statusMessage)},null,8,nJ)):f("v-if",!0)],2)]),n("div",sJ,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+r?.source?.repositoryFullName+"/pull/"+r?.source?.pullRequestId)},c(r?.source?.repositoryFullName)+"#"+c(r?.source?.pullRequestId),9,oJ)]),n("span",{class:T(["status-badge",{"status-ready":r?.merged,"status-removed":r?.state=="open","status-error":r?.state=="closed"&&!r?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(r?.merged?"merged":r?.state)),3),n("span",iJ,"anonymized "+c(e.fmt?.humanTime(r?.anonymizeDate)),1)])]),n("div",rJ,[r?.conference?(a(),l("span",aJ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+c(r?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+r?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" "+c(e.fmt?.number(r?.options?.terms?.length)),1)],8,lJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(r?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),h(" "+c(e.fmt?.number(r?.pageView)),1)],8,dJ),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(r?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),h(" "+c(e.fmt?.humanTime(r?.lastView)),1)],8,uJ),r?.options?.expirationMode!="never"&&r?.status=="ready"?(a(),l("span",cJ,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Expire: "+c(e.fmt?.humanTime(r?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",pJ,[n("div",fJ,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",mJ,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+r?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,hJ),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(r),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update ",-1)])],8,gJ),[[te,r?.status=="ready"||r?.status=="error"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.updatePullRequest(r),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable ",-1)])],8,yJ),[[te,r?.status=="removed"]]),O(n("a",{class:"dropdown-item",href:"#",onClick:de(u=>e.removePullRequest(r),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,vJ),[[te,r?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+r?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View PR ",-1)])],8,bJ)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",wJ,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var kJ={class:"container paper-page user-settings"},CJ={class:"settings-nav","aria-label":"Settings"},EJ=["aria-current","onClick"],SJ={class:"settings-row"},NJ=["rows"],RJ={class:"settings-syntax"},TJ={class:"invalid-feedback"},PJ={class:"settings-row"},DJ={class:"settings-checks"},AJ={class:"settings-check"},IJ={class:"form-check-input",type:"checkbox",id:"link",name:"link"},OJ={class:"settings-check"},MJ={class:"form-check-input",type:"checkbox",id:"image",name:"image"},VJ={class:"settings-check"},qJ={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},LJ={class:"settings-check"},$J={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},FJ={class:"settings-check"},UJ={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},BJ={class:"settings-check"},HJ={class:"form-check-input",type:"checkbox",id:"page",name:"page"},zJ={class:"settings-row"},jJ={class:"settings-check"},_J={class:"form-check-input",type:"checkbox",id:"update",name:"update"},GJ={class:"settings-row"},WJ={class:"form-control",id:"expiration",name:"expiration"},KJ={class:"settings-help"},YJ={class:"settings-save"},XJ={class:"settings-save-status draft-status",role:"status"},QJ={key:0},JJ={key:1},ZJ={key:2},xJ=["disabled"],eZ={key:1,class:"settings-save-error",role:"alert"},tZ=["aria-busy"],nZ={key:0,role:"status"},sZ={key:1,class:"settings-notice",role:"alert"},oZ=["disabled"],iZ={key:2,class:"settings-notice",role:"status"},rZ={key:3,class:"settings-notice",role:"status"},aZ=["disabled"],lZ={class:"billing-summary"},dZ={class:"billing-summary-head"},uZ={class:"billing-plan-name"},cZ={key:0,class:"billing-plan-meta"},pZ={key:1,class:"billing-plan-meta"},fZ={key:0,class:"billing-summary-actions"},mZ=["disabled"],hZ={id:"settings-quota"},gZ={key:1,role:"status"},yZ={key:0,class:"settings-notice"},vZ={key:1,class:"settings-notice"},bZ={key:2,class:"settings-notice"},wZ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},kZ={key:0,class:"billing-offers"},CZ={key:0,class:"billing-offer is-recommended"},EZ={class:"billing-offer-price"},SZ={class:"billing-offer-list"},NZ=["disabled"],RZ={key:1,class:"billing-offer"},TZ={class:"billing-offer-head"},PZ={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},DZ=["aria-checked","onClick"],AZ={key:0,class:"billing-toggle-save"},IZ={class:"billing-offer-price"},OZ={class:"billing-offer-list"},MZ=["disabled"],VZ={key:1,class:"billing-addons"},qZ={class:"billing-addon-rows"},LZ={class:"billing-addon-price"},$Z=["onClick","disabled"],FZ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},UZ={class:"billing-buy-info"},BZ={class:"billing-offer-price"},HZ={class:"billing-offer-list"},zZ={class:"billing-buy-form"},jZ=["value"],_Z=["disabled"],GZ={key:1,class:"billing-buy-desc"},WZ={key:2,class:"billing-footnote"},KZ={class:"billing-compare"},YZ={class:"billing-compare-card"},XZ={class:"settings-comparison"},QZ={key:0,scope:"col",class:"is-recommended"},JZ={key:1,scope:"col"},ZZ={key:0,class:"is-recommended"},xZ={key:1},ex={key:0,class:"is-recommended"},tx={key:1},nx={key:0,class:"is-recommended"},sx={key:1},ox={key:0,class:"is-recommended"},ix={key:1},rx={key:0,class:"is-recommended"},ax={key:1},lx={key:0,class:"is-recommended"},dx={key:1},ux={key:3,class:"billing-footnote"},cx={key:5,class:"billing-section"},px={class:"billing-section-head"},fx=["disabled"],mx={key:0,class:"billing-empty"},hx={key:1,class:"billing-history-head","aria-hidden":"true"},gx={key:2,class:"billing-history"},yx={class:"billing-history-main"},vx=["href"],bx=["href"],wx={class:"billing-history-term"},kx={class:"billing-history-paid"},Cx={class:"billing-history-status"},Ex={class:"billing-manage"},Sx={key:0},Nx={key:1},Rx=["disabled"],Tx={class:"billing-conference"},Px={id:"settings-account",class:"settings-account-panel"},Dx={class:"paper-account-card"},Ax=["src"],Ix={class:"paper-account-identity"},Ox={class:"paper-account-name"},Mx=["disabled"],Vx={key:0,role:"status"},qx={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Lx=["disabled"],$x={key:3,role:"status"},Fx={class:"paper-danger-zone"},Ux={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Bx=["textContent"],Hx=["disabled"],zx={key:1,class:"settings-delete-confirm"},jx={for:"delete-username"},_x={class:"settings-actions"},Gx=["disabled"],Wx=["disabled"];function nm(e,t){let s=_e("quota-usage"),i=Le("field"),r=Le("form");return a(),l("div",kJ,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",CJ,[(a(),l(N,null,U([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],o=>n("button",{type:"button","aria-current":e.settingsTab===o.id?"page":null,onClick:u=>e.settingsTab=o.id},c(o.label),9,EJ)),64))]),O(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),O((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=o=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=de(o=>e.submitForm(o,()=>{e.saveDefault(o)}),["prevent"]))},[n("section",SJ,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[O(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` `).length+1)),placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},null,8,EJ),[[i,{state:e.viewState,set:o=>{e.terms=o},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",SJ,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),O(n("div",NJ,"Terms are in an invalid format.",512),[[te,e.defaultsForm?.terms?.errors?.format]])])]),n("section",RJ,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",TJ,[n("label",PJ,[O(n("input",DJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.link=o},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",AJ,[O(n("input",IJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.image=o},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Display images",-1))]),n("label",OJ,[O(n("input",MJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.pdf=o},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Display PDFs",-1))]),n("label",VJ,[O(n("input",qJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.notebook=o},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Display notebooks",-1))]),n("label",LJ,[O(n("input",$J,null,512),[[i,{state:e.viewState,set:o=>{e.options.loc=o},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",FJ,[O(n("input",UJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.page=o},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",BJ,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",HJ,[O(n("input",zJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.update=o},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",jJ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[O((a(),l("select",_J,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:o=>{e.options.expirationMode=o},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",GJ,c(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",WJ,[n("div",KJ,[e.draftRestored?(a(),l("span",YJ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",XJ,"Unsaved changes"+c(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",QJ,c(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=o=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:T(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},c(e.saving?"Saving\u2026":"Save defaults"),11,JJ),e.error?(a(),l("div",ZJ,c(e.error),1)):f("v-if",!0)])],32)),[[r,e.viewState]])],512),[[te,e.settingsTab==="defaults"]]),O(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",eZ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",tZ,[h(c(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=o=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,nZ)])):f("v-if",!0),e.billingNotice?(a(),l("p",sZ,c(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",oZ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,iZ)])):f("v-if",!0),n("section",rZ,[n("div",aZ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",lZ,c(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",dZ,[h(c(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+c(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(N,{key:0},[h(" \xB7 "+c(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",uZ,c(e.billing.allowance.repositories)+" repositories \xB7 "+c(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+c(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",cZ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=o=>e.billingPortal()),disabled:e.billingBusy},c(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,pZ)])):f("v-if",!0)]),n("div",fZ,[e.quota?(a(),Nt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",mZ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",hZ,[h("Your free repositories are used up. Add the next one for "+c(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=h(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",gZ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",yZ,[...t[47]||(t[47]=[h("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),h(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",vZ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",bZ,[e.profilePackPlan()?(a(),l("article",wZ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",kZ,[n("strong",null,c(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=h(" once",-1))]),n("ul",CZ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+c(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=o=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,EZ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",SZ,[n("div",NZ,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",RZ,[(a(!0),l(N,null,U(e.profileAuthorPlansByValue(),o=>(a(),l("button",{type:"button",role:"radio",key:o.id,"aria-checked":e.profileSelectedPlan()?.id===o.id?"true":"false",class:T({"is-on":e.profileSelectedPlan()?.id===o.id}),onClick:u=>e.profilePlan=o.id},[h(c(o.interval==="year"?"Yearly":"Monthly"),1),o.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",PZ,"\u2212"+c(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,TZ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",DZ,[n("strong",null,c(e.billingAmount(e.profileSelectedPlan())),1),h(" per "+c(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",AZ,[n("li",null,c(e.profileSelectedPlan()?.repositories)+" repositories, "+c(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=o=>e.checkout(e.profileSelectedPlan().id))},c(e.billingBusy?"Please wait\u2026":"Subscribe"),9,IZ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",OZ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",MZ,[(a(!0),l(N,null,U(e.profileSingleAddons(),o=>(a(),l("li",{key:o.id},[n("div",null,[n("strong",null,c(o.name),1),n("span",null,c(e.profileAddonBlurb(o.id)),1)]),n("span",VZ,c(e.billingAmount(o)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(o.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,qZ)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",LZ,[n("div",$Z,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=o=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,c(e.profileAddon().name),1),n("p",FZ,[n("strong",null,c(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=h(" once",-1))]),n("ul",UZ,[(a(!0),l(N,null,U(e.profileAddonFeatures(e.profileAddon().id),o=>(a(),l("li",{key:o},c(o),1))),128))])]),n("div",BZ,[e.profileRepositories().length?(a(),l(N,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),O(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=o=>e.billingRepository=o)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(N,null,U(e.profileRepositories(),o=>(a(),l("option",{key:o.repoId,value:o.repoId},c(o.repoId)+" \xB7 "+c(e.profileRepositoryExpiry(o)),9,HZ))),128))],512),[[qt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=o=>e.checkout(e.profileAddon().id,e.billingRepository))},c(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,zZ),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",jZ,[...t[68]||(t[68]=[h("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),h(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",_Z,[...t[69]||(t[69]=[h("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),h("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",GZ,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",WZ,[n("table",KZ,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[h("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",YZ,[t[70]||(t[70]=h("Paper pack",-1)),n("small",null,c(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",XZ,[t[71]||(t[71]=h("Author",-1)),n("small",null,c(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,c(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",QZ,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",JZ,c(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,c(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",ZZ,c(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",xZ,c(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,c(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",ex,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",tx,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",nx,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",sx,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",ox,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",ix,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",rx,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",ax,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",lx,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",dx,[n("div",ux,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=o=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,cx))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",px,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",fx,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",mx,[(a(!0),l(N,null,U(e.profilePurchases(!0).concat(e.profilePurchases(!1)),o=>(a(),l("li",{class:T(["billing-history-row",{"is-ended":!["active","overdue"].includes(o.status)}]),key:o.id},[n("div",hx,[n("strong",null,[h(c(e.profileGrantName(o)),1),o.repoId?(a(),l(N,{key:0},[t[88]||(t[88]=h(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(o.repoId)},c(o.repoId),9,gx)],64)):o.conference?(a(),l(N,{key:1},[t[89]||(t[89]=h(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(o.conference)},c(o.conference),9,yx)],64)):f("v-if",!0)]),n("span",null,c([o.purchasedAt?"Bought "+e.billingDate(o.purchasedAt):"",o.parts.length?e.profilePackSummary(o):["refunded","disputed"].includes(o.status)?"Payment "+o.status+", so what it paid for has ended":o.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",vx,c(e.profilePurchaseTerm(o)),1),n("div",bx,c(o.amount!=null?e.billingPrice(o):""),1),n("div",wx,[n("span",{class:T(["settings-status","is-"+o.status])},c(e.profilePurchaseStatus(o)),3)])],2))),128))])):f("v-if",!0),n("div",kx,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",Cx,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",Ex,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[h("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),h(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=o=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,Sx)):f("v-if",!0)])])):f("v-if",!0),n("p",Nx,[t[92]||(t[92]=h("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(N,{key:0},[h("Review packages start at "+c(e.billingAmount(e.profileConferencePlan()))+" once for up to "+c(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(N,{key:1},[h("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=h()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,xJ),[[te,e.settingsTab==="billing"]]),O(n("section",Rx,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",Tx,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,Px)):f("v-if",!0),n("div",Dx,[n("div",Ax,"@"+c(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=de(o=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),O(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=o=>e.accountEmail=o),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=o=>e.emailSaved=!1)},null,40,Ix),[[ft,e.accountEmail]]),e.emailLoading?(a(),l("p",Ox,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",Mx,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=o=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("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,Vx),e.emailSaved?(a(),l("p",qx,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[h("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",Lx,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("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?(a(),l("div",$x,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=h()),n("span",{textContent:c(e.deleteError)},null,8,Fx)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=o=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),h(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,Ux),e.confirmDeleteAccount?(a(),l("div",Bx,[n("label",Hx,"Type "+c(e.user?.username)+" to confirm",1),O(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=o=>e.deleteUsername=o),autocomplete:"off"},null,512),[[ft,e.deleteUsername]]),n("div",zx,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=o=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},c(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,jx),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=o=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,_x)])])):f("v-if",!0)])],512),[[te,e.settingsTab==="account"]])])}var Gx={class:"pr-page review-page"},Wx={class:"container paper-page pr-page-inner"},Kx={class:"pr-header"},Yx={class:"pr-title-row"},Xx={class:"paper-page-title pr-title"},Qx={key:0},Jx=["aria-label"],Zx={key:1,class:"text-muted"},xx=["href"],eee={key:0,class:"pr-state-line"},tee={class:"ui-icon","aria-hidden":"true"},nee=["href"],see={class:"pr-summary"},oee=["aria-label"],iee={key:1,class:"pr-summary-author is-hidden"},ree={class:"pr-branch"},aee=["aria-label"],lee={class:"pr-branch"},dee=["aria-label"],uee={key:1,class:"pr-header-meta"},cee={key:0,class:"pr-meta-item"},pee=["textContent"],fee={key:1,class:"pr-meta-item"},mee={key:2,class:"pr-meta-item"},hee={key:3,class:"pr-meta-item"},gee={key:4,class:"pr-meta-item"},yee={key:0,class:"paper-tabs pr-tabs",role:"tablist","aria-label":"Pull request"},vee=["aria-selected","tabindex"],bee={key:0,class:"tab-count"},wee=["aria-selected","tabindex"],kee={class:"tab-count"},Cee=["aria-selected","tabindex"],Eee={class:"tab-count"},See=["aria-label"],Nee={class:"stat-add"},Ree={class:"stat-del"},Tee={class:"paper-tab-content"},Pee={key:0,role:"tabpanel",id:"pr-conversation-panel","aria-labelledby":"pr-conversation-tab"},Dee={class:"pr-timeline"},Aee={class:"pr-timeline-item is-description"},Iee={class:"pr-thread"},Oee={class:"pr-thread-comment"},Mee={class:"pr-thread-head"},Vee=["aria-label"],qee={key:1,class:"pr-author is-hidden"},Lee={key:2,class:"pr-thread-date"},$ee={key:0,class:"pr-thread-body"},Fee={key:1,class:"pr-thread-body text-muted"},Uee={key:0,class:"pr-review-head"},Bee=["onClick"],Hee=["aria-label"],zee={key:1},jee=["aria-label"],_ee={key:1,role:"tabpanel",id:"pr-commits-panel","aria-labelledby":"pr-commits-tab"},Gee={key:0,class:"pr-commit-day"},Wee={class:"pr-commit-list"},Kee=["aria-label"],Yee={class:"pr-commit-text"},Xee={class:"pr-commit-headline"},Qee=["aria-label"],Jee={key:0,class:"pr-commit-detail"},Zee=["aria-label"],xee=["aria-label"],ete={key:2,role:"tabpanel",id:"pr-files-panel","aria-labelledby":"pr-files-tab"},tte={key:0,class:"page-toc pr-file-toc","aria-label":"Changed files"},nte={class:"page-toc-head"},ste={class:"toc-rail"},ote=["href","aria-current","onClick"],ite=["title"],rte={class:"sr-only"},ate={class:"toc-file-name"},lte={key:0,class:"toc-file-dir"},dte=["aria-label"],ute=["aria-label"],cte={class:"toc-file-stat"},pte={key:0,class:"stat-add"},fte={key:1,class:"stat-del"},mte={class:"toc-main"},hte={class:"toc-bar pr-files-bar"},gte={key:0,class:"toc-menu"},yte=["aria-expanded"],vte={class:"toc-menu-label"},bte={key:0,class:"toc-menu-current"},wte=["aria-label"],kte={key:0,class:"toc-menu-pop toc-rail","aria-label":"Changed files"},Cte=["href","aria-current","onClick"],Ete=["title"],Ste={class:"sr-only"},Nte={class:"toc-file-name"},Rte={key:0,class:"toc-file-dir"},Tte=["aria-label"],Pte=["aria-label"],Dte={class:"toc-file-stat"},Ate={key:0,class:"stat-add"},Ite={key:1,class:"stat-del"},Ote={class:"pr-files-summary"},Mte={class:"stat-add"},Vte={class:"stat-del"},qte=["id","aria-label"],Lte={class:"diff-file-header"},$te=["aria-expanded","aria-controls","aria-label","onClick"],Fte=["title"],Ute={key:0,class:"diff-file-dir"},Bte=["aria-label"],Hte=["aria-label"],zte={class:"diff-file-meta"},jte=["title"],_te=["aria-label"],Gte={key:0,class:"stat-add"},Wte={key:1,class:"stat-del"},Kte={class:"diff-bar","aria-hidden":"true"},Yte=["id"],Xte={key:0,class:"diff-loose-threads"},Qte={class:"pr-review-head"};function em(e,t){let s=_e("markdown"),i=_e("pr-thread"),r=_e("diff-table");return a(),l("div",Gx,[n("div",Wx,[t[30]||(t[30]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",Kx,[n("div",Yx,[n("h1",Xx,[e.details?.title?(a(),l("span",Qx,[(a(!0),l(N,null,U(e.redactParts(e.details.title),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,Jx)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])):f("v-if",!0),e.details&&!e.details?.title?(a(),l("span",Zx,"Untitled pull request")):f("v-if",!0)]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,xx)):f("v-if",!0)]),e.details?(a(),l("div",eee,[n("span",{class:T(["pr-state","is-"+e.prState()])},[(a(),l("svg",tee,[n("use",{href:e.prState()==="merged"?"#ui-icon-branch":e.prState()==="closed"?"#project-icon-close":"#project-type-pr"},null,8,nee)])),h(c(e.prStateLabel()),1)],2),n("p",see,[e.details?.author?(a(),l("span",{key:0,class:T(["pr-author pr-summary-author",{"is-redacted":e.isRedactedName(e.details.author)}])},[e.isRedactedName(e.details.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.author),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,oee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))],2)):(a(),l("span",iee,"The author")),h(" "+c(e.prState()==="merged"?" merged":" wants to merge")+" ",1),e.details?.commits?.length?(a(),l(N,{key:2},[h(c(e.fmt.plural(e.details.commits.length,{one:"1 commit",other:"{} commits"})),1)],64)):f("v-if",!0),e.details?.baseRef?(a(),l(N,{key:3},[t[9]||(t[9]=h(" into ",-1)),n("code",ree,[(a(!0),l(N,null,U(e.redactParts(e.details.baseRef),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,aee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])],64)):f("v-if",!0),e.details?.headRef?(a(),l(N,{key:4},[t[10]||(t[10]=h(" from ",-1)),n("code",lee,[(a(!0),l(N,null,U(e.redactParts(e.details.headRef),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,dee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])],64)):f("v-if",!0)])])):f("v-if",!0),e.details?(a(),l("div",uee,[e.details?.baseRepositoryFullName?(a(),l("span",cee,[t[11]||(t[11]=n("i",{class:"fab fa-github"},null,-1)),t[12]||(t[12]=h()),n("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,pee)])):f("v-if",!0),e.details?.creationDate?(a(),l("span",fee,[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Opened "+c(e.fmt?.date(e.details.creationDate)),1)])):f("v-if",!0),e.details?.mergedDate&&e.details?.merged?(a(),l("span",mee,"Merged "+c(e.fmt?.date(e.details.mergedDate)),1)):e.details?.updatedDate?(a(),l("span",hee,"Updated "+c(e.fmt?.date(e.details.updatedDate)),1)):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",gee,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" Anonymized "+c(e.fmt?.date(e.details.anonymizeDate)),1)])):f("v-if",!0)])):f("v-if",!0)]),e.details?(a(),l("nav",yee,[n("button",{class:T(["paper-tab",{active:e.tabState?.active=="conversation"}]),type:"button",role:"tab",id:"pr-conversation-tab","aria-selected":e.tabState?.active==="conversation","aria-controls":"pr-conversation-panel",tabindex:e.tabState?.active==="conversation"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.openTab("conversation"))},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),t[16]||(t[16]=h("Conversation",-1)),e.conversationCount()?(a(),l("span",bee,c(e.conversationCount()),1)):f("v-if",!0)],42,vee),e.details?.commits?.length?(a(),l("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="commits"}]),type:"button",role:"tab",id:"pr-commits-tab","aria-selected":e.tabState?.active==="commits","aria-controls":"pr-commits-panel",tabindex:e.tabState?.active==="commits"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.openTab("commits"))},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-commit"})],-1)),t[18]||(t[18]=h("Commits",-1)),n("span",kee,c(e.details.commits.length),1)],42,wee)):f("v-if",!0),e.details?.diff?(a(),l("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"pr-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"pr-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[4]||(t[4]=o=>e.previewTabKeydown(o)),onClick:t[5]||(t[5]=o=>e.openTab("files"))},[t[19]||(t[19]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),t[20]||(t[20]=n("span",null,[h("Files"),n("span",{class:"tab-long"}," changed")],-1)),n("span",Eee,c(e.prStats().files),1)],42,Cee)):f("v-if",!0),e.details?.diff?(a(),l("span",{key:2,class:"pr-tabs-stat","aria-label":e.prStats().additions+" additions, "+e.prStats().deletions+" deletions"},[n("span",Nee,"+"+c(e.fmt.number(e.prStats().additions)),1),n("span",Ree,"\u2212"+c(e.fmt.number(e.prStats().deletions)),1)],8,See)):f("v-if",!0)])):f("v-if",!0),n("div",Tee,[e.details&&e.tabState?.active=="conversation"?(a(),l("div",Pee,[n("ol",Dee,[n("li",Aee,[n("div",Iee,[n("article",Oee,[n("header",Mee,[t[21]||(t[21]=n("span",{class:"pr-avatar","aria-hidden":"true"},[n("svg",{class:"ui-icon"},[n("use",{href:"#ui-icon-user"})])],-1)),e.details?.author?(a(),l("span",{key:0,class:T(["pr-author",{"is-redacted":e.isRedactedName(e.details.author)}])},[e.isRedactedName(e.details.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.author),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,Vee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))],2)):(a(),l("span",qee,"Author")),t[22]||(t[22]=n("span",{class:"pr-comment-action"},"opened this pull request",-1)),e.details?.creationDate?(a(),l("time",Lee,c(e.fmt?.date(e.details.creationDate)),1)):f("v-if",!0)]),e.details?.body?(a(),l("div",$ee,[$e(s,{content:e.details.body,reader:!0},null,8,["content"])])):(a(),l("p",Fee,"No description."))])])]),(a(!0),l(N,null,U(e.prTimeline(),o=>(a(),l("li",{class:T(["pr-timeline-item","is-"+o.kind]),key:o.key},[o.kind==="review"?(a(),l("div",Uee,[t[24]||(t[24]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),n("span",null,[t[23]||(t[23]=h("Review on ",-1)),o.file?(a(),l("button",{key:0,type:"button",class:"pr-review-file",onClick:u=>e.showInDiff(o.file)},[(a(!0),l(N,null,U(e.redactParts(o.thread.path),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Hee)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))],8,Bee)):(a(),l("code",zee,[(a(!0),l(N,null,U(e.redactParts(o.thread.path),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,jee)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])),o.thread.line?(a(),l(N,{key:2},[h(" \xB7 line "+c(o.thread.line),1)],64)):f("v-if",!0)])])):f("v-if",!0),$e(i,{comments:o.comments,fmt:e.fmt},null,8,["comments","fmt"])],2))),128))])])):f("v-if",!0),e.details?.commits?.length&&e.tabState?.active=="commits"?(a(),l("div",_ee,[(a(!0),l(N,null,U(e.commitGroups(),(o,u)=>(a(),l("section",{class:"pr-commit-group",key:u},[o.day?(a(),l("h2",Gee,[t[25]||(t[25]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-commit"})],-1)),h("Commits on "+c(o.day),1)])):f("v-if",!0),n("ol",Wee,[(a(!0),l(N,null,U(o.commits,p=>(a(),l("li",{class:"pr-commit",key:p.index},[n("span",{class:"pr-commit-index","aria-label":"Commit "+p.index},c(p.index),9,Kee),n("div",Yee,[n("p",Xee,[(a(!0),l(N,null,U(e.redactParts(p.headline),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,Qee)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),p.detail?(a(),l("p",Jee,[(a(!0),l(N,null,U(e.redactParts(p.detail),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,Zee)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))])):f("v-if",!0)]),p.author?(a(),l("span",{key:0,class:T(["pr-author pr-commit-author",{"is-redacted":e.isRedactedName(p.author)}])},[e.isRedactedName(p.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(p.author),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,xee)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))],2)):f("v-if",!0)]))),128))])]))),128))])):f("v-if",!0),e.details?.diff&&e.tabState?.active=="files"?(a(),l("div",ete,[n("div",{class:T(["toc-layout is-left",{"has-toc":e.showFileToc()}])},[e.showFileToc()?(a(),l("aside",tte,[n("div",nte,c(e.fmt.plural(e.prStats().files,{one:"1 file changed",other:"{} files changed"})),1),n("nav",ste,[(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("a",{key:o.id,href:"#"+o.id,class:T(["toc-file toc-diff-file",{"is-active":e.activeFileIndex()===o.index}]),"aria-current":e.activeFileIndex()===o.index?"location":null,onClick:de(u=>e.jumpToFile(o),["prevent"])},[n("span",{class:T(["diff-status-dot","is-"+o.status]),title:e.fmt.title(o.status)},[n("span",rte,c(o.status),1)],10,ite),n("span",ate,[o.dir?(a(),l("span",lte,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,dte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,ute)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))]),n("span",cte,[o.additions?(a(),l("span",pte,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",fte,"\u2212"+c(o.deletions),1)):f("v-if",!0)])],10,ote))),128))])])):f("v-if",!0),n("div",mte,[n("div",hte,[e.showFileToc()?(a(),l("div",gte,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost toc-menu-btn",{"is-on":e.tocOpen}]),"aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[6]||(t[6]=de(o=>e.tocOpen=!e.tocOpen,["stop"]))},[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)),n("span",vte,c(e.fmt.plural(e.prStats().files,{one:"1 file",other:"{} files"})),1),e.prFiles()[e.activeFileIndex()]?(a(),l("span",bte,[(a(!0),l(N,null,U(e.redactParts(e.prFiles()[e.activeFileIndex()].name),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,wte)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])):f("v-if",!0),t[27]||(t[27]=n("svg",{class:"ui-icon toc-menu-chevron","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,yte),e.tocOpen?(a(),l("nav",kte,[(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("a",{key:o.id,href:"#"+o.id,class:T(["toc-file toc-diff-file",{"is-active":e.activeFileIndex()===o.index}]),"aria-current":e.activeFileIndex()===o.index?"location":null,onClick:de(u=>e.jumpToFile(o),["prevent"])},[n("span",{class:T(["diff-status-dot","is-"+o.status]),title:e.fmt.title(o.status)},[n("span",Ste,c(o.status),1)],10,Ete),n("span",Nte,[o.dir?(a(),l("span",Rte,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Tte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Pte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))]),n("span",Dte,[o.additions?(a(),l("span",Ate,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",Ite,"\u2212"+c(o.deletions),1)):f("v-if",!0)])],10,Cte))),128))])):f("v-if",!0)])):f("v-if",!0),n("span",Ote,[h(c(e.fmt.plural(e.prStats().files,{one:"1 file changed",other:"{} files changed"})),1),n("span",Mte,"+"+c(e.fmt.number(e.prStats().additions)),1),n("span",Vte,"\u2212"+c(e.fmt.number(e.prStats().deletions)),1)]),n("button",{type:"button",class:"btn btn-sm btn-ghost pr-collapse-all",onClick:t[7]||(t[7]=o=>e.toggleAllFiles())},c(e.allCollapsed()?"Expand all":"Collapse all"),1)]),(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("section",{class:T(["diff-file-block",{"is-collapsed":e.collapsedFiles[o.index]}]),key:o.id,id:o.id,"aria-label":o.path},[n("header",Lte,[n("button",{type:"button",class:"diff-file-toggle","aria-expanded":e.collapsedFiles[o.index]?"false":"true","aria-controls":o.id+"-body","aria-label":(e.collapsedFiles[o.index]?"Expand ":"Collapse ")+o.path,onClick:u=>e.toggleFile(o.index)},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1)])],8,$te),n("span",{class:"diff-file-name",title:o.path},[o.dir?(a(),l("span",Ute,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Bte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Hte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))],8,Fte),n("span",zte,[o.status!=="modified"?(a(),l("span",{key:0,class:T(["diff-file-status","diff-file-status-"+o.status])},c(o.status),3)):f("v-if",!0),o.threads?(a(),l("span",{key:1,class:"diff-file-threads",title:e.fmt.plural(o.threads,{one:"1 review thread",other:"{} review threads"})},[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),h(c(o.threads),1)],8,jte)):f("v-if",!0),n("span",{class:"diff-file-stat","aria-label":o.additions+" additions, "+o.deletions+" deletions"},[o.additions?(a(),l("span",Gte,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",Wte,"\u2212"+c(o.deletions),1)):f("v-if",!0),n("span",Kte,[(a(!0),l(N,null,U(e.diffBar(o),(u,p)=>(a(),l("i",{key:p,class:T("is-"+u)},null,2))),128))])],8,_te)])]),e.collapsedFiles[o.index]?f("v-if",!0):(a(),l("div",{key:0,class:"diff-file-body",id:o.id+"-body"},[$e(r,{file:o,fmt:e.fmt},null,8,["file","fmt"]),o.looseThreads.length?(a(),l("div",Xte,[(a(!0),l(N,null,U(o.looseThreads,(u,p)=>(a(),l("div",{class:"diff-loose-thread",key:p},[n("div",Qte,[n("span",null,"Comment on line "+c(u.line||"\u2014")+" (outside this diff)",1)]),$e(i,{comments:u.comments,fmt:e.fmt},null,8,["comments","fmt"])]))),128))])):f("v-if",!0)],8,Yte))],10,qte))),128))])],2)])):f("v-if",!0)])])])}var Jte={class:"repository-task status-page"},Zte={class:"page-head-main"},xte={class:"task-lede"},ene={class:"task-columns"},tne={class:"task-preparation","aria-label":"Repository preparation"},nne={key:0,class:"text-danger",role:"alert"},sne={key:1,class:"paper-section-copy"},one={key:2,class:"paper-ratelimit-card",role:"status"},ine={class:"paper-error-msg"},rne=["aria-valuenow"],ane={class:"paper-progress-label"},lne=["textContent"],dne={key:0},une=["textContent"],cne={class:"paper-progress-pct"},pne={key:4,class:"paper-error-card",role:"alert"},fne={key:0,class:"paper-error-msg"},mne={key:1,class:"paper-error-msg"},hne={key:2},gne=["href"],yne={class:"paper-error-actions"},vne=["href"],bne={key:5,class:"share-link"},wne={class:"share-link-row"},kne={class:"share-link-buttons"},Cne={class:"ui-icon","aria-hidden":"true"},Ene=["href"],Sne=["textContent"],Nne=["href"],Rne={class:"share-link-note"},Tne=["href"],Pne={class:"share-link-next"},Dne={class:"share-link-next-actions"},Ane=["href"],Ine={class:"task-summary","aria-label":"Repository summary"},One=["title"],Mne={key:1};function tm(e,t){return a(),l("div",Jte,[n("header",{class:T(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",Zte,[n("div",null,[n("h1",null,c(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",xte,c(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",ene,[n("section",tne,[e.error?(a(),l("p",nne,[t[5]||(t[5]=h("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",sne,[...t[6]||(t[6]=[h(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),h(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",one,[t[9]||(t[9]=Pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",ine,[t[7]||(t[7]=h("Anonymization will resume automatically in ",-1)),n("strong",null,c(e.rateLimitCountdown),1),t[8]||(t[8]=h(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:T(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:De("width: "+e.progress+"%;")},null,4),n("div",ane,[n("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,lne),e.repo?.statusMessage?(a(),l("span",dne,[t[10]||(t[10]=h("\xA0\xB7\xA0",-1)),n("span",{textContent:c(e.repo?.statusMessage)},null,8,une)])):f("v-if",!0),n("span",cne,c(e.progress||0)+"%",1)])],10,rne)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",pne,[t[14]||(t[14]=Pe('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",fne,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",mne,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),["quota_exceeded","quota_repository_limit","quota_storage_limit"].includes(e.repo?.statusMessage)?(a(),l("p",hne,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,gne),t[11]||(t[11]=h(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",yne,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit anonymization",-1)])],8,vne),t[13]||(t[13]=Pe(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",bne,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",wne,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},c(e.shareUrl),33),n("div",kne,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",Cne,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,Ene)])),n("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,Sne)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" Open repository ",-1)])],8,Nne)])]),n("p",Rne,[h(c(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=h("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(N,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,Tne)],64)):f("v-if",!0)]),n("div",Pne,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",Dne,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,Ane),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",Ine,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=h("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),h(c(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),h(c(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,One)):(a(),l("dd",Mne,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,c(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var Vne={class:"container paper-page admin-page overview-page billing-page"},qne={class:"bl-toolbar"},Lne={class:"seg-filter",role:"radiogroup","aria-label":"Period"},$ne=["aria-checked","onClick"],Fne={key:0,class:"bl-basis"},Une={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},Bne={key:1,class:"ov-performance-message bl-message",role:"status"},Hne={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},zne=["aria-busy"],jne={class:"ov-kpi-card"},_ne={class:"ov-kpi-value"},Gne={class:"ov-kpi-sub"},Wne={class:"ov-kpi-card"},Kne={key:0,class:"ov-kpi-sub"},Yne={key:1,class:"ov-kpi-sub"},Xne={class:"ov-kpi-card"},Qne={class:"ov-kpi-label"},Jne={class:"ov-kpi-value"},Zne={class:"ov-kpi-sub"},xne={class:"ov-kpi-card"},ese={class:"ov-kpi-value"},tse={class:"ov-kpi-sub"},nse={class:"ov-kpi-card"},sse={class:"ov-kpi-value"},ose={class:"ov-kpi-sub"},ise={class:"ov-kpi-card"},rse={class:"ov-kpi-sub"},ase={key:3,class:"bl-health","aria-label":"Webhook health"},lse={class:"bl-health-title"},dse={class:"bl-health-item"},use=["title"],cse={key:1,class:"bl-health-item"},pse={key:4,class:"ov-chart-card bl-chart-card"},fse={class:"ov-chart-head"},mse={class:"ov-chart-title"},hse={key:0,class:"ov-chart-legends"},gse=["aria-label"],yse={class:"ov-yaxis","aria-hidden":"true"},vse=["data-tip"],bse={class:"ov-spark-x bl-x"},wse={key:1,class:"ov-performance-empty bl-empty",role:"status"},kse={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},Cse={class:"ov-panel-head"},Ese={class:"ov-panel-meta"},Sse={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},Nse={class:"ov-metrics-table"},Rse={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},Tse={class:"bl-family-row"},Pse={scope:"rowgroup",class:"bl-plan-name"},Dse={class:"num"},Ase={class:"num"},Ise={class:"num"},Ose={class:"num"},Mse={class:"num"},Vse={scope:"row",class:"bl-plan-name bl-plan-child"},qse=["title","onClick"],Lse={class:"num"},$se={class:"num"},Fse={class:"num"},Use={class:"num"},Bse={class:"num"},Hse={class:"num"},zse={class:"num"},jse={class:"num"},_se={class:"num"},Gse={class:"num"},Wse={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},Kse={class:"seg-bar"},Yse={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},Xse=["aria-checked"],Qse={class:"count"},Jse=["aria-checked"],Zse={class:"count"},xse=["aria-checked"],eoe={class:"count"},toe=["aria-checked"],noe={class:"count"},soe={class:"seg-countline",role:"status"},ooe={key:0,class:"alert alert-danger bl-alert"},ioe=["aria-expanded"],roe={class:"search-wrap"},aoe={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},loe={class:"admin-filter-inline"},doe={id:"bl-plan",class:"form-control form-control-sm"},uoe=["label"],coe=["value"],poe={class:"admin-filter-inline"},foe={id:"bl-period",class:"form-control form-control-sm"},moe=["value"],hoe={class:"admin-filter-inline"},goe={id:"bl-status",class:"form-control form-control-sm"},yoe=["value"],voe={key:0,class:"admin-filter-inline","aria-label":"Pagination"},boe=["disabled"],woe={class:"bl-page"},koe=["disabled"],Coe={key:0,class:"admin-filter-row"},Eoe={class:"admin-active-chips"},Soe={class:"key"},Noe=["onClick"],Roe={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},Toe={class:"ov-metrics-table bl-grant-table"},Poe={scope:"col"},Doe={scope:"col"},Aoe={scope:"row",class:"bl-user"},Ioe=["title","href"],Ooe={key:1,class:"ov-muted"},Moe=["title"],Voe=["title"],qoe={class:"bl-state"},Loe={key:0},$oe={key:1},Foe={class:"bl-date"},Uoe={class:"bl-date"},Boe={key:0},Hoe={key:1},zoe=["title"],joe={class:"bl-scope"},_oe=["href","title"],Goe={class:"ui-icon","aria-hidden":"true"},Woe=["href"],Koe={key:1,class:"ov-muted"},Yoe={key:2,class:"paper-table-empty"},Xoe={key:3,class:"admin-empty"},Qoe={key:4,class:"admin-toolbar bl-pager"},Joe={key:0,class:"pagination-compact"},Zoe=["disabled"],xoe=["max"],eie=["disabled"],tie={class:"admin-filter-inline"},nie={id:"bl-limit",class:"form-control form-control-sm"};function nm(e,t){let s=Le("field"),i=Le("form");return a(),l("div",Vne,[t[81]||(t[81]=Pe('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",qne,[n("div",Lne,[(a(!0),l(N,null,U(e.periods,r=>(a(),l("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.period===r.id}]),key:r.id,"aria-checked":e.period===r.id,onClick:o=>e.setPeriod(r.id)},c(r.label),11,$ne))),128))]),e.summary?(a(),l("p",Fne,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",Une,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,c(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=r=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",Bne,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),h(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",Hne,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+c(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+c(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+c(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \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 "),n("section",{class:T(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(N,{key:0},U(6,r=>n("div",{class:"ov-kpi-card",key:r,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(N,{key:1},[n("div",jne,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",_ne,c(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",Gne,c(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+c(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",Wne,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:T(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},c(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",Kne,"+ "+c(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",Yne,c(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",Xne,[n("div",Qne,"Sales \xB7 "+c(e.periodPhrase()),1),n("div",Jne,c(e.fmt?.number(e.summary.sales.count)),1),n("div",Zne,c(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",xne,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",ese,c(e.fmt?.number(e.summary.allTime.count)),1),n("div",tse,c(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",nse,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",sse,c(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",ose,"at period end, of "+c(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",ise,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},c(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",rse,c(e.fmt?.number(e.summary.reversals.refunds))+" "+c(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+c(e.fmt?.number(e.summary.reversals.disputes))+" "+c(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,zne),f(" \u2500\u2500 Webhook health \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 "),e.summary?.webhooks?(a(),l("section",ase,[n("span",lse,[n("span",{class:T(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=h("Stripe webhooks",-1))]),n("span",dse,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(N,{key:0},[h(" \xB7 oldest "+c(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:T(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=h()),n("code",null,c(e.summary.webhooks.lastError.error),1),h(" on "+c(e.summary.webhooks.lastError.type)+" \xB7 "+c(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,use)):(a(),l("span",cse,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),h(" none",-1)])])),n("span",{class:T(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \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 "),e.summary?(a(),l("section",pse,[n("div",fse,[n("span",mse,"Sales per "+c(e.bucketName())+" \xB7 "+c(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",hse,[(a(!0),l(N,null,U(e.families,r=>(a(),l("span",{class:"ov-chart-legend",key:r.id},[n("span",{class:T(["bl-swatch","bl-"+r.id]),"aria-hidden":"true"},null,2),h(c(r.label)+" \xB7 "+c(e.legendText(r.id)),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(N,{key:0},[n("div",{class:T(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",yse,[n("span",null,c(e.fmt?.number(e.chartMax())),1),n("span",null,c(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.summary.series,(r,o)=>(a(),l("div",{class:T(["ov-spark-col has-tip bl-col",[e.tipSide(o),{"is-zero":!e.bucketTotal(r)}]]),key:o,"data-tip":e.bucketTip(r)},[n("span",{class:"bl-stack",style:De({height:e.bucketTotal(r)/e.chartMax()*100+"%"})},[(a(!0),l(N,null,U(e.families,u=>O((a(),l("i",{key:u.id,class:T("bl-"+u.id),style:De({flexGrow:r[u.id]})},null,6)),[[te,r[u.id]]])),128))],4)],10,vse))),128))],10,gse),n("div",bse,[n("span",null,c(e.bucketLabel(e.summary.series[0])),1),n("span",null,c(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,c(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",wse,"No sales "+c(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \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\u2500\u2500\u2500 "),e.summary?(a(),l("section",kse,[n("div",Cse,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",Ese,c(e.fmt?.number(e.plansWithActivity().length))+" of "+c(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",Sse,[n("table",Nse,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",Rse,c(e.periodPhrase().replace(/^./,r=>r.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(N,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),(a(!0),l(N,null,U(e.families,r=>O((a(),l("tbody",{key:r.id},[n("tr",Tse,[n("th",Pse,[n("span",{class:T(["bl-swatch","bl-"+r.id]),"aria-hidden":"true"},null,2),h(c(r.label),1)]),n("td",Dse,c(e.fmt?.number(e.familySum(r.id,"active"))),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",Ase,c(e.fmt?.number(e.familySum(r.id,"sales"))),1),n("td",Ise,c(e.familyMoney(r.id,"revenue","revenueComplete")),1)],64)):f("v-if",!0),n("td",Ose,c(e.fmt?.number(e.familySum(r.id,"allTimeSales"))),1),n("td",Mse,c(e.familyMoney(r.id,"allTimeRevenue","allTimeRevenueComplete")),1)]),(a(!0),l(N,null,U(e.familyPlans(r.id),o=>(a(),l("tr",{key:o.planId,class:T({"bl-idle":!o.active&&!o.sales&&!o.allTimeSales})},[n("th",Vse,[n("button",{type:"button",class:"bl-link",title:"Show "+o.name+" sales",onClick:u=>e.filterPlan(o.planId)},c(o.name),9,qse)]),n("td",Lse,c(e.fmt?.number(o.active)),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",$se,c(e.fmt?.number(o.sales)),1),n("td",Fse,c(e.revenueOn()?o.revenueComplete===!1?"Incomplete":e.moneyText(o.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Use,c(e.fmt?.number(o.allTimeSales)),1),n("td",Bse,c(e.revenueOn()?o.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(o.allTimeRevenue):"\u2014"),1)],2))),128))])),[[te,e.familyPlans(r.id).length]])),128)),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",Hse,c(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",zse,c(e.fmt?.number(e.planTotals().sales)),1),n("td",jse,c(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",_se,c(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",Gse,c(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack, here, in the chart and in the list below. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \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 "),n("section",Wse,[t[80]||(t[80]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",Kse,[n("div",Yse,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=r=>e.setStateView("all"))},[t[43]||(t[43]=h("All ",-1)),n("span",Qse,c(e.fmt?.number(e.stateCount("all"))),1)],10,Xse),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=r=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=h("Active ",-1)),n("span",Zse,c(e.fmt?.number(e.stateCount("active"))),1)],10,Jse),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=r=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=h("Expired ",-1)),n("span",eoe,c(e.fmt?.number(e.stateCount("expired"))),1)],10,xse),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=r=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=h("Revoked ",-1)),n("span",noe,c(e.fmt?.number(e.stateCount("revoked"))),1)],10,toe)]),n("p",soe,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=h(" shown",-1))])]),e.grantsError?(a(),l("div",ooe,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=r=>e.reloadGrants())},"Retry")])):f("v-if",!0),O((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=de(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=r=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=h("Filters",-1)),e.filterCount()?(a(),l(N,{key:0},[h(" ("+c(e.filterCount())+")",1)],64)):f("v-if",!0)],8,ioe),n("div",{class:T(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",roe,[O(n("input",aoe,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]])]),n("span",loe,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),O((a(),l("select",doe,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(N,null,U(e.families,r=>(a(),l("optgroup",{key:r.id,label:r.label},[(a(!0),l(N,null,U((e.summary?.plans||[]).filter(o=>o.family===r.id),o=>(a(),l("option",{key:o.planId,value:o.planId},c(o.name),9,coe))),128))],8,uoe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.plan=r},value:e.query?.plan,form:null,options:{}}]])]),n("span",poe,[t[56]||(t[56]=n("label",{for:"bl-period"},"Started",-1)),O((a(),l("select",foe,[t[55]||(t[55]=n("option",{value:""},"Any time",-1)),(a(!0),l(N,null,U(e.periods.filter(r=>r.id!=="all"),r=>(a(),l("option",{key:r.id,value:r.id},"Last "+c(r.label),9,moe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.period=r},value:e.query?.period,form:null,options:{}}]])]),n("span",hoe,[t[58]||(t[58]=n("label",{for:"bl-status"},"Stripe status",-1)),O((a(),l("select",goe,[t[57]||(t[57]=n("option",{value:""},"Any",-1)),(a(!0),l(N,null,U(e.statuses,r=>(a(),l("option",{key:r,value:r},c(r.replace(/_/g," ")),9,yoe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.status=r},value:e.query?.status,form:null,options:{}}]])]),t[61]||(t[61]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",voe,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,boe),n("span",woe,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,koe)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",Coe,[n("div",Eoe,[(a(!0),l(N,null,U(e.chips,r=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",Soe,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:o=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Noe)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",Roe,[n("table",Toe,[t[73]||(t[73]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[67]||(t[67]=n("th",{scope:"col"},"User",-1)),t[68]||(t[68]=n("th",{scope:"col"},"Plan",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Status",-1)),n("th",Poe,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=r=>e.sortBy("purchasedAt"))},[t[64]||(t[64]=h("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",Doe,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=r=>e.sortBy("until"))},[t[66]||(t[66]=h("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[65]||(t[65]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[70]||(t[70]=n("th",{scope:"col",class:"num"},"Amount",-1)),t[71]||(t[71]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(N,null,U(e.grants,r=>(a(),l("tr",{key:r.id},[n("th",Aoe,[r.user?(a(),l("a",{key:0,title:r.user,href:e.safeUrl("/admin/users/"+r.user)},c(r.user),9,Ioe)):(a(),l("span",Ooe,"Deleted user"))]),n("td",null,[n("span",{class:"bl-plan-cell",title:e.familyLabel(r.family)},[n("span",{class:T(["bl-swatch","bl-"+r.family]),"aria-hidden":"true"},null,2),h(c(e.planName(r.planId)),1)],8,Moe),r.pack?(a(),l("small",{key:0,title:e.packPartsTitle(r)},c(e.packParts(r)),9,Voe)):f("v-if",!0)]),n("td",null,[n("span",qoe,[n("span",{class:T(["status-dot",r.state==="active"?"st-ready":r.state==="revoked"?"st-error":"st-expired"])},null,2),h(c(r.state==="active"?"Active":r.state==="revoked"?"Revoked":"Expired"),1)]),r.revoked?(a(),l("small",Loe,[h(c(e.revocationText(r.revocationReason)),1),r.revokedAt?(a(),l(N,{key:0},[h(" \xB7 "+c(e.fmt?.date(r.revokedAt)),1)],64)):f("v-if",!0)])):["active","paid"].includes(r.status)?f("v-if",!0):(a(),l("small",$oe,"Stripe: "+c(e.statusText(r)),1))]),n("td",Foe,c(r.purchasedAt?e.fmt?.date(r.purchasedAt):"\u2014"),1),n("td",Uoe,[h(c(e.endText(r)),1),r.subscription&&r.cancelAtPeriodEnd&&r.state==="active"?(a(),l("small",Boe,[...t[72]||(t[72]=[n("span",{class:"bl-flag"},"Cancelling",-1)])])):e.packNote(r)?(a(),l("small",Hoe,c(e.packNote(r)),1)):f("v-if",!0)]),n("td",{class:"num bl-amount",title:e.amountTitle(r)},[n("span",{class:T({"ov-muted":!r.amount})},c(e.amountText(r)),3)],8,zoe),n("td",joe,[e.scopeHref(r.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(r.scope)),title:r.scope.id},[(a(),l("svg",Goe,[n("use",{href:r.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,Woe)])),n("span",null,c(r.scope.id),1)],8,_oe)):(a(),l("span",Koe,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",Yoe,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,c(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",Xoe,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",Qoe,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",Joe,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,Zoe),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,xoe),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,eie)])):f("v-if",!0),n("span",tie,[t[78]||(t[78]=n("label",{for:"bl-limit"},"Per page",-1)),O((a(),l("select",nie,[...t[77]||(t[77]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var sie={class:"paper-footer"},oie={class:"paper-footer-inner"},iie={class:"paper-footer-col"},rie={key:0,href:"/dashboard"},aie={key:1,href:"/conferences"},lie={class:"paper-footer-foot"};function sm(e,t){return a(),l("footer",sie,[n("div",oie,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[h("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",iie,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",rie,"My work")):f("v-if",!0),e.user?(a(),l("a",aie,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Pe('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",lie,[n("span",null,"\xA9 "+c(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var ea={"partials/reviewConsent.htm":Rf,"partials/connections.htm":Tf,"partials/signin.htm":Pf,"partials/404.htm":Df,"partials/admin/billing.htm":nm,"partials/admin/emails.htm":Nf,"partials/admin/conferences.htm":Af,"partials/admin/errors.htm":If,"partials/admin/entityErrors.htm":Of,"partials/admin/overview.htm":Mf,"partials/admin/queues.htm":Vf,"partials/admin/repositories.htm":qf,"partials/admin/user.htm":Lf,"partials/admin/users.htm":$f,"partials/anonymize.htm":Ff,"partials/anonymizePullRequest.htm":Uf,"partials/claim.htm":Bf,"partials/conference.htm":Hf,"partials/conferences.htm":zf,"partials/dashboard.htm":jf,"partials/explorer.htm":_f,"partials/faq.htm":Gf,"partials/gist.htm":Wf,"partials/header.htm":Kf,"partials/home.htm":Yf,"partials/loading.htm":Xf,"partials/newConference.htm":Qf,"partials/pageView.htm":Jf,"partials/pr-dashboard.htm":Zf,"partials/profile.htm":xf,"partials/pullRequest.htm":em,"partials/status.htm":tm,"partials/footer.htm":sm};var die={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function om(e,t){return a(),l("svg",die,[...t[0]||(t[0]=[Pe('',1)])])}function im(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=r=>{r.preventDefault();let o=r.clientX,u=t.sidebarWidth,p=g=>{t.sidebarWidth=Math.min(520,Math.max(220,u+g.clientX-o)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},d=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",d),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",d)}),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 i={"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(i){let r=Ye(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>r.value})}}function rm(e=(...t)=>fetch(...t)){async function t(i,r,o,u={}){let p=new URL(r,window.location.href);for(let[m,v]of Object.entries(u.params||{}))if(v!=null)for(let y of Array.isArray(v)?v:[v])p.searchParams.append(m,typeof y=="object"?JSON.stringify(y):y);let d=new AbortController,g;u.timeout?.then?u.timeout.then(()=>d.abort()):u.timeout&&(g=setTimeout(()=>d.abort(),u.timeout));try{let m={Accept:"application/json, text/plain, */*",...u.headers},v=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);v&&p.origin===window.location.origin&&(m["X-XSRF-TOKEN"]=decodeURIComponent(v[1]));let y;o!==void 0&&(o instanceof FormData?y=o:(m["Content-Type"]||(m["Content-Type"]="application/json;charset=utf-8"),y=JSON.stringify(o)));let C=await e(p.href,{method:i,headers:m,body:y,credentials:"same-origin",signal:d.signal}),k;if(u.onDownloadProgress&&C.ok&&C.body?.getReader&&typeof TextDecoder<"u"){let b=C.body.getReader(),P=new TextDecoder,D=[],L=0;try{for(;;){let{value:H,done:_}=await b.read();if(_)break;D.push(P.decode(H,{stream:!0})),L+=H.byteLength,u.onDownloadProgress(L)}D.push(P.decode()),k=D.join("")}finally{b.releaseLock()}}else k=await C.text();let w=k;if(u.transformResponse)w=u.transformResponse(k);else if(k&&(/json/i.test(C.headers.get("content-type")||"")||/^[\[{]/.test(k.trim())))try{w=JSON.parse(k)}catch{}let R={data:w,status:C.status,headers:b=>C.headers.get(b)};if(!C.ok)throw R;return R}catch(m){throw m.name==="AbortError"?{status:-1,data:null}:m}finally{clearTimeout(g)}}let s={};for(let i of["get","delete","head"])s[i]=(r,o)=>t(i.toUpperCase(),r,void 0,o);for(let i of["post","put","patch"])s[i]=(r,o,u)=>t(i.toUpperCase(),r,o,u);return s}var am={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}}};var lm=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var dm={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=bt(null);return Qt(()=>{let i=[t.value][0];i.classList.add("html-doc");function r(){i.innerHTML="";let o=e.content;if(typeof o!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let d="";e.baseUrl&&(d=''),u.srcdoc=d+o}dt(()=>e.content,r,{immediate:!0}),dt(()=>e.baseUrl,r,{immediate:!0}),dt(()=>e.allowScripts,r,{immediate:!0})}),()=>we("html-doc",{ref:t})}};var um={name:"pdfviewer",props:["src"],setup(e){let t=bt(null);return Qt(()=>{let s=[t.value],i=400,r=[.5,.75,1,1.25,1.5,2,3],o=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,d=[],g=!1,m=null,v=1,y=0,C=1,k=0,w=0,R=612/792,b=0,P=null,D=new Map,L=0;function H(I){let z=D.get(I);z&&(z.cancelled=!0,z.task?.cancel?.(),D.delete(I));let x=I.querySelector("canvas");x&&(x.width=0,x.height=0),I.innerHTML="",delete I.dataset.state}let _=document.createElement("div");_.className="pdf-toolbar";let W=document.createElement("div");W.className="pdf-pages",W.tabIndex=0,W.setAttribute("aria-label","PDF pages"),u.appendChild(_),u.appendChild(W);function re(I,z,x){let X=document.createElement("button");return X.type="button",X.className="pdf-toolbar-btn",X.title=z,X.setAttribute("aria-label",z),X.innerHTML='',X.addEventListener("click",x),X}let F=re("fa-chevron-up","Previous page",function(){tt(C-1)}),V=re("fa-chevron-down","Next page",function(){tt(C+1)}),S=document.createElement("input");S.type="text",S.className="pdf-toolbar-page",S.setAttribute("aria-label","Page number"),S.title="Page number \u2014 type a page and press Enter",S.addEventListener("keydown",function(I){I.key==="Enter"&&(tt(parseInt(S.value,10)),S.blur())}),S.addEventListener("blur",function(){S.value=String(C)});let q=document.createElement("span");q.className="pdf-toolbar-count";let G=re("fa-search-minus","Zoom out",function(){Ee(r[Math.max(0,ye()-1)])}),ie=re("fa-search-plus","Zoom in",function(){Ee(r[Math.min(r.length-1,ye()+1)])}),K=document.createElement("button");K.type="button",K.className="pdf-toolbar-btn pdf-toolbar-zoom",K.title="Reset zoom to fit the width",K.setAttribute("aria-label","Reset zoom to fit the width"),K.addEventListener("click",function(){Ee(1)}),_.appendChild(F),_.appendChild(V);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(S),ne.appendChild(q),_.appendChild(ne);let le=document.createElement("span");le.className="pdf-toolbar-group pdf-toolbar-right",le.appendChild(G),le.appendChild(K),le.appendChild(ie),_.appendChild(le);function ye(){let I=0;for(let z=0;z=I,K.textContent=v===1||!y?"Fit":Math.round(ht()/(y*96/72)*100)+"%",G.disabled=ye()===0,ie.disabled=ye()===r.length-1}function Xe(I){let z=d[I-1];z&&(W.scrollTop+=z.getBoundingClientRect().top-W.getBoundingClientRect().top)}function tt(I){if(!p||isNaN(I))return;let z=Math.min(Math.max(1,I),p.numPages);d[z-1]&&(Xe(z),C=z,k=z,w=Date.now()+800,Ae(),Q())}function Ge(){if(!d.length||Date.now(){}),P=null),m&&(clearTimeout(m),m=null),p&&(p.destroy(),p=null),d=[],C=1,W.innerHTML="",Ae()}function it(){W.innerHTML="";let I=document.createElement("div");I.className="pdf-viewer-error",I.textContent="This PDF could not be displayed.",W.appendChild(I)}function ht(){let I=Math.max(120,W.clientWidth-24);return Math.round(Math.min(I,o)*v)}function Oe(I,z,x){let X=window.devicePixelRatio||1,se=I.getViewport({scale:1}),ce=parseFloat(z.style.width);if(!ce)return;let ae=I.getViewport({scale:ce/se.width*X}),oe=document.createElement("canvas");return oe.width=Math.floor(ae.width),oe.height=Math.floor(ae.height),oe.style.width=ce+"px",oe.style.height=Math.floor(ae.height/X)+"px",z.innerHTML="",z.appendChild(oe),z.style.height=oe.style.height,x.task=I.render({canvasContext:oe.getContext("2d"),viewport:ae}),x.task.promise}function Q(){if(!p)return;let I=b,z=W.getBoundingClientRect(),x=z.top-i,X=z.top+W.clientHeight+i,se=d.map((ae,oe)=>({slot:ae,i:oe,rect:ae.getBoundingClientRect()})).filter(ae=>ae.rect.top<=X&&ae.rect.bottom>=x).sort((ae,oe)=>Math.abs(ae.rect.top-z.top)-Math.abs(oe.rect.top-z.top)).slice(0,6),ce=new Set(se.map(ae=>ae.slot));for(let ae of D.keys())ce.has(ae)||H(ae);for(let{slot:ae,i:oe}of se){if(ae.dataset.state||L>=2)continue;let Z={cancelled:!1,task:null};D.set(ae,Z),L++,ae.dataset.state="rendering";let Ne;p.getPage(oe+1).then(fe=>{if(Ne=fe,!(Z.cancelled||I!==b))return Oe(Ne,ae,Z)}).then(()=>{Z.cancelled||I!==b||(ae.dataset.state="done",k&&Date.now(){!Z.cancelled&&I===b&&(ae.dataset.state="failed")}).finally(()=>{L--,Ne?.cleanup?.(),p&&Q()})}}function he(){g||(g=!0,window.requestAnimationFrame(function(){g=!1,Ge(),Q()}))}function ee(){let I=!1;function z(){I||(I=!0,Q())}window.requestAnimationFrame(z),window.setTimeout(z,50)}function ge(){b++,d.forEach(H);let I=ht();d.forEach(function(z){delete z.dataset.state,z.innerHTML="",z.style.width=I+"px",z.style.height=Math.round(I/R)+"px"}),Q()}function Ee(I){if(!p||!d.length||I===v)return;let z=C;v=I,Ae(),ge(),tt(z)}function Ie(){p&&(m&&clearTimeout(m),m=setTimeout(function(){m=null,p&&d.length&&ge()},250))}function A(I){if(We(),!I)return;let z=b;P=pdfjsLib.getDocument({url:I,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),P.promise.then(function(x){if(z!==b){x.destroy();return}return p=x,p.getPage(1).then(function(X){if(z!==b)return;let se=X.getViewport({scale:1});se.width&&se.height&&(R=se.width/se.height),y=se.width||0;let ce=ht();for(let ae=1;ae<=p.numPages;ae++){let oe=document.createElement("div");oe.className="pdf-viewer-page",oe.style.width=ce+"px",oe.style.height=Math.round(ce/R)+"px",W.appendChild(oe),d.push(oe)}Ae(),ee()})}).catch(function(){z===b&&it()})}W.addEventListener("scroll",he,{passive:!0}),$(window).on("resize",Ie),Ae(),dt(()=>e.src,A,{immediate:!0}),Fn(function(){W.removeEventListener("scroll",he),$(window).off("resize",Ie),We()})}),()=>we("pdfviewer",{ref:t})}};var uie={key:0,class:"quota-row quota-usage"},cie={class:"quota-header"},pie={class:"quota-label"},fie={class:"project-type-svg","aria-hidden":"true"},mie=["href"],hie={key:0,class:"quota-percent"},gie={key:1,class:"quota-unlimited-tag"},yie={class:"quota-value"},vie={key:0},bie=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],wie={key:1,class:"quota-remaining"},kie={key:2,class:"quota-remaining quota-limit"};function cm(e,t){return e.quota?(a(),l("div",uie,[(a(),l(N,null,U([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:T(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",cie,[n("span",pie,[(a(),l("svg",fie,[n("use",{href:"#"+s.icon},null,8,mie)])),h(c(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",hie,c(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",gie,"Unlimited")):f("v-if",!0)]),n("div",yie,[n("strong",null,c(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",vie," / "+c(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:T(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:De({width:e.quota[s.key].percent+"%"})},null,4))],10,bie)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",kie,c(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var Cie=["#2a78d6","#eb6834","#1baf7a","#eda100"],Eie=["#3987e5","#d95926","#199e70","#c98500"],ta={bar:4,line:4,scatter:3},Sie=40,Nie=500,pm=2e3,Rie=e=>e.type==="number"&&!!e.identifier;function mm(e,t){let s=e.columns,i=t?s[0]:s.find(u=>u.type==="text")||s.find(u=>u.type==="date")||s.find(u=>u.type==="number"),r=s.filter(u=>u.type==="number"&&u!==i&&!(t&&u.index===1)),o=r.find(u=>!Rie(u))||r[0];return{type:i&&i.type!=="text"?"line":"bar",x:i?.name||null,y:o?[o.name]:[]}}function xl(e,t,s=5){if(!Number.isFinite(e)||!Number.isFinite(t))return{min:0,max:1,ticks:[0,1],step:1};if(e===t){let g=Math.abs(e)*.1||1;e-=g,t+=g}let i=(t-e)/s,r=10**Math.floor(Math.log10(i)),o=[1,2,2.5,5,10].map(g=>g*r).find(g=>g>=i)||10*r,u=Math.floor(e/o+1e-9)*o,p=Math.ceil(t/o-1e-9)*o,d=[];for(let g=u;g<=p+o/2;g+=o)d.push(Math.abs(g)(String(+e.toPrecision(6)).split(".")[1]||"").length;function ed(e,t,s=""){let i=Math.abs(e);if(i>=1e4){let[r,o]=i>=1e9?[1e9,"B"]:i>=1e6?[1e6,"M"]:[1e3,"K"];return Ot(e/r,Math.max(0,fm(t/r)))+o+s}return Ot(e,fm(t))+s}var wi=(e,t=11.5)=>String(e).length*t*.56;function hm(e,t,s,i){let r=e.columns,o=r.find(y=>y.name===s.x),u=s.type||"bar",p=(s.y||[]).map(y=>r.find(C=>C.name===y&&C.type==="number")).filter(Boolean).slice(0,ta[u]),d=i.dark?Eie:Cie,g=Math.max(260,Math.floor(i.width||640)),m={type:u,width:g,x:o,ys:p,notes:[],series:p.map((y,C)=>({name:y.name,color:d[C]}))};if(!o)return{...m,empty:"Pick a column for the x axis."};if(!p.length)return{...m,empty:"Pick at least one numeric column to plot."};if(!t.length)return{...m,empty:"No rows match the current filters."};(s.y||[]).length>p.length&&m.notes.push(`Showing the first ${p.length} series; a chart with more is hard to read.`);let v=p.map(y=>Math.max(...t.slice(0,5e3).map(C=>Math.abs(y.keys[C]??0)))).filter(y=>y>0);return v.length>1&&Math.max(...v)/Math.min(...v)>20&&m.notes.push("These columns have very different ranges; chart them one at a time to compare their values."),u==="bar"?Pie(e,t,o,p,s,m):u==="line"?Iie(e,t,o,p,s,m):Oie(e,t,o,p,m)}function Zl(e,t,s,i,r){let o=new Map;for(let d of t){let g=s.keys[d]==null?"":s.keys[d];o.has(g)||o.set(g,{key:g,label:g===""?"(empty)":s.type==="text"?String(e.body[d][s.index]).trim():Ft(s,g),rows:[]}),o.get(g).rows.push(d)}let u=[...o.values()],p=u.some(d=>d.rows.length>1);for(let d of u)d.values=i.map(g=>p?Xn(g.keys,d.rows,r):g.keys[d.rows[0]]);return{list:u,repeated:p}}function Tie(e,t){return s=>Ft(e,s,t)}function Pie(e,t,s,i,r,o){let u=r.agg||"mean",{list:p,repeated:d}=Zl(e,t,s,i,u),g=p.slice(0,Sie);d&&o.notes.unshift(`${As(u)} per ${s.name} over ${t.length} rows.`),p.length>g.length&&o.notes.push(`First ${g.length} of ${p.length} ${s.name} values, in table order.`);let m=g.flatMap(S=>S.values).filter(S=>S!=null),v=Math.min(0,...m),y=Math.max(0,...m),C=xl(v,y,o.width<480?4:6),k=i.map(S=>Tie(S,d?u:void 0)),w=Math.min(Math.max(...g.map(S=>wi(S.label,12)))+12,Math.round(o.width*.38)),R=Math.max(...g.flatMap(S=>S.values.map((q,G)=>wi(k[G](q),11.5))))+10,b=i.length>2?12:16,P=2,D=14,L=i.length*b+(i.length-1)*P+D,H=8,_=26,W={x:w,y:H,w:Math.max(80,o.width-w-R-4),h:g.length*L},re=S=>W.x+(S-C.min)/(C.max-C.min)*W.w,F=re(0),V=[];return g.forEach((S,q)=>{let G=W.y+q*L+D/2;S.values.forEach((ie,K)=>{if(ie==null)return;let ne=re(ie),le=Math.min(F,ne),ye=Math.abs(ne-F);V.push({key:q+":"+K,series:K,cat:q,x:le,y:G+K*(b+P),w:ye,h:b,positive:ie>=0,color:o.series[K].color,path:Die(le,G+K*(b+P),ye,b,ie>=0),label:k[K](ie),lx:ie>=0?ne+6:ne-6,anchor:ie>=0?"start":"end",ly:G+K*(b+P)+b/2})})}),{...o,kind:"bar",height:W.y+W.h+_,plot:W,zero:F,categories:g.map((S,q)=>({label:S.label,y:W.y+q*L+L/2,hit:{y:W.y+q*L,h:L},tip:{title:S.label,rows:S.values.map((G,ie)=>({name:i[ie].name,color:o.series[ie].color,value:k[ie](G)})),note:d?`${As(u)} of ${S.rows.length} ${S.rows.length===1?"row":"rows"}`:""}})),marks:V,showValues:g.length<=30,xTicks:C.ticks.map(S=>({v:S,x:re(S),label:ed(S,C.step,i.length===1?i[0].unit:"")})),axisLabel:i.length===1?d?`${As(u)} ${i[0].name}`:gm(i[0]):d?As(u):""}}function Die(e,t,s,i,r){let o=Math.min(4,s/2,i/2);return s<=.5?"":r?`M${e},${t}H${e+s-o}Q${e+s},${t} ${e+s},${t+o}V${t+i-o}Q${e+s},${t+i} ${e+s-o},${t+i}H${e}Z`:`M${e+s},${t}H${e+o}Q${e},${t} ${e},${t+o}V${t+i-o}Q${e},${t+i} ${e+o},${t+i}H${e+s}Z`}var gm=e=>e.agg?`${As(e.agg)} ${e.name}`:e.name,As=e=>({mean:"Average",sum:"Sum",median:"Median",min:"Min",max:"Max",count:"Count",std:"Std dev"})[e]||e;function Aie(e,t,s,i){if(i){let r=e.map(p=>p.xv),o=xl(Math.min(...r),Math.max(...r),s<360?3:6),u=o.ticks;if(t.type==="date"){let p=Math.min(...r),d=Math.max(...r),g=d-p||864e5,m=36e5,v=24*m,y=[m,3*m,6*m,12*m,v,2*v,7*v,14*v,30*v,91*v,182*v,365*v,730*v,1826*v],C=s<360?3:6,k=y.find(w=>g/w<=C)||y[y.length-1];u=[];for(let w=Math.ceil(p/k)*k;w<=d;w+=k)u.push(w);return u.length||(u=[p]),{min:p,max:d===p?p+v:d,ticks:u,label:w=>ml(w,ked(p,o.step,t.unit)}}return null}function Iie(e,t,s,i,r,o){let u=s.type!=="text",p;if(u){let d=t.filter(m=>s.keys[m]!=null);if(new Set(d.map(m=>s.keys[m])).size({xv:v.key,label:v.label,values:v.values,count:v.rows.length})),o.notes.unshift(`${As(r.agg||"mean")} per ${s.name}.`)}else p=d.map(m=>({xv:s.keys[m],label:Ft(s,s.keys[m]),values:i.map(v=>v.keys[m]),count:1}));p.sort((m,v)=>m.xv-v.xv)}else{let{list:d,repeated:g}=Zl(e,t,s,i,r.agg||"mean");p=d.map(m=>({label:m.label,values:m.values,count:m.rows.length})),g&&o.notes.unshift(`${As(r.agg||"mean")} per ${s.name}.`)}return p=ym(p,o),vm(p,s,i,o,u,"line",r)}function Oie(e,t,s,i,r){let o=s.type!=="text",u=t.filter(p=>s.keys[p]!=null).map(p=>({xv:o?s.keys[p]:null,label:s.type==="text"?String(e.body[p][s.index]).trim():Ft(s,s.keys[p]),values:i.map(d=>d.keys[p]),count:1,row:p}));if(!o){let p=new Map;if(u.forEach(d=>{p.has(d.label)||p.set(d.label,p.size),d.xv=p.get(d.label)}),p.size>Nie)return{...r,empty:`The x column has ${p.size.toLocaleString("en-US")} different values; choose a number or date column, or group the rows first.`};r.categoryLabels=[...p.keys()]}return u=ym(u,r),vm(u,s,i,r,!0,"scatter")}function ym(e,t){if(e.length<=pm)return e;let s=Math.ceil(e.length/pm);return t.notes.push(`Showing every ${s}th of ${e.length.toLocaleString("en-US")} points.`),e.filter((i,r)=>r%s===0)}function vm(e,t,s,i,r,o){let u=e.flatMap(_=>_.values).filter(_=>_!=null);if(!u.length)return{...i,empty:"The selected columns have no values in these rows."};let p=i.width<480,d=xl(u.reduce((_,W)=>Math.min(_,W),1/0),u.reduce((_,W)=>Math.max(_,W),-1/0),p?4:5),g=s.length===1?s[0].unit:"",m=d.ticks.map(_=>ed(_,d.step,g)),v=Math.max(...m.map(_=>wi(_)))+14,y=p?240:300,C={x:v,y:10,w:i.width-v-16,h:y-10-30},k=i.categoryLabels,w,R;if(r&&!k){let _=Aie(e,t,C.w,!0),W=_.max-_.min||1;w=re=>C.x+(re-_.min)/W*C.w,R=_.ticks.map(re=>({x:w(re),label:_.label(re)}))}else{let _=k?k.length:e.length,W=_>1?Math.min(24,C.w/(2*_)):C.w/2,re=_>1?(C.w-2*W)/(_-1):0;w=G=>C.x+W+G*re,k||e.forEach((G,ie)=>{G.xv=ie});let F=k||e.map(G=>G.label),V=F.reduce((G,ie)=>Math.max(G,wi(ie)),0),S=Math.max(2,Math.floor(C.w/(V+12))),q=Math.ceil(F.length/S);R=F.map((G,ie)=>({x:w(ie),label:G,show:ie%q===0})).filter(G=>G.show)}R.forEach(_=>{let W=wi(_.label)/2;_.anchor=_.x-WC.x+C.w+12?"end":"middle"});let b=_=>C.y+C.h-(_-d.min)/(d.max-d.min||1)*C.h,P=s.map(_=>W=>Ft(_,W,void 0)),D=e.length<=80||o==="scatter",L=i.series.map((_,W)=>{let re=e.map((S,q)=>S.values[W]==null?null:{i:q,x:w(S.xv),y:b(S.values[W])}),F="",V=!1;for(let S of re){if(!S){V=!1;continue}F+=(V?"L":"M")+S.x.toFixed(1)+","+S.y.toFixed(1),V=!0}return{..._,path:o==="line"?F:"",dots:D?re.filter(Boolean):[]}}),H=e.map(_=>({x:w(_.xv),title:(t.type==="text"||k?"":t.name+" ")+_.label,rows:_.values.map((W,re)=>({name:s[re].name,color:i.series[re].color,value:W==null?"\u2014":P[re](W)})),note:_.count>1?`${_.count} rows`:""}));return{...i,kind:o,height:y,plot:C,series:L,points:H,yTicks:d.ticks.map((_,W)=>({y:b(_),label:m[W]})),xTicks:R,xLabel:t.name,yLabel:s.length===1?gm(s[0]):""}}var Mie=["aria-label"],Vie={class:"dt-search"},qie=["value"],Lie={class:"dt-chip-name"},$ie=["aria-label"],Fie=["aria-label","onClick"],Uie={class:"dt-count","aria-live":"polite"},Bie={class:"dt-tools"},Hie=["value"],zie=["value"],jie={key:0,class:"dt-select is-on"},_ie=["value"],Gie=["value"],Wie={class:"dt-copy"},Kie=["aria-expanded","title"],Yie={class:"ui-icon","aria-hidden":"true"},Xie=["href"],Qie={key:0,class:"tb-menu dt-copy-menu",role:"menu"},Jie={class:"tb-menu-label"},Zie={class:"dt-tools-m"},xie=["aria-expanded"],ere={key:0,class:"tb-menu dt-tools-menu",role:"menu"},tre={class:"dt-menu-field"},nre=["value"],sre=["value"],ore={key:0,class:"dt-menu-field"},ire=["value"],rre=["value"],are=["onClick"],lre={class:"dt-chart-controls"},dre={class:"seg-filter dt-chart-type",role:"radiogroup","aria-label":"Chart type"},ure=["aria-checked","onClick"],cre={class:"dt-select is-on"},pre=["value"],fre=["value"],mre={class:"dt-y",role:"group","aria-label":"Columns to plot"},hre=["aria-pressed","onClick"],gre={key:0,class:"dt-chart-notes"},yre={key:1,class:"dt-legend"},vre={key:2,class:"dt-chart-empty"},bre=["width","height","viewBox","aria-label"],wre=["x1","x2","y1","y2"],kre=["y","width","height"],Cre=["d"],Ere=["x1","x2","y1","y2"],Sre=["x","y"],Nre=["x","y","text-anchor"],Rre=["x","y"],Tre=["y","width","height"],Pre=["x1","x2","y1","y2"],Dre=["x","y"],Are=["x1","x2","y1","y2"],Ire=["x","y","text-anchor"],Ore=["x1","x2","y1","y2"],Mre=["d"],Vre=["cx","cy","r"],qre=["x","y","width","height"],Lre={key:4,class:"dt-axis-label"},$re={key:0,class:"dt-tip-title"},Fre=["aria-label"],Ure={key:1,class:"dt-tip-note"},Bre=["aria-label"],Hre={class:"csv-table dt-table"},zre={key:0,class:"csv-rownum",scope:"col"},jre=["aria-sort"],_re={class:"dt-th"},Gre=["title","onClick"],Wre={class:"dt-th-name"},Kre=["aria-label"],Yre={key:0,class:"dt-th-agg"},Xre=["data-col","aria-label","aria-expanded","onClick"],Qre=["innerHTML"],Jre={key:1},Zre={class:"dt-empty-row"},xre=["colspan"],eae={key:2},tae={class:"dt-summary"},nae={key:0,class:"csv-rownum"},sae={key:0,class:"dt-sum"},oae={class:"dt-sum-fn"},iae={class:"sr-only"},rae=["value","onChange"],aae=["value"],lae={class:"dt-sum-fn-label","aria-hidden":"true"},dae={class:"dt-sum-value"},uae={key:1,class:"dt-sum is-text"},cae={key:0,class:"dt-more"},pae=["aria-label"],fae={class:"dt-menu-head"},mae=["aria-label"],hae={class:"dt-stats"},gae={key:0,class:"dt-hist"},yae=["aria-label"],vae=["x","y","width","height"],bae={key:1,class:"dt-top"},wae={class:"dt-top-name"},kae=["aria-label"],Cae={class:"dt-top-n"},Eae={key:2,class:"dt-menu-sec"},Sae=["aria-checked"],Nae={class:"ui-icon","aria-hidden":"true"},Rae=["href"],Tae={key:0,class:"dt-menu-hint"},Pae={class:"dt-menu-sec"},Dae={class:"seg-filter dt-menu-sort",role:"group","aria-label":"Sort"},Aae={key:3,class:"dt-menu-sec"},Iae={class:"dt-range"},Oae=["value"],Mae=["value"],Vae={key:4,class:"dt-menu-sec"},qae={class:"dt-chips"},Lae=["aria-pressed","onClick"],$ae=["aria-label"],Fae={class:"dt-value-n"},Uae={key:5,class:"dt-menu-sec"},Bae={key:6,class:"dt-menu-sec"};function bm(e,t){return a(),l("div",{class:T(["dt",{"is-chart":e.view==="chart","is-grouped":!!e.groupColumn}])},[n("div",{class:"dt-toolbar",role:"toolbar","aria-label":"Analyze "+(e.label||e.name||"table")},[n("label",Vie,[t[36]||(t[36]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),t[37]||(t[37]=n("span",{class:"sr-only"},"Filter rows",-1)),n("input",{type:"search",class:"dt-search-input",placeholder:"Filter rows",autocomplete:"off",spellcheck:"false",value:e.s.query,onInput:t[0]||(t[0]=s=>e.s.query=s.target.value),onKeydown:t[1]||(t[1]=Rt(s=>e.s.query="",["esc"]))},null,40,qie)]),(a(!0),l(N,null,U(e.activeFilters,s=>(a(),l("span",{class:"dt-chip",key:s.key},[n("span",Lie,c(s.name),1),(a(!0),l(N,null,U(e.redactParts(s.text),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,$ie)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128)),n("button",{type:"button",class:"dt-chip-x","aria-label":"Remove the "+s.name+" filter",onClick:i=>s.clear()},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Fie)]))),128)),e.activeFilters.length>1||e.activeFilters.length&&e.s.query?(a(),l("button",{key:0,type:"button",class:"dt-link",onClick:t[2]||(t[2]=s=>e.clearFilters())},"Clear")):f("v-if",!0),n("span",Uie,c(e.rowCountText),1),n("div",Bie,[n("label",{class:T(["dt-select",{"is-on":!!e.groupColumn}])},[t[40]||(t[40]=n("span",{class:"dt-select-label"},"Group by",-1)),n("select",{value:e.s.group||"",onChange:t[3]||(t[3]=s=>e.setGroup(s.target.value)),"aria-label":"Group rows by"},[t[39]||(t[39]=n("option",{value:""},"None",-1)),(a(!0),l(N,null,U(e.groupable,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,zie))),128))],40,Hie),t[41]||(t[41]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],2),e.groupColumn?(a(),l("label",jie,[t[42]||(t[42]=n("span",{class:"sr-only"},"Aggregate of each group",-1)),n("select",{value:e.s.agg,onChange:t[4]||(t[4]=s=>e.setAgg(s.target.value)),"aria-label":"Aggregate of each group"},[(a(!0),l(N,null,U(e.AGGREGATES,([s,i])=>(a(),l("option",{key:s,value:s},c(i),9,Gie))),128))],40,_ie),t[43]||(t[43]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))])):f("v-if",!0),n("div",Wie,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost dt-copy-btn",{"is-on":e.s.copyOpen}]),"aria-haspopup":"true","aria-expanded":e.s.copyOpen?"true":"false",title:e.isChanged()?"Copy or download this view":"Copy or download the table",onClick:t[5]||(t[5]=s=>e.s.copyOpen=!e.s.copyOpen)},[(a(),l("svg",Yie,[n("use",{href:e.s.copied&&e.s.copied!=="error"?"#ui-icon-check":"#project-icon-copy"},null,8,Xie)])),n("span",null,c(e.s.copied==="csv"?"Copied CSV":e.s.copied==="md"?"Copied Markdown":e.s.copied==="error"?"Copy failed":"Copy"),1),t[44]||(t[44]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,Kie),e.s.copyOpen?(a(),l("div",Qie,[n("div",Jie,c(e.isChanged()?"This view \xB7 "+e.formatNumber(e.sorted.length)+(e.groupColumn?" groups":" rows"):"All "+e.formatNumber(e.sorted.length)+" rows"),1),n("button",{type:"button",role:"menuitem",onClick:t[6]||(t[6]=s=>e.copyAs("csv"))},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),h("Copy as CSV",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[7]||(t[7]=s=>e.copyAs("md"))},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("Copy as Markdown table",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[8]||(t[8]=s=>e.download())},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download as CSV",-1)])])])):f("v-if",!0)])]),n("div",Zie,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only dt-tools-btn",{"is-on":e.s.toolsOpen||!!e.groupColumn}]),"aria-label":"Table tools","aria-haspopup":"true","aria-expanded":e.s.toolsOpen?"true":"false",onClick:t[9]||(t[9]=s=>e.s.toolsOpen=!e.s.toolsOpen)},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],10,xie),e.s.toolsOpen?(a(),l("div",ere,[n("label",tre,[t[50]||(t[50]=n("span",null,"Group by",-1)),n("select",{value:e.s.group||"",onChange:t[10]||(t[10]=s=>e.setGroup(s.target.value))},[t[49]||(t[49]=n("option",{value:""},"None",-1)),(a(!0),l(N,null,U(e.groupable,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,sre))),128))],40,nre)]),e.groupColumn?(a(),l("label",ore,[t[51]||(t[51]=n("span",null,"Aggregate",-1)),n("select",{value:e.s.agg,onChange:t[11]||(t[11]=s=>e.setAgg(s.target.value))},[(a(!0),l(N,null,U(e.AGGREGATES,([s,i])=>(a(),l("option",{key:s,value:s},c(i),9,rre))),128))],40,ire)])):f("v-if",!0),e.activeFilters.length?(a(),l(N,{key:1},[t[53]||(t[53]=n("div",{class:"tb-menu-sep"},null,-1)),t[54]||(t[54]=n("div",{class:"dt-menu-note"},"Filters",-1)),(a(!0),l(N,null,U(e.activeFilters,s=>(a(),l("button",{type:"button",role:"menuitem",key:"m"+s.key,onClick:i=>s.clear()},[t[52]||(t[52]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)),h(c(s.name)+": "+c(s.text),1)],8,are))),128))],64)):f("v-if",!0),t[58]||(t[58]=n("div",{class:"tb-menu-sep"},null,-1)),n("button",{type:"button",role:"menuitem",onClick:t[12]||(t[12]=s=>e.copyAs("csv"))},[...t[55]||(t[55]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),h("Copy as CSV",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[13]||(t[13]=s=>e.copyAs("md"))},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("Copy as Markdown table",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[14]||(t[14]=s=>e.download())},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download as CSV",-1)])])])):f("v-if",!0)])],8,Mie),e.view==="chart"?(a(),l(N,{key:0},[n("div",lre,[n("div",dre,[(a(),l(N,null,U(["bar","line","scatter"],s=>n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.chartSpec.type===s}]),key:s,"aria-checked":e.chartSpec.type===s?"true":"false",onClick:i=>e.setChartType(s)},c(s==="bar"?"Bar":s==="line"?"Line":"Scatter"),11,ure)),64))]),n("label",cre,[t[59]||(t[59]=n("span",{class:"dt-select-label"},"X",-1)),n("select",{value:e.chartSpec.x,onChange:t[15]||(t[15]=s=>e.setX(s.target.value)),"aria-label":"Column on the x axis"},[(a(!0),l(N,null,U(e.table.columns,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,fre))),128))],40,pre),t[60]||(t[60]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))]),n("div",mre,[t[61]||(t[61]=n("span",{class:"dt-select-label"},"Y",-1)),(a(!0),l(N,null,U(e.numericColumns.filter(s=>s.name!==e.chartSpec.x),s=>(a(),l("button",{type:"button",class:T(["dt-y-chip",{"is-on":e.yOn(s.name)}]),key:s.index,"aria-pressed":e.yOn(s.name)?"true":"false",onClick:i=>e.toggleY(s.name)},[e.yOn(s.name)?(a(),l("span",{key:0,class:T(["dt-key",["is-"+e.chartSpec.type]]),style:De({"--key":"var(--dt-series-"+(e.seriesIndex(s.name)+1)+")"})},null,6)):f("v-if",!0),h(c(s.name),1)],10,hre))),128))])]),n("figure",{class:"dt-chart",ref:"chartHost",onMouseleave:t[22]||(t[22]=s=>e.leaveChart())},[e.chart&&e.chart.notes.length?(a(),l("figcaption",gre,c(e.chart.notes.join(" ")),1)):f("v-if",!0),e.chart&&!e.chart.empty&&e.chart.series.length>1?(a(),l("div",yre,[(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l("span",{class:"dt-legend-item",key:s.name},[n("span",{class:T(["dt-key","is-"+e.chart.kind]),style:De({"--key":"var(--dt-series-"+(i+1)+")"})},null,6),h(c(s.name),1)]))),128))])):f("v-if",!0),e.chart&&e.chart.empty?(a(),l("p",vre,c(e.chart.empty),1)):f("v-if",!0),e.chart&&!e.chart.empty?(a(),l("svg",{key:3,class:"dt-svg",width:e.chart.width,height:e.chart.height,viewBox:"0 0 "+e.chart.width+" "+e.chart.height,role:"img","aria-label":e.chartSummary,tabindex:"0",onKeydown:t[20]||(t[20]=s=>e.keyStep(s)),onBlur:t[21]||(t[21]=s=>e.leaveChart())},[e.chart.kind==="bar"?(a(),l(N,{key:0},[(a(!0),l(N,null,U(e.chart.xTicks,s=>(a(),l("line",{key:"g"+s.v,class:"dt-grid",x1:s.x,x2:s.x,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,wre))),128)),e.s.tip?(a(),l("rect",{key:0,class:"dt-hover-band",x:0,y:e.chart.categories[e.s.tip.index].hit.y,width:e.chart.width,height:e.chart.categories[e.s.tip.index].hit.h},null,8,kre)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.marks,s=>(a(),l("path",{key:s.key,class:T(["dt-bar",{"is-dim":e.s.tip&&e.s.tip.index!==s.cat}]),d:s.path,style:De({fill:"var(--dt-series-"+(s.series+1)+")"})},null,14,Cre))),128)),n("line",{class:"dt-axis",x1:e.chart.zero,x2:e.chart.zero,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,Ere),(a(!0),l(N,null,U(e.chart.categories,(s,i)=>(a(),l("text",{key:"c"+i,class:"dt-cat",x:e.chart.plot.x-10,y:s.y,"text-anchor":"end","dominant-baseline":"central"},c(s.label.length>28?s.label.slice(0,27)+"\u2026":s.label),9,Sre))),128)),e.chart.showValues?(a(!0),l(N,{key:1},U(e.chart.marks,s=>(a(),l("text",{key:"v"+s.key,class:"dt-value",x:s.lx,y:s.ly,"text-anchor":s.anchor,"dominant-baseline":"central"},c(s.label),9,Nre))),128)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.xTicks,s=>(a(),l("text",{key:"t"+s.v,class:"dt-tick",x:s.x,y:e.chart.plot.y+e.chart.plot.h+16,"text-anchor":"middle"},c(s.label),9,Rre))),128)),n("rect",{class:"dt-hit",x:"0",y:e.chart.plot.y,width:e.chart.width,height:e.chart.plot.h,onPointermove:t[16]||(t[16]=s=>e.pointerAt(s)),onPointerdown:t[17]||(t[17]=s=>e.pointerAt(s))},null,40,Tre)],64)):(a(),l(N,{key:1},[(a(!0),l(N,null,U(e.chart.yTicks,(s,i)=>(a(),l("line",{key:"g"+i,class:"dt-grid",x1:e.chart.plot.x,x2:e.chart.plot.x+e.chart.plot.w,y1:s.y,y2:s.y},null,8,Pre))),128)),(a(!0),l(N,null,U(e.chart.yTicks,(s,i)=>(a(),l("text",{key:"y"+i,class:"dt-tick",x:e.chart.plot.x-8,y:s.y,"text-anchor":"end","dominant-baseline":"central"},c(s.label),9,Dre))),128)),n("line",{class:"dt-axis",x1:e.chart.plot.x,x2:e.chart.plot.x+e.chart.plot.w,y1:e.chart.plot.y+e.chart.plot.h,y2:e.chart.plot.y+e.chart.plot.h},null,8,Are),(a(!0),l(N,null,U(e.chart.xTicks,(s,i)=>(a(),l("text",{key:"x"+i,class:"dt-tick",x:s.x,y:e.chart.plot.y+e.chart.plot.h+18,"text-anchor":s.anchor||"middle"},c(s.label.length>18?s.label.slice(0,17)+"\u2026":s.label),9,Ire))),128)),e.s.tip&&e.chart.kind==="line"?(a(),l("line",{key:0,class:"dt-crosshair",x1:e.s.tip.crossX,x2:e.s.tip.crossX,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,Ore)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l("path",{key:"p"+i,class:"dt-line",d:s.path,style:De({stroke:"var(--dt-series-"+(i+1)+")"})},null,12,Mre))),128)),(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l(N,{key:"d"+i},[(a(!0),l(N,null,U(s.dots,r=>(a(),l("circle",{key:r.i,class:T(["dt-dot",{"is-on":e.s.tip&&e.s.tip.index===r.i}]),cx:r.x,cy:r.y,r:e.s.tip&&e.s.tip.index===r.i?5:4,style:De({fill:"var(--dt-series-"+(i+1)+")"})},null,14,Vre))),128))],64))),128)),n("rect",{class:"dt-hit",x:e.chart.plot.x-12,y:e.chart.plot.y,width:e.chart.plot.w+24,height:e.chart.plot.h,onPointermove:t[18]||(t[18]=s=>e.pointerAt(s)),onPointerdown:t[19]||(t[19]=s=>e.pointerAt(s))},null,40,qre)],64))],40,bre)):f("v-if",!0),e.chart&&!e.chart.empty?(a(),l("div",Lre,[e.chart.kind==="bar"?(a(),l(N,{key:0},[h(c(e.chart.axisLabel),1)],64)):(a(),l(N,{key:1},[h(c(e.chart.yLabel?e.chart.yLabel+" by ":"By ")+c(e.chart.xLabel),1)],64))])):f("v-if",!0),e.s.tip&&e.chart&&!e.chart.empty?(a(),l("div",{key:5,class:"dt-tip",style:De(e.tipStyle),role:"status"},[e.s.tip.title?(a(),l("div",$re,[(a(!0),l(N,null,U(e.redactParts(e.s.tip.title),(s,i)=>(a(),l(N,{key:i},[s.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+s.n},[n("i",null,c(s.n),1)],8,Fre)):(a(),l(N,{key:1},[h(c(s.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.s.tip.rows,(s,i)=>(a(),l("div",{class:"dt-tip-row",key:i},[n("span",{class:"dt-key is-line",style:De({"--key":"var(--dt-series-"+(i+1)+")"})},null,4),n("b",null,c(s.value),1),n("span",null,c(s.name),1)]))),128)),e.s.tip.note?(a(),l("div",Ure,c(e.s.tip.note),1)):f("v-if",!0)],4)):f("v-if",!0)],544)],64)):(a(),l(N,{key:1},[n("div",{class:"csv-table-wrap dt-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.label||e.name||"table")},[n("table",Hre,[n("thead",null,[n("tr",null,[e.groupColumn?f("v-if",!0):(a(),l("th",zre,[...t[62]||(t[62]=[n("span",{class:"sr-only"},"Row",-1)])])),(a(!0),l(N,null,U(e.table.columns,s=>(a(),l("th",{scope:"col",key:s.index,class:T({"is-num":s.type==="number","is-sorted":!!e.sortState(s)}),"aria-sort":e.ariaSort(s)},[n("span",_re,[n("button",{type:"button",class:"dt-sort",title:"Sort by "+s.name,onClick:i=>e.cycleSort(s)},[n("span",Wre,[(a(!0),l(N,null,U(e.redactParts(s.name),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,Kre)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128))]),s.agg?(a(),l("span",Yre,c(e.aggregateShort(s.agg)),1)):f("v-if",!0),(a(),l("svg",{class:T(["dt-sort-icon",e.sortState(s)?"is-"+e.sortState(s):""]),viewBox:"0 0 10 14","aria-hidden":"true"},[...t[63]||(t[63]=[n("path",{class:"up",d:"M5 1.5 8.5 5.5h-7z"},null,-1),n("path",{class:"down",d:"M5 12.5 1.5 8.5h7z"},null,-1)])],2))],8,Gre),n("button",{type:"button",class:T(["dt-col-btn",{"is-on":e.s.menu&&e.s.menu.index===s.index}]),"data-col":s.index,"aria-label":"Stats and filters for "+s.name,"aria-haspopup":"dialog","aria-expanded":e.s.menu&&e.s.menu.index===s.index?"true":"false",onClick:de(i=>e.openMenu(s.index,i),["stop"])},[...t[64]||(t[64]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1)])],10,Xre)])],10,jre))),128))])]),e.sorted.length?(a(),l("tbody",{key:0,innerHTML:e.bodyHtml},null,8,Qre)):(a(),l("tbody",Jre,[n("tr",Zre,[n("td",{colspan:e.table.columns.length+(e.groupColumn?0:1)},[t[65]||(t[65]=h("No rows match. ",-1)),n("button",{type:"button",class:"dt-link",onClick:t[23]||(t[23]=s=>e.clearFilters())},"Clear the filters")],8,xre)])])),e.sorted.length?(a(),l("tfoot",eae,[n("tr",tae,[e.groupColumn?f("v-if",!0):(a(),l("td",nae,[...t[66]||(t[66]=[n("span",{"aria-hidden":"true"},"\u03A3",-1),n("span",{class:"sr-only"},"Summary",-1)])])),(a(!0),l(N,null,U(e.table.columns,(s,i)=>(a(),l("td",{key:s.index,class:T({"is-num":e.summary[i].kind==="number"})},[e.summary[i].kind==="number"?(a(),l("span",sae,[n("label",oae,[n("span",iae,"Summary of "+c(s.name),1),n("select",{value:e.summary[i].fn,onChange:r=>e.setSum(s,r.target.value)},[(a(!0),l(N,null,U(e.AGGREGATES,([r,o])=>(a(),l("option",{key:r,value:r},c(o),9,aae))),128))],40,rae),n("span",lae,c(e.aggregateShort(e.summary[i].fn)),1),t[67]||(t[67]=n("svg",{class:"ui-icon dt-sum-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))]),n("b",dae,c(e.summary[i].text),1)])):e.summary[i].kind==="distinct"?(a(),l("span",uae,c(e.summary[i].text),1)):f("v-if",!0)],2))),128))])])):f("v-if",!0)])],8,Bre),e.sorted.length>e.visible.length?(a(),l("div",cae,[n("span",null,"Showing "+c(e.formatNumber(e.visible.length))+" of "+c(e.formatNumber(e.sorted.length))+" rows. Sums, filters and charts use all of them.",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[24]||(t[24]=s=>e.showMore())},"Show "+c(e.formatNumber(Math.min(e.PAGE_SIZE,e.sorted.length-e.visible.length)))+" more",1),n("button",{type:"button",class:"dt-link",onClick:t[25]||(t[25]=s=>e.showAll())},"Show all")])):f("v-if",!0)],64)),e.s.menu&&e.menuColumn&&e.menuStats?(a(),l("div",{key:2,class:"dt-menu",role:"dialog",tabindex:"-1","aria-label":"Column "+e.menuColumn.name,style:De({left:e.s.menu.left+"px",top:e.s.menu.top+"px"}),onClick:t[35]||(t[35]=de(()=>{},["stop"]))},[n("div",fae,[n("b",null,[(a(!0),l(N,null,U(e.redactParts(e.menuColumn.name),(s,i)=>(a(),l(N,{key:i},[s.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+s.n},[n("i",null,c(s.n),1)],8,mae)):(a(),l(N,{key:1},[h(c(s.t),1)],64))],64))),128))]),n("span",null,c(e.menuStats.typeLabel),1)]),n("dl",hae,[(a(!0),l(N,null,U(e.menuStats.rows,([s,i])=>(a(),l("div",{key:s},[n("dt",null,c(s),1),n("dd",null,c(i),1)]))),128))]),e.menuStats.bars.length?(a(),l("figure",gae,[(a(),l("svg",{width:"218",height:"42",viewBox:"0 0 218 42",role:"img","aria-label":"Distribution of "+e.menuColumn.name},[(a(!0),l(N,null,U(e.menuStats.bars,(s,i)=>(a(),l("rect",{key:i,x:s.x,y:42-s.h,width:s.w,height:s.h,rx:"1.5"},[n("title",null,c(s.title),1)],8,vae))),128))],8,yae)),n("figcaption",null,[n("span",null,c(e.menuStats.histFrom),1),n("span",null,c(e.menuStats.histTo),1)])])):f("v-if",!0),e.menuStats.top&&e.menuStats.top.length?(a(),l("ul",bae,[(a(!0),l(N,null,U(e.menuStats.top,s=>(a(),l("li",{key:s.value},[n("span",wae,[(a(!0),l(N,null,U(e.redactParts(s.value),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,kae)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128))]),n("span",{class:"dt-top-bar",style:De({width:Math.max(4,s.share)+"%"})},null,4),n("span",Cae,c(s.count),1)]))),128))])):f("v-if",!0),!e.groupColumn&&e.menuColumn.identifier?(a(),l("div",Eae,[n("button",{type:"button",class:"dt-menu-action",role:"switch","aria-checked":e.isMeasure(e.menuColumn)?"true":"false",onClick:t[26]||(t[26]=s=>e.treatAsNumber(e.menuColumn,!e.isMeasure(e.menuColumn)))},[(a(),l("svg",Nae,[n("use",{href:e.isMeasure(e.menuColumn)?"#ui-icon-check":"#ui-icon-list"},null,8,Rae)])),h(c(e.isMeasure(e.menuColumn)?"Treated as a number \xB7 undo":"Treat as number"),1)],8,Sae),e.isMeasure(e.menuColumn)?f("v-if",!0):(a(),l("p",Tae,"Looks like an identifier, so it is left out of the summary row and group averages."))])):f("v-if",!0),n("div",Pae,[n("div",Dae,[n("button",{type:"button",class:T(["seg-chip",{active:e.sortState(e.menuColumn)==="asc"}]),onClick:t[27]||(t[27]=s=>e.setSort(e.menuColumn,e.sortState(e.menuColumn)==="asc"?null:"asc"))},c(e.menuColumn.type==="text"?"A \u2192 Z":"Low \u2192 high"),3),n("button",{type:"button",class:T(["seg-chip",{active:e.sortState(e.menuColumn)==="desc"}]),onClick:t[28]||(t[28]=s=>e.setSort(e.menuColumn,e.sortState(e.menuColumn)==="desc"?null:"desc"))},c(e.menuColumn.type==="text"?"Z \u2192 A":"High \u2192 low"),3)])]),e.sourceColumn(e.menuColumn)&&e.sourceColumn(e.menuColumn).type==="number"?(a(),l("div",Aae,[t[69]||(t[69]=n("div",{class:"dt-menu-label"},"Show rows between",-1)),n("div",Iae,[n("input",{type:"text",inputmode:"decimal",class:"dt-range-input",placeholder:"Min","aria-label":"Minimum",value:e.rangeValue(e.menuColumn,0),onChange:t[29]||(t[29]=s=>e.setRange(e.menuColumn,0,s.target.value)),onKeydown:t[30]||(t[30]=Rt(s=>e.setRange(e.menuColumn,0,s.target.value),["enter"]))},null,40,Oae),t[68]||(t[68]=n("span",null,"\u2013",-1)),n("input",{type:"text",inputmode:"decimal",class:"dt-range-input",placeholder:"Max","aria-label":"Maximum",value:e.rangeValue(e.menuColumn,1),onChange:t[31]||(t[31]=s=>e.setRange(e.menuColumn,1,s.target.value)),onKeydown:t[32]||(t[32]=Rt(s=>e.setRange(e.menuColumn,1,s.target.value),["enter"]))},null,40,Mae)])])):e.chipValues(e.menuColumn).length?(a(),l("div",Vae,[t[70]||(t[70]=n("div",{class:"dt-menu-label"},"Show only",-1)),n("div",qae,[(a(!0),l(N,null,U(e.chipValues(e.menuColumn),s=>(a(),l("button",{type:"button",class:T(["dt-value-chip",{"is-on":e.chipOn(e.menuColumn,s.value)}]),key:s.value,"aria-pressed":e.chipOn(e.menuColumn,s.value)?"true":"false",onClick:i=>e.toggleChip(e.menuColumn,s.value)},[(a(!0),l(N,null,U(e.redactParts(s.label),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,$ae)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128)),n("span",Fae,c(s.count),1)],10,Lae))),128))])])):f("v-if",!0),!e.groupColumn&&e.groupable.some(s=>s.name===e.menuColumn.name)?(a(),l("div",Uae,[n("button",{type:"button",class:"dt-menu-action",onClick:t[33]||(t[33]=s=>e.setGroup(e.menuColumn.name))},[t[71]||(t[71]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1)),h("Group by "+c(e.menuColumn.name),1)])])):e.groupColumn&&e.menuColumn.index===0?(a(),l("div",Bae,[n("button",{type:"button",class:"dt-menu-action",onClick:t[34]||(t[34]=s=>e.setGroup(null))},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1),h("Ungroup",-1)])])])):f("v-if",!0)],12,pae)):f("v-if",!0)],2)}var km=null,Cm=e=>{km=e},Hae=".dt, .csv-table, pre, .diff-file-table, .md-table-off";function wm(e){let t=e.cloneNode(!0);return t.querySelectorAll("mark.redact-chip[data-term]").forEach(s=>s.replaceWith(s.dataset.term)),t.querySelectorAll(".redact-slot").forEach(s=>s.replaceWith("XXXX-"+(s.textContent||"").trim())),t.querySelectorAll(".md-sort").forEach(s=>s.remove()),t.textContent.replace(/\s+/g," ").trim()}var td=e=>[...e.cells].some(t=>t.colSpan>1||t.rowSpan>1);function zae(e){if(!e?.rows?.length||e.closest(Hae)||e.parentElement?.closest?.("table"))return null;let t=e.tHead?[...e.tHead.rows]:[],s=[...e.tBodies].flatMap(u=>[...u.rows]);if(!t.length){let u=e.rows[0];if(!u||![...u.cells].every(p=>p.tagName==="TH"))return null;t=[u],s=s.filter(p=>p!==u)}if(s.length<2||s.some(td)||t.some(td)&&t.length>1)return null;let i=Math.max(...s.map(u=>u.cells.length),...t.map(u=>u.cells.length));return t.some(u=>u.cells.length!==i&&td(u))?null:{rows:[Array.from({length:i},(u,p)=>t.map(d=>d.cells[p]?wm(d.cells[p]):"").filter(Boolean).join(" ")||(p===0?"":"Column "+(p+1))),...s.map(u=>Array.from({length:i},(p,d)=>u.cells[d]?wm(u.cells[d]):""))],trs:s,headerCells:[...t[t.length-1].cells]}}var jae='';function _ae(e){let t=e.closest(".markdown-body, notebook, markdown")||e.ownerDocument.body,s="";for(let i of t.querySelectorAll("h1, h2, h3, h4"))if(i.compareDocumentPosition(e)&4)s=i.textContent.replace(/\s+/g," ").trim();else break;return s?"Table \xB7 "+s:"Table"}function Gae(e){if(e.dataset.dtEnhanced)return;let t=zae(e);if(!t)return;e.dataset.dtEnhanced="1";let s=e.ownerDocument,i=Mr(t.rows),r=t.trs.slice(),o=new Map(r.map(P=>[P,P.parentNode])),u=null,p=s.createElement("div");p.className="md-table",e.parentNode.insertBefore(p,e),p.appendChild(e);let d=()=>{(u?Vr(i,r.map((D,L)=>L),u.index,u.dir):r.map((D,L)=>L)).forEach(D=>o.get(r[D]).appendChild(r[D])),t.headerCells.forEach((D,L)=>{let H=u&&u.index===L?u.dir:null;D.setAttribute("aria-sort",H==="asc"?"ascending":H==="desc"?"descending":"none"),D.querySelector(".dt-sort-icon")?.setAttribute("class","dt-sort-icon"+(H?" is-"+H:""))})};t.headerCells.forEach((P,D)=>{if(D>=i.columns.length)return;P.classList.add("md-sortable");let L=s.createElement("button");L.type="button",L.className="md-sort",L.setAttribute("aria-label","Sort by "+(i.columns[D].name||"column "+(D+1))),L.innerHTML=jae,P.appendChild(L),P.addEventListener("click",H=>{if(H.target.closest("a"))return;let _=u&&u.index===D?u.dir:null;u=_==="asc"?{index:D,dir:"desc"}:_==="desc"?null:{index:D,dir:"asc"},d()})}),d();let g=P=>P.type==="number"&&!P.identifier,m=i.columns.some(g),v=i.columns.length>1&&i.columns[0].type!=="number",y=s.createElement("div");y.className="md-table-tools";let C=null,k=i.columns.map(()=>"mean"),w=(P,D,L)=>{let H=s.createElement("span");H.className="dt-sum";let _=s.createElement("label");_.className="dt-sum-fn";let W=s.createElement("select");W.setAttribute("aria-label","Summary of "+(P.name||"column "+(D+1))),ni.forEach(([V,S])=>{let q=s.createElement("option");q.value=V,q.textContent=S,W.appendChild(q)}),W.value=k[D],W.addEventListener("change",()=>{k[D]=W.value,R()});let re=s.createElement("span");re.className="dt-sum-fn-label",re.setAttribute("aria-hidden","true"),re.textContent=Or(k[D]),_.append(W,re),_.insertAdjacentHTML("beforeend",'');let F=s.createElement("b");return F.className="dt-sum-value",F.textContent=si(P,L,k[D]).text,H.append(_,F),H},R=()=>{if(!C)return;let P=r.map((L,H)=>H),D=C.rows[0];D.textContent="",i.columns.forEach((L,H)=>{let _=s.createElement("td");H===0&&v?(_.className="md-summary-label",_.innerHTML='Summary'):g(L)?(_.className="is-num",_.appendChild(w(L,H,P))):L.type!=="number"&&(_.className="is-muted",_.textContent=si(L,P).text),D.appendChild(_)})};if(m){let P=s.createElement("button");P.type="button",P.className="md-table-btn md-sigma",P.setAttribute("aria-pressed","false"),P.title="Show a summary row",P.innerHTML='Summary',P.addEventListener("click",()=>{let D=!C;P.setAttribute("aria-pressed",D?"true":"false"),P.classList.toggle("is-on",D),D?(C=s.createElement("tfoot"),C.className="md-summary",C.appendChild(s.createElement("tr")),e.appendChild(C),R()):(C.remove(),C=null)}),y.appendChild(P)}let b=s.createElement("button");b.type="button",b.className="md-table-btn md-open",b.innerHTML='Open as table',b.addEventListener("click",()=>km?.(t.rows,_ae(e))),y.appendChild(b),p.appendChild(y)}function ki(e){e?.querySelectorAll&&e.querySelectorAll("table:not([data-dt-enhanced])").forEach(t=>{try{Gae(t)}catch{t.dataset.dtEnhanced="error"}})}var Em={mounted(e){ki(e)},updated(e){ki(e)}};var Ci=200,Wae={"&":"&","<":"<",">":">",'"':""","'":"'"},Sm=e=>String(e).replace(/[&<>"']/g,t=>Wae[t]),Kae=e=>{let t=e==null?"":String(e);return t.indexOf("XXXX-")===-1?Sm(t):Jt(t).map(s=>s.n?`${s.n}`:Sm(s.t)).join("")},Yae=24,nd={name:"DataTable",props:{rows:{type:Array,default:()=>[]},name:String,stateKey:String,view:{type:String,default:"table"},label:String},setup(e){let t=e.stateKey?eo(window.location.hash,e.stateKey):null,s=ut({query:t?.query||"",sort:t?.sort||null,group:t?.group||null,agg:t?.agg||"mean",ranges:t?.ranges||{},values:t?.values||{},sums:t?.sums||{},sum:t?.sum||"mean",numeric:t?.numeric||[],chart:t?.chart||null,x:t?.x||null,y:t?.y||[],limit:Ci,menu:null,toolsOpen:!1,copyOpen:!1,copied:"",tip:null}),i=Ye(()=>Mr(e.rows)),r=(j,J)=>j.columns.find(me=>me.name===J),o=j=>Object.fromEntries(Object.entries(j).map(([J,me])=>[r(i.value,J)?.index,me]).filter(([J])=>J!=null)),u=Ye(()=>Zc(i.value,{query:s.query,ranges:o(s.ranges),values:o(s.values)})),p=Ye(()=>s.group?r(i.value,s.group):null),d=j=>j.type==="number"&&(!j.identifier||!m.value?.grouped&&s.numeric.includes(j.name)),g=j=>j.type==="number"&&(!j.identifier||s.numeric.includes(j.name)),m=Ye(()=>p.value?ep(i.value,u.value,p.value.index,s.agg,g):i.value),v=Ye(()=>p.value?m.value.body.map((j,J)=>J):u.value),y=Ye(()=>s.sort?r(m.value,s.sort.column):null),C=Ye(()=>y.value?Vr(m.value,v.value,y.value.index,s.sort.dir):v.value),k=Ye(()=>C.value.slice(0,s.limit)),w=Ye(()=>m.value.columns.map(j=>si(j,v.value,s.sums[j.name]||s.sum,d))),R=Ye(()=>m.value.columns.filter(j=>d(j))),b=j=>s.sort&&s.sort.column===j.name?s.sort.dir:null,P=j=>{let J=b(j);s.sort=J==="asc"?{column:j.name,dir:"desc"}:J==="desc"?null:{column:j.name,dir:"asc"}},D=(j,J)=>{s.sort=J?{column:j.name,dir:J}:null},L=j=>({asc:"ascending",desc:"descending"})[b(j)]||"none",H=j=>p.value?j.source!=null?i.value.columns[j.source]:null:j,_=(j,J,me)=>{let Se=H(j);if(!Se)return;let ke=String(me??"").trim(),qe=ke===""?null:Number(ke.replace(/,/g,"")),ct=s.ranges[Se.name]||[null,null],At=J===0?[Number.isFinite(qe)?qe:null,ct[1]]:[ct[0],Number.isFinite(qe)?qe:null],Ut={...s.ranges};At[0]==null&&At[1]==null?delete Ut[Se.name]:Ut[Se.name]=At,s.ranges=Ut},W=(j,J)=>{let me=s.ranges[H(j)?.name];return me&&me[J]!=null?String(me[J]):""},re=j=>{let J=H(j);if(!J||J.type==="number")return[];let me=xs(J);return me.size>Yae?[]:[...me.entries()].map(([Se,ke])=>({value:Se,count:ke,label:J.type==="date"?Ft(J,Se):Se}))},F=(j,J)=>(s.values[H(j)?.name]||[]).includes(String(J)),V=(j,J)=>{let me=H(j);if(!me)return;let Se=new Set(s.values[me.name]||[]),ke=String(J);Se.has(ke)?Se.delete(ke):Se.add(ke);let qe={...s.values};Se.size?qe[me.name]=[...Se]:delete qe[me.name],s.values=qe},S=Ye(()=>[...Object.entries(s.ranges).map(([j,[J,me]])=>{let Se=r(i.value,j),ke=qe=>Ot(qe,Math.max(Se?.decimals||0,String(qe).split(".")[1]?.length||0),Se?.unit||"");return{key:"r:"+j,name:j,text:J!=null&&me!=null?`${ke(J)}\u2013${ke(me)}`:J!=null?`\u2265 ${ke(J)}`:`\u2264 ${ke(me)}`,clear:()=>{let qe={...s.ranges};delete qe[j],s.ranges=qe}}}),...Object.entries(s.values).map(([j,J])=>{let me=r(i.value,j),Se=J.map(ke=>me?.type==="date"?Ft(me,Number(ke)):ke);return{key:"v:"+j,name:j,text:Se.length<=2?Se.join(", "):`${Se.length} values`,clear:()=>{let ke={...s.values};delete ke[j],s.values=ke}}})]),q=()=>{s.query="",s.ranges={},s.values={}},G=Ye(()=>!!(s.query||S.value.length)),ie=Ye(()=>i.value.columns.filter(j=>j.type!=="number"||j.decimals===0&&!j.unit&&xs(j).size<=50)),K=j=>{s.group=j||null,s.sort=null,s.limit=Ci,s.menu=null,A()},ne=j=>{s.agg=j},le=(j,J)=>{let me={...s.sums};!J||J===s.sum?delete me[j.name]:me[j.name]=J,s.sums=me},ye=(j,J)=>{let me=new Set(s.numeric);J?me.add(j.name):me.delete(j.name),s.numeric=[...me]},Ae=Ye(()=>s.menu?m.value.columns[s.menu.index]:null),Xe=Ye(()=>{let j=Ae.value;if(!j)return null;let J=tp(j,v.value),me=ke=>Ft(j,ke),Se=Math.max(1,...(J.histogram||[]).map(ke=>ke.count));return{...J,typeLabel:j.type==="number"?(j.identifier&&!d(j)?"Identifier":j.decimals?`Number \xB7 ${j.decimals} ${j.decimals===1?"decimal":"decimals"}`:"Whole number")+(j.unit?" \xB7 %":""):j.type==="date"?"Date":"Text",rows:[["Values",Ot(J.count)],["Empty",Ot(J.empty)],["Distinct",Ot(J.distinct)],...J.min!=null?[["Min",me(J.min)],["Max",me(J.max)]]:[],...J.mean!=null&&d(j)?[["Mean",Ft(j,J.mean,"mean")]]:[],...J.std!=null&&d(j)?[["Std dev",Ft(j,J.std,"std")]]:[]],bars:(J.histogram||[]).map((ke,qe,ct)=>({x:qe*216/ct.length+1,w:Math.max(1,216/ct.length-2),h:Math.max(ke.count?2:0,ke.count/Se*40),count:ke.count,title:`${me(ke.from)} \u2013 ${me(ke.to)}: ${ke.count} ${ke.count===1?"row":"rows"}`})),histFrom:J.histogram?me(J.min):"",histTo:J.histogram?me(J.max):"",top:(J.top||[]).map(([ke,qe])=>({value:ke,count:qe,share:qe/Math.max(1,J.count)*100}))}}),tt=(j,J)=>{if(s.menu?.index===j){s.menu=null;return}let Se=(J.currentTarget.closest("th")||J.currentTarget).getBoundingClientRect(),ke=260,qe=window.innerWidth;s.menu={index:j,left:Math.max(8,Math.min(Se.left,qe-ke-8)),top:Se.bottom+4},Je(()=>window.document.querySelector(".dt-menu")?.focus())},Ge=()=>{s.menu=null,s.toolsOpen=!1,s.copyOpen=!1},We=()=>{let j=m.value,J=j.columns.map(Se=>Se.name),me=C.value.map(Se=>j.columns.map(ke=>j.body[Se][ke.index]??""));return{header:J,body:me}},it=j=>{s.copied=j,window.setTimeout(()=>{s.copied===j&&(s.copied="")},1600)},ht=async j=>{let{header:J,body:me}=We(),Se=j==="md"?np(J,me,m.value.columns.map(ke=>ke.type==="number")):hl(J,me,",");Ge();try{await window.navigator.clipboard.writeText(Se),it(j)}catch{it("error")}},Oe=()=>String(e.name||"table").replace(/\.[^.]+$/,"")||"table",Q=()=>{let{header:j,body:J}=We(),me=new window.Blob([hl(j,J,",")],{type:"text/csv;charset=utf-8"}),Se=window.URL.createObjectURL(me),ke=window.document.createElement("a");ke.href=Se,ke.download=Oe()+(he()?"-view":"")+".csv",window.document.body.appendChild(ke),ke.click(),ke.remove(),window.setTimeout(()=>window.URL.revokeObjectURL(Se),1e3),Ge()},he=()=>!!(G.value||s.sort||s.group),ee=bt(0),ge=bt(null),Ee=Ye(()=>{let j=mm(m.value,!!p.value),J=s.x&&r(m.value,s.x)?s.x:j.x,me=s.y.filter(Se=>r(m.value,Se)?.type==="number");return{type:s.chart||j.type,x:J,y:me.length?me:j.y,agg:s.agg}}),Ie=Ye(()=>e.view==="chart"&&ee.value?hm(m.value,C.value,Ee.value,{width:ee.value}):null),A=()=>{s.x=null,s.y=[]};dt(Ie,()=>{s.tip=null});let I=j=>{s.chart=j,s.tip=null},z=j=>{s.x=j,s.tip=null},x=j=>Ee.value.y.includes(j),X=j=>{let J=Ee.value.y,me=J.includes(j)?J.filter(Se=>Se!==j):[...J,j];me.length&&(s.y=me.slice(-ta[Ee.value.type]),s.tip=null)},se=j=>Ee.value.y.indexOf(j),ce;dt(ge,j=>{if(ce?.disconnect(),!j)return;let J=()=>{let me=j.clientWidth;me&&Math.abs(me-ee.value)>1&&(ee.value=me)};J(),window.ResizeObserver&&(ce=new window.ResizeObserver(J),ce.observe(j))});let oe=(j,J,me)=>{let Se=Ie.value;if(!Se)return;let ke=Se.kind==="bar"?Se.categories[j]?.tip:Se.points[j];if(!ke){s.tip=null;return}s.tip={index:j,...ke,x:J,y:me,crossX:Se.kind==="line"?Se.points[j].x:null}},Z=j=>{let J=Ie.value,Se=(j.currentTarget.ownerSVGElement||j.currentTarget).getBoundingClientRect(),ke=j.clientX-Se.left,qe=j.clientY-Se.top;if(J.kind==="bar"){let Ut=J.categories.findIndex(Bt=>qe>=Bt.hit.y&&qeUt.dots.forEach(Bt=>{let Pn=(Bt.x-ke)**2+(Bt.y-qe)**2;Pn1600){s.tip=null;return}}else J.points.forEach((Ut,Bt)=>{let Pn=Math.abs(Ut.x-ke);Pn{let J=Ie.value;if(!J||J.empty)return;let me=J.kind==="bar"?J.categories.length:J.points.length,Se={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:-1/0,End:1/0}[j.key];if(j.key==="Escape"){s.tip=null;return}if(Se==null)return;j.preventDefault();let ke=s.tip?s.tip.index:-1,qe=Se===-1/0?0:Se===1/0?me-1:Math.max(0,Math.min(me-1,ke+Se));J.kind==="bar"?oe(qe,J.plot.x+8,J.categories[qe].y):oe(qe,J.points[qe].x,J.plot.y+20)},fe=Ye(()=>{if(!s.tip||!Ie.value)return{};let j=ee.value,J=s.tip.x+14;return J+200>j?{right:Math.max(4,j-s.tip.x+14)+"px",top:s.tip.y+8+"px"}:{left:J+"px",top:s.tip.y+8+"px"}}),Te=Ye(()=>{let j=Ie.value;if(!j||j.empty)return"";let J=j.series.map(me=>me.name).join(", ");return`${{bar:"Bar chart",line:"Line chart",scatter:"Scatter plot"}[j.kind]} of ${J} by ${j.x.name}`}),Me=()=>({view:e.view,query:s.query,sort:s.sort,group:s.group,agg:s.agg,ranges:s.ranges,values:s.values,sum:s.sum,sums:s.sums,numeric:s.numeric,chart:s.chart,x:s.x,y:s.y});if(e.stateKey){let j;dt(()=>JSON.stringify(Me()),()=>{window.clearTimeout(j),j=window.setTimeout(()=>{let J=sp(e.stateKey,Me()),me=window.location.hash;!J&&!gl(me)||J&&me&&!gl(me)&&me!=="#"||J!==me&&window.history.replaceState(window.history.state,"",window.location.pathname+window.location.search+J)},250)})}let Ue=j=>{j.target.closest?.(".dt-menu, .dt-col-btn")||(s.menu=null),j.target.closest?.(".dt-tools-menu, .dt-tools-btn")||(s.toolsOpen=!1),j.target.closest?.(".dt-copy-menu, .dt-copy-btn")||(s.copyOpen=!1)},Ze=j=>{if(j.key==="Escape"&&(s.menu||s.toolsOpen||s.copyOpen)){let J=s.menu?window.document.querySelector(`.dt-col-btn[data-col="${s.menu.index}"]`):null;Ge(),J?.focus()}},Qe=j=>{s.menu&&!j.target?.closest?.(".dt-menu")&&(s.menu=null)};Qt(()=>{window.document.addEventListener("click",Ue),window.document.addEventListener("keydown",Ze),window.addEventListener("scroll",Qe,{capture:!0,passive:!0})}),Fn(()=>{window.document.removeEventListener("click",Ue),window.document.removeEventListener("keydown",Ze),window.removeEventListener("scroll",Qe,{capture:!0}),ce?.disconnect()}),dt(()=>[s.query,s.ranges,s.values],()=>{s.limit=Ci},{deep:!0});let Re=Ye(()=>{let j=m.value,J=j.columns,me=!!p.value,Se=[];for(let ke of k.value){Se.push(""),me||Se.push('',String(ke+1),"");let qe=j.body[ke];for(let ct of J)Se.push(ct.type==="number"?'':"",Kae(qe[ct.index]),"");Se.push("")}return Se.join("")}),Be=Ye(()=>{let j=i.value.size,J=u.value.length,me=J===j?`${Ot(j)} ${j===1?"row":"rows"}`:`${Ot(J)} of ${Ot(j)} rows`;return p.value?`${Ot(m.value.size)} ${m.value.size===1?"group":"groups"} \xB7 ${me}`:me});return{s,props:e,base:i,table:m,sorted:C,visible:k,summary:w,numericColumns:R,filtered:u,groupColumn:p,rowsInView:v,redactParts:Jt,cycleSort:P,setSort:D,sortState:b,ariaSort:L,setRange:_,rangeValue:W,chipValues:re,chipOn:F,toggleChip:V,activeFilters:S,clearFilters:q,filtering:G,groupable:ie,setGroup:K,setAgg:ne,setSum:le,treatAsNumber:ye,isMeasure:d,AGGREGATES:ni,AGGREGATE_LABEL:ti,aggregateShort:Or,menuColumn:Ae,menuStats:Xe,openMenu:tt,closeMenus:Ge,sourceColumn:H,copyAs:ht,download:Q,isChanged:he,bodyHtml:Re,rowCountText:Be,chart:Ie,chartSpec:Ee,chartHost:ge,setChartType:I,setX:z,yOn:x,toggleY:X,seriesIndex:se,pointerAt:Z,keyStep:Ne,tipStyle:fe,chartSummary:Te,MAX_SERIES:ta,PAGE_SIZE:Ci,formatNumber:Ot,showMore:()=>{s.limit+=Ci},showAll:()=>{s.limit=1/0},leaveChart:()=>{s.tip=null}}},render:bm};function Xae(e,t){let s=window.document.createElement("div");window.document.body.appendChild(s);let i=window.document.activeElement,r,o=()=>{r.unmount(),s.remove(),window.document.removeEventListener("keydown",u),i?.focus?.()},u=p=>{if(p.key==="Escape"&&!window.document.querySelector(".dt-menu, .dt-tools-menu, .dt-copy-menu")&&o(),p.key!=="Tab")return;let d=[...s.querySelectorAll("button, select, input, [tabindex='0']")].filter(y=>!y.disabled&&y.offsetParent!==null);if(!d.length)return;let g=d[0],m=d[d.length-1],v=window.document.activeElement;(!s.contains(v)||(p.shiftKey?v===g||v===s.querySelector(".dt-dialog"):v===m))&&(p.preventDefault(),(p.shiftKey?m:g).focus())};return window.document.addEventListener("keydown",u),r=dr({setup(){let p=bt("table");return Qt(()=>s.querySelector(".dt-dialog")?.focus()),()=>we("div",{class:"dt-dialog-backdrop",onClick:d=>{d.target===d.currentTarget&&o()}},we("div",{class:"dt-dialog",role:"dialog","aria-modal":"true","aria-label":t||"Table",tabindex:"-1"},[we("header",{class:"dt-dialog-head"},[we("span",{class:"dt-dialog-title"},t||"Table"),we("div",{class:"seg-filter dt-view-toggle",role:"radiogroup","aria-label":"View"},["table","chart"].map(d=>we("button",{type:"button",role:"radio",class:["seg-chip",{active:p.value===d}],"aria-checked":p.value===d?"true":"false",onClick:()=>{p.value=d}},d==="table"?"Table":"Chart"))),we("button",{type:"button",class:"btn btn-sm btn-ghost btn-icon-only dt-dialog-close","aria-label":"Close",onClick:o},we("svg",{class:"ui-icon","aria-hidden":"true"},we("use",{href:"#project-icon-close"})))]),we(nd,{rows:e,name:(t||"table").replace(/[^\w.-]+/g,"-").toLowerCase(),view:p.value,label:t})]))}}),r.mount(s),o}Cm(Xae);var Qae={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:cm},Jae=new Set(ve),Pm=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` +jane.smith@example.org`},null,8,NJ),[[i,{state:e.viewState,set:o=>{e.terms=o},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",RJ,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),O(n("div",TJ,"Terms are in an invalid format.",512),[[te,e.defaultsForm?.terms?.errors?.format]])])]),n("section",PJ,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",DJ,[n("label",AJ,[O(n("input",IJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.link=o},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",OJ,[O(n("input",MJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.image=o},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Display images",-1))]),n("label",VJ,[O(n("input",qJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.pdf=o},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Display PDFs",-1))]),n("label",LJ,[O(n("input",$J,null,512),[[i,{state:e.viewState,set:o=>{e.options.notebook=o},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Display notebooks",-1))]),n("label",FJ,[O(n("input",UJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.loc=o},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",BJ,[O(n("input",HJ,null,512),[[i,{state:e.viewState,set:o=>{e.options.page=o},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",zJ,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",jJ,[O(n("input",_J,null,512),[[i,{state:e.viewState,set:o=>{e.options.update=o},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",GJ,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[O((a(),l("select",WJ,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:o=>{e.options.expirationMode=o},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",KJ,c(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",YJ,[n("div",XJ,[e.draftRestored?(a(),l("span",QJ,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",JJ,"Unsaved changes"+c(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",ZJ,c(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=o=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:T(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},c(e.saving?"Saving\u2026":"Save defaults"),11,xJ),e.error?(a(),l("div",eZ,c(e.error),1)):f("v-if",!0)])],32)),[[r,e.viewState]])],512),[[te,e.settingsTab==="defaults"]]),O(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",nZ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",sZ,[h(c(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=o=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,oZ)])):f("v-if",!0),e.billingNotice?(a(),l("p",iZ,c(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",rZ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,aZ)])):f("v-if",!0),n("section",lZ,[n("div",dZ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",uZ,c(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",cZ,[h(c(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+c(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(N,{key:0},[h(" \xB7 "+c(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",pZ,c(e.billing.allowance.repositories)+" repositories \xB7 "+c(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+c(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",fZ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=o=>e.billingPortal()),disabled:e.billingBusy},c(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,mZ)])):f("v-if",!0)]),n("div",hZ,[e.quota?(a(),Rt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",gZ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",yZ,[h("Your free repositories are used up. Add the next one for "+c(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=h(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",vZ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",bZ,[...t[47]||(t[47]=[h("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),h(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",wZ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",kZ,[e.profilePackPlan()?(a(),l("article",CZ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",EZ,[n("strong",null,c(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=h(" once",-1))]),n("ul",SZ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+c(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=o=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,NZ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",RZ,[n("div",TZ,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",PZ,[(a(!0),l(N,null,U(e.profileAuthorPlansByValue(),o=>(a(),l("button",{type:"button",role:"radio",key:o.id,"aria-checked":e.profileSelectedPlan()?.id===o.id?"true":"false",class:T({"is-on":e.profileSelectedPlan()?.id===o.id}),onClick:u=>e.profilePlan=o.id},[h(c(o.interval==="year"?"Yearly":"Monthly"),1),o.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",AZ,"\u2212"+c(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,DZ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",IZ,[n("strong",null,c(e.billingAmount(e.profileSelectedPlan())),1),h(" per "+c(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",OZ,[n("li",null,c(e.profileSelectedPlan()?.repositories)+" repositories, "+c(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=o=>e.checkout(e.profileSelectedPlan().id))},c(e.billingBusy?"Please wait\u2026":"Subscribe"),9,MZ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",VZ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",qZ,[(a(!0),l(N,null,U(e.profileSingleAddons(),o=>(a(),l("li",{key:o.id},[n("div",null,[n("strong",null,c(o.name),1),n("span",null,c(e.profileAddonBlurb(o.id)),1)]),n("span",LZ,c(e.billingAmount(o)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(o.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,$Z)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",FZ,[n("div",UZ,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=o=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,c(e.profileAddon().name),1),n("p",BZ,[n("strong",null,c(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=h(" once",-1))]),n("ul",HZ,[(a(!0),l(N,null,U(e.profileAddonFeatures(e.profileAddon().id),o=>(a(),l("li",{key:o},c(o),1))),128))])]),n("div",zZ,[e.profileRepositories().length?(a(),l(N,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),O(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=o=>e.billingRepository=o)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(N,null,U(e.profileRepositories(),o=>(a(),l("option",{key:o.repoId,value:o.repoId},c(o.repoId)+" \xB7 "+c(e.profileRepositoryExpiry(o)),9,jZ))),128))],512),[[Vt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=o=>e.checkout(e.profileAddon().id,e.billingRepository))},c(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,_Z),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",GZ,[...t[68]||(t[68]=[h("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),h(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",WZ,[...t[69]||(t[69]=[h("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),h("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",KZ,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",YZ,[n("table",XZ,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[h("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",QZ,[t[70]||(t[70]=h("Paper pack",-1)),n("small",null,c(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",JZ,[t[71]||(t[71]=h("Author",-1)),n("small",null,c(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,c(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",ZZ,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",xZ,c(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,c(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",ex,c(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",tx,c(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,c(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",nx,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",sx,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",ox,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",ix,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",rx,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",ax,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",lx,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",dx,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",ux,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",cx,[n("div",px,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=o=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,fx))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",mx,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",hx,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",gx,[(a(!0),l(N,null,U(e.profilePurchases(!0).concat(e.profilePurchases(!1)),o=>(a(),l("li",{class:T(["billing-history-row",{"is-ended":!["active","overdue"].includes(o.status)}]),key:o.id},[n("div",yx,[n("strong",null,[h(c(e.profileGrantName(o)),1),o.repoId?(a(),l(N,{key:0},[t[88]||(t[88]=h(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(o.repoId)},c(o.repoId),9,vx)],64)):o.conference?(a(),l(N,{key:1},[t[89]||(t[89]=h(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(o.conference)},c(o.conference),9,bx)],64)):f("v-if",!0)]),n("span",null,c([o.purchasedAt?"Bought "+e.billingDate(o.purchasedAt):"",o.parts.length?e.profilePackSummary(o):["refunded","disputed"].includes(o.status)?"Payment "+o.status+", so what it paid for has ended":o.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",wx,c(e.profilePurchaseTerm(o)),1),n("div",kx,c(o.amount!=null?e.billingPrice(o):""),1),n("div",Cx,[n("span",{class:T(["settings-status","is-"+o.status])},c(e.profilePurchaseStatus(o)),3)])],2))),128))])):f("v-if",!0),n("div",Ex,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",Sx,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",Nx,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[h("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),h(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=o=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,Rx)):f("v-if",!0)])])):f("v-if",!0),n("p",Tx,[t[92]||(t[92]=h("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(N,{key:0},[h("Review packages start at "+c(e.billingAmount(e.profileConferencePlan()))+" once for up to "+c(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(N,{key:1},[h("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=h()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,tZ),[[te,e.settingsTab==="billing"]]),O(n("section",Px,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",Dx,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,Ax)):f("v-if",!0),n("div",Ix,[n("div",Ox,"@"+c(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=de(o=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),O(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=o=>e.accountEmail=o),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=o=>e.emailSaved=!1)},null,40,Mx),[[ft,e.accountEmail]]),e.emailLoading?(a(),l("p",Vx,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",qx,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=o=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("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,Lx),e.emailSaved?(a(),l("p",$x,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[h("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",Fx,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("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?(a(),l("div",Ux,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=h()),n("span",{textContent:c(e.deleteError)},null,8,Bx)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=o=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),h(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,Hx),e.confirmDeleteAccount?(a(),l("div",zx,[n("label",jx,"Type "+c(e.user?.username)+" to confirm",1),O(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=o=>e.deleteUsername=o),autocomplete:"off"},null,512),[[ft,e.deleteUsername]]),n("div",_x,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=o=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},c(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,Gx),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=o=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,Wx)])])):f("v-if",!0)])],512),[[te,e.settingsTab==="account"]])])}var Kx={class:"pr-page review-page"},Yx={class:"container paper-page pr-page-inner"},Xx={class:"pr-header"},Qx={class:"pr-title-row"},Jx={class:"paper-page-title pr-title"},Zx={key:0},xx=["aria-label"],eee={key:1,class:"text-muted"},tee=["href"],nee={key:0,class:"pr-state-line"},see={class:"ui-icon","aria-hidden":"true"},oee=["href"],iee={class:"pr-summary"},ree=["aria-label"],aee={key:1,class:"pr-summary-author is-hidden"},lee={class:"pr-branch"},dee=["aria-label"],uee={class:"pr-branch"},cee=["aria-label"],pee={key:1,class:"pr-header-meta"},fee={key:0,class:"pr-meta-item"},mee=["textContent"],hee={key:1,class:"pr-meta-item"},gee={key:2,class:"pr-meta-item"},yee={key:3,class:"pr-meta-item"},vee={key:4,class:"pr-meta-item"},bee={key:0,class:"paper-tabs pr-tabs",role:"tablist","aria-label":"Pull request"},wee=["aria-selected","tabindex"],kee={key:0,class:"tab-count"},Cee=["aria-selected","tabindex"],Eee={class:"tab-count"},See=["aria-selected","tabindex"],Nee={class:"tab-count"},Ree=["aria-label"],Tee={class:"stat-add"},Pee={class:"stat-del"},Dee={class:"paper-tab-content"},Aee={key:0,role:"tabpanel",id:"pr-conversation-panel","aria-labelledby":"pr-conversation-tab"},Iee={class:"pr-timeline"},Oee={class:"pr-timeline-item is-description"},Mee={class:"pr-thread"},Vee={class:"pr-thread-comment"},qee={class:"pr-thread-head"},Lee=["aria-label"],$ee={key:1,class:"pr-author is-hidden"},Fee={key:2,class:"pr-thread-date"},Uee={key:0,class:"pr-thread-body"},Bee={key:1,class:"pr-thread-body text-muted"},Hee={key:0,class:"pr-review-head"},zee=["onClick"],jee=["aria-label"],_ee={key:1},Gee=["aria-label"],Wee={key:1,role:"tabpanel",id:"pr-commits-panel","aria-labelledby":"pr-commits-tab"},Kee={key:0,class:"pr-commit-day"},Yee={class:"pr-commit-list"},Xee=["aria-label"],Qee={class:"pr-commit-text"},Jee={class:"pr-commit-headline"},Zee=["aria-label"],xee={key:0,class:"pr-commit-detail"},ete=["aria-label"],tte=["aria-label"],nte={key:2,role:"tabpanel",id:"pr-files-panel","aria-labelledby":"pr-files-tab"},ste={key:0,class:"page-toc pr-file-toc","aria-label":"Changed files"},ote={class:"page-toc-head"},ite={class:"toc-rail"},rte=["href","aria-current","onClick"],ate=["title"],lte={class:"sr-only"},dte={class:"toc-file-name"},ute={key:0,class:"toc-file-dir"},cte=["aria-label"],pte=["aria-label"],fte={class:"toc-file-stat"},mte={key:0,class:"stat-add"},hte={key:1,class:"stat-del"},gte={class:"toc-main"},yte={class:"toc-bar pr-files-bar"},vte={key:0,class:"toc-menu"},bte=["aria-expanded"],wte={class:"toc-menu-label"},kte={key:0,class:"toc-menu-current"},Cte=["aria-label"],Ete={key:0,class:"toc-menu-pop toc-rail","aria-label":"Changed files"},Ste=["href","aria-current","onClick"],Nte=["title"],Rte={class:"sr-only"},Tte={class:"toc-file-name"},Pte={key:0,class:"toc-file-dir"},Dte=["aria-label"],Ate=["aria-label"],Ite={class:"toc-file-stat"},Ote={key:0,class:"stat-add"},Mte={key:1,class:"stat-del"},Vte={class:"pr-files-summary"},qte={class:"stat-add"},Lte={class:"stat-del"},$te=["id","aria-label"],Fte={class:"diff-file-header"},Ute=["aria-expanded","aria-controls","aria-label","onClick"],Bte=["title"],Hte={key:0,class:"diff-file-dir"},zte=["aria-label"],jte=["aria-label"],_te={class:"diff-file-meta"},Gte=["title"],Wte=["aria-label"],Kte={key:0,class:"stat-add"},Yte={key:1,class:"stat-del"},Xte={class:"diff-bar","aria-hidden":"true"},Qte=["id"],Jte={key:0,class:"diff-loose-threads"},Zte={class:"pr-review-head"};function sm(e,t){let s=_e("markdown"),i=_e("pr-thread"),r=_e("diff-table");return a(),l("div",Kx,[n("div",Yx,[t[30]||(t[30]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",Xx,[n("div",Qx,[n("h1",Jx,[e.details?.title?(a(),l("span",Zx,[(a(!0),l(N,null,U(e.redactParts(e.details.title),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,xx)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])):f("v-if",!0),e.details&&!e.details?.title?(a(),l("span",eee,"Untitled pull request")):f("v-if",!0)]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,tee)):f("v-if",!0)]),e.details?(a(),l("div",nee,[n("span",{class:T(["pr-state","is-"+e.prState()])},[(a(),l("svg",see,[n("use",{href:e.prState()==="merged"?"#ui-icon-branch":e.prState()==="closed"?"#project-icon-close":"#project-type-pr"},null,8,oee)])),h(c(e.prStateLabel()),1)],2),n("p",iee,[e.details?.author?(a(),l("span",{key:0,class:T(["pr-author pr-summary-author",{"is-redacted":e.isRedactedName(e.details.author)}])},[e.isRedactedName(e.details.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.author),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,ree)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))],2)):(a(),l("span",aee,"The author")),h(" "+c(e.prState()==="merged"?" merged":" wants to merge")+" ",1),e.details?.commits?.length?(a(),l(N,{key:2},[h(c(e.fmt.plural(e.details.commits.length,{one:"1 commit",other:"{} commits"})),1)],64)):f("v-if",!0),e.details?.baseRef?(a(),l(N,{key:3},[t[9]||(t[9]=h(" into ",-1)),n("code",lee,[(a(!0),l(N,null,U(e.redactParts(e.details.baseRef),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,dee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])],64)):f("v-if",!0),e.details?.headRef?(a(),l(N,{key:4},[t[10]||(t[10]=h(" from ",-1)),n("code",uee,[(a(!0),l(N,null,U(e.redactParts(e.details.headRef),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,cee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])],64)):f("v-if",!0)])])):f("v-if",!0),e.details?(a(),l("div",pee,[e.details?.baseRepositoryFullName?(a(),l("span",fee,[t[11]||(t[11]=n("i",{class:"fab fa-github"},null,-1)),t[12]||(t[12]=h()),n("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,mee)])):f("v-if",!0),e.details?.creationDate?(a(),l("span",hee,[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Opened "+c(e.fmt?.date(e.details.creationDate)),1)])):f("v-if",!0),e.details?.mergedDate&&e.details?.merged?(a(),l("span",gee,"Merged "+c(e.fmt?.date(e.details.mergedDate)),1)):e.details?.updatedDate?(a(),l("span",yee,"Updated "+c(e.fmt?.date(e.details.updatedDate)),1)):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",vee,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" Anonymized "+c(e.fmt?.date(e.details.anonymizeDate)),1)])):f("v-if",!0)])):f("v-if",!0)]),e.details?(a(),l("nav",bee,[n("button",{class:T(["paper-tab",{active:e.tabState?.active=="conversation"}]),type:"button",role:"tab",id:"pr-conversation-tab","aria-selected":e.tabState?.active==="conversation","aria-controls":"pr-conversation-panel",tabindex:e.tabState?.active==="conversation"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.openTab("conversation"))},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),t[16]||(t[16]=h("Conversation",-1)),e.conversationCount()?(a(),l("span",kee,c(e.conversationCount()),1)):f("v-if",!0)],42,wee),e.details?.commits?.length?(a(),l("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="commits"}]),type:"button",role:"tab",id:"pr-commits-tab","aria-selected":e.tabState?.active==="commits","aria-controls":"pr-commits-panel",tabindex:e.tabState?.active==="commits"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.openTab("commits"))},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-commit"})],-1)),t[18]||(t[18]=h("Commits",-1)),n("span",Eee,c(e.details.commits.length),1)],42,Cee)):f("v-if",!0),e.details?.diff?(a(),l("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"pr-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"pr-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[4]||(t[4]=o=>e.previewTabKeydown(o)),onClick:t[5]||(t[5]=o=>e.openTab("files"))},[t[19]||(t[19]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),t[20]||(t[20]=n("span",null,[h("Files"),n("span",{class:"tab-long"}," changed")],-1)),n("span",Nee,c(e.prStats().files),1)],42,See)):f("v-if",!0),e.details?.diff?(a(),l("span",{key:2,class:"pr-tabs-stat","aria-label":e.prStats().additions+" additions, "+e.prStats().deletions+" deletions"},[n("span",Tee,"+"+c(e.fmt.number(e.prStats().additions)),1),n("span",Pee,"\u2212"+c(e.fmt.number(e.prStats().deletions)),1)],8,Ree)):f("v-if",!0)])):f("v-if",!0),n("div",Dee,[e.details&&e.tabState?.active=="conversation"?(a(),l("div",Aee,[n("ol",Iee,[n("li",Oee,[n("div",Mee,[n("article",Vee,[n("header",qee,[t[21]||(t[21]=n("span",{class:"pr-avatar","aria-hidden":"true"},[n("svg",{class:"ui-icon"},[n("use",{href:"#ui-icon-user"})])],-1)),e.details?.author?(a(),l("span",{key:0,class:T(["pr-author",{"is-redacted":e.isRedactedName(e.details.author)}])},[e.isRedactedName(e.details.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(e.details.author),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,Lee)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))],2)):(a(),l("span",$ee,"Author")),t[22]||(t[22]=n("span",{class:"pr-comment-action"},"opened this pull request",-1)),e.details?.creationDate?(a(),l("time",Fee,c(e.fmt?.date(e.details.creationDate)),1)):f("v-if",!0)]),e.details?.body?(a(),l("div",Uee,[$e(s,{content:e.details.body,reader:!0},null,8,["content"])])):(a(),l("p",Bee,"No description."))])])]),(a(!0),l(N,null,U(e.prTimeline(),o=>(a(),l("li",{class:T(["pr-timeline-item","is-"+o.kind]),key:o.key},[o.kind==="review"?(a(),l("div",Hee,[t[24]||(t[24]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),n("span",null,[t[23]||(t[23]=h("Review on ",-1)),o.file?(a(),l("button",{key:0,type:"button",class:"pr-review-file",onClick:u=>e.showInDiff(o.file)},[(a(!0),l(N,null,U(e.redactParts(o.thread.path),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,jee)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))],8,zee)):(a(),l("code",_ee,[(a(!0),l(N,null,U(e.redactParts(o.thread.path),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Gee)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])),o.thread.line?(a(),l(N,{key:2},[h(" \xB7 line "+c(o.thread.line),1)],64)):f("v-if",!0)])])):f("v-if",!0),$e(i,{comments:o.comments,fmt:e.fmt},null,8,["comments","fmt"])],2))),128))])])):f("v-if",!0),e.details?.commits?.length&&e.tabState?.active=="commits"?(a(),l("div",Wee,[(a(!0),l(N,null,U(e.commitGroups(),(o,u)=>(a(),l("section",{class:"pr-commit-group",key:u},[o.day?(a(),l("h2",Kee,[t[25]||(t[25]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-commit"})],-1)),h("Commits on "+c(o.day),1)])):f("v-if",!0),n("ol",Yee,[(a(!0),l(N,null,U(o.commits,p=>(a(),l("li",{class:"pr-commit",key:p.index},[n("span",{class:"pr-commit-index","aria-label":"Commit "+p.index},c(p.index),9,Xee),n("div",Qee,[n("p",Jee,[(a(!0),l(N,null,U(e.redactParts(p.headline),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,Zee)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))]),p.detail?(a(),l("p",xee,[(a(!0),l(N,null,U(e.redactParts(p.detail),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,ete)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))])):f("v-if",!0)]),p.author?(a(),l("span",{key:0,class:T(["pr-author pr-commit-author",{"is-redacted":e.isRedactedName(p.author)}])},[e.isRedactedName(p.author)?f("v-if",!0):(a(),l(N,{key:0},[h("@")],64)),(a(!0),l(N,null,U(e.redactParts(p.author),(d,g)=>(a(),l(N,{key:g},[d.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+d.n},[n("i",null,c(d.n),1)],8,tte)):(a(),l(N,{key:1},[h(c(d.t),1)],64))],64))),128))],2)):f("v-if",!0)]))),128))])]))),128))])):f("v-if",!0),e.details?.diff&&e.tabState?.active=="files"?(a(),l("div",nte,[n("div",{class:T(["toc-layout is-left",{"has-toc":e.showFileToc()}])},[e.showFileToc()?(a(),l("aside",ste,[n("div",ote,c(e.fmt.plural(e.prStats().files,{one:"1 file changed",other:"{} files changed"})),1),n("nav",ite,[(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("a",{key:o.id,href:"#"+o.id,class:T(["toc-file toc-diff-file",{"is-active":e.activeFileIndex()===o.index}]),"aria-current":e.activeFileIndex()===o.index?"location":null,onClick:de(u=>e.jumpToFile(o),["prevent"])},[n("span",{class:T(["diff-status-dot","is-"+o.status]),title:e.fmt.title(o.status)},[n("span",lte,c(o.status),1)],10,ate),n("span",dte,[o.dir?(a(),l("span",ute,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,cte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,pte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))]),n("span",fte,[o.additions?(a(),l("span",mte,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",hte,"\u2212"+c(o.deletions),1)):f("v-if",!0)])],10,rte))),128))])])):f("v-if",!0),n("div",gte,[n("div",yte,[e.showFileToc()?(a(),l("div",vte,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost toc-menu-btn",{"is-on":e.tocOpen}]),"aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[6]||(t[6]=de(o=>e.tocOpen=!e.tocOpen,["stop"]))},[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)),n("span",wte,c(e.fmt.plural(e.prStats().files,{one:"1 file",other:"{} files"})),1),e.prFiles()[e.activeFileIndex()]?(a(),l("span",kte,[(a(!0),l(N,null,U(e.redactParts(e.prFiles()[e.activeFileIndex()].name),(o,u)=>(a(),l(N,{key:u},[o.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+o.n},[n("i",null,c(o.n),1)],8,Cte)):(a(),l(N,{key:1},[h(c(o.t),1)],64))],64))),128))])):f("v-if",!0),t[27]||(t[27]=n("svg",{class:"ui-icon toc-menu-chevron","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,bte),e.tocOpen?(a(),l("nav",Ete,[(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("a",{key:o.id,href:"#"+o.id,class:T(["toc-file toc-diff-file",{"is-active":e.activeFileIndex()===o.index}]),"aria-current":e.activeFileIndex()===o.index?"location":null,onClick:de(u=>e.jumpToFile(o),["prevent"])},[n("span",{class:T(["diff-status-dot","is-"+o.status]),title:e.fmt.title(o.status)},[n("span",Rte,c(o.status),1)],10,Nte),n("span",Tte,[o.dir?(a(),l("span",Pte,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Dte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,Ate)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))]),n("span",Ite,[o.additions?(a(),l("span",Ote,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",Mte,"\u2212"+c(o.deletions),1)):f("v-if",!0)])],10,Ste))),128))])):f("v-if",!0)])):f("v-if",!0),n("span",Vte,[h(c(e.fmt.plural(e.prStats().files,{one:"1 file changed",other:"{} files changed"})),1),n("span",qte,"+"+c(e.fmt.number(e.prStats().additions)),1),n("span",Lte,"\u2212"+c(e.fmt.number(e.prStats().deletions)),1)]),n("button",{type:"button",class:"btn btn-sm btn-ghost pr-collapse-all",onClick:t[7]||(t[7]=o=>e.toggleAllFiles())},c(e.allCollapsed()?"Expand all":"Collapse all"),1)]),(a(!0),l(N,null,U(e.prFiles(),o=>(a(),l("section",{class:T(["diff-file-block",{"is-collapsed":e.collapsedFiles[o.index]}]),key:o.id,id:o.id,"aria-label":o.path},[n("header",Fte,[n("button",{type:"button",class:"diff-file-toggle","aria-expanded":e.collapsedFiles[o.index]?"false":"true","aria-controls":o.id+"-body","aria-label":(e.collapsedFiles[o.index]?"Expand ":"Collapse ")+o.path,onClick:u=>e.toggleFile(o.index)},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1)])],8,Ute),n("span",{class:"diff-file-name",title:o.path},[o.dir?(a(),l("span",Hte,[(a(!0),l(N,null,U(e.redactParts(o.dir),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,zte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.redactParts(o.name),(u,p)=>(a(),l(N,{key:p},[u.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+u.n},[n("i",null,c(u.n),1)],8,jte)):(a(),l(N,{key:1},[h(c(u.t),1)],64))],64))),128))],8,Bte),n("span",_te,[o.status!=="modified"?(a(),l("span",{key:0,class:T(["diff-file-status","diff-file-status-"+o.status])},c(o.status),3)):f("v-if",!0),o.threads?(a(),l("span",{key:1,class:"diff-file-threads",title:e.fmt.plural(o.threads,{one:"1 review thread",other:"{} review threads"})},[t[29]||(t[29]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),h(c(o.threads),1)],8,Gte)):f("v-if",!0),n("span",{class:"diff-file-stat","aria-label":o.additions+" additions, "+o.deletions+" deletions"},[o.additions?(a(),l("span",Kte,"+"+c(o.additions),1)):f("v-if",!0),o.deletions?(a(),l("span",Yte,"\u2212"+c(o.deletions),1)):f("v-if",!0),n("span",Xte,[(a(!0),l(N,null,U(e.diffBar(o),(u,p)=>(a(),l("i",{key:p,class:T("is-"+u)},null,2))),128))])],8,Wte)])]),e.collapsedFiles[o.index]?f("v-if",!0):(a(),l("div",{key:0,class:"diff-file-body",id:o.id+"-body"},[$e(r,{file:o,fmt:e.fmt},null,8,["file","fmt"]),o.looseThreads.length?(a(),l("div",Jte,[(a(!0),l(N,null,U(o.looseThreads,(u,p)=>(a(),l("div",{class:"diff-loose-thread",key:p},[n("div",Zte,[n("span",null,"Comment on line "+c(u.line||"\u2014")+" (outside this diff)",1)]),$e(i,{comments:u.comments,fmt:e.fmt},null,8,["comments","fmt"])]))),128))])):f("v-if",!0)],8,Qte))],10,$te))),128))])],2)])):f("v-if",!0)])])])}var xte={class:"repository-task status-page"},ene={class:"page-head-main"},tne={class:"task-lede"},nne={class:"task-columns"},sne={class:"task-preparation","aria-label":"Repository preparation"},one={key:0,class:"text-danger",role:"alert"},ine={key:1,class:"paper-section-copy"},rne={key:2,class:"paper-ratelimit-card",role:"status"},ane={class:"paper-error-msg"},lne=["aria-valuenow"],dne={class:"paper-progress-label"},une=["textContent"],cne={key:0},pne=["textContent"],fne={class:"paper-progress-pct"},mne={key:4,class:"paper-error-card",role:"alert"},hne={key:0,class:"paper-error-msg"},gne={key:1,class:"paper-error-msg"},yne={key:2},vne=["href"],bne={class:"paper-error-actions"},wne=["href"],kne={key:5,class:"share-link"},Cne={class:"share-link-row"},Ene={class:"share-link-buttons"},Sne={class:"ui-icon","aria-hidden":"true"},Nne=["href"],Rne=["textContent"],Tne=["href"],Pne={class:"share-link-note"},Dne=["href"],Ane={class:"share-link-next"},Ine={class:"share-link-next-actions"},One=["href"],Mne={class:"task-summary","aria-label":"Repository summary"},Vne=["title"],qne={key:1};function om(e,t){return a(),l("div",xte,[n("header",{class:T(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",ene,[n("div",null,[n("h1",null,c(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",tne,c(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",nne,[n("section",sne,[e.error?(a(),l("p",one,[t[5]||(t[5]=h("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",ine,[...t[6]||(t[6]=[h(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),h(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",rne,[t[9]||(t[9]=Pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",ane,[t[7]||(t[7]=h("Anonymization will resume automatically in ",-1)),n("strong",null,c(e.rateLimitCountdown),1),t[8]||(t[8]=h(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:T(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:De("width: "+e.progress+"%;")},null,4),n("div",dne,[n("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,une),e.repo?.statusMessage?(a(),l("span",cne,[t[10]||(t[10]=h("\xA0\xB7\xA0",-1)),n("span",{textContent:c(e.repo?.statusMessage)},null,8,pne)])):f("v-if",!0),n("span",fne,c(e.progress||0)+"%",1)])],10,lne)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",mne,[t[14]||(t[14]=Pe('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",hne,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",gne,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),["quota_exceeded","quota_repository_limit","quota_storage_limit"].includes(e.repo?.statusMessage)?(a(),l("p",yne,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,vne),t[11]||(t[11]=h(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",bne,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit anonymization",-1)])],8,wne),t[13]||(t[13]=Pe(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",kne,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",Cne,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},c(e.shareUrl),33),n("div",Ene,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",Sne,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,Nne)])),n("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,Rne)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" Open repository ",-1)])],8,Tne)])]),n("p",Pne,[h(c(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=h("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(N,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,Dne)],64)):f("v-if",!0)]),n("div",Ane,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",Ine,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,One),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",Mne,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=h("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),h(c(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),h(c(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,Vne)):(a(),l("dd",qne,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,c(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var Lne={class:"container paper-page admin-page overview-page billing-page"},$ne={class:"bl-toolbar"},Fne={class:"seg-filter",role:"radiogroup","aria-label":"Period"},Une=["aria-checked","onClick"],Bne={key:0,class:"bl-basis"},Hne={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},zne={key:1,class:"ov-performance-message bl-message",role:"status"},jne={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},_ne=["aria-busy"],Gne={class:"ov-kpi-card"},Wne={class:"ov-kpi-value"},Kne={class:"ov-kpi-sub"},Yne={class:"ov-kpi-card"},Xne={key:0,class:"ov-kpi-sub"},Qne={key:1,class:"ov-kpi-sub"},Jne={class:"ov-kpi-card"},Zne={class:"ov-kpi-label"},xne={class:"ov-kpi-value"},ese={class:"ov-kpi-sub"},tse={class:"ov-kpi-card"},nse={class:"ov-kpi-value"},sse={class:"ov-kpi-sub"},ose={class:"ov-kpi-card"},ise={class:"ov-kpi-value"},rse={class:"ov-kpi-sub"},ase={class:"ov-kpi-card"},lse={class:"ov-kpi-sub"},dse={key:3,class:"bl-health","aria-label":"Webhook health"},use={class:"bl-health-title"},cse={class:"bl-health-item"},pse=["title"],fse={key:1,class:"bl-health-item"},mse={key:4,class:"ov-chart-card bl-chart-card"},hse={class:"ov-chart-head"},gse={class:"ov-chart-title"},yse={key:0,class:"ov-chart-legends"},vse=["aria-label"],bse={class:"ov-yaxis","aria-hidden":"true"},wse=["data-tip"],kse={class:"ov-spark-x bl-x"},Cse={key:1,class:"ov-performance-empty bl-empty",role:"status"},Ese={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},Sse={class:"ov-panel-head"},Nse={class:"ov-panel-meta"},Rse={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},Tse={class:"ov-metrics-table"},Pse={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},Dse={class:"bl-family-row"},Ase={scope:"rowgroup",class:"bl-plan-name"},Ise={class:"num"},Ose={class:"num"},Mse={class:"num"},Vse={class:"num"},qse={class:"num"},Lse={scope:"row",class:"bl-plan-name bl-plan-child"},$se=["title","onClick"],Fse={class:"num"},Use={class:"num"},Bse={class:"num"},Hse={class:"num"},zse={class:"num"},jse={class:"num"},_se={class:"num"},Gse={class:"num"},Wse={class:"num"},Kse={class:"num"},Yse={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},Xse={class:"seg-bar"},Qse={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},Jse=["aria-checked"],Zse={class:"count"},xse=["aria-checked"],eoe={class:"count"},toe=["aria-checked"],noe={class:"count"},soe=["aria-checked"],ooe={class:"count"},ioe={class:"seg-countline",role:"status"},roe={key:0,class:"alert alert-danger bl-alert"},aoe=["aria-expanded"],loe={class:"search-wrap"},doe={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},uoe={class:"admin-filter-inline"},coe={id:"bl-plan",class:"form-control form-control-sm"},poe=["label"],foe=["value"],moe={class:"admin-filter-inline"},hoe={id:"bl-period",class:"form-control form-control-sm"},goe=["value"],yoe={class:"admin-filter-inline"},voe={id:"bl-status",class:"form-control form-control-sm"},boe=["value"],woe={key:0,class:"admin-filter-inline","aria-label":"Pagination"},koe=["disabled"],Coe={class:"bl-page"},Eoe=["disabled"],Soe={key:0,class:"admin-filter-row"},Noe={class:"admin-active-chips"},Roe={class:"key"},Toe=["onClick"],Poe={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},Doe={class:"ov-metrics-table bl-grant-table"},Aoe={scope:"col"},Ioe={scope:"col"},Ooe={scope:"row",class:"bl-user"},Moe=["title","href"],Voe={key:1,class:"ov-muted"},qoe=["title"],Loe=["title"],$oe={class:"bl-state"},Foe={key:0},Uoe={key:1},Boe={class:"bl-date"},Hoe={class:"bl-date"},zoe={key:0},joe={key:1},_oe=["title"],Goe={class:"bl-scope"},Woe=["href","title"],Koe={class:"ui-icon","aria-hidden":"true"},Yoe=["href"],Xoe={key:1,class:"ov-muted"},Qoe={key:2,class:"paper-table-empty"},Joe={key:3,class:"admin-empty"},Zoe={key:4,class:"admin-toolbar bl-pager"},xoe={key:0,class:"pagination-compact"},eie=["disabled"],tie=["max"],nie=["disabled"],sie={class:"admin-filter-inline"},oie={id:"bl-limit",class:"form-control form-control-sm"};function im(e,t){let s=Le("field"),i=Le("form");return a(),l("div",Lne,[t[81]||(t[81]=Pe('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",$ne,[n("div",Fne,[(a(!0),l(N,null,U(e.periods,r=>(a(),l("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.period===r.id}]),key:r.id,"aria-checked":e.period===r.id,onClick:o=>e.setPeriod(r.id)},c(r.label),11,Une))),128))]),e.summary?(a(),l("p",Bne,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",Hne,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,c(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=r=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",zne,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),h(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",jne,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+c(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+c(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+c(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \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 "),n("section",{class:T(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(N,{key:0},U(6,r=>n("div",{class:"ov-kpi-card",key:r,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(N,{key:1},[n("div",Gne,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",Wne,c(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",Kne,c(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+c(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",Yne,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:T(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},c(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",Xne,"+ "+c(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",Qne,c(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",Jne,[n("div",Zne,"Sales \xB7 "+c(e.periodPhrase()),1),n("div",xne,c(e.fmt?.number(e.summary.sales.count)),1),n("div",ese,c(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",tse,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",nse,c(e.fmt?.number(e.summary.allTime.count)),1),n("div",sse,c(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",ose,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",ise,c(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",rse,"at period end, of "+c(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",ase,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},c(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",lse,c(e.fmt?.number(e.summary.reversals.refunds))+" "+c(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+c(e.fmt?.number(e.summary.reversals.disputes))+" "+c(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,_ne),f(" \u2500\u2500 Webhook health \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 "),e.summary?.webhooks?(a(),l("section",dse,[n("span",use,[n("span",{class:T(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=h("Stripe webhooks",-1))]),n("span",cse,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(N,{key:0},[h(" \xB7 oldest "+c(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:T(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=h()),n("code",null,c(e.summary.webhooks.lastError.error),1),h(" on "+c(e.summary.webhooks.lastError.type)+" \xB7 "+c(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,pse)):(a(),l("span",fse,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),h(" none",-1)])])),n("span",{class:T(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),h(" "+c(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \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 "),e.summary?(a(),l("section",mse,[n("div",hse,[n("span",gse,"Sales per "+c(e.bucketName())+" \xB7 "+c(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",yse,[(a(!0),l(N,null,U(e.families,r=>(a(),l("span",{class:"ov-chart-legend",key:r.id},[n("span",{class:T(["bl-swatch","bl-"+r.id]),"aria-hidden":"true"},null,2),h(c(r.label)+" \xB7 "+c(e.legendText(r.id)),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(N,{key:0},[n("div",{class:T(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",bse,[n("span",null,c(e.fmt?.number(e.chartMax())),1),n("span",null,c(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(N,null,U(e.summary.series,(r,o)=>(a(),l("div",{class:T(["ov-spark-col has-tip bl-col",[e.tipSide(o),{"is-zero":!e.bucketTotal(r)}]]),key:o,"data-tip":e.bucketTip(r)},[n("span",{class:"bl-stack",style:De({height:e.bucketTotal(r)/e.chartMax()*100+"%"})},[(a(!0),l(N,null,U(e.families,u=>O((a(),l("i",{key:u.id,class:T("bl-"+u.id),style:De({flexGrow:r[u.id]})},null,6)),[[te,r[u.id]]])),128))],4)],10,wse))),128))],10,vse),n("div",kse,[n("span",null,c(e.bucketLabel(e.summary.series[0])),1),n("span",null,c(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,c(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",Cse,"No sales "+c(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \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\u2500\u2500\u2500 "),e.summary?(a(),l("section",Ese,[n("div",Sse,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",Nse,c(e.fmt?.number(e.plansWithActivity().length))+" of "+c(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",Rse,[n("table",Tse,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",Pse,c(e.periodPhrase().replace(/^./,r=>r.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(N,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),(a(!0),l(N,null,U(e.families,r=>O((a(),l("tbody",{key:r.id},[n("tr",Dse,[n("th",Ase,[n("span",{class:T(["bl-swatch","bl-"+r.id]),"aria-hidden":"true"},null,2),h(c(r.label),1)]),n("td",Ise,c(e.fmt?.number(e.familySum(r.id,"active"))),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",Ose,c(e.fmt?.number(e.familySum(r.id,"sales"))),1),n("td",Mse,c(e.familyMoney(r.id,"revenue","revenueComplete")),1)],64)):f("v-if",!0),n("td",Vse,c(e.fmt?.number(e.familySum(r.id,"allTimeSales"))),1),n("td",qse,c(e.familyMoney(r.id,"allTimeRevenue","allTimeRevenueComplete")),1)]),(a(!0),l(N,null,U(e.familyPlans(r.id),o=>(a(),l("tr",{key:o.planId,class:T({"bl-idle":!o.active&&!o.sales&&!o.allTimeSales})},[n("th",Lse,[n("button",{type:"button",class:"bl-link",title:"Show "+o.name+" sales",onClick:u=>e.filterPlan(o.planId)},c(o.name),9,$se)]),n("td",Fse,c(e.fmt?.number(o.active)),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",Use,c(e.fmt?.number(o.sales)),1),n("td",Bse,c(e.revenueOn()?o.revenueComplete===!1?"Incomplete":e.moneyText(o.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Hse,c(e.fmt?.number(o.allTimeSales)),1),n("td",zse,c(e.revenueOn()?o.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(o.allTimeRevenue):"\u2014"),1)],2))),128))])),[[te,e.familyPlans(r.id).length]])),128)),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",jse,c(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(N,{key:0},[n("td",_se,c(e.fmt?.number(e.planTotals().sales)),1),n("td",Gse,c(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",Wse,c(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",Kse,c(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack, here, in the chart and in the list below. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \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 "),n("section",Yse,[t[80]||(t[80]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",Xse,[n("div",Qse,[n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=r=>e.setStateView("all"))},[t[43]||(t[43]=h("All ",-1)),n("span",Zse,c(e.fmt?.number(e.stateCount("all"))),1)],10,Jse),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=r=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=h("Active ",-1)),n("span",eoe,c(e.fmt?.number(e.stateCount("active"))),1)],10,xse),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=r=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=h("Expired ",-1)),n("span",noe,c(e.fmt?.number(e.stateCount("expired"))),1)],10,toe),n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=r=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=h("Revoked ",-1)),n("span",ooe,c(e.fmt?.number(e.stateCount("revoked"))),1)],10,soe)]),n("p",ioe,[n("strong",null,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=h(" shown",-1))])]),e.grantsError?(a(),l("div",roe,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+c(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=r=>e.reloadGrants())},"Retry")])):f("v-if",!0),O((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=de(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=r=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=h("Filters",-1)),e.filterCount()?(a(),l(N,{key:0},[h(" ("+c(e.filterCount())+")",1)],64)):f("v-if",!0)],8,aoe),n("div",{class:T(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",loe,[O(n("input",doe,null,512),[[s,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]])]),n("span",uoe,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),O((a(),l("select",coe,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(N,null,U(e.families,r=>(a(),l("optgroup",{key:r.id,label:r.label},[(a(!0),l(N,null,U((e.summary?.plans||[]).filter(o=>o.family===r.id),o=>(a(),l("option",{key:o.planId,value:o.planId},c(o.name),9,foe))),128))],8,poe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.plan=r},value:e.query?.plan,form:null,options:{}}]])]),n("span",moe,[t[56]||(t[56]=n("label",{for:"bl-period"},"Started",-1)),O((a(),l("select",hoe,[t[55]||(t[55]=n("option",{value:""},"Any time",-1)),(a(!0),l(N,null,U(e.periods.filter(r=>r.id!=="all"),r=>(a(),l("option",{key:r.id,value:r.id},"Last "+c(r.label),9,goe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.period=r},value:e.query?.period,form:null,options:{}}]])]),n("span",yoe,[t[58]||(t[58]=n("label",{for:"bl-status"},"Stripe status",-1)),O((a(),l("select",voe,[t[57]||(t[57]=n("option",{value:""},"Any",-1)),(a(!0),l(N,null,U(e.statuses,r=>(a(),l("option",{key:r,value:r},c(r.replace(/_/g," ")),9,boe))),128))])),[[s,{state:e.viewState,set:r=>{e.query.status=r},value:e.query?.status,form:null,options:{}}]])]),t[61]||(t[61]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",woe,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,koe),n("span",Coe,c(e.query?.page)+"/"+c(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Eoe)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",Soe,[n("div",Noe,[(a(!0),l(N,null,U(e.chips,r=>(a(),l("span",{class:"admin-active-chip",key:r?.key},[n("span",Roe,c(r?.label),1),n("span",null,c(r?.value),1),n("button",{type:"button",onClick:o=>e.clearFilter(r.key),"aria-label":"Clear filter"},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Toe)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",Poe,[n("table",Doe,[t[73]||(t[73]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[67]||(t[67]=n("th",{scope:"col"},"User",-1)),t[68]||(t[68]=n("th",{scope:"col"},"Plan",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Status",-1)),n("th",Aoe,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=r=>e.sortBy("purchasedAt"))},[t[64]||(t[64]=h("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",Ioe,[n("button",{type:"button",class:T(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=r=>e.sortBy("until"))},[t[66]||(t[66]=h("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:T(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[65]||(t[65]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[70]||(t[70]=n("th",{scope:"col",class:"num"},"Amount",-1)),t[71]||(t[71]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(N,null,U(e.grants,r=>(a(),l("tr",{key:r.id},[n("th",Ooe,[r.user?(a(),l("a",{key:0,title:r.user,href:e.safeUrl("/admin/users/"+r.user)},c(r.user),9,Moe)):(a(),l("span",Voe,"Deleted user"))]),n("td",null,[n("span",{class:"bl-plan-cell",title:e.familyLabel(r.family)},[n("span",{class:T(["bl-swatch","bl-"+r.family]),"aria-hidden":"true"},null,2),h(c(e.planName(r.planId)),1)],8,qoe),r.pack?(a(),l("small",{key:0,title:e.packPartsTitle(r)},c(e.packParts(r)),9,Loe)):f("v-if",!0)]),n("td",null,[n("span",$oe,[n("span",{class:T(["status-dot",r.state==="active"?"st-ready":r.state==="revoked"?"st-error":"st-expired"])},null,2),h(c(r.state==="active"?"Active":r.state==="revoked"?"Revoked":"Expired"),1)]),r.revoked?(a(),l("small",Foe,[h(c(e.revocationText(r.revocationReason)),1),r.revokedAt?(a(),l(N,{key:0},[h(" \xB7 "+c(e.fmt?.date(r.revokedAt)),1)],64)):f("v-if",!0)])):["active","paid"].includes(r.status)?f("v-if",!0):(a(),l("small",Uoe,"Stripe: "+c(e.statusText(r)),1))]),n("td",Boe,c(r.purchasedAt?e.fmt?.date(r.purchasedAt):"\u2014"),1),n("td",Hoe,[h(c(e.endText(r)),1),r.subscription&&r.cancelAtPeriodEnd&&r.state==="active"?(a(),l("small",zoe,[...t[72]||(t[72]=[n("span",{class:"bl-flag"},"Cancelling",-1)])])):e.packNote(r)?(a(),l("small",joe,c(e.packNote(r)),1)):f("v-if",!0)]),n("td",{class:"num bl-amount",title:e.amountTitle(r)},[n("span",{class:T({"ov-muted":!r.amount})},c(e.amountText(r)),3)],8,_oe),n("td",Goe,[e.scopeHref(r.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(r.scope)),title:r.scope.id},[(a(),l("svg",Koe,[n("use",{href:r.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,Yoe)])),n("span",null,c(r.scope.id),1)],8,Woe)):(a(),l("span",Xoe,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",Qoe,[t[74]||(t[74]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,c(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",Joe,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",Zoe,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",xoe,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=r=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,eie),O(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,tie),[[s,{state:e.viewState,set:r=>{e.query.page=r},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+c(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=r=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,nie)])):f("v-if",!0),n("span",sie,[t[78]||(t[78]=n("label",{for:"bl-limit"},"Per page",-1)),O((a(),l("select",oie,[...t[77]||(t[77]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:r=>{e.query.limit=r},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var iie={class:"paper-footer"},rie={class:"paper-footer-inner"},aie={class:"paper-footer-col"},lie={key:0,href:"/dashboard"},die={key:1,href:"/conferences"},uie={class:"paper-footer-foot"};function rm(e,t){return a(),l("footer",iie,[n("div",rie,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[h("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",aie,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",lie,"My work")):f("v-if",!0),e.user?(a(),l("a",die,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Pe('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",uie,[n("span",null,"\xA9 "+c(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var ta={"partials/reviewConsent.htm":Df,"partials/connections.htm":Af,"partials/signin.htm":If,"partials/404.htm":Of,"partials/admin/billing.htm":im,"partials/admin/emails.htm":Pf,"partials/admin/conferences.htm":Mf,"partials/admin/errors.htm":Vf,"partials/admin/entityErrors.htm":qf,"partials/admin/overview.htm":Lf,"partials/admin/queues.htm":$f,"partials/admin/repositories.htm":Ff,"partials/admin/user.htm":Uf,"partials/admin/users.htm":Bf,"partials/anonymize.htm":Hf,"partials/anonymizePullRequest.htm":zf,"partials/claim.htm":jf,"partials/conference.htm":_f,"partials/conferences.htm":Gf,"partials/dashboard.htm":Wf,"partials/explorer.htm":Kf,"partials/faq.htm":Yf,"partials/gist.htm":Xf,"partials/header.htm":Qf,"partials/home.htm":Jf,"partials/loading.htm":Zf,"partials/newConference.htm":xf,"partials/pageView.htm":em,"partials/pr-dashboard.htm":tm,"partials/profile.htm":nm,"partials/pullRequest.htm":sm,"partials/status.htm":om,"partials/footer.htm":rm};var cie={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function am(e,t){return a(),l("svg",cie,[...t[0]||(t[0]=[Pe('',1)])])}function lm(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=r=>{r.preventDefault();let o=r.clientX,u=t.sidebarWidth,p=g=>{t.sidebarWidth=Math.min(520,Math.max(220,u+g.clientX-o)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},d=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",d),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",d)}),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 i={"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(i){let r=Ye(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>r.value})}}function dm(e=(...t)=>fetch(...t)){async function t(i,r,o,u={}){let p=new URL(r,window.location.href);for(let[m,v]of Object.entries(u.params||{}))if(v!=null)for(let y of Array.isArray(v)?v:[v])p.searchParams.append(m,typeof y=="object"?JSON.stringify(y):y);let d=new AbortController,g;u.timeout?.then?u.timeout.then(()=>d.abort()):u.timeout&&(g=setTimeout(()=>d.abort(),u.timeout));try{let m={Accept:"application/json, text/plain, */*",...u.headers},v=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);v&&p.origin===window.location.origin&&(m["X-XSRF-TOKEN"]=decodeURIComponent(v[1]));let y;o!==void 0&&(o instanceof FormData?y=o:(m["Content-Type"]||(m["Content-Type"]="application/json;charset=utf-8"),y=JSON.stringify(o)));let C=await e(p.href,{method:i,headers:m,body:y,credentials:"same-origin",signal:d.signal}),k;if(u.onDownloadProgress&&C.ok&&C.body?.getReader&&typeof TextDecoder<"u"){let b=C.body.getReader(),P=new TextDecoder,D=[],L=0;try{for(;;){let{value:H,done:_}=await b.read();if(_)break;D.push(P.decode(H,{stream:!0})),L+=H.byteLength,u.onDownloadProgress(L)}D.push(P.decode()),k=D.join("")}finally{b.releaseLock()}}else k=await C.text();let w=k;if(u.transformResponse)w=u.transformResponse(k);else if(k&&(/json/i.test(C.headers.get("content-type")||"")||/^[\[{]/.test(k.trim())))try{w=JSON.parse(k)}catch{}let R={data:w,status:C.status,headers:b=>C.headers.get(b)};if(!C.ok)throw R;return R}catch(m){throw m.name==="AbortError"?{status:-1,data:null}:m}finally{clearTimeout(g)}}let s={};for(let i of["get","delete","head"])s[i]=(r,o)=>t(i.toUpperCase(),r,void 0,o);for(let i of["post","put","patch"])s[i]=(r,o,u)=>t(i.toUpperCase(),r,o,u);return s}var um={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,r)=>{e=i,t=r}),resolve:e,reject:t}}};var cm=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var pm={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=bt(null);return Qt(()=>{let i=[t.value][0];i.classList.add("html-doc");function r(){i.innerHTML="";let o=e.content;if(typeof o!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let d="";e.baseUrl&&(d=''),u.srcdoc=d+o}dt(()=>e.content,r,{immediate:!0}),dt(()=>e.baseUrl,r,{immediate:!0}),dt(()=>e.allowScripts,r,{immediate:!0})}),()=>ke("html-doc",{ref:t})}};var fm={name:"pdfviewer",props:["src"],setup(e){let t=bt(null);return Qt(()=>{let s=[t.value],i=400,r=[.5,.75,1,1.25,1.5,2,3],o=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,d=[],g=!1,m=null,v=1,y=0,C=1,k=0,w=0,R=612/792,b=0,P=null,D=new Map,L=0;function H(I){let z=D.get(I);z&&(z.cancelled=!0,z.task?.cancel?.(),D.delete(I));let Z=I.querySelector("canvas");Z&&(Z.width=0,Z.height=0),I.innerHTML="",delete I.dataset.state}let _=document.createElement("div");_.className="pdf-toolbar";let W=document.createElement("div");W.className="pdf-pages",W.tabIndex=0,W.setAttribute("aria-label","PDF pages"),u.appendChild(_),u.appendChild(W);function ae(I,z,Z){let X=document.createElement("button");return X.type="button",X.className="pdf-toolbar-btn",X.title=z,X.setAttribute("aria-label",z),X.innerHTML='',X.addEventListener("click",Z),X}let F=ae("fa-chevron-up","Previous page",function(){tt(C-1)}),V=ae("fa-chevron-down","Next page",function(){tt(C+1)}),S=document.createElement("input");S.type="text",S.className="pdf-toolbar-page",S.setAttribute("aria-label","Page number"),S.title="Page number \u2014 type a page and press Enter",S.addEventListener("keydown",function(I){I.key==="Enter"&&(tt(parseInt(S.value,10)),S.blur())}),S.addEventListener("blur",function(){S.value=String(C)});let q=document.createElement("span");q.className="pdf-toolbar-count";let G=ae("fa-search-minus","Zoom out",function(){Se(r[Math.max(0,ye()-1)])}),oe=ae("fa-search-plus","Zoom in",function(){Se(r[Math.min(r.length-1,ye()+1)])}),K=document.createElement("button");K.type="button",K.className="pdf-toolbar-btn pdf-toolbar-zoom",K.title="Reset zoom to fit the width",K.setAttribute("aria-label","Reset zoom to fit the width"),K.addEventListener("click",function(){Se(1)}),_.appendChild(F),_.appendChild(V);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(S),ne.appendChild(q),_.appendChild(ne);let le=document.createElement("span");le.className="pdf-toolbar-group pdf-toolbar-right",le.appendChild(G),le.appendChild(K),le.appendChild(oe),_.appendChild(le);function ye(){let I=0;for(let z=0;z=I,K.textContent=v===1||!y?"Fit":Math.round(gt()/(y*96/72)*100)+"%",G.disabled=ye()===0,oe.disabled=ye()===r.length-1}function Xe(I){let z=d[I-1];z&&(W.scrollTop+=z.getBoundingClientRect().top-W.getBoundingClientRect().top)}function tt(I){if(!p||isNaN(I))return;let z=Math.min(Math.max(1,I),p.numPages);d[z-1]&&(Xe(z),C=z,k=z,w=Date.now()+800,Ae(),Q())}function Ge(){if(!d.length||Date.now(){}),P=null),m&&(clearTimeout(m),m=null),p&&(p.destroy(),p=null),d=[],C=1,W.innerHTML="",Ae()}function it(){W.innerHTML="";let I=document.createElement("div");I.className="pdf-viewer-error",I.textContent="This PDF could not be displayed.",W.appendChild(I)}function gt(){let I=Math.max(120,W.clientWidth-24);return Math.round(Math.min(I,o)*v)}function Me(I,z,Z){let X=window.devicePixelRatio||1,ee=I.getViewport({scale:1}),ue=parseFloat(z.style.width);if(!ue)return;let re=I.getViewport({scale:ue/ee.width*X}),ie=document.createElement("canvas");return ie.width=Math.floor(re.width),ie.height=Math.floor(re.height),ie.style.width=ue+"px",ie.style.height=Math.floor(re.height/X)+"px",z.innerHTML="",z.appendChild(ie),z.style.height=ie.style.height,Z.task=I.render({canvasContext:ie.getContext("2d"),viewport:re}),Z.task.promise}function Q(){if(!p)return;let I=b,z=W.getBoundingClientRect(),Z=z.top-i,X=z.top+W.clientHeight+i,ee=d.map((re,ie)=>({slot:re,i:ie,rect:re.getBoundingClientRect()})).filter(re=>re.rect.top<=X&&re.rect.bottom>=Z).sort((re,ie)=>Math.abs(re.rect.top-z.top)-Math.abs(ie.rect.top-z.top)).slice(0,6),ue=new Set(ee.map(re=>re.slot));for(let re of D.keys())ue.has(re)||H(re);for(let{slot:re,i:ie}of ee){if(re.dataset.state||L>=2)continue;let se={cancelled:!1,task:null};D.set(re,se),L++,re.dataset.state="rendering";let Te;p.getPage(ie+1).then(fe=>{if(Te=fe,!(se.cancelled||I!==b))return Me(Te,re,se)}).then(()=>{se.cancelled||I!==b||(re.dataset.state="done",k&&Date.now(){!se.cancelled&&I===b&&(re.dataset.state="failed")}).finally(()=>{L--,Te?.cleanup?.(),p&&Q()})}}function he(){g||(g=!0,window.requestAnimationFrame(function(){g=!1,Ge(),Q()}))}function x(){let I=!1;function z(){I||(I=!0,Q())}window.requestAnimationFrame(z),window.setTimeout(z,50)}function ge(){b++,d.forEach(H);let I=gt();d.forEach(function(z){delete z.dataset.state,z.innerHTML="",z.style.width=I+"px",z.style.height=Math.round(I/R)+"px"}),Q()}function Se(I){if(!p||!d.length||I===v)return;let z=C;v=I,Ae(),ge(),tt(z)}function Ie(){p&&(m&&clearTimeout(m),m=setTimeout(function(){m=null,p&&d.length&&ge()},250))}function A(I){if(We(),!I)return;let z=b;P=pdfjsLib.getDocument({url:I,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),P.promise.then(function(Z){if(z!==b){Z.destroy();return}return p=Z,p.getPage(1).then(function(X){if(z!==b)return;let ee=X.getViewport({scale:1});ee.width&&ee.height&&(R=ee.width/ee.height),y=ee.width||0;let ue=gt();for(let re=1;re<=p.numPages;re++){let ie=document.createElement("div");ie.className="pdf-viewer-page",ie.style.width=ue+"px",ie.style.height=Math.round(ue/R)+"px",W.appendChild(ie),d.push(ie)}Ae(),x()})}).catch(function(){z===b&&it()})}W.addEventListener("scroll",he,{passive:!0}),$(window).on("resize",Ie),Ae(),dt(()=>e.src,A,{immediate:!0}),Un(function(){W.removeEventListener("scroll",he),$(window).off("resize",Ie),We()})}),()=>ke("pdfviewer",{ref:t})}};var pie={key:0,class:"quota-row quota-usage"},fie={class:"quota-header"},mie={class:"quota-label"},hie={class:"project-type-svg","aria-hidden":"true"},gie=["href"],yie={key:0,class:"quota-percent"},vie={key:1,class:"quota-unlimited-tag"},bie={class:"quota-value"},wie={key:0},kie=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],Cie={key:1,class:"quota-remaining"},Eie={key:2,class:"quota-remaining quota-limit"};function mm(e,t){return e.quota?(a(),l("div",pie,[(a(),l(N,null,U([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:T(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",fie,[n("span",mie,[(a(),l("svg",hie,[n("use",{href:"#"+s.icon},null,8,gie)])),h(c(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",yie,c(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",vie,"Unlimited")):f("v-if",!0)]),n("div",bie,[n("strong",null,c(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",wie," / "+c(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:T(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:De({width:e.quota[s.key].percent+"%"})},null,4))],10,kie)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",Eie,c(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var Sie=["#2a78d6","#eb6834","#1baf7a","#eda100"],Nie=["#3987e5","#d95926","#199e70","#c98500"],na={bar:4,line:4,scatter:3},Rie=40,Tie=500,hm=2e3,Pie=e=>e.type==="number"&&!!e.identifier;function ym(e,t){let s=e.columns,i=t?s[0]:s.find(u=>u.type==="text")||s.find(u=>u.type==="date")||s.find(u=>u.type==="number"),r=s.filter(u=>u.type==="number"&&u!==i&&!(t&&u.index===1)),o=r.find(u=>!Pie(u))||r[0];return{type:i&&i.type!=="text"?"line":"bar",x:i?.name||null,y:o?[o.name]:[]}}function td(e,t,s=5){if(!Number.isFinite(e)||!Number.isFinite(t))return{min:0,max:1,ticks:[0,1],step:1};if(e===t){let g=Math.abs(e)*.1||1;e-=g,t+=g}let i=(t-e)/s,r=10**Math.floor(Math.log10(i)),o=[1,2,2.5,5,10].map(g=>g*r).find(g=>g>=i)||10*r,u=Math.floor(e/o+1e-9)*o,p=Math.ceil(t/o-1e-9)*o,d=[];for(let g=u;g<=p+o/2;g+=o)d.push(Math.abs(g)(String(+e.toPrecision(6)).split(".")[1]||"").length;function nd(e,t,s=""){let i=Math.abs(e);if(i>=1e4){let[r,o]=i>=1e9?[1e9,"B"]:i>=1e6?[1e6,"M"]:[1e3,"K"];return It(e/r,Math.max(0,gm(t/r)))+o+s}return It(e,gm(t))+s}var ki=(e,t=11.5)=>String(e).length*t*.56;function vm(e,t,s,i){let r=e.columns,o=r.find(y=>y.name===s.x),u=s.type||"bar",p=(s.y||[]).map(y=>r.find(C=>C.name===y&&C.type==="number")).filter(Boolean).slice(0,na[u]),d=i.dark?Nie:Sie,g=Math.max(260,Math.floor(i.width||640)),m={type:u,width:g,x:o,ys:p,notes:[],series:p.map((y,C)=>({name:y.name,color:d[C]}))};if(!o)return{...m,empty:"Pick a column for the x axis."};if(!p.length)return{...m,empty:"Pick at least one numeric column to plot."};if(!t.length)return{...m,empty:"No rows match the current filters."};(s.y||[]).length>p.length&&m.notes.push(`Showing the first ${p.length} series; a chart with more is hard to read.`);let v=p.map(y=>Math.max(...t.slice(0,5e3).map(C=>Math.abs(y.keys[C]??0)))).filter(y=>y>0);return v.length>1&&Math.max(...v)/Math.min(...v)>20&&m.notes.push("These columns have very different ranges; chart them one at a time to compare their values."),u==="bar"?Aie(e,t,o,p,s,m):u==="line"?Mie(e,t,o,p,s,m):Vie(e,t,o,p,m)}function ed(e,t,s,i,r){let o=new Map;for(let d of t){let g=s.keys[d]==null?"":s.keys[d];o.has(g)||o.set(g,{key:g,label:g===""?"(empty)":s.type==="text"?String(e.body[d][s.index]).trim():$t(s,g),rows:[]}),o.get(g).rows.push(d)}let u=[...o.values()],p=u.some(d=>d.rows.length>1);for(let d of u)d.values=i.map(g=>p?Qn(g.keys,d.rows,r):g.keys[d.rows[0]]);return{list:u,repeated:p}}function Die(e,t){return s=>$t(e,s,t)}function Aie(e,t,s,i,r,o){let u=r.agg||"mean",{list:p,repeated:d}=ed(e,t,s,i,u),g=p.slice(0,Rie);d&&o.notes.unshift(`${Is(u)} per ${s.name} over ${t.length} rows.`),p.length>g.length&&o.notes.push(`First ${g.length} of ${p.length} ${s.name} values, in table order.`);let m=g.flatMap(S=>S.values).filter(S=>S!=null),v=Math.min(0,...m),y=Math.max(0,...m),C=td(v,y,o.width<480?4:6),k=i.map(S=>Die(S,d?u:void 0)),w=Math.min(Math.max(...g.map(S=>ki(S.label,12)))+12,Math.round(o.width*.38)),R=Math.max(...g.flatMap(S=>S.values.map((q,G)=>ki(k[G](q),11.5))))+10,b=i.length>2?12:16,P=2,D=14,L=i.length*b+(i.length-1)*P+D,H=8,_=26,W={x:w,y:H,w:Math.max(80,o.width-w-R-4),h:g.length*L},ae=S=>W.x+(S-C.min)/(C.max-C.min)*W.w,F=ae(0),V=[];return g.forEach((S,q)=>{let G=W.y+q*L+D/2;S.values.forEach((oe,K)=>{if(oe==null)return;let ne=ae(oe),le=Math.min(F,ne),ye=Math.abs(ne-F);V.push({key:q+":"+K,series:K,cat:q,x:le,y:G+K*(b+P),w:ye,h:b,positive:oe>=0,color:o.series[K].color,path:Iie(le,G+K*(b+P),ye,b,oe>=0),label:k[K](oe),lx:oe>=0?ne+6:ne-6,anchor:oe>=0?"start":"end",ly:G+K*(b+P)+b/2})})}),{...o,kind:"bar",height:W.y+W.h+_,plot:W,zero:F,categories:g.map((S,q)=>({label:S.label,y:W.y+q*L+L/2,hit:{y:W.y+q*L,h:L},tip:{title:S.label,rows:S.values.map((G,oe)=>({name:i[oe].name,color:o.series[oe].color,value:k[oe](G)})),note:d?`${Is(u)} of ${S.rows.length} ${S.rows.length===1?"row":"rows"}`:""}})),marks:V,showValues:g.length<=30,xTicks:C.ticks.map(S=>({v:S,x:ae(S),label:nd(S,C.step,i.length===1?i[0].unit:"")})),axisLabel:i.length===1?d?`${Is(u)} ${i[0].name}`:bm(i[0]):d?Is(u):""}}function Iie(e,t,s,i,r){let o=Math.min(4,s/2,i/2);return s<=.5?"":r?`M${e},${t}H${e+s-o}Q${e+s},${t} ${e+s},${t+o}V${t+i-o}Q${e+s},${t+i} ${e+s-o},${t+i}H${e}Z`:`M${e+s},${t}H${e+o}Q${e},${t} ${e},${t+o}V${t+i-o}Q${e},${t+i} ${e+o},${t+i}H${e+s}Z`}var bm=e=>e.agg?`${Is(e.agg)} ${e.name}`:e.name,Is=e=>({mean:"Average",sum:"Sum",median:"Median",min:"Min",max:"Max",count:"Count",std:"Std dev"})[e]||e;function Oie(e,t,s,i){if(i){let r=e.map(p=>p.xv),o=td(Math.min(...r),Math.max(...r),s<360?3:6),u=o.ticks;if(t.type==="date"){let p=Math.min(...r),d=Math.max(...r),g=d-p||864e5,m=36e5,v=24*m,y=[m,3*m,6*m,12*m,v,2*v,7*v,14*v,30*v,91*v,182*v,365*v,730*v,1826*v],C=s<360?3:6,k=y.find(w=>g/w<=C)||y[y.length-1];u=[];for(let w=Math.ceil(p/k)*k;w<=d;w+=k)u.push(w);return u.length||(u=[p]),{min:p,max:d===p?p+v:d,ticks:u,label:w=>gl(w,knd(p,o.step,t.unit)}}return null}function Mie(e,t,s,i,r,o){let u=s.type!=="text",p;if(u){let d=t.filter(m=>s.keys[m]!=null);if(new Set(d.map(m=>s.keys[m])).size({xv:v.key,label:v.label,values:v.values,count:v.rows.length})),o.notes.unshift(`${Is(r.agg||"mean")} per ${s.name}.`)}else p=d.map(m=>({xv:s.keys[m],label:$t(s,s.keys[m]),values:i.map(v=>v.keys[m]),count:1}));p.sort((m,v)=>m.xv-v.xv)}else{let{list:d,repeated:g}=ed(e,t,s,i,r.agg||"mean");p=d.map(m=>({label:m.label,values:m.values,count:m.rows.length})),g&&o.notes.unshift(`${Is(r.agg||"mean")} per ${s.name}.`)}return p=wm(p,o),km(p,s,i,o,u,"line",r)}function Vie(e,t,s,i,r){let o=s.type!=="text",u=t.filter(p=>s.keys[p]!=null).map(p=>({xv:o?s.keys[p]:null,label:s.type==="text"?String(e.body[p][s.index]).trim():$t(s,s.keys[p]),values:i.map(d=>d.keys[p]),count:1,row:p}));if(!o){let p=new Map;if(u.forEach(d=>{p.has(d.label)||p.set(d.label,p.size),d.xv=p.get(d.label)}),p.size>Tie)return{...r,empty:`The x column has ${p.size.toLocaleString("en-US")} different values; choose a number or date column, or group the rows first.`};r.categoryLabels=[...p.keys()]}return u=wm(u,r),km(u,s,i,r,!0,"scatter")}function wm(e,t){if(e.length<=hm)return e;let s=Math.ceil(e.length/hm);return t.notes.push(`Showing every ${s}th of ${e.length.toLocaleString("en-US")} points.`),e.filter((i,r)=>r%s===0)}function km(e,t,s,i,r,o){let u=e.flatMap(_=>_.values).filter(_=>_!=null);if(!u.length)return{...i,empty:"The selected columns have no values in these rows."};let p=i.width<480,d=td(u.reduce((_,W)=>Math.min(_,W),1/0),u.reduce((_,W)=>Math.max(_,W),-1/0),p?4:5),g=s.length===1?s[0].unit:"",m=d.ticks.map(_=>nd(_,d.step,g)),v=Math.max(...m.map(_=>ki(_)))+14,y=p?240:300,C={x:v,y:10,w:i.width-v-16,h:y-10-30},k=i.categoryLabels,w,R;if(r&&!k){let _=Oie(e,t,C.w,!0),W=_.max-_.min||1;w=ae=>C.x+(ae-_.min)/W*C.w,R=_.ticks.map(ae=>({x:w(ae),label:_.label(ae)}))}else{let _=k?k.length:e.length,W=_>1?Math.min(24,C.w/(2*_)):C.w/2,ae=_>1?(C.w-2*W)/(_-1):0;w=G=>C.x+W+G*ae,k||e.forEach((G,oe)=>{G.xv=oe});let F=k||e.map(G=>G.label),V=F.reduce((G,oe)=>Math.max(G,ki(oe)),0),S=Math.max(2,Math.floor(C.w/(V+12))),q=Math.ceil(F.length/S);R=F.map((G,oe)=>({x:w(oe),label:G,show:oe%q===0})).filter(G=>G.show)}R.forEach(_=>{let W=ki(_.label)/2;_.anchor=_.x-WC.x+C.w+12?"end":"middle"});let b=_=>C.y+C.h-(_-d.min)/(d.max-d.min||1)*C.h,P=s.map(_=>W=>$t(_,W,void 0)),D=e.length<=80||o==="scatter",L=i.series.map((_,W)=>{let ae=e.map((S,q)=>S.values[W]==null?null:{i:q,x:w(S.xv),y:b(S.values[W])}),F="",V=!1;for(let S of ae){if(!S){V=!1;continue}F+=(V?"L":"M")+S.x.toFixed(1)+","+S.y.toFixed(1),V=!0}return{..._,path:o==="line"?F:"",dots:D?ae.filter(Boolean):[]}}),H=e.map(_=>({x:w(_.xv),title:(t.type==="text"||k?"":t.name+" ")+_.label,rows:_.values.map((W,ae)=>({name:s[ae].name,color:i.series[ae].color,value:W==null?"\u2014":P[ae](W)})),note:_.count>1?`${_.count} rows`:""}));return{...i,kind:o,height:y,plot:C,series:L,points:H,yTicks:d.ticks.map((_,W)=>({y:b(_),label:m[W]})),xTicks:R,xLabel:t.name,yLabel:s.length===1?bm(s[0]):""}}var qie=["aria-label"],Lie={class:"dt-search"},$ie=["value"],Fie={class:"dt-chip-name"},Uie=["aria-label"],Bie=["aria-label","onClick"],Hie={class:"dt-count","aria-live":"polite"},zie={class:"dt-tools"},jie=["value"],_ie=["value"],Gie={key:0,class:"dt-select is-on"},Wie=["value"],Kie=["value"],Yie={class:"dt-copy"},Xie=["aria-expanded","title"],Qie={class:"ui-icon","aria-hidden":"true"},Jie=["href"],Zie={key:0,class:"tb-menu dt-copy-menu",role:"menu"},xie={class:"tb-menu-label"},ere={class:"dt-tools-m"},tre=["aria-expanded"],nre={key:0,class:"tb-menu dt-tools-menu",role:"menu"},sre={class:"dt-menu-field"},ore=["value"],ire=["value"],rre={key:0,class:"dt-menu-field"},are=["value"],lre=["value"],dre=["onClick"],ure={class:"dt-chart-controls"},cre={class:"seg-filter dt-chart-type",role:"radiogroup","aria-label":"Chart type"},pre=["aria-checked","onClick"],fre={class:"dt-select is-on"},mre=["value"],hre=["value"],gre={class:"dt-y",role:"group","aria-label":"Columns to plot"},yre=["aria-pressed","onClick"],vre={key:0,class:"dt-chart-notes"},bre={key:1,class:"dt-legend"},wre={key:2,class:"dt-chart-empty"},kre=["width","height","viewBox","aria-label"],Cre=["x1","x2","y1","y2"],Ere=["y","width","height"],Sre=["d"],Nre=["x1","x2","y1","y2"],Rre=["x","y"],Tre=["x","y","text-anchor"],Pre=["x","y"],Dre=["y","width","height"],Are=["x1","x2","y1","y2"],Ire=["x","y"],Ore=["x1","x2","y1","y2"],Mre=["x","y","text-anchor"],Vre=["x1","x2","y1","y2"],qre=["d"],Lre=["cx","cy","r"],$re=["x","y","width","height"],Fre={key:4,class:"dt-axis-label"},Ure={key:0,class:"dt-tip-title"},Bre=["aria-label"],Hre={key:1,class:"dt-tip-note"},zre=["aria-label"],jre={class:"csv-table dt-table"},_re={key:0,class:"csv-rownum",scope:"col"},Gre=["aria-sort"],Wre={class:"dt-th"},Kre=["title","onClick"],Yre={class:"dt-th-name"},Xre=["aria-label"],Qre={key:0,class:"dt-th-agg"},Jre=["data-col","aria-label","aria-expanded","onClick"],Zre=["innerHTML"],xre={key:1},eae={class:"dt-empty-row"},tae=["colspan"],nae={key:2},sae={class:"dt-summary"},oae={key:0,class:"csv-rownum"},iae={key:0,class:"dt-sum"},rae={class:"dt-sum-fn"},aae={class:"sr-only"},lae=["value","onChange"],dae=["value"],uae={class:"dt-sum-fn-label","aria-hidden":"true"},cae={class:"dt-sum-value"},pae={key:1,class:"dt-sum is-text"},fae={key:0,class:"dt-more"},mae=["aria-label"],hae={class:"dt-menu-head"},gae=["aria-label"],yae={class:"dt-stats"},vae={key:0,class:"dt-hist"},bae=["aria-label"],wae=["x","y","width","height"],kae={key:1,class:"dt-top"},Cae={class:"dt-top-name"},Eae=["aria-label"],Sae={class:"dt-top-n"},Nae={key:2,class:"dt-menu-sec"},Rae=["aria-checked"],Tae={class:"ui-icon","aria-hidden":"true"},Pae=["href"],Dae={key:0,class:"dt-menu-hint"},Aae={class:"dt-menu-sec"},Iae={class:"seg-filter dt-menu-sort",role:"group","aria-label":"Sort"},Oae={key:3,class:"dt-menu-sec"},Mae={class:"dt-range"},Vae=["value"],qae=["value"],Lae={key:4,class:"dt-menu-sec"},$ae={class:"dt-chips"},Fae=["aria-pressed","onClick"],Uae=["aria-label"],Bae={class:"dt-value-n"},Hae={key:5,class:"dt-menu-sec"},zae={key:6,class:"dt-menu-sec"};function Cm(e,t){return a(),l("div",{class:T(["dt",{"is-chart":e.view==="chart","is-grouped":!!e.groupColumn}])},[n("div",{class:"dt-toolbar",role:"toolbar","aria-label":"Analyze "+(e.label||e.name||"table")},[n("label",Lie,[t[36]||(t[36]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),t[37]||(t[37]=n("span",{class:"sr-only"},"Filter rows",-1)),n("input",{type:"search",class:"dt-search-input",placeholder:"Filter rows",autocomplete:"off",spellcheck:"false",value:e.s.query,onInput:t[0]||(t[0]=s=>e.s.query=s.target.value),onKeydown:t[1]||(t[1]=Tt(s=>e.s.query="",["esc"]))},null,40,$ie)]),(a(!0),l(N,null,U(e.activeFilters,s=>(a(),l("span",{class:"dt-chip",key:s.key},[n("span",Fie,c(s.name),1),(a(!0),l(N,null,U(e.redactParts(s.text),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,Uie)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128)),n("button",{type:"button",class:"dt-chip-x","aria-label":"Remove the "+s.name+" filter",onClick:i=>s.clear()},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Bie)]))),128)),e.activeFilters.length>1||e.activeFilters.length&&e.s.query?(a(),l("button",{key:0,type:"button",class:"dt-link",onClick:t[2]||(t[2]=s=>e.clearFilters())},"Clear")):f("v-if",!0),n("span",Hie,c(e.rowCountText),1),n("div",zie,[n("label",{class:T(["dt-select",{"is-on":!!e.groupColumn}])},[t[40]||(t[40]=n("span",{class:"dt-select-label"},"Group by",-1)),n("select",{value:e.s.group||"",onChange:t[3]||(t[3]=s=>e.setGroup(s.target.value)),"aria-label":"Group rows by"},[t[39]||(t[39]=n("option",{value:""},"None",-1)),(a(!0),l(N,null,U(e.groupable,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,_ie))),128))],40,jie),t[41]||(t[41]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],2),e.groupColumn?(a(),l("label",Gie,[t[42]||(t[42]=n("span",{class:"sr-only"},"Aggregate of each group",-1)),n("select",{value:e.s.agg,onChange:t[4]||(t[4]=s=>e.setAgg(s.target.value)),"aria-label":"Aggregate of each group"},[(a(!0),l(N,null,U(e.AGGREGATES,([s,i])=>(a(),l("option",{key:s,value:s},c(i),9,Kie))),128))],40,Wie),t[43]||(t[43]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))])):f("v-if",!0),n("div",Yie,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost dt-copy-btn",{"is-on":e.s.copyOpen}]),"aria-haspopup":"true","aria-expanded":e.s.copyOpen?"true":"false",title:e.isChanged()?"Copy or download this view":"Copy or download the table",onClick:t[5]||(t[5]=s=>e.s.copyOpen=!e.s.copyOpen)},[(a(),l("svg",Qie,[n("use",{href:e.s.copied&&e.s.copied!=="error"?"#ui-icon-check":"#project-icon-copy"},null,8,Jie)])),n("span",null,c(e.s.copied==="csv"?"Copied CSV":e.s.copied==="md"?"Copied Markdown":e.s.copied==="error"?"Copy failed":"Copy"),1),t[44]||(t[44]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))],10,Xie),e.s.copyOpen?(a(),l("div",Zie,[n("div",xie,c(e.isChanged()?"This view \xB7 "+e.formatNumber(e.sorted.length)+(e.groupColumn?" groups":" rows"):"All "+e.formatNumber(e.sorted.length)+" rows"),1),n("button",{type:"button",role:"menuitem",onClick:t[6]||(t[6]=s=>e.copyAs("csv"))},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),h("Copy as CSV",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[7]||(t[7]=s=>e.copyAs("md"))},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("Copy as Markdown table",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[8]||(t[8]=s=>e.download())},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download as CSV",-1)])])])):f("v-if",!0)])]),n("div",ere,[n("button",{type:"button",class:T(["btn btn-sm btn-ghost btn-icon-only dt-tools-btn",{"is-on":e.s.toolsOpen||!!e.groupColumn}]),"aria-label":"Table tools","aria-haspopup":"true","aria-expanded":e.s.toolsOpen?"true":"false",onClick:t[9]||(t[9]=s=>e.s.toolsOpen=!e.s.toolsOpen)},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],10,tre),e.s.toolsOpen?(a(),l("div",nre,[n("label",sre,[t[50]||(t[50]=n("span",null,"Group by",-1)),n("select",{value:e.s.group||"",onChange:t[10]||(t[10]=s=>e.setGroup(s.target.value))},[t[49]||(t[49]=n("option",{value:""},"None",-1)),(a(!0),l(N,null,U(e.groupable,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,ire))),128))],40,ore)]),e.groupColumn?(a(),l("label",rre,[t[51]||(t[51]=n("span",null,"Aggregate",-1)),n("select",{value:e.s.agg,onChange:t[11]||(t[11]=s=>e.setAgg(s.target.value))},[(a(!0),l(N,null,U(e.AGGREGATES,([s,i])=>(a(),l("option",{key:s,value:s},c(i),9,lre))),128))],40,are)])):f("v-if",!0),e.activeFilters.length?(a(),l(N,{key:1},[t[53]||(t[53]=n("div",{class:"tb-menu-sep"},null,-1)),t[54]||(t[54]=n("div",{class:"dt-menu-note"},"Filters",-1)),(a(!0),l(N,null,U(e.activeFilters,s=>(a(),l("button",{type:"button",role:"menuitem",key:"m"+s.key,onClick:i=>s.clear()},[t[52]||(t[52]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)),h(c(s.name)+": "+c(s.text),1)],8,dre))),128))],64)):f("v-if",!0),t[58]||(t[58]=n("div",{class:"tb-menu-sep"},null,-1)),n("button",{type:"button",role:"menuitem",onClick:t[12]||(t[12]=s=>e.copyAs("csv"))},[...t[55]||(t[55]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1),h("Copy as CSV",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[13]||(t[13]=s=>e.copyAs("md"))},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("Copy as Markdown table",-1)])]),n("button",{type:"button",role:"menuitem",onClick:t[14]||(t[14]=s=>e.download())},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download as CSV",-1)])])])):f("v-if",!0)])],8,qie),e.view==="chart"?(a(),l(N,{key:0},[n("div",ure,[n("div",cre,[(a(),l(N,null,U(["bar","line","scatter"],s=>n("button",{type:"button",role:"radio",class:T(["seg-chip",{active:e.chartSpec.type===s}]),key:s,"aria-checked":e.chartSpec.type===s?"true":"false",onClick:i=>e.setChartType(s)},c(s==="bar"?"Bar":s==="line"?"Line":"Scatter"),11,pre)),64))]),n("label",fre,[t[59]||(t[59]=n("span",{class:"dt-select-label"},"X",-1)),n("select",{value:e.chartSpec.x,onChange:t[15]||(t[15]=s=>e.setX(s.target.value)),"aria-label":"Column on the x axis"},[(a(!0),l(N,null,U(e.table.columns,s=>(a(),l("option",{key:s.index,value:s.name},c(s.name),9,hre))),128))],40,mre),t[60]||(t[60]=n("svg",{class:"ui-icon dt-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))]),n("div",gre,[t[61]||(t[61]=n("span",{class:"dt-select-label"},"Y",-1)),(a(!0),l(N,null,U(e.numericColumns.filter(s=>s.name!==e.chartSpec.x),s=>(a(),l("button",{type:"button",class:T(["dt-y-chip",{"is-on":e.yOn(s.name)}]),key:s.index,"aria-pressed":e.yOn(s.name)?"true":"false",onClick:i=>e.toggleY(s.name)},[e.yOn(s.name)?(a(),l("span",{key:0,class:T(["dt-key",["is-"+e.chartSpec.type]]),style:De({"--key":"var(--dt-series-"+(e.seriesIndex(s.name)+1)+")"})},null,6)):f("v-if",!0),h(c(s.name),1)],10,yre))),128))])]),n("figure",{class:"dt-chart",ref:"chartHost",onMouseleave:t[22]||(t[22]=s=>e.leaveChart())},[e.chart&&e.chart.notes.length?(a(),l("figcaption",vre,c(e.chart.notes.join(" ")),1)):f("v-if",!0),e.chart&&!e.chart.empty&&e.chart.series.length>1?(a(),l("div",bre,[(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l("span",{class:"dt-legend-item",key:s.name},[n("span",{class:T(["dt-key","is-"+e.chart.kind]),style:De({"--key":"var(--dt-series-"+(i+1)+")"})},null,6),h(c(s.name),1)]))),128))])):f("v-if",!0),e.chart&&e.chart.empty?(a(),l("p",wre,c(e.chart.empty),1)):f("v-if",!0),e.chart&&!e.chart.empty?(a(),l("svg",{key:3,class:"dt-svg",width:e.chart.width,height:e.chart.height,viewBox:"0 0 "+e.chart.width+" "+e.chart.height,role:"img","aria-label":e.chartSummary,tabindex:"0",onKeydown:t[20]||(t[20]=s=>e.keyStep(s)),onBlur:t[21]||(t[21]=s=>e.leaveChart())},[e.chart.kind==="bar"?(a(),l(N,{key:0},[(a(!0),l(N,null,U(e.chart.xTicks,s=>(a(),l("line",{key:"g"+s.v,class:"dt-grid",x1:s.x,x2:s.x,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,Cre))),128)),e.s.tip?(a(),l("rect",{key:0,class:"dt-hover-band",x:0,y:e.chart.categories[e.s.tip.index].hit.y,width:e.chart.width,height:e.chart.categories[e.s.tip.index].hit.h},null,8,Ere)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.marks,s=>(a(),l("path",{key:s.key,class:T(["dt-bar",{"is-dim":e.s.tip&&e.s.tip.index!==s.cat}]),d:s.path,style:De({fill:"var(--dt-series-"+(s.series+1)+")"})},null,14,Sre))),128)),n("line",{class:"dt-axis",x1:e.chart.zero,x2:e.chart.zero,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,Nre),(a(!0),l(N,null,U(e.chart.categories,(s,i)=>(a(),l("text",{key:"c"+i,class:"dt-cat",x:e.chart.plot.x-10,y:s.y,"text-anchor":"end","dominant-baseline":"central"},c(s.label.length>28?s.label.slice(0,27)+"\u2026":s.label),9,Rre))),128)),e.chart.showValues?(a(!0),l(N,{key:1},U(e.chart.marks,s=>(a(),l("text",{key:"v"+s.key,class:"dt-value",x:s.lx,y:s.ly,"text-anchor":s.anchor,"dominant-baseline":"central"},c(s.label),9,Tre))),128)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.xTicks,s=>(a(),l("text",{key:"t"+s.v,class:"dt-tick",x:s.x,y:e.chart.plot.y+e.chart.plot.h+16,"text-anchor":"middle"},c(s.label),9,Pre))),128)),n("rect",{class:"dt-hit",x:"0",y:e.chart.plot.y,width:e.chart.width,height:e.chart.plot.h,onPointermove:t[16]||(t[16]=s=>e.pointerAt(s)),onPointerdown:t[17]||(t[17]=s=>e.pointerAt(s))},null,40,Dre)],64)):(a(),l(N,{key:1},[(a(!0),l(N,null,U(e.chart.yTicks,(s,i)=>(a(),l("line",{key:"g"+i,class:"dt-grid",x1:e.chart.plot.x,x2:e.chart.plot.x+e.chart.plot.w,y1:s.y,y2:s.y},null,8,Are))),128)),(a(!0),l(N,null,U(e.chart.yTicks,(s,i)=>(a(),l("text",{key:"y"+i,class:"dt-tick",x:e.chart.plot.x-8,y:s.y,"text-anchor":"end","dominant-baseline":"central"},c(s.label),9,Ire))),128)),n("line",{class:"dt-axis",x1:e.chart.plot.x,x2:e.chart.plot.x+e.chart.plot.w,y1:e.chart.plot.y+e.chart.plot.h,y2:e.chart.plot.y+e.chart.plot.h},null,8,Ore),(a(!0),l(N,null,U(e.chart.xTicks,(s,i)=>(a(),l("text",{key:"x"+i,class:"dt-tick",x:s.x,y:e.chart.plot.y+e.chart.plot.h+18,"text-anchor":s.anchor||"middle"},c(s.label.length>18?s.label.slice(0,17)+"\u2026":s.label),9,Mre))),128)),e.s.tip&&e.chart.kind==="line"?(a(),l("line",{key:0,class:"dt-crosshair",x1:e.s.tip.crossX,x2:e.s.tip.crossX,y1:e.chart.plot.y,y2:e.chart.plot.y+e.chart.plot.h},null,8,Vre)):f("v-if",!0),(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l("path",{key:"p"+i,class:"dt-line",d:s.path,style:De({stroke:"var(--dt-series-"+(i+1)+")"})},null,12,qre))),128)),(a(!0),l(N,null,U(e.chart.series,(s,i)=>(a(),l(N,{key:"d"+i},[(a(!0),l(N,null,U(s.dots,r=>(a(),l("circle",{key:r.i,class:T(["dt-dot",{"is-on":e.s.tip&&e.s.tip.index===r.i}]),cx:r.x,cy:r.y,r:e.s.tip&&e.s.tip.index===r.i?5:4,style:De({fill:"var(--dt-series-"+(i+1)+")"})},null,14,Lre))),128))],64))),128)),n("rect",{class:"dt-hit",x:e.chart.plot.x-12,y:e.chart.plot.y,width:e.chart.plot.w+24,height:e.chart.plot.h,onPointermove:t[18]||(t[18]=s=>e.pointerAt(s)),onPointerdown:t[19]||(t[19]=s=>e.pointerAt(s))},null,40,$re)],64))],40,kre)):f("v-if",!0),e.chart&&!e.chart.empty?(a(),l("div",Fre,[e.chart.kind==="bar"?(a(),l(N,{key:0},[h(c(e.chart.axisLabel),1)],64)):(a(),l(N,{key:1},[h(c(e.chart.yLabel?e.chart.yLabel+" by ":"By ")+c(e.chart.xLabel),1)],64))])):f("v-if",!0),e.s.tip&&e.chart&&!e.chart.empty?(a(),l("div",{key:5,class:"dt-tip",style:De(e.tipStyle),role:"status"},[e.s.tip.title?(a(),l("div",Ure,[(a(!0),l(N,null,U(e.redactParts(e.s.tip.title),(s,i)=>(a(),l(N,{key:i},[s.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+s.n},[n("i",null,c(s.n),1)],8,Bre)):(a(),l(N,{key:1},[h(c(s.t),1)],64))],64))),128))])):f("v-if",!0),(a(!0),l(N,null,U(e.s.tip.rows,(s,i)=>(a(),l("div",{class:"dt-tip-row",key:i},[n("span",{class:"dt-key is-line",style:De({"--key":"var(--dt-series-"+(i+1)+")"})},null,4),n("b",null,c(s.value),1),n("span",null,c(s.name),1)]))),128)),e.s.tip.note?(a(),l("div",Hre,c(e.s.tip.note),1)):f("v-if",!0)],4)):f("v-if",!0)],544)],64)):(a(),l(N,{key:1},[n("div",{class:"csv-table-wrap dt-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.label||e.name||"table")},[n("table",jre,[n("thead",null,[n("tr",null,[e.groupColumn?f("v-if",!0):(a(),l("th",_re,[...t[62]||(t[62]=[n("span",{class:"sr-only"},"Row",-1)])])),(a(!0),l(N,null,U(e.table.columns,s=>(a(),l("th",{scope:"col",key:s.index,class:T({"is-num":s.type==="number","is-sorted":!!e.sortState(s)}),"aria-sort":e.ariaSort(s)},[n("span",Wre,[n("button",{type:"button",class:"dt-sort",title:"Sort by "+s.name,onClick:i=>e.cycleSort(s)},[n("span",Yre,[(a(!0),l(N,null,U(e.redactParts(s.name),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,Xre)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128))]),s.agg?(a(),l("span",Qre,c(e.aggregateShort(s.agg)),1)):f("v-if",!0),(a(),l("svg",{class:T(["dt-sort-icon",e.sortState(s)?"is-"+e.sortState(s):""]),viewBox:"0 0 10 14","aria-hidden":"true"},[...t[63]||(t[63]=[n("path",{class:"up",d:"M5 1.5 8.5 5.5h-7z"},null,-1),n("path",{class:"down",d:"M5 12.5 1.5 8.5h7z"},null,-1)])],2))],8,Kre),n("button",{type:"button",class:T(["dt-col-btn",{"is-on":e.s.menu&&e.s.menu.index===s.index}]),"data-col":s.index,"aria-label":"Stats and filters for "+s.name,"aria-haspopup":"dialog","aria-expanded":e.s.menu&&e.s.menu.index===s.index?"true":"false",onClick:de(i=>e.openMenu(s.index,i),["stop"])},[...t[64]||(t[64]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1)])],10,Jre)])],10,Gre))),128))])]),e.sorted.length?(a(),l("tbody",{key:0,innerHTML:e.bodyHtml},null,8,Zre)):(a(),l("tbody",xre,[n("tr",eae,[n("td",{colspan:e.table.columns.length+(e.groupColumn?0:1)},[t[65]||(t[65]=h("No rows match. ",-1)),n("button",{type:"button",class:"dt-link",onClick:t[23]||(t[23]=s=>e.clearFilters())},"Clear the filters")],8,tae)])])),e.sorted.length?(a(),l("tfoot",nae,[n("tr",sae,[e.groupColumn?f("v-if",!0):(a(),l("td",oae,[...t[66]||(t[66]=[n("span",{"aria-hidden":"true"},"\u03A3",-1),n("span",{class:"sr-only"},"Summary",-1)])])),(a(!0),l(N,null,U(e.table.columns,(s,i)=>(a(),l("td",{key:s.index,class:T({"is-num":e.summary[i].kind==="number"})},[e.summary[i].kind==="number"?(a(),l("span",iae,[n("label",rae,[n("span",aae,"Summary of "+c(s.name),1),n("select",{value:e.summary[i].fn,onChange:r=>e.setSum(s,r.target.value)},[(a(!0),l(N,null,U(e.AGGREGATES,([r,o])=>(a(),l("option",{key:r,value:r},c(o),9,dae))),128))],40,lae),n("span",uae,c(e.aggregateShort(e.summary[i].fn)),1),t[67]||(t[67]=n("svg",{class:"ui-icon dt-sum-caret","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-down"})],-1))]),n("b",cae,c(e.summary[i].text),1)])):e.summary[i].kind==="distinct"?(a(),l("span",pae,c(e.summary[i].text),1)):f("v-if",!0)],2))),128))])])):f("v-if",!0)])],8,zre),e.sorted.length>e.visible.length?(a(),l("div",fae,[n("span",null,"Showing "+c(e.formatNumber(e.visible.length))+" of "+c(e.formatNumber(e.sorted.length))+" rows. Sums, filters and charts use all of them.",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[24]||(t[24]=s=>e.showMore())},"Show "+c(e.formatNumber(Math.min(e.PAGE_SIZE,e.sorted.length-e.visible.length)))+" more",1),n("button",{type:"button",class:"dt-link",onClick:t[25]||(t[25]=s=>e.showAll())},"Show all")])):f("v-if",!0)],64)),e.s.menu&&e.menuColumn&&e.menuStats?(a(),l("div",{key:2,class:"dt-menu",role:"dialog",tabindex:"-1","aria-label":"Column "+e.menuColumn.name,style:De({left:e.s.menu.left+"px",top:e.s.menu.top+"px"}),onClick:t[35]||(t[35]=de(()=>{},["stop"]))},[n("div",hae,[n("b",null,[(a(!0),l(N,null,U(e.redactParts(e.menuColumn.name),(s,i)=>(a(),l(N,{key:i},[s.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+s.n},[n("i",null,c(s.n),1)],8,gae)):(a(),l(N,{key:1},[h(c(s.t),1)],64))],64))),128))]),n("span",null,c(e.menuStats.typeLabel),1)]),n("dl",yae,[(a(!0),l(N,null,U(e.menuStats.rows,([s,i])=>(a(),l("div",{key:s},[n("dt",null,c(s),1),n("dd",null,c(i),1)]))),128))]),e.menuStats.bars.length?(a(),l("figure",vae,[(a(),l("svg",{width:"218",height:"42",viewBox:"0 0 218 42",role:"img","aria-label":"Distribution of "+e.menuColumn.name},[(a(!0),l(N,null,U(e.menuStats.bars,(s,i)=>(a(),l("rect",{key:i,x:s.x,y:42-s.h,width:s.w,height:s.h,rx:"1.5"},[n("title",null,c(s.title),1)],8,wae))),128))],8,bae)),n("figcaption",null,[n("span",null,c(e.menuStats.histFrom),1),n("span",null,c(e.menuStats.histTo),1)])])):f("v-if",!0),e.menuStats.top&&e.menuStats.top.length?(a(),l("ul",kae,[(a(!0),l(N,null,U(e.menuStats.top,s=>(a(),l("li",{key:s.value},[n("span",Cae,[(a(!0),l(N,null,U(e.redactParts(s.value),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,Eae)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128))]),n("span",{class:"dt-top-bar",style:De({width:Math.max(4,s.share)+"%"})},null,4),n("span",Sae,c(s.count),1)]))),128))])):f("v-if",!0),!e.groupColumn&&e.menuColumn.identifier?(a(),l("div",Nae,[n("button",{type:"button",class:"dt-menu-action",role:"switch","aria-checked":e.isMeasure(e.menuColumn)?"true":"false",onClick:t[26]||(t[26]=s=>e.treatAsNumber(e.menuColumn,!e.isMeasure(e.menuColumn)))},[(a(),l("svg",Tae,[n("use",{href:e.isMeasure(e.menuColumn)?"#ui-icon-check":"#ui-icon-list"},null,8,Pae)])),h(c(e.isMeasure(e.menuColumn)?"Treated as a number \xB7 undo":"Treat as number"),1)],8,Rae),e.isMeasure(e.menuColumn)?f("v-if",!0):(a(),l("p",Dae,"Looks like an identifier, so it is left out of the summary row and group averages."))])):f("v-if",!0),n("div",Aae,[n("div",Iae,[n("button",{type:"button",class:T(["seg-chip",{active:e.sortState(e.menuColumn)==="asc"}]),onClick:t[27]||(t[27]=s=>e.setSort(e.menuColumn,e.sortState(e.menuColumn)==="asc"?null:"asc"))},c(e.menuColumn.type==="text"?"A \u2192 Z":"Low \u2192 high"),3),n("button",{type:"button",class:T(["seg-chip",{active:e.sortState(e.menuColumn)==="desc"}]),onClick:t[28]||(t[28]=s=>e.setSort(e.menuColumn,e.sortState(e.menuColumn)==="desc"?null:"desc"))},c(e.menuColumn.type==="text"?"Z \u2192 A":"High \u2192 low"),3)])]),e.sourceColumn(e.menuColumn)&&e.sourceColumn(e.menuColumn).type==="number"?(a(),l("div",Oae,[t[69]||(t[69]=n("div",{class:"dt-menu-label"},"Show rows between",-1)),n("div",Mae,[n("input",{type:"text",inputmode:"decimal",class:"dt-range-input",placeholder:"Min","aria-label":"Minimum",value:e.rangeValue(e.menuColumn,0),onChange:t[29]||(t[29]=s=>e.setRange(e.menuColumn,0,s.target.value)),onKeydown:t[30]||(t[30]=Tt(s=>e.setRange(e.menuColumn,0,s.target.value),["enter"]))},null,40,Vae),t[68]||(t[68]=n("span",null,"\u2013",-1)),n("input",{type:"text",inputmode:"decimal",class:"dt-range-input",placeholder:"Max","aria-label":"Maximum",value:e.rangeValue(e.menuColumn,1),onChange:t[31]||(t[31]=s=>e.setRange(e.menuColumn,1,s.target.value)),onKeydown:t[32]||(t[32]=Tt(s=>e.setRange(e.menuColumn,1,s.target.value),["enter"]))},null,40,qae)])])):e.chipValues(e.menuColumn).length?(a(),l("div",Lae,[t[70]||(t[70]=n("div",{class:"dt-menu-label"},"Show only",-1)),n("div",$ae,[(a(!0),l(N,null,U(e.chipValues(e.menuColumn),s=>(a(),l("button",{type:"button",class:T(["dt-value-chip",{"is-on":e.chipOn(e.menuColumn,s.value)}]),key:s.value,"aria-pressed":e.chipOn(e.menuColumn,s.value)?"true":"false",onClick:i=>e.toggleChip(e.menuColumn,s.value)},[(a(!0),l(N,null,U(e.redactParts(s.label),(i,r)=>(a(),l(N,{key:r},[i.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+i.n},[n("i",null,c(i.n),1)],8,Uae)):(a(),l(N,{key:1},[h(c(i.t),1)],64))],64))),128)),n("span",Bae,c(s.count),1)],10,Fae))),128))])])):f("v-if",!0),!e.groupColumn&&e.groupable.some(s=>s.name===e.menuColumn.name)?(a(),l("div",Hae,[n("button",{type:"button",class:"dt-menu-action",onClick:t[33]||(t[33]=s=>e.setGroup(e.menuColumn.name))},[t[71]||(t[71]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1)),h("Group by "+c(e.menuColumn.name),1)])])):e.groupColumn&&e.menuColumn.index===0?(a(),l("div",zae,[n("button",{type:"button",class:"dt-menu-action",onClick:t[34]||(t[34]=s=>e.setGroup(null))},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1),h("Ungroup",-1)])])])):f("v-if",!0)],12,mae)):f("v-if",!0)],2)}var Sm=null,Nm=e=>{Sm=e},jae=".dt, .csv-table, pre, .diff-file-table, .md-table-off";function Em(e){let t=e.cloneNode(!0);return t.querySelectorAll("mark.redact-chip[data-term]").forEach(s=>s.replaceWith(s.dataset.term)),t.querySelectorAll(".redact-slot").forEach(s=>s.replaceWith("XXXX-"+(s.textContent||"").trim())),t.querySelectorAll(".md-sort").forEach(s=>s.remove()),t.textContent.replace(/\s+/g," ").trim()}var sd=e=>[...e.cells].some(t=>t.colSpan>1||t.rowSpan>1);function _ae(e){if(!e?.rows?.length||e.closest(jae)||e.parentElement?.closest?.("table"))return null;let t=e.tHead?[...e.tHead.rows]:[],s=[...e.tBodies].flatMap(u=>[...u.rows]);if(!t.length){let u=e.rows[0];if(!u||![...u.cells].every(p=>p.tagName==="TH"))return null;t=[u],s=s.filter(p=>p!==u)}if(s.length<2||s.some(sd)||t.some(sd)&&t.length>1)return null;let i=Math.max(...s.map(u=>u.cells.length),...t.map(u=>u.cells.length));return t.some(u=>u.cells.length!==i&&sd(u))?null:{rows:[Array.from({length:i},(u,p)=>t.map(d=>d.cells[p]?Em(d.cells[p]):"").filter(Boolean).join(" ")||(p===0?"":"Column "+(p+1))),...s.map(u=>Array.from({length:i},(p,d)=>u.cells[d]?Em(u.cells[d]):""))],trs:s,headerCells:[...t[t.length-1].cells]}}var Gae='';function Wae(e){let t=e.closest(".markdown-body, notebook, markdown")||e.ownerDocument.body,s="";for(let i of t.querySelectorAll("h1, h2, h3, h4"))if(i.compareDocumentPosition(e)&4)s=i.textContent.replace(/\s+/g," ").trim();else break;return s?"Table \xB7 "+s:"Table"}function Kae(e){if(e.dataset.dtEnhanced)return;let t=_ae(e);if(!t)return;e.dataset.dtEnhanced="1";let s=e.ownerDocument,i=Vr(t.rows),r=t.trs.slice(),o=new Map(r.map(P=>[P,P.parentNode])),u=null,p=s.createElement("div");p.className="md-table",e.parentNode.insertBefore(p,e),p.appendChild(e);let d=()=>{(u?qr(i,r.map((D,L)=>L),u.index,u.dir):r.map((D,L)=>L)).forEach(D=>o.get(r[D]).appendChild(r[D])),t.headerCells.forEach((D,L)=>{let H=u&&u.index===L?u.dir:null;D.setAttribute("aria-sort",H==="asc"?"ascending":H==="desc"?"descending":"none"),D.querySelector(".dt-sort-icon")?.setAttribute("class","dt-sort-icon"+(H?" is-"+H:""))})};t.headerCells.forEach((P,D)=>{if(D>=i.columns.length)return;P.classList.add("md-sortable");let L=s.createElement("button");L.type="button",L.className="md-sort",L.setAttribute("aria-label","Sort by "+(i.columns[D].name||"column "+(D+1))),L.innerHTML=Gae,P.appendChild(L),P.addEventListener("click",H=>{if(H.target.closest("a"))return;let _=u&&u.index===D?u.dir:null;u=_==="asc"?{index:D,dir:"desc"}:_==="desc"?null:{index:D,dir:"asc"},d()})}),d();let g=P=>P.type==="number"&&!P.identifier,m=i.columns.some(g),v=i.columns.length>1&&i.columns[0].type!=="number",y=s.createElement("div");y.className="md-table-tools";let C=null,k=i.columns.map(()=>"mean"),w=(P,D,L)=>{let H=s.createElement("span");H.className="dt-sum";let _=s.createElement("label");_.className="dt-sum-fn";let W=s.createElement("select");W.setAttribute("aria-label","Summary of "+(P.name||"column "+(D+1))),si.forEach(([V,S])=>{let q=s.createElement("option");q.value=V,q.textContent=S,W.appendChild(q)}),W.value=k[D],W.addEventListener("change",()=>{k[D]=W.value,R()});let ae=s.createElement("span");ae.className="dt-sum-fn-label",ae.setAttribute("aria-hidden","true"),ae.textContent=Mr(k[D]),_.append(W,ae),_.insertAdjacentHTML("beforeend",'');let F=s.createElement("b");return F.className="dt-sum-value",F.textContent=oi(P,L,k[D]).text,H.append(_,F),H},R=()=>{if(!C)return;let P=r.map((L,H)=>H),D=C.rows[0];D.textContent="",i.columns.forEach((L,H)=>{let _=s.createElement("td");H===0&&v?(_.className="md-summary-label",_.innerHTML='Summary'):g(L)?(_.className="is-num",_.appendChild(w(L,H,P))):L.type!=="number"&&(_.className="is-muted",_.textContent=oi(L,P).text),D.appendChild(_)})};if(m){let P=s.createElement("button");P.type="button",P.className="md-table-btn md-sigma",P.setAttribute("aria-pressed","false"),P.title="Show a summary row",P.innerHTML='Summary',P.addEventListener("click",()=>{let D=!C;P.setAttribute("aria-pressed",D?"true":"false"),P.classList.toggle("is-on",D),D?(C=s.createElement("tfoot"),C.className="md-summary",C.appendChild(s.createElement("tr")),e.appendChild(C),R()):(C.remove(),C=null)}),y.appendChild(P)}let b=s.createElement("button");b.type="button",b.className="md-table-btn md-open",b.innerHTML='Open as table',b.addEventListener("click",()=>Sm?.(t.rows,Wae(e))),y.appendChild(b),p.appendChild(y)}function Ci(e){e?.querySelectorAll&&e.querySelectorAll("table:not([data-dt-enhanced])").forEach(t=>{try{Kae(t)}catch{t.dataset.dtEnhanced="error"}})}var Rm={mounted(e){Ci(e)},updated(e){Ci(e)}};var Ei=200,Yae={"&":"&","<":"<",">":">",'"':""","'":"'"},Tm=e=>String(e).replace(/[&<>"']/g,t=>Yae[t]),Xae=e=>{let t=e==null?"":String(e);return t.indexOf("XXXX-")===-1?Tm(t):Jt(t).map(s=>s.n?`${s.n}`:Tm(s.t)).join("")},Qae=24,od={name:"DataTable",props:{rows:{type:Array,default:()=>[]},name:String,stateKey:String,view:{type:String,default:"table"},label:String},setup(e){let t=e.stateKey?eo(window.location.hash,e.stateKey):null,s=ut({query:t?.query||"",sort:t?.sort||null,group:t?.group||null,agg:t?.agg||"mean",ranges:t?.ranges||{},values:t?.values||{},sums:t?.sums||{},sum:t?.sum||"mean",numeric:t?.numeric||[],chart:t?.chart||null,x:t?.x||null,y:t?.y||[],limit:Ei,menu:null,toolsOpen:!1,copyOpen:!1,copied:"",tip:null}),i=Ye(()=>Vr(e.rows)),r=(j,J)=>j.columns.find(me=>me.name===J),o=j=>Object.fromEntries(Object.entries(j).map(([J,me])=>[r(i.value,J)?.index,me]).filter(([J])=>J!=null)),u=Ye(()=>tp(i.value,{query:s.query,ranges:o(s.ranges),values:o(s.values)})),p=Ye(()=>s.group?r(i.value,s.group):null),d=j=>j.type==="number"&&(!j.identifier||!m.value?.grouped&&s.numeric.includes(j.name)),g=j=>j.type==="number"&&(!j.identifier||s.numeric.includes(j.name)),m=Ye(()=>p.value?sp(i.value,u.value,p.value.index,s.agg,g):i.value),v=Ye(()=>p.value?m.value.body.map((j,J)=>J):u.value),y=Ye(()=>s.sort?r(m.value,s.sort.column):null),C=Ye(()=>y.value?qr(m.value,v.value,y.value.index,s.sort.dir):v.value),k=Ye(()=>C.value.slice(0,s.limit)),w=Ye(()=>m.value.columns.map(j=>oi(j,v.value,s.sums[j.name]||s.sum,d))),R=Ye(()=>m.value.columns.filter(j=>d(j))),b=j=>s.sort&&s.sort.column===j.name?s.sort.dir:null,P=j=>{let J=b(j);s.sort=J==="asc"?{column:j.name,dir:"desc"}:J==="desc"?null:{column:j.name,dir:"asc"}},D=(j,J)=>{s.sort=J?{column:j.name,dir:J}:null},L=j=>({asc:"ascending",desc:"descending"})[b(j)]||"none",H=j=>p.value?j.source!=null?i.value.columns[j.source]:null:j,_=(j,J,me)=>{let Ne=H(j);if(!Ne)return;let ve=String(me??"").trim(),qe=ve===""?null:Number(ve.replace(/,/g,"")),ct=s.ranges[Ne.name]||[null,null],Ft=J===0?[Number.isFinite(qe)?qe:null,ct[1]]:[ct[0],Number.isFinite(qe)?qe:null],Ut={...s.ranges};Ft[0]==null&&Ft[1]==null?delete Ut[Ne.name]:Ut[Ne.name]=Ft,s.ranges=Ut},W=(j,J)=>{let me=s.ranges[H(j)?.name];return me&&me[J]!=null?String(me[J]):""},ae=j=>{let J=H(j);if(!J||J.type==="number")return[];let me=xs(J);return me.size>Qae?[]:[...me.entries()].map(([Ne,ve])=>({value:Ne,count:ve,label:J.type==="date"?$t(J,Ne):Ne}))},F=(j,J)=>(s.values[H(j)?.name]||[]).includes(String(J)),V=(j,J)=>{let me=H(j);if(!me)return;let Ne=new Set(s.values[me.name]||[]),ve=String(J);Ne.has(ve)?Ne.delete(ve):Ne.add(ve);let qe={...s.values};Ne.size?qe[me.name]=[...Ne]:delete qe[me.name],s.values=qe},S=Ye(()=>[...Object.entries(s.ranges).map(([j,[J,me]])=>{let Ne=r(i.value,j),ve=qe=>It(qe,Math.max(Ne?.decimals||0,String(qe).split(".")[1]?.length||0),Ne?.unit||"");return{key:"r:"+j,name:j,text:J!=null&&me!=null?`${ve(J)}\u2013${ve(me)}`:J!=null?`\u2265 ${ve(J)}`:`\u2264 ${ve(me)}`,clear:()=>{let qe={...s.ranges};delete qe[j],s.ranges=qe}}}),...Object.entries(s.values).map(([j,J])=>{let me=r(i.value,j),Ne=J.map(ve=>me?.type==="date"?$t(me,Number(ve)):ve);return{key:"v:"+j,name:j,text:Ne.length<=2?Ne.join(", "):`${Ne.length} values`,clear:()=>{let ve={...s.values};delete ve[j],s.values=ve}}})]),q=()=>{s.query="",s.ranges={},s.values={}},G=Ye(()=>!!(s.query||S.value.length)),oe=Ye(()=>i.value.columns.filter(j=>j.type!=="number"||j.decimals===0&&!j.unit&&xs(j).size<=50)),K=j=>{s.group=j||null,s.sort=null,s.limit=Ei,s.menu=null,A()},ne=j=>{s.agg=j},le=(j,J)=>{let me={...s.sums};!J||J===s.sum?delete me[j.name]:me[j.name]=J,s.sums=me},ye=(j,J)=>{let me=new Set(s.numeric);J?me.add(j.name):me.delete(j.name),s.numeric=[...me]},Ae=Ye(()=>s.menu?m.value.columns[s.menu.index]:null),Xe=Ye(()=>{let j=Ae.value;if(!j)return null;let J=op(j,v.value),me=ve=>$t(j,ve),Ne=Math.max(1,...(J.histogram||[]).map(ve=>ve.count));return{...J,typeLabel:j.type==="number"?(j.identifier&&!d(j)?"Identifier":j.decimals?`Number \xB7 ${j.decimals} ${j.decimals===1?"decimal":"decimals"}`:"Whole number")+(j.unit?" \xB7 %":""):j.type==="date"?"Date":"Text",rows:[["Values",It(J.count)],["Empty",It(J.empty)],["Distinct",It(J.distinct)],...J.min!=null?[["Min",me(J.min)],["Max",me(J.max)]]:[],...J.mean!=null&&d(j)?[["Mean",$t(j,J.mean,"mean")]]:[],...J.std!=null&&d(j)?[["Std dev",$t(j,J.std,"std")]]:[]],bars:(J.histogram||[]).map((ve,qe,ct)=>({x:qe*216/ct.length+1,w:Math.max(1,216/ct.length-2),h:Math.max(ve.count?2:0,ve.count/Ne*40),count:ve.count,title:`${me(ve.from)} \u2013 ${me(ve.to)}: ${ve.count} ${ve.count===1?"row":"rows"}`})),histFrom:J.histogram?me(J.min):"",histTo:J.histogram?me(J.max):"",top:(J.top||[]).map(([ve,qe])=>({value:ve,count:qe,share:qe/Math.max(1,J.count)*100}))}}),tt=(j,J)=>{if(s.menu?.index===j){s.menu=null;return}let Ne=(J.currentTarget.closest("th")||J.currentTarget).getBoundingClientRect(),ve=260,qe=window.innerWidth;s.menu={index:j,left:Math.max(8,Math.min(Ne.left,qe-ve-8)),top:Ne.bottom+4},xe(()=>window.document.querySelector(".dt-menu")?.focus())},Ge=()=>{s.menu=null,s.toolsOpen=!1,s.copyOpen=!1},We=()=>{let j=m.value,J=j.columns.map(Ne=>Ne.name),me=C.value.map(Ne=>j.columns.map(ve=>j.body[Ne][ve.index]??""));return{header:J,body:me}},it=j=>{s.copied=j,window.setTimeout(()=>{s.copied===j&&(s.copied="")},1600)},gt=async j=>{let{header:J,body:me}=We(),Ne=j==="md"?ip(J,me,m.value.columns.map(ve=>ve.type==="number")):yl(J,me,",");Ge();try{await window.navigator.clipboard.writeText(Ne),it(j)}catch{it("error")}},Me=()=>String(e.name||"table").replace(/\.[^.]+$/,"")||"table",Q=()=>{let{header:j,body:J}=We(),me=new window.Blob([yl(j,J,",")],{type:"text/csv;charset=utf-8"}),Ne=window.URL.createObjectURL(me),ve=window.document.createElement("a");ve.href=Ne,ve.download=Me()+(he()?"-view":"")+".csv",window.document.body.appendChild(ve),ve.click(),ve.remove(),window.setTimeout(()=>window.URL.revokeObjectURL(Ne),1e3),Ge()},he=()=>!!(G.value||s.sort||s.group),x=bt(0),ge=bt(null),Se=Ye(()=>{let j=ym(m.value,!!p.value),J=s.x&&r(m.value,s.x)?s.x:j.x,me=s.y.filter(Ne=>r(m.value,Ne)?.type==="number");return{type:s.chart||j.type,x:J,y:me.length?me:j.y,agg:s.agg}}),Ie=Ye(()=>e.view==="chart"&&x.value?vm(m.value,C.value,Se.value,{width:x.value}):null),A=()=>{s.x=null,s.y=[]};dt(Ie,()=>{s.tip=null});let I=j=>{s.chart=j,s.tip=null},z=j=>{s.x=j,s.tip=null},Z=j=>Se.value.y.includes(j),X=j=>{let J=Se.value.y,me=J.includes(j)?J.filter(Ne=>Ne!==j):[...J,j];me.length&&(s.y=me.slice(-na[Se.value.type]),s.tip=null)},ee=j=>Se.value.y.indexOf(j),ue;dt(ge,j=>{if(ue?.disconnect(),!j)return;let J=()=>{let me=j.clientWidth;me&&Math.abs(me-x.value)>1&&(x.value=me)};J(),window.ResizeObserver&&(ue=new window.ResizeObserver(J),ue.observe(j))});let ie=(j,J,me)=>{let Ne=Ie.value;if(!Ne)return;let ve=Ne.kind==="bar"?Ne.categories[j]?.tip:Ne.points[j];if(!ve){s.tip=null;return}s.tip={index:j,...ve,x:J,y:me,crossX:Ne.kind==="line"?Ne.points[j].x:null}},se=j=>{let J=Ie.value,Ne=(j.currentTarget.ownerSVGElement||j.currentTarget).getBoundingClientRect(),ve=j.clientX-Ne.left,qe=j.clientY-Ne.top;if(J.kind==="bar"){let Ut=J.categories.findIndex(xt=>qe>=xt.hit.y&&qeUt.dots.forEach(xt=>{let Pn=(xt.x-ve)**2+(xt.y-qe)**2;Pn1600){s.tip=null;return}}else J.points.forEach((Ut,xt)=>{let Pn=Math.abs(Ut.x-ve);Pn{let J=Ie.value;if(!J||J.empty)return;let me=J.kind==="bar"?J.categories.length:J.points.length,Ne={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1,Home:-1/0,End:1/0}[j.key];if(j.key==="Escape"){s.tip=null;return}if(Ne==null)return;j.preventDefault();let ve=s.tip?s.tip.index:-1,qe=Ne===-1/0?0:Ne===1/0?me-1:Math.max(0,Math.min(me-1,ve+Ne));J.kind==="bar"?ie(qe,J.plot.x+8,J.categories[qe].y):ie(qe,J.points[qe].x,J.plot.y+20)},fe=Ye(()=>{if(!s.tip||!Ie.value)return{};let j=x.value,J=s.tip.x+14;return J+200>j?{right:Math.max(4,j-s.tip.x+14)+"px",top:s.tip.y+8+"px"}:{left:J+"px",top:s.tip.y+8+"px"}}),Ee=Ye(()=>{let j=Ie.value;if(!j||j.empty)return"";let J=j.series.map(me=>me.name).join(", ");return`${{bar:"Bar chart",line:"Line chart",scatter:"Scatter plot"}[j.kind]} of ${J} by ${j.x.name}`}),Oe=()=>({view:e.view,query:s.query,sort:s.sort,group:s.group,agg:s.agg,ranges:s.ranges,values:s.values,sum:s.sum,sums:s.sums,numeric:s.numeric,chart:s.chart,x:s.x,y:s.y});if(e.stateKey){let j;dt(()=>JSON.stringify(Oe()),()=>{window.clearTimeout(j),j=window.setTimeout(()=>{let J=rp(e.stateKey,Oe()),me=window.location.hash;!J&&!vl(me)||J&&me&&!vl(me)&&me!=="#"||J!==me&&window.history.replaceState(window.history.state,"",window.location.pathname+window.location.search+J)},250)})}let Ue=j=>{j.target.closest?.(".dt-menu, .dt-col-btn")||(s.menu=null),j.target.closest?.(".dt-tools-menu, .dt-tools-btn")||(s.toolsOpen=!1),j.target.closest?.(".dt-copy-menu, .dt-copy-btn")||(s.copyOpen=!1)},Qe=j=>{if(j.key==="Escape"&&(s.menu||s.toolsOpen||s.copyOpen)){let J=s.menu?window.document.querySelector(`.dt-col-btn[data-col="${s.menu.index}"]`):null;Ge(),J?.focus()}},Je=j=>{s.menu&&!j.target?.closest?.(".dt-menu")&&(s.menu=null)};Qt(()=>{window.document.addEventListener("click",Ue),window.document.addEventListener("keydown",Qe),window.addEventListener("scroll",Je,{capture:!0,passive:!0})}),Un(()=>{window.document.removeEventListener("click",Ue),window.document.removeEventListener("keydown",Qe),window.removeEventListener("scroll",Je,{capture:!0}),ue?.disconnect()}),dt(()=>[s.query,s.ranges,s.values],()=>{s.limit=Ei},{deep:!0});let Re=Ye(()=>{let j=m.value,J=j.columns,me=!!p.value,Ne=[];for(let ve of k.value){Ne.push(""),me||Ne.push('',String(ve+1),"");let qe=j.body[ve];for(let ct of J)Ne.push(ct.type==="number"?'':"",Xae(qe[ct.index]),"");Ne.push("")}return Ne.join("")}),Be=Ye(()=>{let j=i.value.size,J=u.value.length,me=J===j?`${It(j)} ${j===1?"row":"rows"}`:`${It(J)} of ${It(j)} rows`;return p.value?`${It(m.value.size)} ${m.value.size===1?"group":"groups"} \xB7 ${me}`:me});return{s,props:e,base:i,table:m,sorted:C,visible:k,summary:w,numericColumns:R,filtered:u,groupColumn:p,rowsInView:v,redactParts:Jt,cycleSort:P,setSort:D,sortState:b,ariaSort:L,setRange:_,rangeValue:W,chipValues:ae,chipOn:F,toggleChip:V,activeFilters:S,clearFilters:q,filtering:G,groupable:oe,setGroup:K,setAgg:ne,setSum:le,treatAsNumber:ye,isMeasure:d,AGGREGATES:si,AGGREGATE_LABEL:ni,aggregateShort:Mr,menuColumn:Ae,menuStats:Xe,openMenu:tt,closeMenus:Ge,sourceColumn:H,copyAs:gt,download:Q,isChanged:he,bodyHtml:Re,rowCountText:Be,chart:Ie,chartSpec:Se,chartHost:ge,setChartType:I,setX:z,yOn:Z,toggleY:X,seriesIndex:ee,pointerAt:se,keyStep:Te,tipStyle:fe,chartSummary:Ee,MAX_SERIES:na,PAGE_SIZE:Ei,formatNumber:It,showMore:()=>{s.limit+=Ei},showAll:()=>{s.limit=1/0},leaveChart:()=>{s.tip=null}}},render:Cm};function Jae(e,t){let s=window.document.createElement("div");window.document.body.appendChild(s);let i=window.document.activeElement,r,o=()=>{r.unmount(),s.remove(),window.document.removeEventListener("keydown",u),i?.focus?.()},u=p=>{if(p.key==="Escape"&&!window.document.querySelector(".dt-menu, .dt-tools-menu, .dt-copy-menu")&&o(),p.key!=="Tab")return;let d=[...s.querySelectorAll("button, select, input, [tabindex='0']")].filter(y=>!y.disabled&&y.offsetParent!==null);if(!d.length)return;let g=d[0],m=d[d.length-1],v=window.document.activeElement;(!s.contains(v)||(p.shiftKey?v===g||v===s.querySelector(".dt-dialog"):v===m))&&(p.preventDefault(),(p.shiftKey?m:g).focus())};return window.document.addEventListener("keydown",u),r=ur({setup(){let p=bt("table");return Qt(()=>s.querySelector(".dt-dialog")?.focus()),()=>ke("div",{class:"dt-dialog-backdrop",onClick:d=>{d.target===d.currentTarget&&o()}},ke("div",{class:"dt-dialog",role:"dialog","aria-modal":"true","aria-label":t||"Table",tabindex:"-1"},[ke("header",{class:"dt-dialog-head"},[ke("span",{class:"dt-dialog-title"},t||"Table"),ke("div",{class:"seg-filter dt-view-toggle",role:"radiogroup","aria-label":"View"},["table","chart"].map(d=>ke("button",{type:"button",role:"radio",class:["seg-chip",{active:p.value===d}],"aria-checked":p.value===d?"true":"false",onClick:()=>{p.value=d}},d==="table"?"Table":"Chart"))),ke("button",{type:"button",class:"btn btn-sm btn-ghost btn-icon-only dt-dialog-close","aria-label":"Close",onClick:o},ke("svg",{class:"ui-icon","aria-hidden":"true"},ke("use",{href:"#project-icon-close"})))]),ke(od,{rows:e,name:(t||"table").replace(/[^\w.-]+/g,"-").toLowerCase(),view:p.value,label:t})]))}}),r.mount(s),o}Nm(Jae);var Zae={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:mm},xae=new Set(be),Im=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` `);t.innerHTML=s.map(i=>{let r=i.replace(/^(<[^>]+>)+/,"").charAt(0),o=i.startsWith("@@")?"hunk":r==="+"?"add":r==="-"?"remove":"";return`${i||" "}`}).join(` -`)}),Nm=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Dm=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(r=>{r.classList.contains("is-hunk")||r.style.setProperty("--hang",Nm(r.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` -`).map(r=>{let o=i.join("");r.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("]+>/g,"");return`${o}${r||" "}${"".repeat(i.length)}`}).join(` -`)})},Zae=e=>e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section",od={props:["content","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>{let i=renderMD(e.content||"",window.location.pathname+"/../");if(t.value.innerHTML=e.reader?to(i):i,Pm(t.value),Dm(t.value),e.idPrefix!=null){let r={};t.value.querySelectorAll("h1, h2, h3").forEach(o=>{let u=e.idPrefix+(o.id||Zae(o.textContent));r[u]?u+="-"+ ++r[u]:r[u]=1,o.id=u})}ki(t.value),e.onOutline?.(Cr(t.value))};return Qt(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>we("markdown",{ref:t,class:e.reader?"markdown-body":null})}},Rm=e=>Jt(e).map(t=>t.n?we("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+t.n},we("i",t.n)):t.t),sd=e=>/^XXXX-\d+$/.test(String(e||"").trim()),xae=(e,t="Reviewer")=>e?we("span",{class:["pr-author",{"is-redacted":sd(e)}],title:sd(e)?"Redacted author":null},sd(e)?Rm(e):["@",...Rm(e)]):we("span",{class:"pr-author is-hidden"},t),Am={props:["comments","fmt"],setup(e){return()=>we("div",{class:"pr-thread"},(e.comments||[]).map((t,s)=>we("article",{class:["pr-thread-comment",{"is-reply":s>0}],key:s},[we("header",{class:"pr-thread-head"},[we("span",{class:"pr-avatar","aria-hidden":"true"},we("svg",{class:"ui-icon"},we("use",{href:"#ui-icon-user"}))),xae(t.author),t.creationDate||t.updatedDate?we("time",{class:"pr-thread-date",datetime:t.creationDate||t.updatedDate},e.fmt?.date(t.creationDate||t.updatedDate)):null]),t.body?we("div",{class:"pr-thread-body"},we(od,{content:t.body,reader:!0})):null])))}},ele=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),tle=new Set(["add","remove","ctx","hunk"]),nle=e=>{let t=tle.has(e.kind)?e.kind:"ctx",s=Jt(e.text).map(i=>i.n?`${Number(i.n)}`:ele(i.t)).join("");return`${Number(e.oldNo)||""}${Number(e.newNo)||""}${t==="add"?"+":t==="remove"?"\u2212":""}${s}`},sle={props:["file","fmt"],setup(e){return()=>{let t=[],s="",i=()=>{s&&t.push(we("tbody",{key:"r"+t.length,innerHTML:s})),s=""};return(e.file?.lines||[]).forEach(r=>{s+=nle(r),r.threads?.length&&(i(),t.push(we("tbody",{key:"t"+t.length},r.threads.map((o,u)=>we("tr",{class:"diff-thread-row",key:u},[we("td",{class:"diff-thread-gutter",colspan:3}),we("td",{class:"diff-thread-cell"},we(Am,{comments:o.comments,fmt:e.fmt}))])))))}),i(),we("table",{class:"diff-file-table"},t)}}},ole={props:["file","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>Je(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Pm(t.value),Dm(t.value)});return Qt(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},r=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(r)||i.language==="Markdown")return we("gist-file",{ref:t},we(od,{content:i.content,terms:e.terms,options:e.options,reader:e.reader,idPrefix:e.idPrefix,onOutline:e.onOutline}));let o={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||r||"none").toLowerCase();return we("gist-file",{ref:t},we("pre",{class:"line-numbers"},we("code",{class:"language-"+(o[u]||u),key:i.content},i.content||"")))}}},ile=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let r=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",r),s.classList.toggle("is-at-end",r&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!r)return;let o=t.clientWidth-16,u=Math.max(24,o*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(o-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),rle={props:["file","content"],setup(e){let t=bt(null),s=0,i,r=async()=>{let o=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await ls("notebook"),o!==s)return;t.value.innerHTML=to(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),ile(t.value),ki(t.value)}catch(u){o===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Qt(()=>{r(),dt(()=>[e.file,e.content],r)}),Fn(()=>{s++,i?.abort()}),()=>we("notebook",{ref:t})}},ale={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,r])=>i+r.code,0);return we("loc",t.map(([i,r])=>we("div",{class:"lang",title:`${i}: ${r.code.toLocaleString()} lines`,style:{width:r.code*100/s+"%",background:langColors[i]}})))}}},Im={Markdown:od,GistFile:ole,PrThread:Am,DiffTable:sle,Notebook:rle,Loc:ale,HtmlDoc:dm,QuotaUsage:Qae,DataTable:nd,Pdfviewer:gu(async()=>(await ls("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",um))},Om={async mounted(e,{value:t}){e._editorValue=t;try{if(await Di(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Tm(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Tm(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Tm(e,t={}){let s=Jae.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Mm={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(r=>{r.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let o=t.find(u=>s.has(u.hash.slice(1)));o&&t.forEach(u=>u.classList.toggle("active",u===o))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Je(()=>{t.forEach(r=>{let o=document.getElementById(r.hash.slice(1));o&&i.observe(o)}),t[0]&&!t.some(r=>r.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function Vm(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,r;for(;r=i.exec(e);)r.index>s&&t.push(e.slice(s,r.index)),t.push(we("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+r[1]},[we("i",null,r[1])])),s=r.index+r[0].length;return t.length?(s{s.push(o),u=1024&&iule(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");dt(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let C="";p().split("/").filter(Boolean).forEach(k=>{C+="/"+k,r[C]=!0})},{immediate:!0});let d=Ye(()=>{if(!e.searchQuery||!e.searchResults)return null;let C=new Set,k=new Set;return e.searchResults.forEach(w=>{C.add(w.path?`${w.path}/${w.name}`:w.name);let R="";(w.path||"").split("/").filter(Boolean).forEach(b=>{R=R?R+"/"+b:b,k.add(R)})}),{files:C,folders:k}}),g=()=>[...i.value.querySelectorAll("li > a")],m=C=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!C)return;if(o=C.dataset.path,C.classList.add("tree-focused"),e.selectedPath===void 0){C.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let k=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(k){let w=C.getBoundingClientRect(),R=k.getBoundingClientRect();w.topR.bottom&&(k.scrollTop+=w.bottom-R.bottom)}i.value.focus({preventScroll:!0})};function v(C){let k=g(),w=i.value.querySelector(".tree-focused")||k[0],R=k.indexOf(w);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(C.key)||(C.preventDefault(),C.key==="ArrowDown"&&m(k[(R+1)%k.length]),C.key==="ArrowUp"&&m(k[(R-1+k.length)%k.length]),!w))return;let b=w.closest("li");C.key==="ArrowRight"&&b.classList.contains("folder")&&(b.classList.contains("open")?m(b.querySelector(":scope > ul > li > a")):w.click()),C.key==="ArrowLeft"&&(b.classList.contains("folder")&&b.classList.contains("open")?w.click():m(b.parentElement.closest("li.folder")?.querySelector(":scope > a"))),C.key==="Enter"&&w.click()}function y(C,k=""){let w=[...C].sort((R,b)=>+!!b.children-+!!R.children||R.name.localeCompare(b.name));return we("ul",w.flatMap(R=>{let b=R,P=b.name,D=(k+"/"+P).slice(1);if(d.value&&!d.value.files.has(D)&&!d.value.folders.has(D))return[];for(;b.children?.length===1&&b.children[0].children&&e.page?.loadedFolders?.[(k+"/"+P).slice(1)];)b=b.children[0],P+="/"+b.name;let L=k+"/"+P,H=!!b.children,_=d.value?r[L]!==!1:!!r[L],W=H&&e.page?.options?.truncatedFolders?.includes(L.slice(1)),re=we("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?we("svg",{viewBox:"0 0 14 12",focusable:"false"},we("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),F=!1,V=P,S="",q="";if(P.length>80){let ne=P.length-12;for(let le=P.length-18;le<=P.length-6;le++)if(le>0&&"-_. ".includes(P[le])){ne=le;break}if(F=!/XXXX-\d+/.test(P.slice(Math.max(0,ne-12))),V=P.slice(0,ne).trimEnd(),S=P.slice(ne).trimStart(),F){let le=Math.max(8,30-S.length-1);if(V.length>le&&!/XXXX-\d+/.test(V)){let ye=-1;for(let Xe=Math.min(le,V.length);Xe>=4;Xe--)if(".-_".includes(V[Xe])){ye=Xe;break}let Ae=P.slice(0,P.length-S.length);V=(ye>0?V.slice(0,ye):V.slice(0,le)).trimEnd(),q=Ae.slice(V.length)}}}let G=we("span",{class:{"tree-name":!0,"tree-name-split":F,"tree-name-wrap":!F},title:P.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},F?[we("span",{class:{"tree-name-head":!0,"is-cut":!!q}},Vm(V)),q?we("span",{class:"tree-name-middle"},q):null,we("span",{class:"tree-name-tail"},S)]:lle(P)),ie=ne=>{if(m(ne.currentTarget),!H){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",L));return}ne.preventDefault(),r[L]=!_,r[L]&&!b.children.length&&e.page.getFiles(L.slice(1)),Je(()=>m(g().find(le=>le.dataset.path===o)))},K=we("a",{"data-path":L,"aria-expanded":e.selectedPath!==void 0&&H?String(_):void 0,"aria-current":e.selectedPath!==void 0&&!H&&p()===L?"page":void 0,href:H?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(L)}`,class:{"tree-focused":o===L},onClick:ie},[H?we("span",{class:"tree-toggle"}):we("span",{class:"tree-spacer"}),re,G,W?we("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},we("i",{class:"fas fa-exclamation-triangle"})):null]);return we("li",{key:L,class:{file:!0,folder:H,open:_,active:p()===L,truncated:W},title:H?"":`Size: ${dle(b.size||0)}`},[K,H&&_?b.children.length||!e.page?.loadedFolders?.[L.slice(1)]?y(b.children,L):we("ul",we("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>we("tree",{ref:i,tabindex:0,onKeydown:v},e.file?.length?d.value?.files.size===0?we("div",{class:"tree-search-empty"},"No files found"):y(u.value):"Empty repository")}};function $m(){return ut({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 Fm(e,t){if(!e[t]){let s=$m();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var Um={beforeMount(e,{value:t}){e._formState=Fm(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function cle(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Lm(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"?cle(t):t??""),id(e)}function id(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,r]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!r)}var Bm={beforeMount(e,{value:t}){var u;let s=t.form&&Fm(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=$m()):null;e._field={binding:t,validation:i,timer:null};let r=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,d=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(d=e.value===""?null:Number(e.value)),e.type==="date"&&(d=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let g of Object.keys(i.errors))i.setValidity(g,!0)}p.set(d),id(e),p.change?.()}};e._field.commit=r;let o=p=>{let d=e._field.binding.options?.debounce||0,g=typeof d=="number"?d:d[p.type]??d.default??0;clearTimeout(e._field.timer),g?e._field.timer=setTimeout(r,g):r()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",o),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&r()})},mounted:Lm,updated(e,{value:t}){e._field.binding=t,Lm(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function Hm(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&id(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid"),r=i?.closest("details");r&&!r.open&&(r.open=!0),i?.dispatchEvent(new Event("reveal",{bubbles:!0})),i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity(),i&&setTimeout(()=>{document.activeElement!==i&&(i.scrollIntoView?.({block:"center"}),i.focus())},0);return}return t()}var zm=Symbol("session"),ple=/^\/(w|api|github)(\/|$)/;function jm(e,t={}){let s=e?.split(".").reduce((i,r)=>i?.[r],as);return s==null&&e?.startsWith("ERRORS.")&&(s=as.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,r)=>t[r]??"")}var fle={...dl,translate:jm};function mle(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 hle(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?md(window):null,r=()=>{let y=i;return i=null,y};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let o=new Map,u=rm(t.fetch),p,d;function g(){let y=Tt(),C={url(w){return w===void 0?d.currentRoute.value.fullPath:(d.push(w),C)},replace(w){return d.replace(w)},path(){return d.currentRoute.value.path},search(){return d.currentRoute.value.query}},k=new Proxy({},{get(w,R){let b=d.currentRoute.value.params[R];return Array.isArray(b)?b.join("/"):b}});return{takeReviewHandoff:r,http:u,...y,location:C,params:k,window,promises:am,html:{trustAsHtml:w=>w},translate:(w,R)=>Promise.resolve(jm(w,R)),quotaService:lm(u)}}function m(y){return{name:y.template,setup(){let C=ei(Gt(zm),o);y.setup(C,g()),im(y.template,C);let k=[];return()=>ea[y.template](C,k)}}}d=jc({history:t.history||Bc(),routes:Sf.map(y=>y.redirect?y:{path:y.path,component:m(y),meta:{title:y.title,preserveExplorer:y.preserveExplorer}})});let v=dr({setup(){p=ei(null,o),p.fmt=fle,p.window=window,p.Math=Math,p.sanitize=w=>DOMPurify.sanitize(w??""),p.highlightRedactions=w=>(p.site_options,df(w)),p.submitForm=Hm,p.safeUrl=mle;let y=g();uf(p,y.http,y.location,y.timeout),hs(zm,p),dt(()=>p.title,w=>{document.title=w||"Anonymous GitHub"});let C=[],k=w=>{let R=w.target.closest?.("a[href]");if(w.defaultPrevented||w.button!==0||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||!R||R.hasAttribute("download")||R.target&&R.target!=="_self"||R.dataset.toggle||R.getAttribute("href").startsWith("#"))return;let P=new URL(R.href,window.location.href);s||/^\/review-link\/?$/i.test(P.pathname)||P.origin!==window.location.origin||ple.test(P.pathname)||(w.preventDefault(),d.push(P.pathname+P.search+P.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),Fn(()=>document.removeEventListener("click",k)),()=>[om(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:we("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},ea["partials/header.htm"](p,C)),we("main",{class:"app-view align-items-stretch w-100"},we(rl,null,{default:({Component:w,route:R})=>w?we(w,{key:R.meta.preserveExplorer?R.matched[0]?.path:R.path}):null})),we("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((w,R)=>we("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:R},[we("div",{class:"toast-header"},[we("strong",{class:"mr-auto"},w.title),we("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(w)},"\xD7")]),we("div",{class:"toast-body"},w.body)])))]}});for(let[y,C]of Object.entries(Im))v.component(y,C);return v.component("Tree",qm),v.component("PartialView",{props:["name","state"],setup(y){let C=[];return()=>ea[y.name](y.state,C)}}),v.directive("field",Bm),v.directive("form",Um),v.directive("code-editor",Om),v.directive("paper-scrollspy",Mm),v.directive("data-tables",Em),v.use(d),d.beforeEach(async y=>{if(y.path==="/review-link"&&!s||s&&y.path!=="/review-link")return window.location.assign(y.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(y.path)&&await ls("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(y.path)&&await ls("org")}),d.afterEach(y=>{if(!p)return;p.title=y.meta.title,p.emit("routeChange",{title:y.meta.title}),p.emit("routeUpdate",{title:y.meta.title});let C=document.querySelector(".app-view");!y.meta.preserveExplorer&&C&&(C.scrollTop=0)}),v.mount(e),{app:v,router:d,state:p}}document.querySelector("#app")&&(window.anonymousApp=hle());})(); +`)}),Pm=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Om=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(r=>{r.classList.contains("is-hunk")||r.style.setProperty("--hang",Pm(r.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` +`).map(r=>{let o=i.join("");r.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("]+>/g,"");return`${o}${r||" "}${"".repeat(i.length)}`}).join(` +`)})},ele=e=>e.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section",rd={props:["content","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>{let i=renderMD(e.content||"",window.location.pathname+"/../");if(t.value.innerHTML=e.reader?to(i):i,Im(t.value),Om(t.value),e.idPrefix!=null){let r={};t.value.querySelectorAll("h1, h2, h3").forEach(o=>{let u=e.idPrefix+(o.id||ele(o.textContent));r[u]?u+="-"+ ++r[u]:r[u]=1,o.id=u})}Ci(t.value),e.onOutline?.(Er(t.value))};return Qt(()=>{s(),dt(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>ke("markdown",{ref:t,class:e.reader?"markdown-body":null})}},Dm=e=>Jt(e).map(t=>t.n?ke("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+t.n},ke("i",t.n)):t.t),id=e=>/^XXXX-\d+$/.test(String(e||"").trim()),tle=(e,t="Reviewer")=>e?ke("span",{class:["pr-author",{"is-redacted":id(e)}],title:id(e)?"Redacted author":null},id(e)?Dm(e):["@",...Dm(e)]):ke("span",{class:"pr-author is-hidden"},t),Mm={props:["comments","fmt"],setup(e){return()=>ke("div",{class:"pr-thread"},(e.comments||[]).map((t,s)=>ke("article",{class:["pr-thread-comment",{"is-reply":s>0}],key:s},[ke("header",{class:"pr-thread-head"},[ke("span",{class:"pr-avatar","aria-hidden":"true"},ke("svg",{class:"ui-icon"},ke("use",{href:"#ui-icon-user"}))),tle(t.author),t.creationDate||t.updatedDate?ke("time",{class:"pr-thread-date",datetime:t.creationDate||t.updatedDate},e.fmt?.date(t.creationDate||t.updatedDate)):null]),t.body?ke("div",{class:"pr-thread-body"},ke(rd,{content:t.body,reader:!0})):null])))}},nle=e=>String(e??"").replace(/[&<>"']/g,t=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[t]),sle=new Set(["add","remove","ctx","hunk"]),ole=e=>{let t=sle.has(e.kind)?e.kind:"ctx",s=Jt(e.text).map(i=>i.n?`${Number(i.n)}`:nle(i.t)).join("");return`${Number(e.oldNo)||""}${Number(e.newNo)||""}${t==="add"?"+":t==="remove"?"\u2212":""}${s}`},ile={props:["file","fmt"],setup(e){return()=>{let t=[],s="",i=()=>{s&&t.push(ke("tbody",{key:"r"+t.length,innerHTML:s})),s=""};return(e.file?.lines||[]).forEach(r=>{s+=ole(r),r.threads?.length&&(i(),t.push(ke("tbody",{key:"t"+t.length},r.threads.map((o,u)=>ke("tr",{class:"diff-thread-row",key:u},[ke("td",{class:"diff-thread-gutter",colspan:3}),ke("td",{class:"diff-thread-cell"},ke(Mm,{comments:o.comments,fmt:e.fmt}))])))))}),i(),ke("table",{class:"diff-file-table"},t)}}},rle={props:["file","terms","options","reader","idPrefix","onOutline"],setup(e){let t=bt(null),s=()=>xe(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Im(t.value),Om(t.value)});return Qt(s),dt(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},r=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(r)||i.language==="Markdown")return ke("gist-file",{ref:t},ke(rd,{content:i.content,terms:e.terms,options:e.options,reader:e.reader,idPrefix:e.idPrefix,onOutline:e.onOutline}));let o={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||r||"none").toLowerCase();return ke("gist-file",{ref:t},ke("pre",{class:"line-numbers"},ke("code",{class:"language-"+(o[u]||u),key:i.content},i.content||"")))}}},ale=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let r=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",r),s.classList.toggle("is-at-end",r&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!r)return;let o=t.clientWidth-16,u=Math.max(24,o*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(o-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),lle={props:["file","content"],setup(e){let t=bt(null),s=0,i,r=async()=>{let o=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await ds("notebook"),o!==s)return;t.value.innerHTML=to(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),ale(t.value),Ci(t.value)}catch(u){o===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Qt(()=>{r(),dt(()=>[e.file,e.content],r)}),Un(()=>{s++,i?.abort()}),()=>ke("notebook",{ref:t})}},dle={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,r])=>i+r.code,0);return ke("loc",t.map(([i,r])=>ke("div",{class:"lang",title:`${i}: ${r.code.toLocaleString()} lines`,style:{width:r.code*100/s+"%",background:langColors[i]}})))}}},Vm={Markdown:rd,GistFile:rle,PrThread:Mm,DiffTable:ile,Notebook:lle,Loc:dle,HtmlDoc:pm,QuotaUsage:Zae,DataTable:od,Pdfviewer:bu(async()=>(await ds("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",fm))},qm={async mounted(e,{value:t}){e._editorValue=t;try{if(await Ai(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Am(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),Am(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Am(e,t={}){let s=xae.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Lm={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(r=>{r.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let o=t.find(u=>s.has(u.hash.slice(1)));o&&t.forEach(u=>u.classList.toggle("active",u===o))},{rootMargin:"-20% 0px -60% 0px",threshold:0});xe(()=>{t.forEach(r=>{let o=document.getElementById(r.hash.slice(1));o&&i.observe(o)}),t[0]&&!t.some(r=>r.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function $m(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,r;for(;r=i.exec(e);)r.index>s&&t.push(e.slice(s,r.index)),t.push(ke("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+r[1]},[ke("i",null,r[1])])),s=r.index+r[0].length;return t.length?(s{s.push(o),u=1024&&iple(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");dt(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let C="";p().split("/").filter(Boolean).forEach(k=>{C+="/"+k,r[C]=!0})},{immediate:!0});let d=Ye(()=>{if(!e.searchQuery||!e.searchResults)return null;let C=new Set,k=new Set;return e.searchResults.forEach(w=>{C.add(w.path?`${w.path}/${w.name}`:w.name);let R="";(w.path||"").split("/").filter(Boolean).forEach(b=>{R=R?R+"/"+b:b,k.add(R)})}),{files:C,folders:k}}),g=()=>[...i.value.querySelectorAll("li > a")],m=C=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!C)return;if(o=C.dataset.path,C.classList.add("tree-focused"),e.selectedPath===void 0){C.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let k=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(k){let w=C.getBoundingClientRect(),R=k.getBoundingClientRect();w.topR.bottom&&(k.scrollTop+=w.bottom-R.bottom)}i.value.focus({preventScroll:!0})};function v(C){let k=g(),w=i.value.querySelector(".tree-focused")||k[0],R=k.indexOf(w);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(C.key)||(C.preventDefault(),C.key==="ArrowDown"&&m(k[(R+1)%k.length]),C.key==="ArrowUp"&&m(k[(R-1+k.length)%k.length]),!w))return;let b=w.closest("li");C.key==="ArrowRight"&&b.classList.contains("folder")&&(b.classList.contains("open")?m(b.querySelector(":scope > ul > li > a")):w.click()),C.key==="ArrowLeft"&&(b.classList.contains("folder")&&b.classList.contains("open")?w.click():m(b.parentElement.closest("li.folder")?.querySelector(":scope > a"))),C.key==="Enter"&&w.click()}function y(C,k=""){let w=[...C].sort((R,b)=>+!!b.children-+!!R.children||R.name.localeCompare(b.name));return ke("ul",w.flatMap(R=>{let b=R,P=b.name,D=(k+"/"+P).slice(1);if(d.value&&!d.value.files.has(D)&&!d.value.folders.has(D))return[];for(;b.children?.length===1&&b.children[0].children&&e.page?.loadedFolders?.[(k+"/"+P).slice(1)];)b=b.children[0],P+="/"+b.name;let L=k+"/"+P,H=!!b.children,_=d.value?r[L]!==!1:!!r[L],W=H&&e.page?.options?.truncatedFolders?.includes(L.slice(1)),ae=ke("span",{class:H?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},H?ke("svg",{viewBox:"0 0 14 12",focusable:"false"},ke("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),F=!1,V=P,S="",q="";if(P.length>80){let ne=P.length-12;for(let le=P.length-18;le<=P.length-6;le++)if(le>0&&"-_. ".includes(P[le])){ne=le;break}if(F=!/XXXX-\d+/.test(P.slice(Math.max(0,ne-12))),V=P.slice(0,ne).trimEnd(),S=P.slice(ne).trimStart(),F){let le=Math.max(8,30-S.length-1);if(V.length>le&&!/XXXX-\d+/.test(V)){let ye=-1;for(let Xe=Math.min(le,V.length);Xe>=4;Xe--)if(".-_".includes(V[Xe])){ye=Xe;break}let Ae=P.slice(0,P.length-S.length);V=(ye>0?V.slice(0,ye):V.slice(0,le)).trimEnd(),q=Ae.slice(V.length)}}}let G=ke("span",{class:{"tree-name":!0,"tree-name-split":F,"tree-name-wrap":!F},title:P.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},F?[ke("span",{class:{"tree-name-head":!0,"is-cut":!!q}},$m(V)),q?ke("span",{class:"tree-name-middle"},q):null,ke("span",{class:"tree-name-tail"},S)]:ule(P)),oe=ne=>{if(m(ne.currentTarget),!H){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",L));return}ne.preventDefault(),r[L]=!_,r[L]&&!b.children.length&&e.page.getFiles(L.slice(1)),xe(()=>m(g().find(le=>le.dataset.path===o)))},K=ke("a",{"data-path":L,"aria-expanded":e.selectedPath!==void 0&&H?String(_):void 0,"aria-current":e.selectedPath!==void 0&&!H&&p()===L?"page":void 0,href:H?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(L)}`,class:{"tree-focused":o===L},onClick:oe},[H?ke("span",{class:"tree-toggle"}):ke("span",{class:"tree-spacer"}),ae,G,W?ke("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},ke("i",{class:"fas fa-exclamation-triangle"})):null]);return ke("li",{key:L,class:{file:!0,folder:H,open:_,active:p()===L,truncated:W},title:H?"":`Size: ${cle(b.size||0)}`},[K,H&&_?b.children.length||!e.page?.loadedFolders?.[L.slice(1)]?y(b.children,L):ke("ul",ke("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>ke("tree",{ref:i,tabindex:0,onKeydown:v},e.file?.length?d.value?.files.size===0?ke("div",{class:"tree-search-empty"},"No files found"):y(u.value):"Empty repository")}};function Bm(){return ut({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 Hm(e,t){if(!e[t]){let s=Bm();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var zm={beforeMount(e,{value:t}){e._formState=Hm(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function fle(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Um(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"?fle(t):t??""),ad(e)}function ad(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,r]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!r)}var jm={beforeMount(e,{value:t}){var u;let s=t.form&&Hm(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=Bm()):null;e._field={binding:t,validation:i,timer:null};let r=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,d=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(d=e.value===""?null:Number(e.value)),e.type==="date"&&(d=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let g of Object.keys(i.errors))i.setValidity(g,!0)}p.set(d),ad(e),p.change?.()}};e._field.commit=r;let o=p=>{let d=e._field.binding.options?.debounce||0,g=typeof d=="number"?d:d[p.type]??d.default??0;clearTimeout(e._field.timer),g?e._field.timer=setTimeout(r,g):r()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",o),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&r()})},mounted:Um,updated(e,{value:t}){e._field.binding=t,Um(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function _m(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&ad(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid"),r=i?.closest("details");r&&!r.open&&(r.open=!0),i?.dispatchEvent(new Event("reveal",{bubbles:!0})),i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity(),i&&setTimeout(()=>{document.activeElement!==i&&(i.scrollIntoView?.({block:"center"}),i.focus())},0);return}return t()}var Gm=Symbol("session"),mle=/^\/(w|api|github)(\/|$)/;function Wm(e,t={}){let s=e?.split(".").reduce((i,r)=>i?.[r],ls);return s==null&&e?.startsWith("ERRORS.")&&(s=ls.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,r)=>t[r]??"")}var hle={...cl,translate:Wm};function gle(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 yle(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?yd(window):null,r=()=>{let y=i;return i=null,y};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let o=new Map,u=dm(t.fetch),p,d;function g(){let y=Pt(),C={url(w){return w===void 0?d.currentRoute.value.fullPath:(d.push(w),C)},replace(w){return d.replace(w)},path(){return d.currentRoute.value.path},search(){return d.currentRoute.value.query}},k=new Proxy({},{get(w,R){let b=d.currentRoute.value.params[R];return Array.isArray(b)?b.join("/"):b}});return{takeReviewHandoff:r,http:u,...y,location:C,params:k,window,promises:um,html:{trustAsHtml:w=>w},translate:(w,R)=>Promise.resolve(Wm(w,R)),quotaService:cm(u)}}function m(y){return{name:y.template,setup(){let C=ti(_t(Gm),o);y.setup(C,g()),lm(y.template,C);let k=[];return()=>ta[y.template](C,k)}}}d=Wc({history:t.history||jc(),routes:Tf.map(y=>y.redirect?y:{path:y.path,component:m(y),meta:{title:y.title,preserveExplorer:y.preserveExplorer}})});let v=ur({setup(){p=ti(null,o),p.fmt=hle,p.window=window,p.Math=Math,p.sanitize=w=>DOMPurify.sanitize(w??""),p.highlightRedactions=w=>(p.site_options,pf(w)),p.submitForm=_m,p.safeUrl=gle;let y=g();ff(p,y.http,y.location,y.timeout),gs(Gm,p),dt(()=>p.title,w=>{document.title=w||"Anonymous GitHub"});let C=[],k=w=>{let R=w.target.closest?.("a[href]");if(w.defaultPrevented||w.button!==0||w.metaKey||w.ctrlKey||w.shiftKey||w.altKey||!R||R.hasAttribute("download")||R.target&&R.target!=="_self"||R.dataset.toggle||R.getAttribute("href").startsWith("#"))return;let P=new URL(R.href,window.location.href);s||/^\/review-link\/?$/i.test(P.pathname)||P.origin!==window.location.origin||mle.test(P.pathname)||(w.preventDefault(),d.push(P.pathname+P.search+P.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),Un(()=>document.removeEventListener("click",k)),()=>[am(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:ke("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},ta["partials/header.htm"](p,C)),ke("main",{class:"app-view align-items-stretch w-100"},ke(ll,null,{default:({Component:w,route:R})=>w?ke(w,{key:R.meta.preserveExplorer?R.matched[0]?.path:R.path}):null})),ke("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((w,R)=>ke("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:R},[ke("div",{class:"toast-header"},[ke("strong",{class:"mr-auto"},w.title),ke("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(w)},"\xD7")]),ke("div",{class:"toast-body"},w.body)])))]}});for(let[y,C]of Object.entries(Vm))v.component(y,C);return v.component("Tree",Fm),v.component("PartialView",{props:["name","state"],setup(y){let C=[];return()=>ta[y.name](y.state,C)}}),v.directive("field",jm),v.directive("form",zm),v.directive("code-editor",qm),v.directive("paper-scrollspy",Lm),v.directive("data-tables",Rm),v.use(d),d.beforeEach(async y=>{if(y.path==="/review-link"&&!s||s&&y.path!=="/review-link")return window.location.assign(y.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(y.path)&&await ds("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(y.path)&&await ds("org")}),d.afterEach(y=>{if(!p)return;p.title=y.meta.title,p.emit("routeChange",{title:y.meta.title}),p.emit("routeUpdate",{title:y.meta.title});let C=document.querySelector(".app-view");!y.meta.preserveExplorer&&C&&(C.scrollTop=0)}),v.mount(e),{app:v,router:d,state:p}}document.querySelector("#app")&&(window.anonymousApp=yle());})(); /*! Bundled license information: @vue/shared/dist/shared.esm-bundler.js: diff --git a/src/core/source/GitHubRepository.ts b/src/core/source/GitHubRepository.ts index fc8b928..8061288 100644 --- a/src/core/source/GitHubRepository.ts +++ b/src/core/source/GitHubRepository.ts @@ -161,45 +161,42 @@ export class GitHubRepository { throw new AnonymousError("repo_not_found", { httpStatus: 404 }); } - this._data.branches = await this.branches(opt); - model.branches = this._data.branches; + // Serve the cached README without touching GitHub. Otherwise fetch it by + // branch name: listing every branch first (one GitHub page per 100 + // branches) only to look up the head commit made the anonymize form's + // preview wait on the whole branch list. + const selected = (model.branches || []).filter((f) => f.name == opt.branch)[0]; + if (selected?.readme && opt?.force !== true) return selected.readme; - const selected = model.branches.filter((f) => f.name == opt.branch)[0]; - if (selected && (!selected.readme || opt?.force === true)) { - // get the list of repo from github - const oct = octokit(opt.accessToken); - try { - const ghRes = await oct.repos.getReadme({ - owner: this.owner, - repo: this.repo, - ref: selected?.commit, - }); - const readme = Buffer.from( - ghRes.data.content, - ghRes.data.encoding as BufferEncoding - ).toString("utf-8"); - selected.readme = readme; - await RepositoryModel.updateOne( - { externalId: this.id, "branches.name": opt.branch }, - { $set: { "branches.$.readme": readme } } - ).exec(); - } catch (error) { - throw new AnonymousError("readme_not_available", { - httpStatus: 404, - cause: error as Error, - object: this, - }); - } - } - - if (!selected) { + const oct = octokit(opt.accessToken); + let readme: string; + try { + const ghRes = await oct.repos.getReadme({ + owner: this.owner, + repo: this.repo, + ref: opt.force === true || !selected?.commit ? opt.branch : selected.commit, + }); + readme = Buffer.from( + ghRes.data.content, + ghRes.data.encoding as BufferEncoding + ).toString("utf-8"); + } catch (error) { throw new AnonymousError("readme_not_available", { httpStatus: 404, + cause: error as Error, object: this, }); } - - return selected.readme; + // Cache it on the branch entry when the branch list is already stored; + // the branches endpoint keeps cached READMEs when it refreshes the list. + if (selected) { + selected.readme = readme; + await RepositoryModel.updateOne( + { externalId: this.id, "branches.name": opt.branch }, + { $set: { "branches.$.readme": readme } } + ).exec(); + } + return readme; } public get owner(): string { diff --git a/src/server/index.ts b/src/server/index.ts index d424f84..dfe8997 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -270,7 +270,10 @@ export default async function start() { apiRouter.use("/pr", speedLimiter, router.pullRequestPrivate); apiRouter.use("/gist", speedLimiter, router.gistPublic); apiRouter.use("/gist", speedLimiter, router.gistPrivate); - apiRouter.use("/anonymize-preview", speedLimiter, router.anonymizePreview); + // The form previews on every edit, and slowing it down after 50 calls made + // typing feel broken. It only runs the anonymizer on posted text, never + // GitHub, so the shared API rate limit is enough. + apiRouter.use("/anonymize-preview", router.anonymizePreview); // Cache message.txt presence so /api/message doesn't hit the filesystem // synchronously on every request. Re-checked on a 60s interval — the file