diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 2decdc0..5832b49 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,6 @@ { "core.min.js": "core.3b07189932.min.js", - "vendor.min.js": "vendor.a8c61c4ffb.min.js", + "vendor.min.js": "vendor.0d01dc82d9.min.js", "mermaid.min.js": "mermaid.f848a72d16.min.js", "all.min.css": "all.1d7ab8bc01.min.css", "markdown.min.js": "markdown.44f2e93820.min.js", diff --git a/public/script/app.js b/public/script/app.js index 558a72d..796c1fb 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -1158,6 +1158,7 @@ export const anonymizeController = function (state, http, html, params, location ? "gist:" + parsed.gistId.toLowerCase() : (parsed.owner + "/" + parsed.repo).toLowerCase() + (parsed.pullRequestId ? "/pull/" + parsed.pullRequestId : ""); const draft = formDraft(state, ["sourceUrl", "terms", "repoId", "pullRequestId", "gistId", "source", "options", "conference", "githubConnection"], "anonymize:" + (location.path?.() || "")); + let restoredCheckoutConference = null; let checkoutDraftId = null; let checkoutDraftSnapshot = null; state.hostingReview = false; @@ -1395,6 +1396,7 @@ export const anonymizeController = function (state, http, html, params, location try { const saved = (await http.get("/api/billing/draft/" + encodeURIComponent(billingDraft))).data; if (saved.path !== location.path()) throw new Error("Wrong task"); + restoredCheckoutConference = saved.values.conference || null; for (const key of ["sourceUrl", "terms", "repoId", "source", "options", "conference", "githubConnection"]) { if (Object.prototype.hasOwnProperty.call(saved.values, key)) state[key] = saved.values[key]; } @@ -1998,7 +2000,9 @@ export const anonymizeController = function (state, http, html, params, location state.conference_data = null; if (!conference) return; const preserveSavedOptions = - state.isUpdate && conference === state._originalConference; + conference === restoredCheckoutConference || + (state.isUpdate && conference === state._originalConference); + if (conference !== restoredCheckoutConference) restoredCheckoutConference = null; http.get("/api/conferences/" + conference).then( (res) => { if (state.conference !== conference) return; diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index 44b5db1..b6d4508 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -1,30 +1,30 @@ -"use strict";(()=>{var ad=Object.defineProperty;var ld=(e,t)=>{for(var s in t)ad(e,s,{get:t[s],enumerable:!0})};var fe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var he={notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",markdown:"/script/markdown.44f2e93820.min.js",editor:"/script/editor.4f142d3adc.min.js"};var fo=new Map,cd=he;function xt(e){if(!fo.has(e)){let t=document.createElement("script");t.src=cd[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{fo.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});fo.set(e,s),document.head.appendChild(t)}return fo.get(e)}async function mi(){await xt("editor"),ace.config.set("basePath","/script/external/ace/")}function mn(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var Pe={},Xt=[],at=()=>{},us=()=>!1,vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),Ge=Object.assign,In=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},pd=Object.prototype.hasOwnProperty,Re=(e,t)=>pd.call(e,t),ve=Array.isArray,Ut=e=>Vn(e)==="[object Map]",Ft=e=>Vn(e)==="[object Set]",vi=e=>Vn(e)==="[object Date]";var be=e=>typeof e=="function",Be=e=>typeof e=="string",ht=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",cs=e=>(Ae(e)||be(e))&&be(e.then)&&be(e.catch),wi=Object.prototype.toString,Vn=e=>wi.call(e),ps=e=>Vn(e).slice(8,-1),ho=e=>Vn(e)==="[object Object]",mo=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var vo=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},fd=/-\w/g,Je=vo(e=>e.replace(fd,t=>t.slice(1).toUpperCase())),hd=/\B([A-Z])/g,St=vo(e=>e.replace(hd,"-$1").toLowerCase()),en=vo(e=>e.charAt(0).toUpperCase()+e.slice(1)),qn=vo(e=>e?`on${en(e)}`:""),yt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},wn=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var gi,Mn=()=>gi||(gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ve(e){if(ve(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(md).forEach(s=>{if(s){let i=s.split(vd);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function A(e){let t="";if(Be(e))t=e;else if(ve(e))for(let s=0;sNt(s,t))}var _i=e=>!!(e&&e.__v_isRef===!0),u=e=>Be(e)?e:e==null?"":ve(e)||Ae(e)&&(e.toString===wi||!be(e.toString))?_i(e)?u(e.value):JSON.stringify(e,Si,2):String(e),Si=(e,t)=>_i(t)?Si(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[ds(i,r)+" =>"]=o,s),{})}:Ft(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ds(s))}:ht(t)?ds(t):Ae(t)&&!ve(t)&&!ho(t)?String(t):t,ds=(e,t="")=>{var s;return ht(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Ed(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Xe,Fn=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&&Xe&&(Xe.active?(this.parent=Xe,this.index=(Xe.scopes||(Xe.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(Xe===this)Xe=this.prevScope;else{let t=Xe;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(Un){let t=Un;for(Un=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ln;){let t=Ln;for(Ln=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 Oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pi(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),Ns(i),Cd(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ii(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ii(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bn)||(e.globalVersion=Bn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,s=Fe,i=Ct;Fe=e,Ct=!0;try{Oi(e);let o=e.fn(e._value);(t.version===0||yt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Fe=s,Ct=i,Pi(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Ns(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Cd(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var Ct=!0,Vi=[];function Ot(){Vi.push(Ct),Ct=!1}function Pt(){let e=Vi.pop();Ct=e===void 0?!0:e}function Ni(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=Fe;Fe=void 0;try{t()}finally{Fe=s}}}var Bn=0,gs=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}},zn=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(!Fe||!Ct||Fe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Fe)s=this.activeLink=new gs(Fe,this),Fe.deps?(s.prevDep=Fe.depsTail,Fe.depsTail.nextDep=s,Fe.depsTail=s):Fe.deps=Fe.depsTail=s,qi(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=Fe.depsTail,s.nextDep=void 0,Fe.depsTail.nextDep=s,Fe.depsTail=s,Fe.deps===s&&(Fe.deps=i)}return s}trigger(t){this.version++,Bn++,this.notify(t)}notify(t){_s();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ss()}}};function qi(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)qi(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var ys=new WeakMap,nn=Symbol(""),bs=Symbol(""),Hn=Symbol("");function et(e,t,s){if(Ct&&Fe){let i=ys.get(e);i||ys.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new zn),o.map=i,o.key=s),o.track()}}function Rt(e,t,s,i,o,r){let a=ys.get(e);if(!a){Bn++;return}let c=f=>{f&&f.trigger()};if(_s(),t==="clear")a.forEach(c);else{let f=ve(e),v=f&&mo(s);if(f&&s==="length"){let g=Number(i);a.forEach((k,m)=>{(m==="length"||m===Hn||!ht(m)&&m>=g)&&c(k)})}else switch((s!==void 0||a.has(void 0))&&c(a.get(s)),v&&c(a.get(Hn)),t){case"add":f?v&&c(a.get("length")):(c(a.get(nn)),Ut(e)&&c(a.get(bs)));break;case"delete":f||(c(a.get(nn)),Ut(e)&&c(a.get(bs)));break;case"set":Ut(e)&&c(a.get(nn));break}}Ss()}function kn(e){let t=Te(e);return t===e||(et(t,"iterate",Hn),lt(e))?t:bt(e)?At(e)?t.map(s=>zt(mt(s))):t.map(zt):t.map(mt)}function Gn(e){return et(e=Te(e),"iterate",Hn),e}function Dt(e,t){return bt(e)?zt(At(e)?mt(t):t):mt(t)}var _d={__proto__:null,[Symbol.iterator](){return hs(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return kn(this).concat(...e.map(t=>ve(t)?kn(t):t))},entries(){return hs(this,"entries",e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return Bt(this,"every",e,t,void 0,arguments)},filter(e,t){return Bt(this,"filter",e,t,s=>s.map(i=>Dt(this,i)),arguments)},find(e,t){return Bt(this,"find",e,t,s=>Dt(this,s),arguments)},findIndex(e,t){return Bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bt(this,"findLast",e,t,s=>Dt(this,s),arguments)},findLastIndex(e,t){return Bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return kn(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return Bt(this,"map",e,t,void 0,arguments)},pop(){return $n(this,"pop")},push(...e){return $n(this,"push",e)},reduce(e,...t){return Di(this,"reduce",e,t)},reduceRight(e,...t){return Di(this,"reduceRight",e,t)},shift(){return $n(this,"shift")},some(e,t){return Bt(this,"some",e,t,void 0,arguments)},splice(...e){return $n(this,"splice",e)},toReversed(){return kn(this).toReversed()},toSorted(e){return kn(this).toSorted(e)},toSpliced(...e){return kn(this).toSpliced(...e)},unshift(...e){return $n(this,"unshift",e)},values(){return hs(this,"values",e=>Dt(this,e))}};function hs(e,t,s){let i=Gn(e),o=i[t]();return i!==e&&!lt(e)&&(o._next=o.next,o.next=()=>{let r=o._next();return r.done||(r.value=s(r.value)),r}),o}var Sd=Array.prototype;function Bt(e,t,s,i,o,r){let a=Gn(e),c=a!==e&&!lt(e),f=a[t];if(f!==Sd[t]){let k=f.apply(e,r);return c?mt(k):k}let v=s;a!==e&&(c?v=function(k,m){return s.call(this,Dt(e,k),m,e)}:s.length>2&&(v=function(k,m){return s.call(this,k,m,e)}));let g=f.call(a,v,i);return c&&o?o(g):g}function Di(e,t,s,i){let o=Gn(e),r=o!==e&&!lt(e),a=s,c=!1;o!==e&&(r?(c=i.length===0,a=function(v,g,k){return c&&(c=!1,v=Dt(e,v)),s.call(this,v,Dt(e,g),k,e)}):s.length>3&&(a=function(v,g,k){return s.call(this,v,g,k,e)}));let f=o[t](a,...i);return c?Dt(e,f):f}function ms(e,t,s){let i=Te(e);et(i,"iterate",Hn);let o=i[t](...s);return(o===-1||o===!1)&&Kn(s[0])?(s[0]=Te(s[0]),i[t](...s)):o}function $n(e,t,s=[]){Ot(),_s();let i=Te(e)[t].apply(e,s);return Ss(),Pt(),i}var Nd=mn("__proto__,__v_isRef,__isVue"),Mi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ht));function Dd(e){ht(e)||(e=String(e));let t=Te(this);return et(t,"has",e),t.hasOwnProperty(e)}var Eo=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 o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Md:Ui:r?Li:$i).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let a=ve(t);if(!o){let f;if(a&&(f=_d[s]))return f;if(s==="hasOwnProperty")return Dd}let c=Reflect.get(t,s,xe(t)?t:i);if((ht(s)?Mi.has(s):Nd(s))||(o||et(t,"get",s),r))return c;if(xe(c)){let f=a&&mo(s)?c:c.value;return o&&Ae(f)?_o(f):f}return Ae(c)?o?_o(c):ze(c):c}},Co=class extends Eo{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],a=ve(t)&&mo(s);if(!this._isShallow){let v=bt(r);if(!lt(i)&&!bt(i)&&(r=Te(r),i=Te(i)),!a&&xe(r)&&!xe(i))return v||(r.value=i),!0}let c=a?Number(s)e,bo=e=>Reflect.getPrototypeOf(e);function Od(e,t,s){return function(...i){let o=this.__v_raw,r=Te(o),a=Ut(r),c=e==="entries"||e===Symbol.iterator&&a,f=e==="keys"&&a,v=o[e](...i),g=s?ks:t?zt:mt;return!t&&et(r,"iterate",f?bs:nn),Ge(Object.create(v),{next(){let{value:k,done:m}=v.next();return m?{value:k,done:m}:{value:c?[g(k[0]),g(k[1])]:g(k),done:m}}})}}function wo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pd(e,t){let s={get(o){let r=this.__v_raw,a=Te(r),c=Te(o);e||(yt(o,c)&&et(a,"get",o),et(a,"get",c));let{has:f}=bo(a),v=t?ks:e?zt:mt;if(f.call(a,o))return v(r.get(o));if(f.call(a,c))return v(r.get(c));r!==a&&r.get(o)},get size(){let o=this.__v_raw;return!e&&et(Te(o),"iterate",nn),o.size},has(o){let r=this.__v_raw,a=Te(r),c=Te(o);return e||(yt(o,c)&&et(a,"has",o),et(a,"has",c)),o===c?r.has(o):r.has(o)||r.has(c)},forEach(o,r){let a=this,c=a.__v_raw,f=Te(c),v=t?ks:e?zt:mt;return!e&&et(f,"iterate",nn),c.forEach((g,k)=>o.call(r,v(g),v(k),a))}};return Ge(s,e?{add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear")}:{add(o){let r=Te(this),a=bo(r),c=Te(o),f=!t&&!lt(o)&&!bt(o)?c:o;return a.has.call(r,f)||yt(o,f)&&a.has.call(r,o)||yt(c,f)&&a.has.call(r,c)||(r.add(f),Rt(r,"add",f,f)),this},set(o,r){!t&&!lt(r)&&!bt(r)&&(r=Te(r));let a=Te(this),{has:c,get:f}=bo(a),v=c.call(a,o);v||(o=Te(o),v=c.call(a,o));let g=f.call(a,o);return a.set(o,r),v?yt(r,g)&&Rt(a,"set",o,r,g):Rt(a,"add",o,r),this},delete(o){let r=Te(this),{has:a,get:c}=bo(r),f=a.call(r,o);f||(o=Te(o),f=a.call(r,o));let v=c?c.call(r,o):void 0,g=r.delete(o);return f&&Rt(r,"delete",o,void 0,v),g},clear(){let o=Te(this),r=o.size!==0,a=void 0,c=o.clear();return r&&Rt(o,"clear",void 0,void 0,a),c}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Od(o,e,t)}),s}function Ds(e,t){let s=Pd(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(Re(s,o)&&o in i?s:i,o,r)}var Id={get:Ds(!1,!1)},Vd={get:Ds(!1,!0)},qd={get:Ds(!0,!1)};var $i=new WeakMap,Li=new WeakMap,Ui=new WeakMap,Md=new WeakMap;function $d(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ze(e){return bt(e)?e:Rs(e,!1,Rd,Id,$i)}function Wn(e){return Rs(e,!1,Ad,Vd,Li)}function _o(e){return Rs(e,!0,Td,qd,Ui)}function Rs(e,t,s,i,o){if(!Ae(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let a=$d(ps(e));if(a===0)return e;let c=new Proxy(e,a===2?i:s);return o.set(e,c),c}function At(e){return bt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function lt(e){return!!(e&&e.__v_isShallow)}function Kn(e){return e?!!e.__v_raw:!1}function Te(e){let t=e&&e.__v_raw;return t?Te(t):e}function Ts(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&go(e,"__v_skip",!0),e}var mt=e=>Ae(e)?ze(e):e,zt=e=>Ae(e)?_o(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function tt(e){return Fi(e,!1)}function No(e){return Fi(e,!0)}function Fi(e,t){return xe(e)?e:new Es(e,t)}var Es=class{constructor(t,s){this.dep=new zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Te(t),this._value=s?t:mt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||lt(t)||bt(t);t=i?t:Te(t),yt(t,s)&&(this._rawValue=t,this._value=i?t:mt(t),this.dep.trigger())}};function Ht(e){return xe(e)?e.value:e}var Ld={get:(e,t,s)=>t==="__v_raw"?e:Ht(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return xe(o)&&!xe(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function Do(e){return At(e)?e:new Proxy(e,Ld)}var Cs=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Fe!==this)return Ai(this,!0),!0}get value(){let t=this.dep.track();return Ii(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Bi(e,t,s=!1){let i,o;return be(e)?i=e:(i=e.get,o=e.set),new Cs(i,o,s)}var ko={},So=new WeakMap,tn;function zi(e,t=!1,s=tn){if(s){let i=So.get(s);i||So.set(s,i=[]),i.push(e)}}function Hi(e,t,s=Pe){let{immediate:i,deep:o,once:r,scheduler:a,augmentJob:c,call:f}=s,v=M=>{(s.onWarn||Ed)("Invalid watch source: ",M,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=M=>o?M:lt(M)||o===!1||o===0?Tt(M,1):Tt(M),k,m,b,C,E=!1,T=!1;if(xe(e)?(m=()=>e.value,E=lt(e)):At(e)?(m=()=>g(e),E=!0):ve(e)?(T=!0,E=e.some(M=>At(M)||lt(M)),m=()=>e.map(M=>{if(xe(M))return M.value;if(At(M))return g(M);if(be(M))return f?f(M,2):M()})):be(e)?t?m=f?()=>f(e,2):e:m=()=>{if(b){Ot();try{b()}finally{Pt()}}let M=tn;tn=k;try{return f?f(e,3,[C]):e(C)}finally{tn=M}}:m=at,t&&o){let M=m,z=o===!0?1/0:o;m=()=>Tt(M(),z)}let D=Ri(),O=()=>{k.stop(),D&&D.active&&In(D.effects,k)};if(r&&t){let M=t;t=(...z)=>{let se=M(...z);return O(),se}}let q=T?new Array(e.length).fill(ko):ko,F=M=>{if(!(!(k.flags&1)||!k.dirty&&!M))if(t){let z=k.run();if(M||o||E||(T?z.some((se,oe)=>yt(se,q[oe])):yt(z,q))){b&&b();let se=tn;tn=k;try{let oe=[z,q===ko?void 0:T&&q[0]===ko?[]:q,C];q=z,f?f(t,3,oe):t(...oe)}finally{tn=se}}}else k.run()};return c&&c(F),k=new En(m),k.scheduler=a?()=>a(F,!1):F,C=M=>zi(M,!1,k),b=k.onStop=()=>{let M=So.get(k);if(M){if(f)f(M,4);else for(let z of M)z();So.delete(k)}},t?i?F(!0):q=k.run():a?a(F.bind(null,!0),!0):k.run(),O.pause=k.pause.bind(k),O.resume=k.resume.bind(k),O.stop=O,O}function Tt(e,t=1/0,s){if(t<=0||!Ae(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,xe(e))Tt(e.value,t,s);else if(ve(e))for(let i=0;i{Tt(i,t,s)});else if(ho(e)){for(let i in e)Tt(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Tt(e[i],t,s)}return e}function oo(e,t,s,i){try{return i?e(...i):e()}catch(o){so(o,t,s)}}function wt(e,t,s,i){if(be(e)){let o=oo(e,t,s,i);return o&&cs(o)&&o.catch(r=>{so(r,t,s)}),o}if(ve(e)){let o=[];for(let r=0;r>>1,o=it[i],r=eo(o);r=eo(s)?it.push(e):it.splice(Hd(t),0,e),e.flags|=1,ar()}}function ar(){Ao||(Ao=rr.then(ur))}function lr(e){if(!ve(e))Zt&&e.id===-1?Zt.splice(Cn+1,0,e):e.flags&1||(_n.push(e),e.flags|=1);else for(let t=0;teo(s)-eo(i));if(_n.length=0,Zt){for(let s=0;se.id==null?e.flags&2?-1:1/0:e.id;function ur(e){let t=at;try{for(Vt=0;Vt{i._d&&Vo(-1);let r=Oo(t),a=rn.length,c;try{c=e(...o)}finally{for(let f=rn.length;f>a;f--)Fr();Oo(r),i._d&&Vo(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function N(e,t){if(vt===null)return e;let s=jo(vt),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&be(t)?t.call(i&&i.proxy):t}}var Gd=Symbol.for("v-scx"),Wd=()=>{{let e=ut(Gd);return e}};function He(e,t,s){return pr(e,t,s)}function pr(e,t,s=Pe){let{immediate:i,deep:o,flush:r,once:a}=s,c=Ge({},s),f=t&&i||!t&&r!=="post",v;if(Dn){if(r==="sync"){let b=Wd();v=b.__watcherHandles||(b.__watcherHandles=[])}else if(!f){let b=()=>{};return b.stop=at,b.resume=at,b.pause=at,b}}let g=nt;c.call=(b,C,E)=>wt(b,g,C,E);let k=!1;r==="post"?c.scheduler=b=>{dt(b,g&&g.suspense)}:r!=="sync"&&(k=!0,c.scheduler=(b,C)=>{C?b():Ls(b)}),c.augmentJob=b=>{t&&(b.flags|=4),k&&(b.flags|=2,g&&(b.id=g.uid,b.i=g))};let m=Hi(e,t,c);return Dn&&(v?v.push(m):f&&m()),m}function Kd(e,t,s){let i=this.proxy,o=Be(e)?e.includes(".")?fr(i,e):()=>i[e]:e.bind(i,i),r;be(t)?r=t:(r=t.handler,s=t);let a=ao(this),c=pr(o,r.bind(i),s);return a(),c}function fr(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var As=Symbol("_leaveCb");function Qd(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==Gt){t=i,s=!0;break}}return t}function hr(e){if(!Fo(e))return Lo(e.type)&&e.children?Qd(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&&be(s.default))return s.default()}}function Uo(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Uo(Lo(s.type)&&hr(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function io(e,t){return be(e)?Ge({name:e.name},t,{setup:e}):e}function Us(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gi(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Po=new WeakMap;function Jn(e,t,s,i,o=!1){if(ve(e)){e.forEach((E,T)=>Jn(E,t&&(ve(t)?t[T]:t),s,i,o));return}if(Xn(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Jn(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?jo(i.component):i.el,a=o?null:r,{i:c,r:f}=e,v=t&&t.r,g=c.refs===Pe?c.refs={}:c.refs,k=c.setupState,m=Te(k),b=k===Pe?us:E=>Gi(g,E)?!1:Re(m,E),C=(E,T)=>!(T&&Gi(g,T));if(v!=null&&v!==f){if(Wi(t),Be(v))g[v]=null,b(v)&&(k[v]=null);else if(xe(v)){let E=t;C(v,E.k)&&(v.value=null),E.k&&(g[E.k]=null)}}if(be(f))oo(f,c,12,[a,g]);else{let E=Be(f),T=xe(f);if(E||T){let D=()=>{if(e.f){let O=E?b(f)?k[f]:g[f]:C(f)||!e.k?f.value:g[e.k];if(o)ve(O)&&In(O,r);else if(ve(O))O.includes(r)||O.push(r);else if(E)g[f]=[r],b(f)&&(k[f]=g[f]);else{let q=[r];C(f,e.k)&&(f.value=q),e.k&&(g[e.k]=q)}}else E?(g[f]=a,b(f)&&(k[f]=a)):T&&(C(f,e.k)&&(f.value=a),e.k&&(g[e.k]=a))};if(a){let O=()=>{D(),Po.delete(e)};O.id=-1,Po.set(e,O),dt(O,s)}else Wi(e),D()}}}function Wi(e){let t=Po.get(e);t&&(t.flags|=8,Po.delete(e))}var Ki=e=>e.nodeType===8;var u$=Mn().requestIdleCallback||(e=>setTimeout(e,1)),c$=Mn().cancelIdleCallback||(e=>clearTimeout(e));function Jd(e,t){if(Ki(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Ki(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var Xn=e=>!!e.type.__asyncLoader;function mr(e){be(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:a,suspensible:c=!0,onError:f}=e,v=null,g,k=0,m=()=>(k++,v=null,b()),b=()=>{let C;return v||(C=v=t().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),f)return new Promise((T,D)=>{f(E,()=>T(m()),()=>D(E),k+1)});throw E}).then(E=>C!==v&&v?v:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),g=E,E)))};return io({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(C,E,T){let D=C.isConnected,O=!1;(E.bu||(E.bu=[])).push(()=>O=!0);let q=()=>{O||!C.parentNode||D&&!C.isConnected||T()},F=r?()=>{let M=r(q,z=>Jd(C,z));M&&(E.bum||(E.bum=[])).push(M)}:q;g?F():b().then(()=>!E.isUnmounted&&F())},get __asyncResolved(){return g},setup(){let C=nt;if(Us(C),g)return()=>Ro(g,C);let E=M=>{v=null,so(M,C,13,!i)};if(c&&C.suspense||Dn)return b().then(M=>()=>Ro(M,C)).catch(M=>(E(M),()=>i?_e(i,{error:M}):null));let T=tt(!1),D=tt(),O=tt(!!o),q,F;return ro(()=>{q!=null&&clearTimeout(q),F!=null&&clearTimeout(F)}),o&&(F=setTimeout(()=>{C.isUnmounted||(O.value=!1)},o)),a!=null&&(q=setTimeout(()=>{if(!C.isUnmounted&&!T.value&&!D.value){let M=new Error(`Async component timed out after ${a}ms.`);E(M),D.value=M}},a)),b().then(()=>{C.isUnmounted||(T.value=!0,C.parent&&Fo(C.parent.vnode)&&C.parent.update())}).catch(M=>{if(C.isUnmounted){v=null;return}E(M),D.value=M}),()=>{if(T.value&&g)return Ro(g,C);if(D.value&&i)return _e(i,{error:D.value});if(s&&!O.value)return Ro(s,C)}}})}function Ro(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,a=_e(e,i,o);return a.ref=s,a.ce=r,delete t.vnode.ce,a}var Fo=e=>e.type.__isKeepAlive;function vr(e,t){yr(e,"a",t)}function gr(e,t){yr(e,"da",t)}function yr(e,t,s=nt){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Bo(t,i,s),s){let o=s.parent;for(;o&&o.parent;)Fo(o.parent.vnode)&&Xd(i,t,s,o),o=o.parent}}function Xd(e,t,s,i){let o=Bo(t,e,i,!0);ro(()=>{In(i[t],o)},s)}function Bo(e,t,s=nt,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...a)=>{Ot();let c=ao(s),f=wt(t,s,e,a);return c(),Pt(),f});return i?o.unshift(r):o.push(r),r}}var Wt=e=>(t,s=nt)=>{(!Dn||e==="sp")&&Bo(e,(...i)=>t(...i),s)},Zd=Wt("bm"),Mt=Wt("m"),br=Wt("bu"),wr=Wt("u"),ln=Wt("bum"),ro=Wt("um"),xd=Wt("sp"),eu=Wt("rtg"),tu=Wt("rtc");function nu(e,t=nt){Bo("ec",e,t)}var kr="components",ou="directives";function We(e,t){return Er(kr,e,!0,t)||e}var su=Symbol.for("v-ndc");function ye(e){return Er(ou,e)}function Er(e,t,s=!0,i=!1){let o=vt||nt;if(o){let r=o.type;if(e===kr){let c=Bu(r,!1);if(c&&(c===t||c===Je(t)||c===en(Je(t))))return r}let a=Yi(o[e]||r[e],t)||Yi(o.appContext[e],t);return!a&&i?r:a}}function Yi(e,t){return e&&(e[t]||e[Je(t)]||e[en(Je(t))])}function Z(e,t,s,i){let o,r=s&&s[i],a=ve(e);if(a||Be(e)){let c=a&&At(e),f=!1,v=!1;c&&(f=!lt(e),v=bt(e),e=Gn(e)),o=new Array(e.length);for(let g=0,k=e.length;gt(c,f,void 0,r&&r[f]));else{let c=Object.keys(e);o=new Array(c.length);for(let f=0,v=c.length;fe?Hr(e)?jo(e):Vs(e.parent):null;var Zn=Ge(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=>Vs(e.parent),$root:e=>Vs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>{Ls(e.update)}),$nextTick:e=>e.n||(e.n=Ye.bind(e.proxy)),$watch:e=>Kd.bind(e)});var Os=(e,t)=>e!==Pe&&!e.__isScriptSetup&&Re(e,t),iu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:a,type:c,appContext:f}=e;if(t[0]!=="$"){let m=a[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Os(i,t))return a[t]=1,i[t];if(o!==Pe&&Re(o,t))return a[t]=2,o[t];if(Re(r,t))return a[t]=3,r[t];if(s!==Pe&&Re(s,t))return a[t]=4,s[t];qs&&(a[t]=0)}}let v=Zn[t],g,k;if(v)return t==="$attrs"&&et(e.attrs,"get",""),v(e);if((g=c.__cssModules)&&(g=g[t]))return g;if(s!==Pe&&Re(s,t))return a[t]=4,s[t];if(k=f.config.globalProperties,Re(k,t))return k[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return Os(o,t)?(o[t]=s,!0):i!==Pe&&Re(i,t)?(i[t]=s,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:a}},c){let f;return!!(s[c]||e!==Pe&&c[0]!=="$"&&Re(e,c)||Os(t,c)||Re(r,c)||Re(i,c)||Re(Zn,c)||Re(o.config.globalProperties,c)||(f=a.__cssModules)&&f[c])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Re(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Qi(e){return ve(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var qs=!0;function ru(e){let t=Fs(e),s=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&Ji(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:a,watch:c,provide:f,inject:v,created:g,beforeMount:k,mounted:m,beforeUpdate:b,updated:C,activated:E,deactivated:T,beforeDestroy:D,beforeUnmount:O,destroyed:q,unmounted:F,render:M,renderTracked:z,renderTriggered:se,errorCaptured:oe,serverPrefetch:S,expose:I,inheritAttrs:H,components:K,directives:X,filters:Y}=t;if(v&&au(v,i,null),a)for(let le in a){let re=a[le];be(re)&&(i[le]=re.bind(s))}if(o){let le=o.call(s,s);Ae(le)&&(e.data=ze(le))}if(qs=!0,r)for(let le in r){let re=r[le],Se=be(re)?re.bind(s,s):be(re.get)?re.get.bind(s,s):at,$e=!be(re)&&be(re.set)?re.set.bind(s):at,Ne=ot({get:Se,set:$e});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:ke=>Ne.value=ke})}if(c)for(let le in c)Cr(c[le],i,s,le);if(f){let le=be(f)?f.call(s):f;Reflect.ownKeys(le).forEach(re=>{an(re,le[re])})}g&&Ji(g,e,"c");function ce(le,re){ve(re)?re.forEach(Se=>le(Se.bind(s))):re&&le(re.bind(s))}if(ce(Zd,k),ce(Mt,m),ce(br,b),ce(wr,C),ce(vr,E),ce(gr,T),ce(nu,oe),ce(tu,z),ce(eu,se),ce(ln,O),ce(ro,F),ce(xd,S),ve(I))if(I.length){let le=e.exposed||(e.exposed={});I.forEach(re=>{Object.defineProperty(le,re,{get:()=>s[re],set:Se=>s[re]=Se,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===at&&(e.render=M),H!=null&&(e.inheritAttrs=H),K&&(e.components=K),X&&(e.directives=X),S&&Us(e)}function au(e,t,s=at){ve(e)&&(e=Ms(e));for(let i in e){let o=e[i],r;Ae(o)?"default"in o?r=ut(o.from||i,o.default,!0):r=ut(o.from||i):r=ut(o),xe(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[i]=r}}function Ji(e,t,s){wt(ve(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Cr(e,t,s,i){let o=i.includes(".")?fr(s,i):()=>s[i];if(Be(e)){let r=t[e];be(r)&&He(o,r)}else if(be(e))He(o,e.bind(s));else if(Ae(e))if(ve(e))e.forEach(r=>Cr(r,t,s,i));else{let r=be(e.handler)?e.handler.bind(s):t[e.handler];be(r)&&He(o,r,e)}}function Fs(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,c=r.get(t),f;return c?f=c:!o.length&&!s&&!i?f=t:(f={},o.length&&o.forEach(v=>Io(f,v,a,!0)),Io(f,t,a)),Ae(t)&&r.set(t,f),f}function Io(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Io(e,r,s,!0),o&&o.forEach(a=>Io(e,a,s,!0));for(let a in t)if(!(i&&a==="expose")){let c=lu[a]||s&&s[a];e[a]=c?c(e[a],t[a]):t[a]}return e}var lu={data:Xi,props:Zi,emits:Zi,methods:Qn,computed:Qn,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Qn,directives:Qn,watch:uu,provide:Xi,inject:du};function Xi(e,t){return t?e?function(){return Ge(be(e)?e.call(this,this):e,be(t)?t.call(this,this):t)}:t:e}function du(e,t){return Qn(Ms(e),Ms(t))}function Ms(e){if(ve(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${St(t)}Modifiers`];function hu(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||Pe,o=s,r=t.startsWith("update:"),a=r&&fu(i,t.slice(7));a&&(a.trim&&(o=s.map(g=>Be(g)?g.trim():g)),a.number&&(o=o.map(wn)));let c,f=i[c=qn(t)]||i[c=qn(Je(t))];!f&&r&&(f=i[c=qn(St(t))]),f&&wt(f,e,6,o);let v=i[c+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,wt(v,e,6,o)}}var mu=new WeakMap;function Sr(e,t,s=!1){let i=s?mu:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,a={},c=!1;if(!be(e)){let f=v=>{let g=Sr(v,t,!0);g&&(c=!0,Ge(a,g))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!c?(Ae(e)&&i.set(e,null),null):(ve(r)?r.forEach(f=>a[f]=null):Ge(a,r),Ae(e)&&i.set(e,a),a)}function zo(e,t){return!e||!vn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,St(t))||Re(e,t))}function Ps(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:a,attrs:c,emit:f,render:v,renderCache:g,props:k,data:m,setupState:b,ctx:C,inheritAttrs:E}=e,T=Oo(e),D,O;try{if(s.shapeFlag&4){let M=o||i,z=M;D=qt(v.call(z,M,g,k,b,m,C)),O=c}else{let M=t;D=qt(M.length>1?M(k,{attrs:c,slots:a,emit:f}):M(k,null)),O=t.props?c:vu(c)}}catch(M){rn.length=0,so(M,e,1),D=_e(Gt)}let q=D,F;if(O&&E!==!1){let M=Object.keys(O),{shapeFlag:z}=q;M.length&&z&7&&(r&&M.some(gn)&&(O=gu(O,r)),q=Nn(q,O,!1,!0))}if(s.dirs&&(q=Nn(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition){let M=Lo(q.type)&&hr(q)||q;Uo(M,s.transition)}return D=q,Oo(T),D}var vu=e=>{let t;for(let s in e)(s==="class"||s==="style"||vn(s))&&((t||(t={}))[s]=e[s]);return t},gu=(e,t)=>{let s={};for(let i in e)(!gn(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function yu(e,t,s){let{props:i,children:o,component:r}=e,{props:a,children:c,patchFlag:f}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return i?xi(i,a,v):!!a;if(f&8){let g=t.dynamicProps;for(let k=0;kObject.create(Dr),Tr=e=>Object.getPrototypeOf(e)===Dr;function wu(e,t,s,i=!1){let o={},r=Rr();e.propsDefaults=Object.create(null),Ar(e,t,o,r);for(let a in e.propsOptions[0])a in o||(o[a]=void 0);s?e.props=i?o:Wn(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ku(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:a}}=e,c=Te(o),[f]=e.propsOptions,v=!1;if((i||a>0)&&!(a&16)){if(a&8){let g=e.vnode.dynamicProps;for(let k=0;k{f=!0;let[m,b]=Or(k,t,!0);Ge(a,m),b&&c.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!r&&!f)return Ae(e)&&i.set(e,Xt),Xt;if(ve(r))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",zs=e=>ve(e)?e.map(qt):[qt(e)],Cu=(e,t,s)=>{if(t._n)return t;let i=jd((...o)=>zs(t(...o)),s);return i._c=!1,i},Pr=(e,t,s)=>{let i=e._ctx;for(let o in e){if(Bs(o))continue;let r=e[o];if(be(r))t[o]=Cu(o,r,i);else if(r!=null){let a=zs(r);t[o]=()=>a}}},Ir=(e,t)=>{let s=zs(t);e.slots.default=()=>s},Vr=(e,t,s)=>{for(let i in t)(s||!Bs(i))&&(e[i]=t[i])},_u=(e,t,s)=>{let i=e.slots=Rr();if(e.vnode.shapeFlag&32){let o=t._;o?(Vr(i,t,s),s&&go(i,"_",o,!0)):Pr(t,i)}else t&&Ir(e,t)},Su=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,a=Pe;if(i.shapeFlag&32){let c=t._;c?s&&c===1?r=!1:Vr(o,t,s):(r=!t.$stable,Pr(t,o)),a=t}else t&&(Ir(e,t),a={default:1});if(r)for(let c in o)!Bs(c)&&a[c]==null&&delete o[c]};function Nu(){let e=[]}var dt=Au;function qr(e){return Du(e)}function Du(e,t){Nu();let s=Mn();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:a,createText:c,createComment:f,setText:v,setElementText:g,parentNode:k,nextSibling:m,setScopeId:b=at,insertStaticContent:C}=e,E=(h,w,R,P=null,L=null,V=null,B=void 0,Q=null,J=!!w.dynamicChildren)=>{if(h===w)return;h&&!Yn(h,w)&&(P=ne(h),Ee(h,L,V,!0),h=null),w.patchFlag===-2&&(J=!1,w.dynamicChildren=null),w.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(w.dynamicChildren===Xt&&(w.dynamicChildren=[]),w.dynamicChildren.hasOnce=!0);let{type:j,ref:de,shapeFlag:te}=w;switch(j){case Ho:T(h,w,R,P);break;case Gt:D(h,w,R,P);break;case xn:h==null&&O(w,R,P,B);break;case W:X(h,w,R,P,L,V,B,Q,J);break;default:te&1?z(h,w,R,P,L,V,B,Q,J):te&6?Y(h,w,R,P,L,V,B,Q,J):(te&64||te&128)&&j.process(h,w,R,P,L,V,B,Q,J,ge)}de!=null&&L?Jn(de,h&&h.ref,V,w||h,!w):de==null&&h&&h.ref!=null&&Jn(h.ref,null,V,h,!0)},T=(h,w,R,P)=>{if(h==null)i(w.el=c(w.children),R,P);else{let L=w.el=h.el;w.children!==h.children&&v(L,w.children)}},D=(h,w,R,P)=>{h==null?i(w.el=f(w.children||""),R,P):w.el=h.el},O=(h,w,R,P)=>{[h.el,h.anchor]=C(h.children,w,R,P,h.el,h.anchor)},q=(h,w,R,P)=>{if(w.children!==h.children){let L=m(h.anchor);M(h),[w.el,w.anchor]=C(w.children,R,L,P)}else w.el=h.el,w.anchor=h.anchor},F=({el:h,anchor:w},R,P)=>{let L;for(;h&&h!==w;)L=m(h),i(h,R,P),h=L;i(w,R,P)},M=({el:h,anchor:w})=>{let R;for(;h&&h!==w;)R=m(h),o(h),h=R;o(w)},z=(h,w,R,P,L,V,B,Q,J)=>{if(w.type==="svg"?B="svg":w.type==="math"&&(B="mathml"),h==null)se(w,R,P,L,V,B,Q,J);else{let j=h.el&&h.el._isVueCE?h.el:null;try{j&&j._beginPatch(),I(h,w,L,V,B,Q,J)}finally{j&&j._endPatch()}}},se=(h,w,R,P,L,V,B,Q)=>{let J,j,{props:de,shapeFlag:te,transition:ae,dirs:me}=h;if(J=h.el=a(h.type,V,de&&de.is,de),te&8?g(J,h.children):te&16&&S(h.children,J,null,P,L,Is(h,V),B,Q),me&&on(h,null,P,"created"),oe(J,h,h.scopeId,B,P),de){for(let Me in de)Me!=="value"&&!yn(Me)&&r(J,Me,null,de[Me],V,P);"value"in de&&r(J,"value",null,de.value,V),(j=de.onVnodeBeforeMount)&&It(j,P,h)}me&&on(h,null,P,"beforeMount");let De=Ru(L,ae);De&&ae.beforeEnter(J),i(J,w,R),((j=de&&de.onVnodeMounted)||De||me)&&dt(()=>{let Ie;j&&It(j,P,h),De&&ae.enter(J),me&&on(h,null,P,"mounted")},L)},oe=(h,w,R,P,L)=>{if(R&&b(h,R),P)for(let V=0;V{for(let j=J;j{let Q=w.el=h.el,{patchFlag:J,dynamicChildren:j,dirs:de}=w;J|=h.patchFlag&16;let te=h.props||Pe,ae=w.props||Pe,me;if(R&&sn(R,!1),(me=ae.onVnodeBeforeUpdate)&&It(me,R,w,h),de&&on(w,h,R,"beforeUpdate"),R&&sn(R,!0),j&&(!h.dynamicChildren||h.dynamicChildren.length!==j.length)&&(J=0,B=!1,j=null),(te.innerHTML&&ae.innerHTML==null||te.textContent&&ae.textContent==null)&&g(Q,""),j?H(h.dynamicChildren,j,Q,R,P,Is(w,L),V):B||Se(h,w,Q,null,R,P,Is(w,L),V,!1),J>0){if(J&16)K(Q,te,ae,R,L);else if(J&2&&te.class!==ae.class&&r(Q,"class",null,ae.class,L),J&4&&r(Q,"style",te.style,ae.style,L),J&8){let De=w.dynamicProps;for(let Me=0;Me{me&&It(me,R,w,h),de&&on(w,h,R,"updated")},P)},H=(h,w,R,P,L,V,B)=>{for(let Q=0;Q{if(w!==R){if(w!==Pe)for(let V in w)!yn(V)&&!(V in R)&&r(h,V,w[V],null,L,P);for(let V in R){if(yn(V))continue;let B=R[V],Q=w[V];B!==Q&&V!=="value"&&r(h,V,Q,B,L,P)}"value"in R&&r(h,"value",w.value,R.value,L)}},X=(h,w,R,P,L,V,B,Q,J)=>{let j=w.el=h?h.el:c(""),de=w.anchor=h?h.anchor:c(""),{patchFlag:te,dynamicChildren:ae,slotScopeIds:me}=w;me&&(Q=Q?Q.concat(me):me),h==null?(i(j,R,P),i(de,R,P),S(w.children||[],R,de,L,V,B,Q,J)):te>0&&te&64&&ae&&h.dynamicChildren&&h.dynamicChildren.length===ae.length?(H(h.dynamicChildren,ae,R,L,V,B,Q),(w.key!=null||L&&w===L.subTree)&&Mr(h,w,!0)):Se(h,w,R,de,L,V,B,Q,J)},Y=(h,w,R,P,L,V,B,Q,J)=>{w.slotScopeIds=Q,h==null?w.shapeFlag&512?L.ctx.activate(w,R,P,B,J):ee(w,R,P,L,V,B,J):ce(h,w,J)},ee=(h,w,R,P,L,V,B)=>{let Q=h.component=Mu(h,P,L);if(Fo(h)&&(Q.ctx.renderer=ge),$u(Q,!1,B),Q.asyncDep){if(L&&L.registerDep(Q,le,B),!h.el){let J=Q.subTree=_e(Gt);D(null,J,w,R),h.placeholder=J.el}}else le(Q,h,w,R,L,V,B)},ce=(h,w,R)=>{let P=w.component=h.component;if(yu(h,w,R))if(P.asyncDep&&!P.asyncResolved){w.el=h.el,re(P,w,R);return}else P.next=w,P.update();else w.el=h.el,P.vnode=w},le=(h,w,R,P,L,V,B)=>{let Q=()=>{if(h.isMounted){let{next:te,bu:ae,u:me,parent:De,vnode:Me}=h;{let pt=$r(h);if(pt){te&&(te.el=Me.el,re(h,te,B)),pt.asyncDep.then(()=>{dt(()=>{h.isUnmounted||j()},L)});return}}let Ie=te,Ke;sn(h,!1),te?(te.el=Me.el,re(h,te,B)):te=Me,ae&&bn(ae),(Ke=te.props&&te.props.onVnodeBeforeUpdate)&&It(Ke,De,te,Me),sn(h,!0);let Qe=Ps(h),Et=h.subTree;h.subTree=Qe,E(Et,Qe,k(Et.el),ne(Et),h,L,V),te.el=Qe.el,Ie===null&&bu(h,Qe.el),me&&dt(me,L),(Ke=te.props&&te.props.onVnodeUpdated)&&dt(()=>It(Ke,De,te,Me),L)}else{let te,{el:ae,props:me}=w,{bm:De,m:Me,parent:Ie,root:Ke,type:Qe}=h,Et=Xn(w);if(sn(h,!1),De&&bn(De),!Et&&(te=me&&me.onVnodeBeforeMount)&&It(te,Ie,w),sn(h,!0),ae&&_){let pt=()=>{h.subTree=Ps(h),_(ae,h.subTree,h,L,null)};Et&&Qe.__asyncHydrate?Qe.__asyncHydrate(ae,h,pt):pt()}else{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Qe,h.parent?h.parent.type:void 0);let pt=h.subTree=Ps(h);E(null,pt,R,P,h,L,V),w.el=pt.el}if(Me&&dt(Me,L),!Et&&(te=me&&me.onVnodeMounted)){let pt=w;dt(()=>It(te,Ie,pt),L)}(w.shapeFlag&256||Ie&&Xn(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&h.a&&dt(h.a,L),h.isMounted=!0,w=R=P=null}};h.scope.on();let J=h.effect=new En(Q);h.scope.off();let j=h.update=J.run.bind(J),de=h.job=J.runIfDirty.bind(J);de.i=h,de.id=h.uid,J.scheduler=()=>Ls(de),sn(h,!0),j()},re=(h,w,R)=>{w.component=h;let P=h.vnode.props;h.vnode=w,h.next=null,ku(h,w.props,P,R),Su(h,w.children,R),Ot(),ji(h),Pt()},Se=(h,w,R,P,L,V,B,Q,J=!1)=>{let j=h&&h.children,de=h?h.shapeFlag:0,te=w.children,{patchFlag:ae,shapeFlag:me}=w;if(ae>0){if(ae&128){Ne(j,te,R,P,L,V,B,Q,J);return}else if(ae&256){$e(j,te,R,P,L,V,B,Q,J);return}}me&8?(de&16&&U(j,L,V),te!==j&&g(R,te)):de&16?me&16?Ne(j,te,R,P,L,V,B,Q,J):U(j,L,V,!0):(de&8&&g(R,""),me&16&&S(te,R,P,L,V,B,Q,J))},$e=(h,w,R,P,L,V,B,Q,J)=>{h=h||Xt,w=w||Xt;let j=h.length,de=w.length,te=Math.min(j,de),ae;for(ae=0;aede?U(h,L,V,!0,!1,te):S(w,R,P,L,V,B,Q,J,te)},Ne=(h,w,R,P,L,V,B,Q,J)=>{let j=0,de=w.length,te=h.length-1,ae=de-1;for(;j<=te&&j<=ae;){let me=h[j],De=w[j]=J?jt(w[j]):qt(w[j]);if(Yn(me,De))E(me,De,R,null,L,V,B,Q,J);else break;j++}for(;j<=te&&j<=ae;){let me=h[te],De=w[ae]=J?jt(w[ae]):qt(w[ae]);if(Yn(me,De))E(me,De,R,null,L,V,B,Q,J);else break;te--,ae--}if(j>te){if(j<=ae){let me=ae+1,De=meae)for(;j<=te;)Ee(h[j],L,V,!0),j++;else{let me=j,De=j,Me=new Map;for(j=De;j<=ae;j++){let ft=w[j]=J?jt(w[j]):qt(w[j]);ft.key!=null&&Me.set(ft.key,j)}let Ie,Ke=0,Qe=ae-De+1,Et=!1,pt=0,Pn=new Array(Qe);for(j=0;j=Qe){Ee(ft,L,V,!0);continue}let _t;if(ft.key!=null)_t=Me.get(ft.key);else for(Ie=De;Ie<=ae;Ie++)if(Pn[Ie-De]===0&&Yn(ft,w[Ie])){_t=Ie;break}_t===void 0?Ee(ft,L,V,!0):(Pn[_t-De]=j+1,_t>=pt?pt=_t:Et=!0,E(ft,w[_t],R,null,L,V,B,Q,J),Ke++)}let pi=Et?Tu(Pn):Xt;for(Ie=pi.length-1,j=Qe-1;j>=0;j--){let ft=De+j,_t=w[ft],fi=w[ft+1],hi=ft+1{let{el:V,type:B,transition:Q,children:J,shapeFlag:j}=h;if(j&6){ke(h.component.subTree,w,R,P);return}if(j&128){h.suspense.move(w,R,P);return}if(j&64){B.move(h,w,R,ge);return}if(B===W){i(V,w,R);for(let te=0;teQ.enter(V),L));else{let{leave:te,delayLeave:ae,afterLeave:me}=Q,De=()=>{h.ctx.isUnmounted?o(V):i(V,w,R)},Me=()=>{let Ie=V._isLeaving||!!V[As];V._isLeaving&&V[As](!0),Q.persisted&&!Ie?De():te(V,()=>{De(),me&&me()})};ae?ae(V,De,Me):Me()}else i(V,w,R)},Ee=(h,w,R,P=!1,L=!1)=>{let{type:V,props:B,ref:Q,children:J,dynamicChildren:j,shapeFlag:de,patchFlag:te,dirs:ae,cacheIndex:me,memo:De}=h;if((te===-2||j&&j.hasOnce)&&(L=!1),Q!=null&&(Ot(),Jn(Q,null,R,h,!0),Pt()),me!=null&&(!h.ctx||h.ctx===w)&&(w.renderCache[me]=void 0),de&256){w.ctx.deactivate(h);return}let Me=de&1&&ae,Ie=!Xn(h),Ke;if(Ie&&(Ke=B&&B.onVnodeBeforeUnmount)&&It(Ke,w,h),de&6)Ue(h.component,R,P);else{if(de&128){h.suspense.unmount(R,P);return}Me&&on(h,null,w,"beforeUnmount"),de&64?h.type.remove(h,w,R,ge,P):j&&!j.hasOnce&&(V!==W||te>0&&te&64)?U(j,w,R,!1,!0):(V===W&&te&384||!L&&de&16)&&U(J,w,R),P&&Le(h)}let Qe=De!=null&&me==null;(Ie&&(Ke=B&&B.onVnodeUnmounted)||Me||Qe)&&dt(()=>{Ke&&It(Ke,w,h),Me&&on(h,null,w,"unmounted"),Qe&&(h.el=null)},R)},Le=h=>{let{type:w,el:R,anchor:P,transition:L}=h;if(w===W){qe(R,P);return}if(w===xn){M(h),L&&!L.persisted&&L.afterLeave&&L.afterLeave();return}let V=()=>{o(R),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(h.shapeFlag&1&&L&&!L.persisted){let{leave:B,delayLeave:Q}=L,J=()=>B(R,V);Q?Q(h.el,V,J):J()}else V()},qe=(h,w)=>{let R;for(;h!==w;)R=m(h),o(h),h=R;o(w)},Ue=(h,w,R)=>{let{bum:P,scope:L,job:V,subTree:B,um:Q,m:J,a:j}=h;tr(J),tr(j),P&&bn(P),L.stop(),V?(V.flags|=8,Ee(B,h,w,R)):h.vnode.el&&B&&(B.transition=h.vnode.transition,Ee(B,h,w,R)),Q&&dt(Q,w),dt(()=>{h.isUnmounted=!0},w)},U=(h,w,R,P=!1,L=!1,V=0)=>{for(let B=V;B{if(h.shapeFlag&6)return ne(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();let w=m(h.anchor||h.el),R=w&&w[Yd];return R?m(R):w},x=!1,ie=(h,w,R)=>{let P;h==null?w._vnode&&(Ee(w._vnode,null,null,!0),P=w._vnode.component):E(w._vnode||null,h,w,null,null,null,R),w._vnode=h,x||(x=!0,ji(P),dr(),x=!1)},ge={p:E,um:Ee,m:ke,r:Le,mt:ee,mc:S,pc:Se,pbc:H,n:ne,o:e},Ce,_;return t&&([Ce,_]=t(ge)),{render:ie,hydrate:Ce,createApp:pu(ie,Ce)}}function Is({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 sn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ru(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Mr(e,t,s=!1){let i=e.children,o=t.children;if(ve(i)&&ve(o))for(let r=0;r>1,e[s[c]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,a=s[r-1];r-- >0;)s[r]=a,a=t[a];return s}function $r(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$r(t)}function tr(e){if(e)for(let t=0;te.__isSuspense;function Au(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):lr(e)}var W=Symbol.for("v-fgt"),Ho=Symbol.for("v-txt"),Gt=Symbol.for("v-cmt"),xn=Symbol.for("v-stc"),rn=[],gt=null;function l(e=!1){rn.push(gt=e?null:[])}function Fr(){rn.pop(),gt=rn[rn.length-1]||null}var to=1;function Vo(e,t=!1){to+=e,e<0&>&&t&&(gt.hasOnce=!0)}function Br(e){return e.dynamicChildren=to>0?gt||Xt:null,Fr(),to>0&>&>.push(e),e}function d(e,t,s,i,o,r){return Br(n(e,t,s,i,o,r,!0))}function $t(e,t,s,i,o){return Br(_e(e,t,s,i,o,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function Yn(e,t){return e.type===t.type&&e.key===t.key}var zr=({key:e})=>e??null,To=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||xe(e)||be(e)?{i:vt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===W?0:1,a=!1,c=!1){let f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zr(t),ref:t&&To(t),scopeId:cr,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:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:vt};return c?(Mo(f,s),r&128&&e.normalize(f)):s&&(f.shapeFlag|=Be(s)?8:16),to>0&&!a&>&&(f.patchFlag>0||r&6)&&f.patchFlag!==32&>.push(f),f}var _e=Ou;function Ou(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===su)&&(e=Gt),qo(e)){let c=Nn(e,t,!0);return s&&Mo(c,s),to>0&&!r&>&&(c.shapeFlag&6?gt[gt.indexOf(e)]=c:gt.push(c)),c.patchFlag=-2,c}if(zu(e)&&(e=e.__vccOpts),t){t=Pu(t);let{class:c,style:f}=t;c&&!Be(c)&&(t.class=A(c)),Ae(f)&&(Kn(f)&&!ve(f)&&(f=Ge({},f)),t.style=Ve(f))}let a=Be(e)?1:Ur(e)?128:Lo(e)?64:Ae(e)?4:be(e)?2:0;return n(e,t,s,i,o,a,r,!0)}function Pu(e){return e?Kn(e)||Tr(e)?Ge({},e):e:null}function Nn(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:a,children:c,transition:f}=e,v=t?Iu(o||{},t):o,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&zr(v),ref:t&&t.ref?s&&r?ve(r)?r.concat(To(t)):[r,To(t)]:To(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==W?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return f&&i&&Uo(g,f.clone(g)),g}function y(e=" ",t=0){return _e(Ho,null,e,t)}function pe(e,t){let s=_e(xn,null,e);return s.staticCount=t,s}function p(e="",t=!1){return t?(l(),$t(Gt,null,e)):_e(Gt,null,e)}function qt(e){return e==null||typeof e=="boolean"?_e(Gt):ve(e)?_e(W,null,e.slice()):qo(e)?jt(e):_e(Ho,null,String(e))}function jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function Mo(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 o=t.default;o&&(o._c&&(o._d=!1),Mo(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!Tr(t)?t._ctx=vt:o===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(be(t)){if(i&65){Mo(e,{default:t});return}t={default:t,_ctx:vt},s=32}else t=String(t),i&64?(s=16,t=[y(t)]):s=8;e.children=t,e.shapeFlag|=s}function Iu(...e){let t={};for(let s=0;snt||vt,$o,no;{let e=Mn(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(a=>a(r)):o[0](r)}};$o=t("__VUE_INSTANCE_SETTERS__",s=>nt=s),no=t("__VUE_SSR_SETTERS__",s=>Dn=s)}var ao=e=>{let t=nt;return $o(e),e.scope.on(),()=>{e.scope.off(),$o(t)}},nr=()=>{nt&&nt.scope.off(),$o(null)};function Hr(e){return e.vnode.shapeFlag&4}var Dn=!1;function $u(e,t=!1,s=!1){t&&no(t);let{props:i,children:o}=e.vnode,r=Hr(e);wu(e,i,r,t),_u(e,o,s||t);let a=r?Lu(e,t):void 0;return t&&no(!1),a}function Lu(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,iu);let{setup:i}=s;if(i){Ot();let o=e.setupContext=i.length>1?Fu(e):null,r=ao(e),a=oo(i,e,0,[e.props,o]),c=cs(a);if(Pt(),r(),(c||e.sp)&&!Xn(e)&&Us(e),c){if(a.then(nr,nr),t)return a.then(f=>{no(!0);try{or(e,f,t)}finally{no(!1)}}).catch(f=>{so(f,e,0)});e.asyncDep=a}else or(e,a,t)}else jr(e,t)}function or(e,t,s){be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ae(t)&&(e.setupState=Do(t)),jr(e,s)}var sr,ir;function jr(e,t,s){let i=e.type;if(!e.render){if(!t&&sr&&!i.render){let o=i.template||Fs(e).template;if(o){let{isCustomElement:r,compilerOptions:a}=e.appContext.config,{delimiters:c,compilerOptions:f}=i,v=Ge(Ge({isCustomElement:r,delimiters:c},a),f);i.render=sr(o,v)}}e.render=i.render||at,ir&&ir(e)}{let o=ao(e);Ot();try{ru(e)}finally{Pt(),o()}}}var Uu={get(e,t){return et(e,"get",""),e[t]}};function Fu(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Uu),slots:e.slots,emit:e.emit,expose:t}}function jo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Do(Ts(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zn)return Zn[s](e)},has(t,s){return s in t||s in Zn}})):e.proxy}function Bu(e,t=!0){return be(e)?e.displayName||e.name:e.name||t&&e.__name}function zu(e){return be(e)&&"__vccOpts"in e}var ot=(e,t)=>Bi(e,t,Dn);function we(e,t,s){try{Vo(-1);let i=arguments.length;return i===2?Ae(t)&&!ve(t)?qo(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&qo(s)&&(s=[s]),_e(e,t,s))}finally{Vo(1)}}var Hu="3.5.43";var Ks,Gr=typeof window<"u"&&window.trustedTypes;if(Gr)try{Ks=Gr.createPolicy("vue",{createHTML:e=>e})}catch{}var na=Ks?e=>Ks.createHTML(e):e=>e,ju="http://www.w3.org/2000/svg",Gu="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,Wr=Kt&&Kt.createElement("template"),Wu={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 o=t==="svg"?Kt.createElementNS(ju,e):t==="mathml"?Kt.createElementNS(Gu,e):s?Kt.createElement(e,{is:s}):Kt.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let a=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Wr.innerHTML=na(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let c=Wr.content;if(i==="svg"||i==="mathml"){let f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Ku=Symbol("_vtc");function Yu(e,t,s){let i=e[Ku];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var Ko=Symbol("_vod"),oa=Symbol("_vsh"),G={name:"show",beforeMount(e,{value:t},{transition:s}){e[Ko]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):lo(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),lo(e,!0),i.enter(e)):i.leave(e,()=>{lo(e,!1)}):lo(e,t))},beforeUnmount(e,{value:t}){lo(e,t)}};function lo(e,t){e.style.display=t?e[Ko]:"none",e[oa]=!t}var Qu=Symbol("");var Ju=/(?:^|;)\s*display\s*:/;function Xu(e,t,s){let i=e.style,o=Be(s),r=!1;if(s&&!o){if(t)if(Be(t))for(let a of t.split(";")){let c=a.slice(0,a.indexOf(":")).trim();s[c]==null&&uo(i,c,"")}else for(let a in t)s[a]==null&&uo(i,a,"");for(let a in s){a==="display"&&(r=!0);let c=s[a];c!=null?xu(e,a,!Be(t)&&t?t[a]:void 0,c)||uo(i,a,c):uo(i,a,"")}}else if(o){if(t!==s){let a=i[Qu];a&&(s+=";"+a),i.cssText=s,r=Ju.test(s)}}else t&&e.removeAttribute("style");Ko in e&&(e[Ko]=r?i.display:"",e[oa]&&(i.display="none"))}var Go=/\s*!important$/;function uo(e,t,s){if(ve(s))s.forEach(i=>uo(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Go.test(s)?e.setProperty(t,s.replace(Go,""),"important"):e.setProperty(t,s);else{let i=Zu(e,t);Go.test(s)?e.setProperty(St(i),s.replace(Go,""),"important"):e[i]=s}}var Kr=["Webkit","Moz","ms"],js={};function Zu(e,t){let s=js[t];if(s)return s;let i=Je(t);if(i!=="filter"&&i in e)return js[t]=i;i=en(i);for(let o=0;oGs||(ic.then(()=>Gs=0),Gs=Date.now());function ac(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(ve(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let a=o.slice(),c=[i];for(let f=0;fe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lc=(e,t,s,i,o,r)=>{let a=o==="svg";t==="class"?Yu(e,i,a):t==="style"?Xu(e,s,i):vn(t)?gn(t)||tc(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dc(e,t,i,a))?(Jr(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qr(e,t,i,a,r,t!=="value")):e._isVueCE&&(uc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(i)))?Jr(e,Je(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Qr(e,t,i,a))};function dc(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zr(t)&&be(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Zr(t)&&Be(s)?!1:t in e}function uc(e,t){let s=e._def.props;if(!s)return!1;let i=Je(t);return Array.isArray(s)?s.some(o=>Je(o)===i):Object.keys(s).some(o=>Je(o)===i)}var Yo=e=>{let t=e.props["onUpdate:modelValue"]||!1;return ve(t)?s=>bn(t,s):t};function cc(e){e.target.composing=!0}function xr(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var un=Symbol("_assign"),Wo=Symbol("_initialValue");function Ws(e,t,s){return t&&(e=e.trim()),s&&(e=wn(e)),e}var co={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Wo]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Wo]=e.defaultValue.replace(/\r\n?/g,` -`))),e[un]=Yo(o);let r=i||o.props&&o.props.type==="number";dn(e,t?"change":"input",a=>{a.target.composing||e[un](Ws(e.value,s,r))}),(s||r)&&dn(e,"change",()=>{e.value=Ws(e.value,s,r)}),t||(dn(e,"compositionstart",cc),dn(e,"compositionend",xr),dn(e,"change",xr))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Wo];delete e[Wo],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[un](Ws(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},a){if(e[un]=Yo(a),e.composing)return;let c=(r||e.type==="number")&&!/^0\d/.test(e.value)?wn(e.value):e.value,f=t??"";if(c===f)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===f)||(e.value=f)}};var Jo={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,dn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,f=>f.selected).map(f=>s?wn(Qo(f)):Qo(f)),r=e.multiple,a=r?Ft(e._modelValue)?new Set(o):o:o[0],c=e._pendingValue=[r,r?ve(a)?o.slice():o:a];try{e[un](a)}finally{Ye(()=>{e._pendingValue===c&&(e._pendingValue=void 0)})}}),e[un]=Yo(i)},mounted(e,{value:t}){ea(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[un]=Yo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!pc(t,s[1],s[0]))&&ea(e,t)}};function pc(e,t,s){if(!s)return Nt(e,t);if(ve(e))return Nt(e,t);if(Ft(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function ea(e,t){let s=e.multiple,i=ve(t);if(!(s&&!i&&!Ft(t))){for(let o=0,r=e.options.length;oString(v)===String(c)):a.selected=Ci(t,c)>-1}else a.selected=t.has(c);else if(Nt(Qo(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qo(e){return"_value"in e?e._value:e.value}var fc=["ctrl","shift","alt","meta"],hc={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)=>fc.some(s=>e[`${s}Key`]&&!t.includes(s))},ue=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let a=0;a{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=St(o.key);if(t.some(a=>a===r||mc[a]===r))return e(o)}))},vc=Ge({patchProp:lc},Wu),ta;function gc(){return ta||(ta=qr(vc))}var sa=((...e)=>{let t=gc().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=bc(i);if(!o)return;let r=t._component;!be(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let a=s(o,!1,yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bc(e){return Be(e)?document.querySelector(e):e}var fn=typeof document<"u";function ra(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ra(e.default)}var Oe=Object.assign;function Xo(e,t){let s={};for(let i in t){let o=t[i];s[i]=kt(o)?o.map(e):e(o)}return s}var An=()=>{},kt=Array.isArray;function Js(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var aa=/#/g,kc=/&/g,Ec=/\//g,Cc=/=/g,_c=/\?/g,la=/\+/g,Sc=/%5B/g,Nc=/%5D/g,da=/%5E/g,Dc=/%60/g,ua=/%7B/g,Rc=/%7C/g,ca=/%7D/g,Tc=/%20/g;function Xs(e){return e==null?"":encodeURI(""+e).replace(Rc,"|").replace(Sc,"[").replace(Nc,"]")}function pa(e){return Xs(e).replace(ua,"{").replace(ca,"}").replace(da,"^")}function Ys(e){return Xs(e).replace(la,"%2B").replace(Tc,"+").replace(aa,"%23").replace(kc,"%26").replace(Dc,"`").replace(ua,"{").replace(ca,"}").replace(da,"^")}function Ac(e){return Ys(e).replace(Cc,"%3D")}function Oc(e){return Xs(e).replace(aa,"%23").replace(_c,"%3F")}function fa(e){return Oc(e).replace(Ec,"%2F")}function Tn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Pc=/\/$/,Ic=e=>e.replace(Pc,"");function Zo(e,t,s="/"){let i,o={},r="",a="",c=t.indexOf("#"),f=t.indexOf("?");return f=c>=0&&f>c?-1:f,f>=0&&(i=t.slice(0,f),r=t.slice(f,c>0?c:t.length),o=e(r.slice(1))),c>=0&&(i=i||t.slice(0,c),a=t.slice(c,t.length)),i=qc(i??t,s),{fullPath:i+r+a,path:i,query:o,hash:Tn(a)}}function ha(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Zs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ma(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&cn(t.matched[i],s.matched[o])&&xs(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function cn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Vc(e[s],t[s]))return!1;return!0}function Vc(e,t){return kt(e)?ia(e,t):kt(t)?ia(t,e):e?.valueOf()===t?.valueOf()}function ia(e,t){return kt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function qc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,a,c;for(a=0;a1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(a).join("/")}var Qt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xo=(function(e){return e.pop="pop",e.push="push",e})({}),es=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function va(e){if(!e)if(fn){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ic(e)}var Mc=/^[^#]+#/;function ga(e,t){return e.replace(Mc,"#")+t}function $c(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 po=()=>({left:window.scrollX,top:window.scrollY});function ya(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=$c(o,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 ei(e,t){return(history.state?history.state.position-t:-1)+e}var Qs=new Map;function ba(e,t){Qs.set(e,t)}function wa(e){let t=Qs.get(e);return Qs.delete(e),t}function Lc(e){return typeof e=="string"||e&&typeof e=="object"}function ti(e){return typeof e=="string"||typeof e=="symbol"}var je=(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})({}),ka=Symbol("");var z$={[je.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for +"use strict";(()=>{var ad=Object.defineProperty;var ld=(e,t)=>{for(var s in t)ad(e,s,{get:t[s],enumerable:!0})};var fe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var he={notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",markdown:"/script/markdown.44f2e93820.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};var fo=new Map,cd=he;function xt(e){if(!fo.has(e)){let t=document.createElement("script");t.src=cd[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{fo.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});fo.set(e,s),document.head.appendChild(t)}return fo.get(e)}async function mi(){await xt("editor"),ace.config.set("basePath","/script/external/ace/")}function mn(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var qe={},Xt=[],at=()=>{},us=()=>!1,vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),Ge=Object.assign,In=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},pd=Object.prototype.hasOwnProperty,De=(e,t)=>pd.call(e,t),ge=Array.isArray,Ut=e=>Vn(e)==="[object Map]",Ft=e=>Vn(e)==="[object Set]",vi=e=>Vn(e)==="[object Date]";var be=e=>typeof e=="function",Be=e=>typeof e=="string",ht=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",cs=e=>(Te(e)||be(e))&&be(e.then)&&be(e.catch),wi=Object.prototype.toString,Vn=e=>wi.call(e),ps=e=>Vn(e).slice(8,-1),ho=e=>Vn(e)==="[object Object]",mo=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var vo=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},fd=/-\w/g,Je=vo(e=>e.replace(fd,t=>t.slice(1).toUpperCase())),hd=/\B([A-Z])/g,St=vo(e=>e.replace(hd,"-$1").toLowerCase()),en=vo(e=>e.charAt(0).toUpperCase()+e.slice(1)),qn=vo(e=>e?`on${en(e)}`:""),yt=(e,t)=>!Object.is(e,t),bn=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},wn=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var gi,Mn=()=>gi||(gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $e(e){if(ge(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(md).forEach(s=>{if(s){let i=s.split(vd);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function A(e){let t="";if(Be(e))t=e;else if(ge(e))for(let s=0;sNt(s,t))}var _i=e=>!!(e&&e.__v_isRef===!0),u=e=>Be(e)?e:e==null?"":ge(e)||Te(e)&&(e.toString===wi||!be(e.toString))?_i(e)?u(e.value):JSON.stringify(e,Si,2):String(e),Si=(e,t)=>_i(t)?Si(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[ds(i,r)+" =>"]=o,s),{})}:Ft(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ds(s))}:ht(t)?ds(t):Te(t)&&!ge(t)&&!ho(t)?String(t):t,ds=(e,t="")=>{var s;return ht(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function Ed(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Xe,Fn=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&&Xe&&(Xe.active?(this.parent=Xe,this.index=(Xe.scopes||(Xe.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(Xe===this)Xe=this.prevScope;else{let t=Xe;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(Un){let t=Un;for(Un=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ln;){let t=Ln;for(Ln=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 Oi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Pi(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),Ns(i),Cd(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ii(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ii(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bn)||(e.globalVersion=Bn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,s=Ue,i=Ct;Ue=e,Ct=!0;try{Oi(e);let o=e.fn(e._value);(t.version===0||yt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ue=s,Ct=i,Pi(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Ns(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Cd(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var Ct=!0,Vi=[];function Ot(){Vi.push(Ct),Ct=!1}function Pt(){let e=Vi.pop();Ct=e===void 0?!0:e}function Ni(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=Ue;Ue=void 0;try{t()}finally{Ue=s}}}var Bn=0,gs=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}},zn=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(!Ue||!Ct||Ue===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ue)s=this.activeLink=new gs(Ue,this),Ue.deps?(s.prevDep=Ue.depsTail,Ue.depsTail.nextDep=s,Ue.depsTail=s):Ue.deps=Ue.depsTail=s,qi(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=Ue.depsTail,s.nextDep=void 0,Ue.depsTail.nextDep=s,Ue.depsTail=s,Ue.deps===s&&(Ue.deps=i)}return s}trigger(t){this.version++,Bn++,this.notify(t)}notify(t){_s();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Ss()}}};function qi(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)qi(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var ys=new WeakMap,nn=Symbol(""),bs=Symbol(""),Hn=Symbol("");function et(e,t,s){if(Ct&&Ue){let i=ys.get(e);i||ys.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new zn),o.map=i,o.key=s),o.track()}}function Rt(e,t,s,i,o,r){let a=ys.get(e);if(!a){Bn++;return}let c=h=>{h&&h.trigger()};if(_s(),t==="clear")a.forEach(c);else{let h=ge(e),v=h&&mo(s);if(h&&s==="length"){let g=Number(i);a.forEach((k,m)=>{(m==="length"||m===Hn||!ht(m)&&m>=g)&&c(k)})}else switch((s!==void 0||a.has(void 0))&&c(a.get(s)),v&&c(a.get(Hn)),t){case"add":h?v&&c(a.get("length")):(c(a.get(nn)),Ut(e)&&c(a.get(bs)));break;case"delete":h||(c(a.get(nn)),Ut(e)&&c(a.get(bs)));break;case"set":Ut(e)&&c(a.get(nn));break}}Ss()}function kn(e){let t=Re(e);return t===e||(et(t,"iterate",Hn),lt(e))?t:bt(e)?At(e)?t.map(s=>zt(mt(s))):t.map(zt):t.map(mt)}function Gn(e){return et(e=Re(e),"iterate",Hn),e}function Dt(e,t){return bt(e)?zt(At(e)?mt(t):t):mt(t)}var _d={__proto__:null,[Symbol.iterator](){return hs(this,Symbol.iterator,e=>Dt(this,e))},concat(...e){return kn(this).concat(...e.map(t=>ge(t)?kn(t):t))},entries(){return hs(this,"entries",e=>(e[1]=Dt(this,e[1]),e))},every(e,t){return Bt(this,"every",e,t,void 0,arguments)},filter(e,t){return Bt(this,"filter",e,t,s=>s.map(i=>Dt(this,i)),arguments)},find(e,t){return Bt(this,"find",e,t,s=>Dt(this,s),arguments)},findIndex(e,t){return Bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bt(this,"findLast",e,t,s=>Dt(this,s),arguments)},findLastIndex(e,t){return Bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return kn(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return Bt(this,"map",e,t,void 0,arguments)},pop(){return $n(this,"pop")},push(...e){return $n(this,"push",e)},reduce(e,...t){return Di(this,"reduce",e,t)},reduceRight(e,...t){return Di(this,"reduceRight",e,t)},shift(){return $n(this,"shift")},some(e,t){return Bt(this,"some",e,t,void 0,arguments)},splice(...e){return $n(this,"splice",e)},toReversed(){return kn(this).toReversed()},toSorted(e){return kn(this).toSorted(e)},toSpliced(...e){return kn(this).toSpliced(...e)},unshift(...e){return $n(this,"unshift",e)},values(){return hs(this,"values",e=>Dt(this,e))}};function hs(e,t,s){let i=Gn(e),o=i[t]();return i!==e&&!lt(e)&&(o._next=o.next,o.next=()=>{let r=o._next();return r.done||(r.value=s(r.value)),r}),o}var Sd=Array.prototype;function Bt(e,t,s,i,o,r){let a=Gn(e),c=a!==e&&!lt(e),h=a[t];if(h!==Sd[t]){let k=h.apply(e,r);return c?mt(k):k}let v=s;a!==e&&(c?v=function(k,m){return s.call(this,Dt(e,k),m,e)}:s.length>2&&(v=function(k,m){return s.call(this,k,m,e)}));let g=h.call(a,v,i);return c&&o?o(g):g}function Di(e,t,s,i){let o=Gn(e),r=o!==e&&!lt(e),a=s,c=!1;o!==e&&(r?(c=i.length===0,a=function(v,g,k){return c&&(c=!1,v=Dt(e,v)),s.call(this,v,Dt(e,g),k,e)}):s.length>3&&(a=function(v,g,k){return s.call(this,v,g,k,e)}));let h=o[t](a,...i);return c?Dt(e,h):h}function ms(e,t,s){let i=Re(e);et(i,"iterate",Hn);let o=i[t](...s);return(o===-1||o===!1)&&Kn(s[0])?(s[0]=Re(s[0]),i[t](...s)):o}function $n(e,t,s=[]){Ot(),_s();let i=Re(e)[t].apply(e,s);return Ss(),Pt(),i}var Nd=mn("__proto__,__v_isRef,__isVue"),Mi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ht));function Dd(e){ht(e)||(e=String(e));let t=Re(this);return et(t,"has",e),t.hasOwnProperty(e)}var Eo=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 o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Md:Ui:r?Li:$i).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let a=ge(t);if(!o){let h;if(a&&(h=_d[s]))return h;if(s==="hasOwnProperty")return Dd}let c=Reflect.get(t,s,xe(t)?t:i);if((ht(s)?Mi.has(s):Nd(s))||(o||et(t,"get",s),r))return c;if(xe(c)){let h=a&&mo(s)?c:c.value;return o&&Te(h)?_o(h):h}return Te(c)?o?_o(c):ze(c):c}},Co=class extends Eo{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],a=ge(t)&&mo(s);if(!this._isShallow){let v=bt(r);if(!lt(i)&&!bt(i)&&(r=Re(r),i=Re(i)),!a&&xe(r)&&!xe(i))return v||(r.value=i),!0}let c=a?Number(s)e,bo=e=>Reflect.getPrototypeOf(e);function Od(e,t,s){return function(...i){let o=this.__v_raw,r=Re(o),a=Ut(r),c=e==="entries"||e===Symbol.iterator&&a,h=e==="keys"&&a,v=o[e](...i),g=s?ks:t?zt:mt;return!t&&et(r,"iterate",h?bs:nn),Ge(Object.create(v),{next(){let{value:k,done:m}=v.next();return m?{value:k,done:m}:{value:c?[g(k[0]),g(k[1])]:g(k),done:m}}})}}function wo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pd(e,t){let s={get(o){let r=this.__v_raw,a=Re(r),c=Re(o);e||(yt(o,c)&&et(a,"get",o),et(a,"get",c));let{has:h}=bo(a),v=t?ks:e?zt:mt;if(h.call(a,o))return v(r.get(o));if(h.call(a,c))return v(r.get(c));r!==a&&r.get(o)},get size(){let o=this.__v_raw;return!e&&et(Re(o),"iterate",nn),o.size},has(o){let r=this.__v_raw,a=Re(r),c=Re(o);return e||(yt(o,c)&&et(a,"has",o),et(a,"has",c)),o===c?r.has(o):r.has(o)||r.has(c)},forEach(o,r){let a=this,c=a.__v_raw,h=Re(c),v=t?ks:e?zt:mt;return!e&&et(h,"iterate",nn),c.forEach((g,k)=>o.call(r,v(g),v(k),a))}};return Ge(s,e?{add:wo("add"),set:wo("set"),delete:wo("delete"),clear:wo("clear")}:{add(o){let r=Re(this),a=bo(r),c=Re(o),h=!t&&!lt(o)&&!bt(o)?c:o;return a.has.call(r,h)||yt(o,h)&&a.has.call(r,o)||yt(c,h)&&a.has.call(r,c)||(r.add(h),Rt(r,"add",h,h)),this},set(o,r){!t&&!lt(r)&&!bt(r)&&(r=Re(r));let a=Re(this),{has:c,get:h}=bo(a),v=c.call(a,o);v||(o=Re(o),v=c.call(a,o));let g=h.call(a,o);return a.set(o,r),v?yt(r,g)&&Rt(a,"set",o,r,g):Rt(a,"add",o,r),this},delete(o){let r=Re(this),{has:a,get:c}=bo(r),h=a.call(r,o);h||(o=Re(o),h=a.call(r,o));let v=c?c.call(r,o):void 0,g=r.delete(o);return h&&Rt(r,"delete",o,void 0,v),g},clear(){let o=Re(this),r=o.size!==0,a=void 0,c=o.clear();return r&&Rt(o,"clear",void 0,void 0,a),c}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Od(o,e,t)}),s}function Ds(e,t){let s=Pd(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(De(s,o)&&o in i?s:i,o,r)}var Id={get:Ds(!1,!1)},Vd={get:Ds(!1,!0)},qd={get:Ds(!0,!1)};var $i=new WeakMap,Li=new WeakMap,Ui=new WeakMap,Md=new WeakMap;function $d(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ze(e){return bt(e)?e:Rs(e,!1,Rd,Id,$i)}function Wn(e){return Rs(e,!1,Ad,Vd,Li)}function _o(e){return Rs(e,!0,Td,qd,Ui)}function Rs(e,t,s,i,o){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let a=$d(ps(e));if(a===0)return e;let c=new Proxy(e,a===2?i:s);return o.set(e,c),c}function At(e){return bt(e)?At(e.__v_raw):!!(e&&e.__v_isReactive)}function bt(e){return!!(e&&e.__v_isReadonly)}function lt(e){return!!(e&&e.__v_isShallow)}function Kn(e){return e?!!e.__v_raw:!1}function Re(e){let t=e&&e.__v_raw;return t?Re(t):e}function Ts(e){return!De(e,"__v_skip")&&Object.isExtensible(e)&&go(e,"__v_skip",!0),e}var mt=e=>Te(e)?ze(e):e,zt=e=>Te(e)?_o(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function tt(e){return Fi(e,!1)}function No(e){return Fi(e,!0)}function Fi(e,t){return xe(e)?e:new Es(e,t)}var Es=class{constructor(t,s){this.dep=new zn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Re(t),this._value=s?t:mt(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||lt(t)||bt(t);t=i?t:Re(t),yt(t,s)&&(this._rawValue=t,this._value=i?t:mt(t),this.dep.trigger())}};function Ht(e){return xe(e)?e.value:e}var Ld={get:(e,t,s)=>t==="__v_raw"?e:Ht(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return xe(o)&&!xe(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function Do(e){return At(e)?e:new Proxy(e,Ld)}var Cs=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new zn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Ai(this,!0),!0}get value(){let t=this.dep.track();return Ii(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Bi(e,t,s=!1){let i,o;return be(e)?i=e:(i=e.get,o=e.set),new Cs(i,o,s)}var ko={},So=new WeakMap,tn;function zi(e,t=!1,s=tn){if(s){let i=So.get(s);i||So.set(s,i=[]),i.push(e)}}function Hi(e,t,s=qe){let{immediate:i,deep:o,once:r,scheduler:a,augmentJob:c,call:h}=s,v=M=>{(s.onWarn||Ed)("Invalid watch source: ",M,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=M=>o?M:lt(M)||o===!1||o===0?Tt(M,1):Tt(M),k,m,b,C,E=!1,R=!1;if(xe(e)?(m=()=>e.value,E=lt(e)):At(e)?(m=()=>g(e),E=!0):ge(e)?(R=!0,E=e.some(M=>At(M)||lt(M)),m=()=>e.map(M=>{if(xe(M))return M.value;if(At(M))return g(M);if(be(M))return h?h(M,2):M()})):be(e)?t?m=h?()=>h(e,2):e:m=()=>{if(b){Ot();try{b()}finally{Pt()}}let M=tn;tn=k;try{return h?h(e,3,[C]):e(C)}finally{tn=M}}:m=at,t&&o){let M=m,z=o===!0?1/0:o;m=()=>Tt(M(),z)}let D=Ri(),T=()=>{k.stop(),D&&D.active&&In(D.effects,k)};if(r&&t){let M=t;t=(...z)=>{let se=M(...z);return T(),se}}let q=R?new Array(e.length).fill(ko):ko,L=M=>{if(!(!(k.flags&1)||!k.dirty&&!M))if(t){let z=k.run();if(M||o||E||(R?z.some((se,oe)=>yt(se,q[oe])):yt(z,q))){b&&b();let se=tn;tn=k;try{let oe=[z,q===ko?void 0:R&&q[0]===ko?[]:q,C];q=z,h?h(t,3,oe):t(...oe)}finally{tn=se}}}else k.run()};return c&&c(L),k=new En(m),k.scheduler=a?()=>a(L,!1):L,C=M=>zi(M,!1,k),b=k.onStop=()=>{let M=So.get(k);if(M){if(h)h(M,4);else for(let z of M)z();So.delete(k)}},t?i?L(!0):q=k.run():a?a(L.bind(null,!0),!0):k.run(),T.pause=k.pause.bind(k),T.resume=k.resume.bind(k),T.stop=T,T}function Tt(e,t=1/0,s){if(t<=0||!Te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,xe(e))Tt(e.value,t,s);else if(ge(e))for(let i=0;i{Tt(i,t,s)});else if(ho(e)){for(let i in e)Tt(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&Tt(e[i],t,s)}return e}function oo(e,t,s,i){try{return i?e(...i):e()}catch(o){so(o,t,s)}}function wt(e,t,s,i){if(be(e)){let o=oo(e,t,s,i);return o&&cs(o)&&o.catch(r=>{so(r,t,s)}),o}if(ge(e)){let o=[];for(let r=0;r>>1,o=it[i],r=eo(o);r=eo(s)?it.push(e):it.splice(Hd(t),0,e),e.flags|=1,ar()}}function ar(){Ao||(Ao=rr.then(ur))}function lr(e){if(!ge(e))Zt&&e.id===-1?Zt.splice(Cn+1,0,e):e.flags&1||(_n.push(e),e.flags|=1);else for(let t=0;teo(s)-eo(i));if(_n.length=0,Zt){for(let s=0;se.id==null?e.flags&2?-1:1/0:e.id;function ur(e){let t=at;try{for(Vt=0;Vt{i._d&&Vo(-1);let r=Oo(t),a=rn.length,c;try{c=e(...o)}finally{for(let h=rn.length;h>a;h--)Fr();Oo(r),i._d&&Vo(1)}return c};return i._n=!0,i._c=!0,i._d=!0,i}function N(e,t){if(vt===null)return e;let s=jo(vt),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&be(t)?t.call(i&&i.proxy):t}}var Gd=Symbol.for("v-scx"),Wd=()=>{{let e=ut(Gd);return e}};function He(e,t,s){return pr(e,t,s)}function pr(e,t,s=qe){let{immediate:i,deep:o,flush:r,once:a}=s,c=Ge({},s),h=t&&i||!t&&r!=="post",v;if(Dn){if(r==="sync"){let b=Wd();v=b.__watcherHandles||(b.__watcherHandles=[])}else if(!h){let b=()=>{};return b.stop=at,b.resume=at,b.pause=at,b}}let g=nt;c.call=(b,C,E)=>wt(b,g,C,E);let k=!1;r==="post"?c.scheduler=b=>{dt(b,g&&g.suspense)}:r!=="sync"&&(k=!0,c.scheduler=(b,C)=>{C?b():Ls(b)}),c.augmentJob=b=>{t&&(b.flags|=4),k&&(b.flags|=2,g&&(b.id=g.uid,b.i=g))};let m=Hi(e,t,c);return Dn&&(v?v.push(m):h&&m()),m}function Kd(e,t,s){let i=this.proxy,o=Be(e)?e.includes(".")?fr(i,e):()=>i[e]:e.bind(i,i),r;be(t)?r=t:(r=t.handler,s=t);let a=ao(this),c=pr(o,r.bind(i),s);return a(),c}function fr(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var As=Symbol("_leaveCb");function Qd(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==Gt){t=i,s=!0;break}}return t}function hr(e){if(!Fo(e))return Lo(e.type)&&e.children?Qd(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&&be(s.default))return s.default()}}function Uo(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Uo(Lo(s.type)&&hr(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function io(e,t){return be(e)?Ge({name:e.name},t,{setup:e}):e}function Us(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Gi(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Po=new WeakMap;function Jn(e,t,s,i,o=!1){if(ge(e)){e.forEach((E,R)=>Jn(E,t&&(ge(t)?t[R]:t),s,i,o));return}if(Xn(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&Jn(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?jo(i.component):i.el,a=o?null:r,{i:c,r:h}=e,v=t&&t.r,g=c.refs===qe?c.refs={}:c.refs,k=c.setupState,m=Re(k),b=k===qe?us:E=>Gi(g,E)?!1:De(m,E),C=(E,R)=>!(R&&Gi(g,R));if(v!=null&&v!==h){if(Wi(t),Be(v))g[v]=null,b(v)&&(k[v]=null);else if(xe(v)){let E=t;C(v,E.k)&&(v.value=null),E.k&&(g[E.k]=null)}}if(be(h))oo(h,c,12,[a,g]);else{let E=Be(h),R=xe(h);if(E||R){let D=()=>{if(e.f){let T=E?b(h)?k[h]:g[h]:C(h)||!e.k?h.value:g[e.k];if(o)ge(T)&&In(T,r);else if(ge(T))T.includes(r)||T.push(r);else if(E)g[h]=[r],b(h)&&(k[h]=g[h]);else{let q=[r];C(h,e.k)&&(h.value=q),e.k&&(g[e.k]=q)}}else E?(g[h]=a,b(h)&&(k[h]=a)):R&&(C(h,e.k)&&(h.value=a),e.k&&(g[e.k]=a))};if(a){let T=()=>{D(),Po.delete(e)};T.id=-1,Po.set(e,T),dt(T,s)}else Wi(e),D()}}}function Wi(e){let t=Po.get(e);t&&(t.flags|=8,Po.delete(e))}var Ki=e=>e.nodeType===8;var u$=Mn().requestIdleCallback||(e=>setTimeout(e,1)),c$=Mn().cancelIdleCallback||(e=>clearTimeout(e));function Jd(e,t){if(Ki(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(Ki(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var Xn=e=>!!e.type.__asyncLoader;function mr(e){be(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:a,suspensible:c=!0,onError:h}=e,v=null,g,k=0,m=()=>(k++,v=null,b()),b=()=>{let C;return v||(C=v=t().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),h)return new Promise((R,D)=>{h(E,()=>R(m()),()=>D(E),k+1)});throw E}).then(E=>C!==v&&v?v:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),g=E,E)))};return io({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(C,E,R){let D=C.isConnected,T=!1;(E.bu||(E.bu=[])).push(()=>T=!0);let q=()=>{T||!C.parentNode||D&&!C.isConnected||R()},L=r?()=>{let M=r(q,z=>Jd(C,z));M&&(E.bum||(E.bum=[])).push(M)}:q;g?L():b().then(()=>!E.isUnmounted&&L())},get __asyncResolved(){return g},setup(){let C=nt;if(Us(C),g)return()=>Ro(g,C);let E=M=>{v=null,so(M,C,13,!i)};if(c&&C.suspense||Dn)return b().then(M=>()=>Ro(M,C)).catch(M=>(E(M),()=>i?Ee(i,{error:M}):null));let R=tt(!1),D=tt(),T=tt(!!o),q,L;return ro(()=>{q!=null&&clearTimeout(q),L!=null&&clearTimeout(L)}),o&&(L=setTimeout(()=>{C.isUnmounted||(T.value=!1)},o)),a!=null&&(q=setTimeout(()=>{if(!C.isUnmounted&&!R.value&&!D.value){let M=new Error(`Async component timed out after ${a}ms.`);E(M),D.value=M}},a)),b().then(()=>{C.isUnmounted||(R.value=!0,C.parent&&Fo(C.parent.vnode)&&C.parent.update())}).catch(M=>{if(C.isUnmounted){v=null;return}E(M),D.value=M}),()=>{if(R.value&&g)return Ro(g,C);if(D.value&&i)return Ee(i,{error:D.value});if(s&&!T.value)return Ro(s,C)}}})}function Ro(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,a=Ee(e,i,o);return a.ref=s,a.ce=r,delete t.vnode.ce,a}var Fo=e=>e.type.__isKeepAlive;function vr(e,t){yr(e,"a",t)}function gr(e,t){yr(e,"da",t)}function yr(e,t,s=nt){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Bo(t,i,s),s){let o=s.parent;for(;o&&o.parent;)Fo(o.parent.vnode)&&Xd(i,t,s,o),o=o.parent}}function Xd(e,t,s,i){let o=Bo(t,e,i,!0);ro(()=>{In(i[t],o)},s)}function Bo(e,t,s=nt,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...a)=>{Ot();let c=ao(s),h=wt(t,s,e,a);return c(),Pt(),h});return i?o.unshift(r):o.push(r),r}}var Wt=e=>(t,s=nt)=>{(!Dn||e==="sp")&&Bo(e,(...i)=>t(...i),s)},Zd=Wt("bm"),Mt=Wt("m"),br=Wt("bu"),wr=Wt("u"),ln=Wt("bum"),ro=Wt("um"),xd=Wt("sp"),eu=Wt("rtg"),tu=Wt("rtc");function nu(e,t=nt){Bo("ec",e,t)}var kr="components",ou="directives";function We(e,t){return Er(kr,e,!0,t)||e}var su=Symbol.for("v-ndc");function ye(e){return Er(ou,e)}function Er(e,t,s=!0,i=!1){let o=vt||nt;if(o){let r=o.type;if(e===kr){let c=Bu(r,!1);if(c&&(c===t||c===Je(t)||c===en(Je(t))))return r}let a=Yi(o[e]||r[e],t)||Yi(o.appContext[e],t);return!a&&i?r:a}}function Yi(e,t){return e&&(e[t]||e[Je(t)]||e[en(Je(t))])}function ee(e,t,s,i){let o,r=s&&s[i],a=ge(e);if(a||Be(e)){let c=a&&At(e),h=!1,v=!1;c&&(h=!lt(e),v=bt(e),e=Gn(e)),o=new Array(e.length);for(let g=0,k=e.length;gt(c,h,void 0,r&&r[h]));else{let c=Object.keys(e);o=new Array(c.length);for(let h=0,v=c.length;he?Hr(e)?jo(e):Vs(e.parent):null;var Zn=Ge(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=>Vs(e.parent),$root:e=>Vs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fs(e),$forceUpdate:e=>e.f||(e.f=()=>{Ls(e.update)}),$nextTick:e=>e.n||(e.n=Ye.bind(e.proxy)),$watch:e=>Kd.bind(e)});var Os=(e,t)=>e!==qe&&!e.__isScriptSetup&&De(e,t),iu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:a,type:c,appContext:h}=e;if(t[0]!=="$"){let m=a[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Os(i,t))return a[t]=1,i[t];if(o!==qe&&De(o,t))return a[t]=2,o[t];if(De(r,t))return a[t]=3,r[t];if(s!==qe&&De(s,t))return a[t]=4,s[t];qs&&(a[t]=0)}}let v=Zn[t],g,k;if(v)return t==="$attrs"&&et(e.attrs,"get",""),v(e);if((g=c.__cssModules)&&(g=g[t]))return g;if(s!==qe&&De(s,t))return a[t]=4,s[t];if(k=h.config.globalProperties,De(k,t))return k[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return Os(o,t)?(o[t]=s,!0):i!==qe&&De(i,t)?(i[t]=s,!0):De(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:a}},c){let h;return!!(s[c]||e!==qe&&c[0]!=="$"&&De(e,c)||Os(t,c)||De(r,c)||De(i,c)||De(Zn,c)||De(o.config.globalProperties,c)||(h=a.__cssModules)&&h[c])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:De(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Qi(e){return ge(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var qs=!0;function ru(e){let t=Fs(e),s=e.proxy,i=e.ctx;qs=!1,t.beforeCreate&&Ji(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:a,watch:c,provide:h,inject:v,created:g,beforeMount:k,mounted:m,beforeUpdate:b,updated:C,activated:E,deactivated:R,beforeDestroy:D,beforeUnmount:T,destroyed:q,unmounted:L,render:M,renderTracked:z,renderTriggered:se,errorCaptured:oe,serverPrefetch:_,expose:O,inheritAttrs:B,components:Y,directives:X,filters:K}=t;if(v&&au(v,i,null),a)for(let le in a){let re=a[le];be(re)&&(i[le]=re.bind(s))}if(o){let le=o.call(s,s);Te(le)&&(e.data=ze(le))}if(qs=!0,r)for(let le in r){let re=r[le],Ce=be(re)?re.bind(s,s):be(re.get)?re.get.bind(s,s):at,Ae=!be(re)&&be(re.set)?re.set.bind(s):at,Oe=ot({get:Ce,set:Ae});Object.defineProperty(i,le,{enumerable:!0,configurable:!0,get:()=>Oe.value,set:ke=>Oe.value=ke})}if(c)for(let le in c)Cr(c[le],i,s,le);if(h){let le=be(h)?h.call(s):h;Reflect.ownKeys(le).forEach(re=>{an(re,le[re])})}g&&Ji(g,e,"c");function ue(le,re){ge(re)?re.forEach(Ce=>le(Ce.bind(s))):re&&le(re.bind(s))}if(ue(Zd,k),ue(Mt,m),ue(br,b),ue(wr,C),ue(vr,E),ue(gr,R),ue(nu,oe),ue(tu,z),ue(eu,se),ue(ln,T),ue(ro,L),ue(xd,_),ge(O))if(O.length){let le=e.exposed||(e.exposed={});O.forEach(re=>{Object.defineProperty(le,re,{get:()=>s[re],set:Ce=>s[re]=Ce,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===at&&(e.render=M),B!=null&&(e.inheritAttrs=B),Y&&(e.components=Y),X&&(e.directives=X),_&&Us(e)}function au(e,t,s=at){ge(e)&&(e=Ms(e));for(let i in e){let o=e[i],r;Te(o)?"default"in o?r=ut(o.from||i,o.default,!0):r=ut(o.from||i):r=ut(o),xe(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:a=>r.value=a}):t[i]=r}}function Ji(e,t,s){wt(ge(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function Cr(e,t,s,i){let o=i.includes(".")?fr(s,i):()=>s[i];if(Be(e)){let r=t[e];be(r)&&He(o,r)}else if(be(e))He(o,e.bind(s));else if(Te(e))if(ge(e))e.forEach(r=>Cr(r,t,s,i));else{let r=be(e.handler)?e.handler.bind(s):t[e.handler];be(r)&&He(o,r,e)}}function Fs(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,c=r.get(t),h;return c?h=c:!o.length&&!s&&!i?h=t:(h={},o.length&&o.forEach(v=>Io(h,v,a,!0)),Io(h,t,a)),Te(t)&&r.set(t,h),h}function Io(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Io(e,r,s,!0),o&&o.forEach(a=>Io(e,a,s,!0));for(let a in t)if(!(i&&a==="expose")){let c=lu[a]||s&&s[a];e[a]=c?c(e[a],t[a]):t[a]}return e}var lu={data:Xi,props:Zi,emits:Zi,methods:Qn,computed:Qn,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Qn,directives:Qn,watch:uu,provide:Xi,inject:du};function Xi(e,t){return t?e?function(){return Ge(be(e)?e.call(this,this):e,be(t)?t.call(this,this):t)}:t:e}function du(e,t){return Qn(Ms(e),Ms(t))}function Ms(e){if(ge(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Je(t)}Modifiers`]||e[`${St(t)}Modifiers`];function hu(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||qe,o=s,r=t.startsWith("update:"),a=r&&fu(i,t.slice(7));a&&(a.trim&&(o=s.map(g=>Be(g)?g.trim():g)),a.number&&(o=o.map(wn)));let c,h=i[c=qn(t)]||i[c=qn(Je(t))];!h&&r&&(h=i[c=qn(St(t))]),h&&wt(h,e,6,o);let v=i[c+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,wt(v,e,6,o)}}var mu=new WeakMap;function Sr(e,t,s=!1){let i=s?mu:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,a={},c=!1;if(!be(e)){let h=v=>{let g=Sr(v,t,!0);g&&(c=!0,Ge(a,g))};!s&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!r&&!c?(Te(e)&&i.set(e,null),null):(ge(r)?r.forEach(h=>a[h]=null):Ge(a,r),Te(e)&&i.set(e,a),a)}function zo(e,t){return!e||!vn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),De(e,t[0].toLowerCase()+t.slice(1))||De(e,St(t))||De(e,t))}function Ps(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:a,attrs:c,emit:h,render:v,renderCache:g,props:k,data:m,setupState:b,ctx:C,inheritAttrs:E}=e,R=Oo(e),D,T;try{if(s.shapeFlag&4){let M=o||i,z=M;D=qt(v.call(z,M,g,k,b,m,C)),T=c}else{let M=t;D=qt(M.length>1?M(k,{attrs:c,slots:a,emit:h}):M(k,null)),T=t.props?c:vu(c)}}catch(M){rn.length=0,so(M,e,1),D=Ee(Gt)}let q=D,L;if(T&&E!==!1){let M=Object.keys(T),{shapeFlag:z}=q;M.length&&z&7&&(r&&M.some(gn)&&(T=gu(T,r)),q=Nn(q,T,!1,!0))}if(s.dirs&&(q=Nn(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition){let M=Lo(q.type)&&hr(q)||q;Uo(M,s.transition)}return D=q,Oo(R),D}var vu=e=>{let t;for(let s in e)(s==="class"||s==="style"||vn(s))&&((t||(t={}))[s]=e[s]);return t},gu=(e,t)=>{let s={};for(let i in e)(!gn(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function yu(e,t,s){let{props:i,children:o,component:r}=e,{props:a,children:c,patchFlag:h}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&h>=0){if(h&1024)return!0;if(h&16)return i?xi(i,a,v):!!a;if(h&8){let g=t.dynamicProps;for(let k=0;kObject.create(Dr),Tr=e=>Object.getPrototypeOf(e)===Dr;function wu(e,t,s,i=!1){let o={},r=Rr();e.propsDefaults=Object.create(null),Ar(e,t,o,r);for(let a in e.propsOptions[0])a in o||(o[a]=void 0);s?e.props=i?o:Wn(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ku(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:a}}=e,c=Re(o),[h]=e.propsOptions,v=!1;if((i||a>0)&&!(a&16)){if(a&8){let g=e.vnode.dynamicProps;for(let k=0;k{h=!0;let[m,b]=Or(k,t,!0);Ge(a,m),b&&c.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!r&&!h)return Te(e)&&i.set(e,Xt),Xt;if(ge(r))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",zs=e=>ge(e)?e.map(qt):[qt(e)],Cu=(e,t,s)=>{if(t._n)return t;let i=jd((...o)=>zs(t(...o)),s);return i._c=!1,i},Pr=(e,t,s)=>{let i=e._ctx;for(let o in e){if(Bs(o))continue;let r=e[o];if(be(r))t[o]=Cu(o,r,i);else if(r!=null){let a=zs(r);t[o]=()=>a}}},Ir=(e,t)=>{let s=zs(t);e.slots.default=()=>s},Vr=(e,t,s)=>{for(let i in t)(s||!Bs(i))&&(e[i]=t[i])},_u=(e,t,s)=>{let i=e.slots=Rr();if(e.vnode.shapeFlag&32){let o=t._;o?(Vr(i,t,s),s&&go(i,"_",o,!0)):Pr(t,i)}else t&&Ir(e,t)},Su=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,a=qe;if(i.shapeFlag&32){let c=t._;c?s&&c===1?r=!1:Vr(o,t,s):(r=!t.$stable,Pr(t,o)),a=t}else t&&(Ir(e,t),a={default:1});if(r)for(let c in o)!Bs(c)&&a[c]==null&&delete o[c]};function Nu(){let e=[]}var dt=Au;function qr(e){return Du(e)}function Du(e,t){Nu();let s=Mn();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:a,createText:c,createComment:h,setText:v,setElementText:g,parentNode:k,nextSibling:m,setScopeId:b=at,insertStaticContent:C}=e,E=(p,w,S,P=null,V=null,I=null,F=void 0,Q=null,J=!!w.dynamicChildren)=>{if(p===w)return;p&&!Yn(p,w)&&(P=x(p),Ie(p,V,I,!0),p=null),w.patchFlag===-2&&(J=!1,w.dynamicChildren=null),w.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(w.dynamicChildren===Xt&&(w.dynamicChildren=[]),w.dynamicChildren.hasOnce=!0);let{type:H,ref:de,shapeFlag:ne}=w;switch(H){case Ho:R(p,w,S,P);break;case Gt:D(p,w,S,P);break;case xn:p==null&&T(w,S,P,F);break;case G:X(p,w,S,P,V,I,F,Q,J);break;default:ne&1?z(p,w,S,P,V,I,F,Q,J):ne&6?K(p,w,S,P,V,I,F,Q,J):(ne&64||ne&128)&&H.process(p,w,S,P,V,I,F,Q,J,me)}de!=null&&V?Jn(de,p&&p.ref,I,w||p,!w):de==null&&p&&p.ref!=null&&Jn(p.ref,null,I,p,!0)},R=(p,w,S,P)=>{if(p==null)i(w.el=c(w.children),S,P);else{let V=w.el=p.el;w.children!==p.children&&v(V,w.children)}},D=(p,w,S,P)=>{p==null?i(w.el=h(w.children||""),S,P):w.el=p.el},T=(p,w,S,P)=>{[p.el,p.anchor]=C(p.children,w,S,P,p.el,p.anchor)},q=(p,w,S,P)=>{if(w.children!==p.children){let V=m(p.anchor);M(p),[w.el,w.anchor]=C(w.children,S,V,P)}else w.el=p.el,w.anchor=p.anchor},L=({el:p,anchor:w},S,P)=>{let V;for(;p&&p!==w;)V=m(p),i(p,S,P),p=V;i(w,S,P)},M=({el:p,anchor:w})=>{let S;for(;p&&p!==w;)S=m(p),o(p),p=S;o(w)},z=(p,w,S,P,V,I,F,Q,J)=>{if(w.type==="svg"?F="svg":w.type==="math"&&(F="mathml"),p==null)se(w,S,P,V,I,F,Q,J);else{let H=p.el&&p.el._isVueCE?p.el:null;try{H&&H._beginPatch(),O(p,w,V,I,F,Q,J)}finally{H&&H._endPatch()}}},se=(p,w,S,P,V,I,F,Q)=>{let J,H,{props:de,shapeFlag:ne,transition:ae,dirs:ve}=p;if(J=p.el=a(p.type,I,de&&de.is,de),ne&8?g(J,p.children):ne&16&&_(p.children,J,null,P,V,Is(p,I),F,Q),ve&&on(p,null,P,"created"),oe(J,p,p.scopeId,F,P),de){for(let Le in de)Le!=="value"&&!yn(Le)&&r(J,Le,null,de[Le],I,P);"value"in de&&r(J,"value",null,de.value,I),(H=de.onVnodeBeforeMount)&&It(H,P,p)}ve&&on(p,null,P,"beforeMount");let Ne=Ru(V,ae);Ne&&ae.beforeEnter(J),i(J,w,S),((H=de&&de.onVnodeMounted)||Ne||ve)&&dt(()=>{let Me;H&&It(H,P,p),Ne&&ae.enter(J),ve&&on(p,null,P,"mounted")},V)},oe=(p,w,S,P,V)=>{if(S&&b(p,S),P)for(let I=0;I{for(let H=J;H{let Q=w.el=p.el,{patchFlag:J,dynamicChildren:H,dirs:de}=w;J|=p.patchFlag&16;let ne=p.props||qe,ae=w.props||qe,ve;if(S&&sn(S,!1),(ve=ae.onVnodeBeforeUpdate)&&It(ve,S,w,p),de&&on(w,p,S,"beforeUpdate"),S&&sn(S,!0),H&&(!p.dynamicChildren||p.dynamicChildren.length!==H.length)&&(J=0,F=!1,H=null),(ne.innerHTML&&ae.innerHTML==null||ne.textContent&&ae.textContent==null)&&g(Q,""),H?B(p.dynamicChildren,H,Q,S,P,Is(w,V),I):F||Ce(p,w,Q,null,S,P,Is(w,V),I,!1),J>0){if(J&16)Y(Q,ne,ae,S,V);else if(J&2&&ne.class!==ae.class&&r(Q,"class",null,ae.class,V),J&4&&r(Q,"style",ne.style,ae.style,V),J&8){let Ne=w.dynamicProps;for(let Le=0;Le{ve&&It(ve,S,w,p),de&&on(w,p,S,"updated")},P)},B=(p,w,S,P,V,I,F)=>{for(let Q=0;Q{if(w!==S){if(w!==qe)for(let I in w)!yn(I)&&!(I in S)&&r(p,I,w[I],null,V,P);for(let I in S){if(yn(I))continue;let F=S[I],Q=w[I];F!==Q&&I!=="value"&&r(p,I,Q,F,V,P)}"value"in S&&r(p,"value",w.value,S.value,V)}},X=(p,w,S,P,V,I,F,Q,J)=>{let H=w.el=p?p.el:c(""),de=w.anchor=p?p.anchor:c(""),{patchFlag:ne,dynamicChildren:ae,slotScopeIds:ve}=w;ve&&(Q=Q?Q.concat(ve):ve),p==null?(i(H,S,P),i(de,S,P),_(w.children||[],S,de,V,I,F,Q,J)):ne>0&&ne&64&&ae&&p.dynamicChildren&&p.dynamicChildren.length===ae.length?(B(p.dynamicChildren,ae,S,V,I,F,Q),(w.key!=null||V&&w===V.subTree)&&Mr(p,w,!0)):Ce(p,w,S,de,V,I,F,Q,J)},K=(p,w,S,P,V,I,F,Q,J)=>{w.slotScopeIds=Q,p==null?w.shapeFlag&512?V.ctx.activate(w,S,P,F,J):te(w,S,P,V,I,F,J):ue(p,w,J)},te=(p,w,S,P,V,I,F)=>{let Q=p.component=Mu(p,P,V);if(Fo(p)&&(Q.ctx.renderer=me),$u(Q,!1,F),Q.asyncDep){if(V&&V.registerDep(Q,le,F),!p.el){let J=Q.subTree=Ee(Gt);D(null,J,w,S),p.placeholder=J.el}}else le(Q,p,w,S,V,I,F)},ue=(p,w,S)=>{let P=w.component=p.component;if(yu(p,w,S))if(P.asyncDep&&!P.asyncResolved){w.el=p.el,re(P,w,S);return}else P.next=w,P.update();else w.el=p.el,P.vnode=w},le=(p,w,S,P,V,I,F)=>{let Q=()=>{if(p.isMounted){let{next:ne,bu:ae,u:ve,parent:Ne,vnode:Le}=p;{let pt=$r(p);if(pt){ne&&(ne.el=Le.el,re(p,ne,F)),pt.asyncDep.then(()=>{dt(()=>{p.isUnmounted||H()},V)});return}}let Me=ne,Ke;sn(p,!1),ne?(ne.el=Le.el,re(p,ne,F)):ne=Le,ae&&bn(ae),(Ke=ne.props&&ne.props.onVnodeBeforeUpdate)&&It(Ke,Ne,ne,Le),sn(p,!0);let Qe=Ps(p),Et=p.subTree;p.subTree=Qe,E(Et,Qe,k(Et.el),x(Et),p,V,I),ne.el=Qe.el,Me===null&&bu(p,Qe.el),ve&&dt(ve,V),(Ke=ne.props&&ne.props.onVnodeUpdated)&&dt(()=>It(Ke,Ne,ne,Le),V)}else{let ne,{el:ae,props:ve}=w,{bm:Ne,m:Le,parent:Me,root:Ke,type:Qe}=p,Et=Xn(w);if(sn(p,!1),Ne&&bn(Ne),!Et&&(ne=ve&&ve.onVnodeBeforeMount)&&It(ne,Me,w),sn(p,!0),ae&&W){let pt=()=>{p.subTree=Ps(p),W(ae,p.subTree,p,V,null)};Et&&Qe.__asyncHydrate?Qe.__asyncHydrate(ae,p,pt):pt()}else{Ke.ce&&Ke.ce._hasShadowRoot()&&Ke.ce._injectChildStyle(Qe,p.parent?p.parent.type:void 0);let pt=p.subTree=Ps(p);E(null,pt,S,P,p,V,I),w.el=pt.el}if(Le&&dt(Le,V),!Et&&(ne=ve&&ve.onVnodeMounted)){let pt=w;dt(()=>It(ne,Me,pt),V)}(w.shapeFlag&256||Me&&Xn(Me.vnode)&&Me.vnode.shapeFlag&256)&&p.a&&dt(p.a,V),p.isMounted=!0,w=S=P=null}};p.scope.on();let J=p.effect=new En(Q);p.scope.off();let H=p.update=J.run.bind(J),de=p.job=J.runIfDirty.bind(J);de.i=p,de.id=p.uid,J.scheduler=()=>Ls(de),sn(p,!0),H()},re=(p,w,S)=>{w.component=p;let P=p.vnode.props;p.vnode=w,p.next=null,ku(p,w.props,P,S),Su(p,w.children,S),Ot(),ji(p),Pt()},Ce=(p,w,S,P,V,I,F,Q,J=!1)=>{let H=p&&p.children,de=p?p.shapeFlag:0,ne=w.children,{patchFlag:ae,shapeFlag:ve}=w;if(ae>0){if(ae&128){Oe(H,ne,S,P,V,I,F,Q,J);return}else if(ae&256){Ae(H,ne,S,P,V,I,F,Q,J);return}}ve&8?(de&16&&U(H,V,I),ne!==H&&g(S,ne)):de&16?ve&16?Oe(H,ne,S,P,V,I,F,Q,J):U(H,V,I,!0):(de&8&&g(S,""),ve&16&&_(ne,S,P,V,I,F,Q,J))},Ae=(p,w,S,P,V,I,F,Q,J)=>{p=p||Xt,w=w||Xt;let H=p.length,de=w.length,ne=Math.min(H,de),ae;for(ae=0;aede?U(p,V,I,!0,!1,ne):_(w,S,P,V,I,F,Q,J,ne)},Oe=(p,w,S,P,V,I,F,Q,J)=>{let H=0,de=w.length,ne=p.length-1,ae=de-1;for(;H<=ne&&H<=ae;){let ve=p[H],Ne=w[H]=J?jt(w[H]):qt(w[H]);if(Yn(ve,Ne))E(ve,Ne,S,null,V,I,F,Q,J);else break;H++}for(;H<=ne&&H<=ae;){let ve=p[ne],Ne=w[ae]=J?jt(w[ae]):qt(w[ae]);if(Yn(ve,Ne))E(ve,Ne,S,null,V,I,F,Q,J);else break;ne--,ae--}if(H>ne){if(H<=ae){let ve=ae+1,Ne=veae)for(;H<=ne;)Ie(p[H],V,I,!0),H++;else{let ve=H,Ne=H,Le=new Map;for(H=Ne;H<=ae;H++){let ft=w[H]=J?jt(w[H]):qt(w[H]);ft.key!=null&&Le.set(ft.key,H)}let Me,Ke=0,Qe=ae-Ne+1,Et=!1,pt=0,Pn=new Array(Qe);for(H=0;H=Qe){Ie(ft,V,I,!0);continue}let _t;if(ft.key!=null)_t=Le.get(ft.key);else for(Me=Ne;Me<=ae;Me++)if(Pn[Me-Ne]===0&&Yn(ft,w[Me])){_t=Me;break}_t===void 0?Ie(ft,V,I,!0):(Pn[_t-Ne]=H+1,_t>=pt?pt=_t:Et=!0,E(ft,w[_t],S,null,V,I,F,Q,J),Ke++)}let pi=Et?Tu(Pn):Xt;for(Me=pi.length-1,H=Qe-1;H>=0;H--){let ft=Ne+H,_t=w[ft],fi=w[ft+1],hi=ft+1{let{el:I,type:F,transition:Q,children:J,shapeFlag:H}=p;if(H&6){ke(p.component.subTree,w,S,P);return}if(H&128){p.suspense.move(w,S,P);return}if(H&64){F.move(p,w,S,me);return}if(F===G){i(I,w,S);for(let ne=0;neQ.enter(I),V));else{let{leave:ne,delayLeave:ae,afterLeave:ve}=Q,Ne=()=>{p.ctx.isUnmounted?o(I):i(I,w,S)},Le=()=>{let Me=I._isLeaving||!!I[As];I._isLeaving&&I[As](!0),Q.persisted&&!Me?Ne():ne(I,()=>{Ne(),ve&&ve()})};ae?ae(I,Ne,Le):Le()}else i(I,w,S)},Ie=(p,w,S,P=!1,V=!1)=>{let{type:I,props:F,ref:Q,children:J,dynamicChildren:H,shapeFlag:de,patchFlag:ne,dirs:ae,cacheIndex:ve,memo:Ne}=p;if((ne===-2||H&&H.hasOnce)&&(V=!1),Q!=null&&(Ot(),Jn(Q,null,S,p,!0),Pt()),ve!=null&&(!p.ctx||p.ctx===w)&&(w.renderCache[ve]=void 0),de&256){w.ctx.deactivate(p);return}let Le=de&1&&ae,Me=!Xn(p),Ke;if(Me&&(Ke=F&&F.onVnodeBeforeUnmount)&&It(Ke,w,p),de&6)Ve(p.component,S,P);else{if(de&128){p.suspense.unmount(S,P);return}Le&&on(p,null,w,"beforeUnmount"),de&64?p.type.remove(p,w,S,me,P):H&&!H.hasOnce&&(I!==G||ne>0&&ne&64)?U(H,w,S,!1,!0):(I===G&&ne&384||!V&&de&16)&&U(J,w,S),P&&Se(p)}let Qe=Ne!=null&&ve==null;(Me&&(Ke=F&&F.onVnodeUnmounted)||Le||Qe)&&dt(()=>{Ke&&It(Ke,w,p),Le&&on(p,null,w,"unmounted"),Qe&&(p.el=null)},S)},Se=p=>{let{type:w,el:S,anchor:P,transition:V}=p;if(w===G){Fe(S,P);return}if(w===xn){M(p),V&&!V.persisted&&V.afterLeave&&V.afterLeave();return}let I=()=>{o(S),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(p.shapeFlag&1&&V&&!V.persisted){let{leave:F,delayLeave:Q}=V,J=()=>F(S,I);Q?Q(p.el,I,J):J()}else I()},Fe=(p,w)=>{let S;for(;p!==w;)S=m(p),o(p),p=S;o(w)},Ve=(p,w,S)=>{let{bum:P,scope:V,job:I,subTree:F,um:Q,m:J,a:H}=p;tr(J),tr(H),P&&bn(P),V.stop(),I?(I.flags|=8,Ie(F,p,w,S)):p.vnode.el&&F&&(F.transition=p.vnode.transition,Ie(F,p,w,S)),Q&&dt(Q,w),dt(()=>{p.isUnmounted=!0},w)},U=(p,w,S,P=!1,V=!1,I=0)=>{for(let F=I;F{if(p.shapeFlag&6)return x(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();let w=m(p.anchor||p.el),S=w&&w[Yd];return S?m(S):w},Z=!1,ie=(p,w,S)=>{let P;p==null?w._vnode&&(Ie(w._vnode,null,null,!0),P=w._vnode.component):E(w._vnode||null,p,w,null,null,null,S),w._vnode=p,Z||(Z=!0,ji(P),dr(),Z=!1)},me={p:E,um:Ie,m:ke,r:Se,mt:te,mc:_,pc:Ce,pbc:B,n:x,o:e},_e,W;return t&&([_e,W]=t(me)),{render:ie,hydrate:_e,createApp:pu(ie,_e)}}function Is({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 sn({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ru(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Mr(e,t,s=!1){let i=e.children,o=t.children;if(ge(i)&&ge(o))for(let r=0;r>1,e[s[c]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,a=s[r-1];r-- >0;)s[r]=a,a=t[a];return s}function $r(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$r(t)}function tr(e){if(e)for(let t=0;te.__isSuspense;function Au(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):lr(e)}var G=Symbol.for("v-fgt"),Ho=Symbol.for("v-txt"),Gt=Symbol.for("v-cmt"),xn=Symbol.for("v-stc"),rn=[],gt=null;function l(e=!1){rn.push(gt=e?null:[])}function Fr(){rn.pop(),gt=rn[rn.length-1]||null}var to=1;function Vo(e,t=!1){to+=e,e<0&>&&t&&(gt.hasOnce=!0)}function Br(e){return e.dynamicChildren=to>0?gt||Xt:null,Fr(),to>0&>&>.push(e),e}function d(e,t,s,i,o,r){return Br(n(e,t,s,i,o,r,!0))}function $t(e,t,s,i,o){return Br(Ee(e,t,s,i,o,!0))}function qo(e){return e?e.__v_isVNode===!0:!1}function Yn(e,t){return e.type===t.type&&e.key===t.key}var zr=({key:e})=>e??null,To=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Be(e)||xe(e)||be(e)?{i:vt,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===G?0:1,a=!1,c=!1){let h={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zr(t),ref:t&&To(t),scopeId:cr,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:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:vt};return c?(Mo(h,s),r&128&&e.normalize(h)):s&&(h.shapeFlag|=Be(s)?8:16),to>0&&!a&>&&(h.patchFlag>0||r&6)&&h.patchFlag!==32&>.push(h),h}var Ee=Ou;function Ou(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===su)&&(e=Gt),qo(e)){let c=Nn(e,t,!0);return s&&Mo(c,s),to>0&&!r&>&&(c.shapeFlag&6?gt[gt.indexOf(e)]=c:gt.push(c)),c.patchFlag=-2,c}if(zu(e)&&(e=e.__vccOpts),t){t=Pu(t);let{class:c,style:h}=t;c&&!Be(c)&&(t.class=A(c)),Te(h)&&(Kn(h)&&!ge(h)&&(h=Ge({},h)),t.style=$e(h))}let a=Be(e)?1:Ur(e)?128:Lo(e)?64:Te(e)?4:be(e)?2:0;return n(e,t,s,i,o,a,r,!0)}function Pu(e){return e?Kn(e)||Tr(e)?Ge({},e):e:null}function Nn(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:a,children:c,transition:h}=e,v=t?Iu(o||{},t):o,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&zr(v),ref:t&&t.ref?s&&r?ge(r)?r.concat(To(t)):[r,To(t)]:To(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==G?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return h&&i&&Uo(g,h.clone(g)),g}function y(e=" ",t=0){return Ee(Ho,null,e,t)}function pe(e,t){let s=Ee(xn,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(l(),$t(Gt,null,e)):Ee(Gt,null,e)}function qt(e){return e==null||typeof e=="boolean"?Ee(Gt):ge(e)?Ee(G,null,e.slice()):qo(e)?jt(e):Ee(Ho,null,String(e))}function jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nn(e)}function Mo(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(ge(t))s=16;else if(typeof t=="object")if(i&65){let o=t.default;o&&(o._c&&(o._d=!1),Mo(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!Tr(t)?t._ctx=vt:o===3&&vt&&(vt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(be(t)){if(i&65){Mo(e,{default:t});return}t={default:t,_ctx:vt},s=32}else t=String(t),i&64?(s=16,t=[y(t)]):s=8;e.children=t,e.shapeFlag|=s}function Iu(...e){let t={};for(let s=0;snt||vt,$o,no;{let e=Mn(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(a=>a(r)):o[0](r)}};$o=t("__VUE_INSTANCE_SETTERS__",s=>nt=s),no=t("__VUE_SSR_SETTERS__",s=>Dn=s)}var ao=e=>{let t=nt;return $o(e),e.scope.on(),()=>{e.scope.off(),$o(t)}},nr=()=>{nt&&nt.scope.off(),$o(null)};function Hr(e){return e.vnode.shapeFlag&4}var Dn=!1;function $u(e,t=!1,s=!1){t&&no(t);let{props:i,children:o}=e.vnode,r=Hr(e);wu(e,i,r,t),_u(e,o,s||t);let a=r?Lu(e,t):void 0;return t&&no(!1),a}function Lu(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,iu);let{setup:i}=s;if(i){Ot();let o=e.setupContext=i.length>1?Fu(e):null,r=ao(e),a=oo(i,e,0,[e.props,o]),c=cs(a);if(Pt(),r(),(c||e.sp)&&!Xn(e)&&Us(e),c){if(a.then(nr,nr),t)return a.then(h=>{no(!0);try{or(e,h,t)}finally{no(!1)}}).catch(h=>{so(h,e,0)});e.asyncDep=a}else or(e,a,t)}else jr(e,t)}function or(e,t,s){be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Do(t)),jr(e,s)}var sr,ir;function jr(e,t,s){let i=e.type;if(!e.render){if(!t&&sr&&!i.render){let o=i.template||Fs(e).template;if(o){let{isCustomElement:r,compilerOptions:a}=e.appContext.config,{delimiters:c,compilerOptions:h}=i,v=Ge(Ge({isCustomElement:r,delimiters:c},a),h);i.render=sr(o,v)}}e.render=i.render||at,ir&&ir(e)}{let o=ao(e);Ot();try{ru(e)}finally{Pt(),o()}}}var Uu={get(e,t){return et(e,"get",""),e[t]}};function Fu(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Uu),slots:e.slots,emit:e.emit,expose:t}}function jo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Do(Ts(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Zn)return Zn[s](e)},has(t,s){return s in t||s in Zn}})):e.proxy}function Bu(e,t=!0){return be(e)?e.displayName||e.name:e.name||t&&e.__name}function zu(e){return be(e)&&"__vccOpts"in e}var ot=(e,t)=>Bi(e,t,Dn);function we(e,t,s){try{Vo(-1);let i=arguments.length;return i===2?Te(t)&&!ge(t)?qo(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&qo(s)&&(s=[s]),Ee(e,t,s))}finally{Vo(1)}}var Hu="3.5.43";var Ks,Gr=typeof window<"u"&&window.trustedTypes;if(Gr)try{Ks=Gr.createPolicy("vue",{createHTML:e=>e})}catch{}var na=Ks?e=>Ks.createHTML(e):e=>e,ju="http://www.w3.org/2000/svg",Gu="http://www.w3.org/1998/Math/MathML",Kt=typeof document<"u"?document:null,Wr=Kt&&Kt.createElement("template"),Wu={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 o=t==="svg"?Kt.createElementNS(ju,e):t==="mathml"?Kt.createElementNS(Gu,e):s?Kt.createElement(e,{is:s}):Kt.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Kt.createTextNode(e),createComment:e=>Kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let a=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{Wr.innerHTML=na(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let c=Wr.content;if(i==="svg"||i==="mathml"){let h=c.firstChild;for(;h.firstChild;)c.appendChild(h.firstChild);c.removeChild(h)}t.insertBefore(c,s)}return[a?a.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Ku=Symbol("_vtc");function Yu(e,t,s){let i=e[Ku];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var Ko=Symbol("_vod"),oa=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:s}){e[Ko]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):lo(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),lo(e,!0),i.enter(e)):i.leave(e,()=>{lo(e,!1)}):lo(e,t))},beforeUnmount(e,{value:t}){lo(e,t)}};function lo(e,t){e.style.display=t?e[Ko]:"none",e[oa]=!t}var Qu=Symbol("");var Ju=/(?:^|;)\s*display\s*:/;function Xu(e,t,s){let i=e.style,o=Be(s),r=!1;if(s&&!o){if(t)if(Be(t))for(let a of t.split(";")){let c=a.slice(0,a.indexOf(":")).trim();s[c]==null&&uo(i,c,"")}else for(let a in t)s[a]==null&&uo(i,a,"");for(let a in s){a==="display"&&(r=!0);let c=s[a];c!=null?xu(e,a,!Be(t)&&t?t[a]:void 0,c)||uo(i,a,c):uo(i,a,"")}}else if(o){if(t!==s){let a=i[Qu];a&&(s+=";"+a),i.cssText=s,r=Ju.test(s)}}else t&&e.removeAttribute("style");Ko in e&&(e[Ko]=r?i.display:"",e[oa]&&(i.display="none"))}var Go=/\s*!important$/;function uo(e,t,s){if(ge(s))s.forEach(i=>uo(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Go.test(s)?e.setProperty(t,s.replace(Go,""),"important"):e.setProperty(t,s);else{let i=Zu(e,t);Go.test(s)?e.setProperty(St(i),s.replace(Go,""),"important"):e[i]=s}}var Kr=["Webkit","Moz","ms"],js={};function Zu(e,t){let s=js[t];if(s)return s;let i=Je(t);if(i!=="filter"&&i in e)return js[t]=i;i=en(i);for(let o=0;oGs||(ic.then(()=>Gs=0),Gs=Date.now());function ac(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(ge(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let a=o.slice(),c=[i];for(let h=0;he.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lc=(e,t,s,i,o,r)=>{let a=o==="svg";t==="class"?Yu(e,i,a):t==="style"?Xu(e,s,i):vn(t)?gn(t)||tc(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dc(e,t,i,a))?(Jr(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Qr(e,t,i,a,r,t!=="value")):e._isVueCE&&(uc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Be(i)))?Jr(e,Je(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Qr(e,t,i,a))};function dc(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zr(t)&&be(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Zr(t)&&Be(s)?!1:t in e}function uc(e,t){let s=e._def.props;if(!s)return!1;let i=Je(t);return Array.isArray(s)?s.some(o=>Je(o)===i):Object.keys(s).some(o=>Je(o)===i)}var Yo=e=>{let t=e.props["onUpdate:modelValue"]||!1;return ge(t)?s=>bn(t,s):t};function cc(e){e.target.composing=!0}function xr(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var un=Symbol("_assign"),Wo=Symbol("_initialValue");function Ws(e,t,s){return t&&(e=e.trim()),s&&(e=wn(e)),e}var co={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Wo]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Wo]=e.defaultValue.replace(/\r\n?/g,` +`))),e[un]=Yo(o);let r=i||o.props&&o.props.type==="number";dn(e,t?"change":"input",a=>{a.target.composing||e[un](Ws(e.value,s,r))}),(s||r)&&dn(e,"change",()=>{e.value=Ws(e.value,s,r)}),t||(dn(e,"compositionstart",cc),dn(e,"compositionend",xr),dn(e,"change",xr))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Wo];delete e[Wo],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[un](Ws(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},a){if(e[un]=Yo(a),e.composing)return;let c=(r||e.type==="number")&&!/^0\d/.test(e.value)?wn(e.value):e.value,h=t??"";if(c===h)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===h)||(e.value=h)}};var Jo={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,dn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,h=>h.selected).map(h=>s?wn(Qo(h)):Qo(h)),r=e.multiple,a=r?Ft(e._modelValue)?new Set(o):o:o[0],c=e._pendingValue=[r,r?ge(a)?o.slice():o:a];try{e[un](a)}finally{Ye(()=>{e._pendingValue===c&&(e._pendingValue=void 0)})}}),e[un]=Yo(i)},mounted(e,{value:t}){ea(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[un]=Yo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!pc(t,s[1],s[0]))&&ea(e,t)}};function pc(e,t,s){if(!s)return Nt(e,t);if(ge(e))return Nt(e,t);if(Ft(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function ea(e,t){let s=e.multiple,i=ge(t);if(!(s&&!i&&!Ft(t))){for(let o=0,r=e.options.length;oString(v)===String(c)):a.selected=Ci(t,c)>-1}else a.selected=t.has(c);else if(Nt(Qo(a),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qo(e){return"_value"in e?e._value:e.value}var fc=["ctrl","shift","alt","meta"],hc={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)=>fc.some(s=>e[`${s}Key`]&&!t.includes(s))},ce=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let a=0;a{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=St(o.key);if(t.some(a=>a===r||mc[a]===r))return e(o)}))},vc=Ge({patchProp:lc},Wu),ta;function gc(){return ta||(ta=qr(vc))}var sa=((...e)=>{let t=gc().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=bc(i);if(!o)return;let r=t._component;!be(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let a=s(o,!1,yc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t});function yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bc(e){return Be(e)?document.querySelector(e):e}var fn=typeof document<"u";function ra(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function wc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ra(e.default)}var Pe=Object.assign;function Xo(e,t){let s={};for(let i in t){let o=t[i];s[i]=kt(o)?o.map(e):e(o)}return s}var An=()=>{},kt=Array.isArray;function Js(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var aa=/#/g,kc=/&/g,Ec=/\//g,Cc=/=/g,_c=/\?/g,la=/\+/g,Sc=/%5B/g,Nc=/%5D/g,da=/%5E/g,Dc=/%60/g,ua=/%7B/g,Rc=/%7C/g,ca=/%7D/g,Tc=/%20/g;function Xs(e){return e==null?"":encodeURI(""+e).replace(Rc,"|").replace(Sc,"[").replace(Nc,"]")}function pa(e){return Xs(e).replace(ua,"{").replace(ca,"}").replace(da,"^")}function Ys(e){return Xs(e).replace(la,"%2B").replace(Tc,"+").replace(aa,"%23").replace(kc,"%26").replace(Dc,"`").replace(ua,"{").replace(ca,"}").replace(da,"^")}function Ac(e){return Ys(e).replace(Cc,"%3D")}function Oc(e){return Xs(e).replace(aa,"%23").replace(_c,"%3F")}function fa(e){return Oc(e).replace(Ec,"%2F")}function Tn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Pc=/\/$/,Ic=e=>e.replace(Pc,"");function Zo(e,t,s="/"){let i,o={},r="",a="",c=t.indexOf("#"),h=t.indexOf("?");return h=c>=0&&h>c?-1:h,h>=0&&(i=t.slice(0,h),r=t.slice(h,c>0?c:t.length),o=e(r.slice(1))),c>=0&&(i=i||t.slice(0,c),a=t.slice(c,t.length)),i=qc(i??t,s),{fullPath:i+r+a,path:i,query:o,hash:Tn(a)}}function ha(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function Zs(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ma(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&cn(t.matched[i],s.matched[o])&&xs(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function cn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Vc(e[s],t[s]))return!1;return!0}function Vc(e,t){return kt(e)?ia(e,t):kt(t)?ia(t,e):e?.valueOf()===t?.valueOf()}function ia(e,t){return kt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function qc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,a,c;for(a=0;a1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(a).join("/")}var Qt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},xo=(function(e){return e.pop="pop",e.push="push",e})({}),es=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function va(e){if(!e)if(fn){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ic(e)}var Mc=/^[^#]+#/;function ga(e,t){return e.replace(Mc,"#")+t}function $c(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 po=()=>({left:window.scrollX,top:window.scrollY});function ya(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=$c(o,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 ei(e,t){return(history.state?history.state.position-t:-1)+e}var Qs=new Map;function ba(e,t){Qs.set(e,t)}function wa(e){let t=Qs.get(e);return Qs.delete(e),t}function Lc(e){return typeof e=="string"||e&&typeof e=="object"}function ti(e){return typeof e=="string"||typeof e=="symbol"}var je=(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})({}),ka=Symbol("");var z$={[je.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for ${JSON.stringify(e)}${t?` while being at -`+JSON.stringify(t):""}`},[je.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Fc(t)}" via a navigation guard.`},[je.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[je.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[je.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function pn(e,t){return Oe(new Error,{type:e,[ka]:!0},t)}function Lt(e,t){return e instanceof Error&&ka in e&&(t==null||!!(e.type&t))}var Uc=["params","query","hash"];function Fc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Uc)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Ea(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ys(o)):[i&&Ys(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Ca(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=kt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var _a=Symbol(""),oi=Symbol(""),ts=Symbol(""),ns=Symbol(""),os=Symbol("");function On(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Yt(e,t,s,i,o,r=a=>a()){let a=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((c,f)=>{let v=m=>{m===!1?f(pn(je.NAVIGATION_ABORTED,{from:s,to:t})):m instanceof Error?f(m):Lc(m)?f(pn(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(a&&i.enterCallbacks[o]===a&&typeof m=="function"&&a.push(m),c())},g=r(()=>e.call(i&&i.instances[o],t,s,v)),k=Promise.resolve(g);e.length<3&&(k=k.then(v)),k.catch(m=>f(m))})}function ss(e,t,s,i,o=r=>r()){let r=[];for(let a of e)for(let c in a.components){let f=a.components[c];if(!(t!=="beforeRouteEnter"&&!a.instances[c]))if(ra(f)){let v=(f.__vccOpts||f)[t];v&&r.push(Yt(v,s,i,a,c,o))}else{let v=f();r.push(()=>v.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${c}" at "${a.path}"`);let k=wc(g)?g.default:g;a.mods[c]=g,a.components[c]=k;let m=(k.__vccOpts||k)[t];return m&&Yt(m,s,i,a,c,o)()}))}}return r}function Sa(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;acn(v,c))?i.push(c):s.push(c));let f=e.matched[a];f&&(t.matched.find(v=>cn(v,f))||o.push(f))}return[s,i,o]}var Bc=()=>location.protocol+"//"+location.host;function Ma(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),Zs(c,"")}return Zs(s,e)+i+o}function zc(e,t,s,i){let o=[],r=[],a=null,c=({state:m})=>{let b=Ma(e,location),C=s.value,E=t.value,T=0;if(m){if(s.value=b,t.value=m,a&&a===C){a=null;return}T=E?m.position-E.position:0}else i(b);o.forEach(D=>{D(s.value,C,{delta:T,type:xo.pop,direction:T?T>0?es.forward:es.back:es.unknown})})};function f(){a=s.value}function v(m){o.push(m);let b=()=>{let C=o.indexOf(m);C>-1&&o.splice(C,1)};return r.push(b),b}function g(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Oe({},m.state,{scroll:po()}),"")}}function k(){for(let m of r)m();r=[],window.removeEventListener("popstate",c),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",c),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:f,listen:v,destroy:k}}function Na(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?po():null}}function Hc(e){let{history:t,location:s}=window,i={value:Ma(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(f,v,g){let k=e.indexOf("#"),m=k>-1?(s.host&&document.querySelector("base")?e:e.slice(k))+f:Bc()+e+f;try{t[g?"replaceState":"pushState"](v,"",m),o.value=v}catch(b){console.error(b),s[g?"replace":"assign"](m)}}function a(f,v){r(f,Oe({},t.state,Na(o.value.back,f,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=f}function c(f,v){let g=Oe({},o.value,t.state,{forward:f,scroll:po()});r(g.current,g,!0),r(f,Oe({},Na(i.value,f,null),{position:g.position+1},v),!1),i.value=f}return{location:i,state:o,push:c,replace:a}}function $a(e){e=va(e);let t=Hc(e),s=zc(e,t.state,t.location,t.replace);function i(r,a=!0){a||s.pauseListeners(),history.go(r)}let o=Oe({location:"",base:e,go:i,createHref:ga.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var hn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Ze=(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})(Ze||{}),jc={type:hn.Static,value:""},Gc=/[a-zA-Z0-9_]/;function Wc(e){if(!e)return[[]];if(e==="/")return[[jc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${s})/"${v}": ${b}`)}let s=Ze.Static,i=s,o=[],r;function a(){r&&o.push(r),r=[]}let c=0,f,v="",g="";function k(){v&&(s===Ze.Static?r.push({type:hn.Static,value:v}):s===Ze.Param||s===Ze.ParamRegExp||s===Ze.ParamRegExpEnd?(r.length>1&&(f==="*"||f==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:hn.Param,value:v,regexp:g,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):t("Invalid state to consume buffer"),v="")}function m(){v+=f}for(;ct.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function La(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var Xc={strict:!1,end:!0,sensitive:!1};function Zc(e,t,s){let i=Qc(Wc(e.path),s),o=Oe(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function xc(e,t){let s=[],i=new Map;t=Js(Xc,t);function o(k){return i.get(k)}function r(k,m,b){let C=!b,E=Aa(k);E.aliasOf=b&&b.record;let T=Js(t,k),D=[E];if("alias"in k){let F=typeof k.alias=="string"?[k.alias]:k.alias;for(let M of F)D.push(Aa(Oe({},E,{components:b?b.record.components:E.components,path:M,aliasOf:b?b.record:E})))}let O,q;for(let F of D){let{path:M}=F;if(m&&M[0]!=="/"){let z=m.record.path,se=z[z.length-1]==="/"?"":"/";F.path=m.record.path+(M&&se+M)}if(O=Zc(F,m,T),b?b.alias.push(O):(q=q||O,q!==O&&q.alias.push(O),C&&k.name&&!Oa(O)&&a(k.name)),Ua(O)&&f(O),E.children){let z=E.children;for(let se=0;se{a(q)}:An}function a(k){if(ti(k)){let m=i.get(k);m&&(i.delete(k),s.splice(s.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=s.indexOf(k);m>-1&&(s.splice(m,1),k.record.name&&i.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function c(){return s}function f(k){let m=np(k,s);s.splice(m,0,k),k.record.name&&!Oa(k)&&i.set(k.record.name,k)}function v(k,m){let b,C={},E,T;if("name"in k&&k.name){if(b=i.get(k.name),!b)throw pn(je.MATCHER_NOT_FOUND,{location:k});T=b.record.name,C=Oe(Ta(m.params,b.keys.filter(q=>!q.optional).concat(b.parent?b.parent.keys.filter(q=>q.optional):[]).map(q=>q.name)),k.params&&Ta(k.params,b.keys.map(q=>q.name))),E=b.stringify(C)}else if(k.path!=null)E=k.path,b=s.find(q=>q.re.test(E)),b&&(C=b.parse(E),T=b.record.name);else{if(b=m.name?i.get(m.name):s.find(q=>q.re.test(m.path)),!b)throw pn(je.MATCHER_NOT_FOUND,{location:k,currentLocation:m});T=b.record.name,C=Oe({},m.params,k.params),E=b.stringify(C)}let D=[],O=b;for(;O;)D.unshift(O.record),O=O.parent;return{name:T,path:E,params:C,matched:D,meta:tp(D)}}e.forEach(k=>r(k));function g(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:a,clearRoutes:g,getRoutes:c,getRecordMatcher:o}}function Ta(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Aa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ep(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 ep(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 Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tp(e){return e.reduce((t,s)=>Oe(t,s.meta),{})}function np(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;La(e,t[r])<0?i=r:s=r+1}let o=op(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function op(e){let t=e;for(;t=t.parent;)if(Ua(t)&&La(e,t)===0)return t}function Ua({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pa(e){let t=ut(ts),s=ut(ns),i=!1,o=null,r=ot(()=>{let g=Ht(e.to);return t.resolve(g)}),a=ot(()=>{let{matched:g}=r.value,{length:k}=g,m=g[k-1],b=s.matched;if(!m||!b.length)return-1;let C=b.findIndex(cn.bind(null,m));if(C>-1)return C;let E=Ia(g[k-2]);return k>1&&Ia(m)===E&&b[b.length-1].path!==E?b.findIndex(cn.bind(null,g[k-2])):C}),c=ot(()=>a.value>-1&&lp(s.params,r.value.params)),f=ot(()=>a.value>-1&&a.value===s.matched.length-1&&xs(s.params,r.value.params));function v(g={}){if(ap(g)){let k=t[Ht(e.replace)?"replace":"push"](Ht(e.to)).catch(An);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:r,href:ot(()=>r.value.href),isActive:c,isExactActive:f,navigate:v}}function sp(e){return e.length===1?e[0]:e}var ip=io({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:Pa,setup(e,{slots:t}){let s=ze(Pa(e)),{options:i}=ut(ts),o=ot(()=>({[Va(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Va(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&sp(t.default(s));return e.custom?r:we("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),rp=ip;function ap(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 lp(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!kt(o)||o.length!==i.length||i.some((r,a)=>r.valueOf()!==o[a].valueOf()))return!1}return!0}function Ia(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Va=(e,t,s)=>e??t??s,dp=io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=ut(os),o=ot(()=>e.route||i.value),r=ut(oi,0),a=ot(()=>{let v=Ht(r),{matched:g}=o.value,k;for(;(k=g[v])&&!k.components;)v++;return v}),c=ot(()=>o.value.matched[a.value]);an(oi,ot(()=>a.value+1)),an(_a,c),an(os,o);let f=tt();return He(()=>[f.value,c.value,e.name],([v,g,k],[m,b,C])=>{g&&(g.instances[k]=v,b&&b!==g&&v&&v===m&&(g.leaveGuards.size||(g.leaveGuards=b.leaveGuards),g.updateGuards.size||(g.updateGuards=b.updateGuards))),v&&g&&(!b||!cn(g,b)||!m)&&(g.enterCallbacks[k]||[]).forEach(E=>E(v))},{flush:"post"}),()=>{let v=o.value,g=e.name,k=c.value,m=k&&k.components[g];if(!m)return qa(s.default,{Component:m,route:v});let b=k.props[g],C=b?b===!0?v.params:typeof b=="function"?b(v):b:null,T=we(m,Oe({},C,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(k.instances[g]=null)},ref:f}));return qa(s.default,{Component:T,route:v})||T}}});function qa(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var si=dp;function Fa(e){let t=xc(e.routes,e),s=e.parseQuery||Ea,i=e.stringifyQuery||ni,o=e.history,r=On(),a=On(),c=On(),f=No(Qt),v=Qt;fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=Xo.bind(null,U=>""+U),k=Xo.bind(null,fa),m=Xo.bind(null,Tn);function b(U,ne){let x,ie;return ti(U)?(x=t.getRecordMatcher(U),ie=ne):ie=U,t.addRoute(ie,x)}function C(U){let ne=t.getRecordMatcher(U);ne&&t.removeRoute(ne)}function E(){return t.getRoutes().map(U=>U.record)}function T(U){return!!t.getRecordMatcher(U)}function D(U,ne){if(ne=Oe({},ne||f.value),typeof U=="string"){let h=Zo(s,U,ne.path),w=t.resolve({path:h.path},ne),R=o.createHref(h.fullPath);return Oe(h,w,{params:m(w.params),hash:Tn(h.hash),redirectedFrom:void 0,href:R})}let x;if(U.path!=null)x=Oe({},U,{path:Zo(s,U.path,ne.path).path});else{let h=Oe({},U.params);for(let w in h)h[w]==null&&delete h[w];x=Oe({},U,{params:k(h)}),ne.params=k(ne.params)}let ie=t.resolve(x,ne),ge=U.hash||"";ie.params=g(m(ie.params));let Ce=ha(i,Oe({},U,{hash:pa(ge),path:ie.path})),_=o.createHref(Ce);return Oe({fullPath:Ce,hash:ge,query:i===ni?Ca(U.query):U.query||{}},ie,{redirectedFrom:void 0,href:_})}function O(U){return typeof U=="string"?Zo(s,U,f.value.path):Oe({},U)}function q(U,ne){if(v!==U)return pn(je.NAVIGATION_CANCELLED,{from:ne,to:U})}function F(U){return se(U)}function M(U){return F(Oe(O(U),{replace:!0}))}function z(U,ne){let x=U.matched[U.matched.length-1];if(x&&x.redirect){let{redirect:ie}=x,ge=typeof ie=="function"?ie(U,ne):ie;return typeof ge=="string"&&(ge=ge.includes("?")||ge.includes("#")?ge=O(ge):{path:ge},ge.params={}),Oe({query:U.query,hash:U.hash,params:ge.path!=null?{}:U.params},ge)}}function se(U,ne){let x=v=D(U),ie=f.value,ge=U.state,Ce=U.force,_=U.replace===!0,h=z(x,ie);if(h)return se(Oe(O(h),{state:typeof h=="object"?Oe({},ge,h.state):ge,force:Ce,replace:_}),ne||x);let w=x;w.redirectedFrom=ne;let R;return!Ce&&ma(i,ie,x)&&(R=pn(je.NAVIGATION_DUPLICATED,{to:w,from:ie}),Ne(ie,ie,!0,!1)),(R?Promise.resolve(R):I(w,ie)).catch(P=>Lt(P)?Lt(P,je.NAVIGATION_GUARD_REDIRECT)?P:$e(P):re(P,w,ie)).then(P=>{if(P){if(Lt(P,je.NAVIGATION_GUARD_REDIRECT))return se(Oe({replace:_},O(P.to),{state:typeof P.to=="object"?Oe({},ge,P.to.state):ge,force:Ce}),ne||w)}else P=K(w,ie,!0,_,ge);return H(w,ie,P),P})}function oe(U,ne){let x=q(U,ne);return x?Promise.reject(x):Promise.resolve()}function S(U){let ne=Le.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(U):U()}function I(U,ne){let x,[ie,ge,Ce]=Sa(U,ne);x=ss(ie.reverse(),"beforeRouteLeave",U,ne);for(let h of ie)h.leaveGuards.forEach(w=>{x.push(Yt(w,U,ne))});let _=oe.bind(null,U,ne);return x.push(_),Ue(x).then(()=>{x=[];for(let h of r.list())x.push(Yt(h,U,ne));return x.push(_),Ue(x)}).then(()=>{x=ss(ge,"beforeRouteUpdate",U,ne);for(let h of ge)h.updateGuards.forEach(w=>{x.push(Yt(w,U,ne))});return x.push(_),Ue(x)}).then(()=>{x=[];for(let h of Ce)if(h.beforeEnter)if(kt(h.beforeEnter))for(let w of h.beforeEnter)x.push(Yt(w,U,ne));else x.push(Yt(h.beforeEnter,U,ne));return x.push(_),Ue(x)}).then(()=>(U.matched.forEach(h=>h.enterCallbacks={}),x=ss(Ce,"beforeRouteEnter",U,ne,S),x.push(_),Ue(x))).then(()=>{x=[];for(let h of a.list())x.push(Yt(h,U,ne));return x.push(_),Ue(x)}).catch(h=>Lt(h,je.NAVIGATION_CANCELLED)?h:Promise.reject(h))}function H(U,ne,x){c.list().forEach(ie=>S(()=>ie(U,ne,x)))}function K(U,ne,x,ie,ge){let Ce=q(U,ne);if(Ce)return Ce;let _=ne===Qt,h=fn?history.state:{};x&&(ie||_?o.replace(U.fullPath,Oe({scroll:_&&h&&h.scroll},ge)):o.push(U.fullPath,ge)),f.value=U,Ne(U,ne,x,_),$e()}let X;function Y(){X||(X=o.listen((U,ne,x)=>{if(!qe.listening)return;let ie=D(U),ge=z(ie,qe.currentRoute.value);if(ge){se(Oe(ge,{replace:!0,force:!0}),ie).catch(An);return}v=ie;let Ce=f.value;fn&&ba(ei(Ce.fullPath,x.delta),po()),I(ie,Ce).catch(_=>Lt(_,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?_:Lt(_,je.NAVIGATION_GUARD_REDIRECT)?(se(Oe(O(_.to),{force:!0}),ie).then(h=>{Lt(h,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!x.delta&&x.type===xo.pop&&o.go(-1,!1)}).catch(An),Promise.reject()):(x.delta&&o.go(-x.delta,!1),re(_,ie,Ce))).then(_=>{_=_||K(ie,Ce,!1),_&&(x.delta&&!Lt(_,je.NAVIGATION_CANCELLED)?o.go(-x.delta,!1):x.type===xo.pop&&Lt(_,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),H(ie,Ce,_)}).catch(An)}))}let ee=On(),ce=On(),le;function re(U,ne,x){$e(U);let ie=ce.list();return ie.length?ie.forEach(ge=>ge(U,ne,x)):console.error(U),Promise.reject(U)}function Se(){return le&&f.value!==Qt?Promise.resolve():new Promise((U,ne)=>{ee.add([U,ne])})}function $e(U){return le||(le=!U,Y(),ee.list().forEach(([ne,x])=>U?x(U):ne()),ee.reset()),U}function Ne(U,ne,x,ie){let{scrollBehavior:ge}=e;if(!fn||!ge)return Promise.resolve();let Ce=!x&&wa(ei(U.fullPath,0))||(ie||!x)&&history.state&&history.state.scroll||null;return Ye().then(()=>ge(U,ne,Ce)).then(_=>_&&ya(_)).catch(_=>re(_,U,ne))}let ke=U=>o.go(U),Ee,Le=new Set,qe={currentRoute:f,listening:!0,addRoute:b,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:E,resolve:D,options:e,push:F,replace:M,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:r.add,beforeResolve:a.add,afterEach:c.add,onError:ce.add,isReady:Se,install(U){U.component("RouterLink",rp),U.component("RouterView",si),U.config.globalProperties.$router=qe,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(f)}),fn&&!Ee&&f.value===Qt&&(Ee=!0,F(o.location).catch(ie=>{}));let ne={};for(let ie in Qt)Object.defineProperty(ne,ie,{get:()=>f.value[ie],enumerable:!0});U.provide(ts,qe),U.provide(ns,Wn(ne)),U.provide(os,f);let x=U.unmount;Le.add(U),U.unmount=function(){Le.delete(U),Le.size<1&&(v=Qt,X&&X(),X=null,f.value=Qt,Ee=!1,le=!1),x()}}};function Ue(U){return U.reduce((ne,x)=>ne.then(()=>S(x)),Promise.resolve())}return qe}function Ba(e){return ut(ns)}var is=new WeakMap;function ii(e){if(!is.has(e)){let t=e.get("/api/billing/").finally(()=>is.delete(e));is.set(e,t)}return is.get(e)}function rs(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success"||o==="portal",e.billingRepository="";let r={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 for it to expire before choosing a different plan.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has an active paid package.",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.billingPrice=f=>f.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:f.currency}).format(f.amount/100)+(f.interval?` / ${f.intervalCount>1?f.intervalCount+" ":""}${f.interval}`:" once"),e.billingBytes=f=>{let v=Number(f)||0;if(v<1024)return`${v} B`;let g=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**g)} ${["B","KiB","MiB","GiB","TiB"][g]}`},e.billingDate=f=>f?new Date(f).toLocaleDateString():"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,ii(t).then(f=>{e.billing=f.data,e.emit?.("billing:updated",f.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function a(f,v,g=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let k=await t.post(`/api/billing/${f}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(g)window.location.assign(k.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!k.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=k.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",k.data}catch(k){e.billingError=r[k.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(f,v="",g={})=>a("checkout",{planId:f,target:v,...g}),e.billingPortal=()=>a("portal",{}),e.refreshBilling=()=>a("refresh",{},!1);async function c(){for(let f=0;f<5;f++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(g=>window.setTimeout(g,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"||o==="portal"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",c()):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function za(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ri(e=null,t=new Map){let s=ze({}),i=[],o=!1,r=new Proxy(s,{get(a,c){return typeof c=="string"&&c.startsWith("__v_")||Reflect.has(a,c)?Reflect.get(a,c):e?.[c]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(a,c,f=!1,v=!0)=>{let g=typeof a=="function"?()=>a(r):()=>za(r,a),k=He(g,c,{deep:f,flush:"post"});return i.push(k),v&&Ye(()=>{o||c(g(),g())}),k},r.watchGroup=(a,c,f=!0)=>r.watch(()=>a.map(v=>za(r,v)),c,!0,f),r.on=(a,c)=>{if(a==="dispose")return i.push(c),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(c);let f=()=>t.get(a)?.delete(c);return i.push(f),f},r.emit=(a,...c)=>{for(let f of[...t.get(a)||[]])f({},...c)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(a=>a())},jn(r.dispose),r}function ct(){let e=new Set,t=new Set,s=!1,i=(r,a=0)=>{if(s)return;let c=setTimeout(()=>{e.delete(c),r()},a);return e.add(c),c};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,a)=>{if(s)return;let c=setInterval(r,a);return t.add(c),c};return o.cancel=r=>{clearInterval(r),t.delete(r)},jn(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Jt(){let e=new Set;return jn(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}function ai(e,t,s){let i,o=!1,r="form-draft:"+s,a=()=>Object.fromEntries(t.map(m=>[m,e[m]])),c=()=>JSON.stringify(a()),f=m=>{for(let b of t)Object.prototype.hasOwnProperty.call(m,b)&&(e[b]=m[b]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},g=(m=!1)=>{if(i!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(b=>{b._field?.binding.state===e&&b._field.timer&&b._field.commit()}),e.unsavedChanges=c()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},k=()=>g(!0);return e.on("routeLeave",k),window.addEventListener("beforeunload",k),e.on("dispose",()=>window.removeEventListener("beforeunload",k)),{restore(){i=c();let m;try{m=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let b=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return b&&(f(m.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>a(),()=>g(),!0)),e.unsavedChanges=c()!==i,!!b},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state===e&&m._field.timer&&m._field.commit()}),JSON.parse(c())},accept(m){i=JSON.stringify(m),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),i!==void 0&&f(JSON.parse(i)),e.draftRestored=!1,g()},clear(){i=c(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function up(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 Ha=function(e,t,s,i){e.previewTabKeydown=up,e.headerCanUpgrade=!1,e.headerBillingPending=["success","portal"].includes(new URLSearchParams(window.location.search).get("billing"));let o=v=>{let g=(v?.grants||[]).some(k=>["author_monthly","author_annual"].includes(k.planId)&&["active","paid","past_due"].includes(k.status)&&new Date(k.until).getTime()>Date.now());e.headerCanUpgrade=!!v?.enabled&&v.checkoutEnabled!==!1&&!g&&(v.plans||[]).some(k=>["author_monthly","author_annual"].includes(k.id))};e.on("billing:updated",(v,g)=>o(g)),e.on("billing:pending",(v,g)=>{e.headerBillingPending=g}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")},e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(v){let g=e.toasts.indexOf(v);g!==-1&&e.toasts.splice(g,1)},e.addToast=function(v){return e.toasts.push(v),i(function(){e.removeToast(v)},8e3),v},e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.darkMode=function(v){localStorage.setItem("darkMode",v),e.isDarkMode=v;let g="/css/prism-okaidia.css",k="/css/prism.css";if(v){$("body").addClass("dark-mode");let b=document.createElement("link");b.href=g,b.rel="stylesheet",document.head.append(b),$(`link[href='${k}']`).remove()}else{$("body").removeClass("dark-mode");let b=document.createElement("link");b.href=k,b.rel="stylesheet",document.head.append(b),$(`link[href='${g}']`).remove()}let m=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");m&&(m.style.backgroundColor=v?"#FAF9F6":"#1A1815",m.style.color=v?"#1A1815":"#FAF9F6"),e.emit("dark-mode",v)},e.darkMode(localStorage.getItem("darkMode")=="true");function r(){t.get("/api/user").then(v=>{v&&(e.user=v.data),e.user?.username&&ii(t).then(g=>o(g.data)).catch(()=>{})},()=>{e.user=null})}r();function a(){t.get("/api/options").then(v=>{v&&(e.site_options=v.data)},()=>{e.site_options=null})}a();function c(){t.get("/api/message").then(v=>{v&&(e.generalMessage=v.data)},()=>{e.generalMessage=null})}c();function f(v,g){g&&(e.title=g.title),e.path=s.url(),e.paths=s.path().substring(1).split("/")}e.on("routeChange",f),e.on("routeUpdate",f)},ja=function(e,t){let s=Jt(),i=ct(),o=()=>{let r=window.location.hash.slice(1),a=document.getElementById(r);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let c=document.getElementById(a.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(o,0)),s(window,"hashchange",o),i.timeout(o,0)},Ga=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(f=>["author_monthly","author_annual"].includes(f.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_monthly",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Ye(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(f=>["author_monthly","author_annual"].includes(f.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(f=>f.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(f=>f.id==="author_pass"),e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(f=>["author_monthly","author_annual"].includes(f.planId)&&["active","paid","past_due"].includes(f.status)&&new Date(f.until).getTime()>Date.now()),e.profileGrantName=f=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Repository pass",conference:"Conference hosting"})[f.planId]||f.planId,rs(e,t,()=>o.load().then(f=>{e.quota=f},console.error)),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,o.load().then(f=>{e.quota=f},console.error);let r=ai(e,["terms","options"],"profile");e.discardDraft=()=>r.discard();function a(){t.get("/api/user/default").then(f=>{let v=f.data||{};v.terms&&(e.terms=v.terms.join(` -`)),e.options=Object.assign({},e.options,v.options),r.restore()})}a();let c=null;e.saveDefault=f=>{if(f&&f.preventDefault&&f.preventDefault(),e.saving)return;let v=r.checkpoint(),g={terms:e.terms.split(` -`).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",g).then(()=>{r.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",c&&i.cancel(c),c=i(()=>{e.message=null},2500)},k=>{e.saving=!1;let b="ERRORS."+(k&&k.data&&k.data.error);s(b).then(C=>{e.error=C&&C!==b?C:"Unable to save your defaults. Please try again."},()=>{e.error="Unable to save your defaults. Please try again."})})},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."}))}},Wa=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)})}},Ka=function(e,t,s,i,o){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(c){e.feature=c},e.featureHref=function(c){return c.needsUser&&!e.user?"/signin":c.href},e.featureTarget=function(c){return c.needsUser&&!e.user?"_self":c.target||void 0},e.featureKeydown=function(c,f){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[c.key];if(v===void 0)return;c.preventDefault();let g=e.features.length,k=v==="first"?0:v==="last"?g-1:(f+v+g)%g;e.feature=e.features[k].key,o(()=>{let m=i.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function r(){t.get("/api/stat/").then(c=>{e.stat=c.data,e.cards[0].total=c.data.nbRepositories,e.cards[1].total=c.data.nbUsers,e.cards[2].total=c.data.nbPageViews,e.cards[3].total=c.data.nbPullRequests})}r();function a(c){let f={series:c,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!c||c.length<2)return f;let v=new Array(c.length-1);for(let E=1;E=2){let E=v[g-2];E&&(f.pctChange=(f.deltaToday-E)/E*100)}return f.pctAbs=Math.round(Math.abs(f.pctChange)),f.isUp=f.pctChange>=0,f}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(c=>{let f=c.data||[];e.history={repositories:a(f.map(v=>v.nbRepositories||0)),users:a(f.map(v=>v.nbUsers||0)),pageViews:a(f.map(v=>v.nbPageViews||0)),pullRequests:a(f.map(v=>v.nbPullRequests||0))}})},Ya=function(e,t,s,i,o,r){let a=ct();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ye(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Jt()(document,"click",S=>{e.quotaExpanded&&!S.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=S=>S.status==="error"||S._broken||f(S.status)==="progress"&&S._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=S=>{e.projectView=S,S==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=S=>"project-details-"+encodeURIComponent(S._type+":"+(S._id||S._source||"unknown")),e.showProjectDetails=async S=>{e.selectedProject=S,e.projectName=S.projectName||"",e.nameError="",e.nameMessage="",await Ye();let I=document.getElementById(e.projectDetailsId(S));I?.focus(),I?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=S=>{e.selectedProject=null,Ye(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(S._type+":"+S._id)}"]`)?.focus())},e.saveProjectName=async S=>{if(e.nameSaving||!S._id)return;let I=e.projectName.trim();if(I.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let H=await t.post("/api/user/project-name",{type:S._type,id:S._id,name:I});S.projectName=H.data.name,S._label=S.projectName||S._fallbackLabel,e.selectedProject===S&&(e.nameMessage=I?"Project name saved.":"Default project name restored."),O||(e.dashboardCursor=null,await F(),e.selectedProject===S&&(e.selectedProject=e.items.find(K=>K._type===S._type&&K._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 I=new URL(S._viewUrl,o.location.origin).href;e.copyingId=S._type+":"+S._id;try{if(o.navigator.clipboard?.writeText)await o.navigator.clipboard.writeText(I);else{let H=document.createElement("textarea");H.value=I,H.setAttribute("readonly",""),H.style.position="fixed",H.style.opacity="0";let K=document.activeElement;document.body.appendChild(H);try{if(H.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{H.remove(),K?.focus()}}e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:I})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let c=["queue","download","downloaded","preparing","anonymizing"];function f(S){return S==="ready"||S==="error"?S:S==="expired"||S==="expiring"?"expired":S==="removed"||S==="removing"?"removed":(c.indexOf(S)>-1,"progress")}let v=7200*1e3,g="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(g)||{};e.typeFilter=m.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||k.orderBy;let b={_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=b,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let S=b[e.sortField()];return S?S.label:"Custom"},e.isSortedBy=S=>e.sortField()===S,e.setSort=(S,I)=>{typeof I!="boolean"&&(I=e.isSortedBy(S)?!e.sortDesc():!!(b[S]&&b[S].defaultDesc)),e.orderBy=(I?"-":"")+S},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(S=>{e.quota=S},console.error);function C(S,I,H,K,X,Y){S.pageView||(S.pageView=0),S.lastView||(S.lastView=""),S.options=S.options||{},S.options.terms=(S.options.terms||[]).filter(ce=>ce),S._id=I||"",S._source=K,S._broken=!I,S._name=I||K||"(unnamed)",S._fallbackLabel=S._type==="gist"?"Gist "+(I||K||"without an ID"):K||H||S._name,S._label=S.projectName||S._fallbackLabel,S._editUrl=I?X:null,S._viewUrl=I?Y:null,S._broken&&(S.status="error",S.statusMessage="incomplete_record"),S._statusKey=f(S.status);let ee=S.anonymizeDate||S.lastView;return S._stale=S._statusKey==="progress"&&!!ee&&Date.now()-new Date(ee).getTime()>v,S.status==="expired"||S.status==="expiring"?S._expiry={kind:"expired",date:S.options.expirationDate}:S.status!=="ready"?S._expiry={kind:"none"}:S.options.expirationMode==="never"||!S.options.expirationDate?S._expiry={kind:"never"}:S._expiry={kind:"date",date:S.options.expirationDate},S}function E(S){return t.get(S).then(I=>I.data||[],I=>(console.error(I),[]))}function T(){return e.loading=!0,i.all([E("/api/user/anonymized_repositories"),E("/api/user/anonymized_pull_requests"),E("/api/user/anonymized_gists")]).then(S=>{let I=S[0],H=S[1],K=S[2],X=[];I.forEach(Y=>{Y._type="repo";let ee=Y.source||{};X.push(C(Y,Y.repoId,Y.repoId,ee.fullName,"/anonymize/"+Y.repoId,"/r/"+Y.repoId+"/"))}),H.forEach(Y=>{Y._type="pr";let ee=Y.source||{};X.push(C(Y,Y.pullRequestId,Y.pullRequestId,ee.repositoryFullName?ee.repositoryFullName+"#"+ee.pullRequestId:void 0,"/pull-request-anonymize/"+Y.pullRequestId,"/pr/"+Y.pullRequestId+"/"))}),K.forEach(Y=>{Y._type="gist";let ee=Y.source||{};X.push(C(Y,Y.gistId,Y.gistId,ee.gistId,"/gist-anonymize/"+Y.gistId,"/gist/"+Y.gistId+"/"))}),e.items=X,e.loading=!1})}let D=0,O=!1;e.dashboardCursor=null,e.dashboardError="";function q(S){let I=S.source||{};return S._type==="repo"?C(S,S.repoId,S.repoId,I.fullName,"/anonymize/"+S.repoId,"/r/"+S.repoId+"/"):S._type==="pr"?C(S,S.pullRequestId,S.pullRequestId,I.repositoryFullName?I.repositoryFullName+"#"+I.pullRequestId:void 0,"/pull-request-anonymize/"+S.pullRequestId,"/pr/"+S.pullRequestId+"/"):C(S,S.gistId,S.gistId,I.gistId,"/gist-anonymize/"+S.gistId,"/gist/"+S.gistId+"/")}function F(S=!1){if(O)return T();let I=++D;return e.loading=!S,e.loadingMore=S,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(H=>e.filters.status[H]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:S?e.dashboardCursor:void 0}}).then(H=>{if(I===D){if(!Array.isArray(H.data?.items))return O=!0,T();e.items=(S?e.items:[]).concat(H.data.items.map(q)),e.dashboardCursor=H.data.cursor,e.dashboardTotals=H.data}},H=>{if(I===D){if(H.status===404)return O=!0,T();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{I===D&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>F(!0);let M;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{O||(M&&a.timeout.cancel(M),M=a.timeout(()=>F(),150))},!1),e.watch("filters",()=>{O||F()},!0,!1),e.on("dispose",()=>{D++}),F(),e.openItem=(S,I)=>{if(!S._viewUrl)return;let H=I&&I.target;H&&H.closest&&H.closest("a, button, .dropdown, input")||(o.location.href=S._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(S=>e.filters.status[S]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(S=>e.filters.status[S]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(S=>{e.filters.status[S]=!0})};function z(S,I,H,K){t.get("/api/repo/"+S).then(async X=>{let Y=K!==void 0&&K!==X.data.status;for(let ee of e.items)if(ee._type==="repo"&&ee.repoId==S){Y=Y||ee.status!==X.data.status;let ce=e.needsAttention(ee);ee.status=X.data.status,ee.statusMessage=X.data.statusMessage,ee._statusKey=f(ee.status),ee._statusKey!=="progress"&&(ee._stale=!1);let le=e.needsAttention(ee);e.dashboardTotals&&ce!==le&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(le?1:-1)));break}if(Y&&!O){e.dashboardCursor=null;let ee=e.selectedProject;await F(),ee&&e.selectedProject===ee&&(e.selectedProject=e.items.find(ce=>ce._type===ee._type&&ce._id===ee._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){I(X.data);return}a.timeout(()=>z(S,I,H,X.data.status),2500)},H)}let se=S=>S==="repo"?"repository":S==="gist"?"gist":"pull request",oe=S=>S==="repo"?"/api/repo":S==="gist"?"/api/gist":"/api/pr";e.removeItem=S=>{let I=se(S._type);if(confirm(`Are you sure that you want to remove the ${I} ${S._id}?`)){let H=ze({title:`Removing ${S._id}...`,date:new Date,body:`The ${I} ${S._id} is going to be removed.`});e.addToast(H);let K=`${oe(S._type)}/${S._id}`;t.delete(K).then(()=>{S._type==="repo"?z(S._id,()=>{H.title=`${S._id} is removed.`,H.body=`The ${I} ${S._id} is removed.`},void 0,S.status):(H.title=`${S._id} is removed.`,H.body=`The ${I} ${S._id} is removed.`,F())},X=>{H.title=`Error during the removal of ${S._id}.`,H.body=X.body,F()})}},e.refreshItem=S=>{let I=se(S._type),H=ze({title:`Refreshing ${S._id}...`,date:new Date,body:`The ${I} ${S._id} is going to be refreshed.`});e.addToast(H);let K=Y=>{H.title=`Error during the refresh of ${S._id}.`,H.body=Y.data?.error||Y.body||"The refresh could not be completed. Please try again.",F()},X=`${oe(S._type)}/${S._id}/refresh`;t.post(X).then(()=>{S._type==="repo"?z(S._id,Y=>{if(Y.status!=="ready"){K({body:Y.statusMessage||`The repository is ${Y.status}.`});return}H.title=`${S._id} is refreshed.`,H.body=`The ${I} ${S._id} is refreshed.`},K,S.status):(H.title=`${S._id} is refreshed.`,H.body=`The ${I} ${S._id} is refreshed.`,F())},K)},e.extendItem=S=>{let I=se(S._type),H=ze({title:`Extending ${S._id}...`,date:new Date,body:`The expiration of ${I} ${S._id} is going to be extended by 6 months.`});e.addToast(H);let K=`${oe(S._type)}/${S._id}/extend`;t.post(K).then(()=>{S._type==="repo"?z(S._id,()=>{H.title=`${S._id} is extended.`,H.body=`The expiration of ${I} ${S._id} is extended by 6 months.`},void 0,S.status):(H.title=`${S._id} is extended.`,H.body=`The expiration of ${I} ${S._id} is extended by 6 months.`,F())},X=>{H.title=`Error during the extension of ${S._id}.`,H.body=X.data&&X.data.error||X.body,F()})},e.itemFilter=S=>{if(e.projectView==="attention"&&!e.needsAttention(S)||e.typeFilter!=="all"&&S._type!==e.typeFilter||e.filters.status[S._statusKey]===!1)return!1;let I=e.search.trim().toLowerCase();return!!(I.length==0||S._label&&String(S._label).toLowerCase().indexOf(I)>-1||S._source&&String(S._source).toLowerCase().indexOf(I)>-1||S._id&&String(S._id).toLowerCase().indexOf(I)>-1||S.conference&&String(S.conference).toLowerCase().indexOf(I)>-1)}};var Qa=function(e,t,s){let i=ct();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="";var o=null;let r=null,a=!1;function c(v){e.rateLimitResetAt=v,o&&i.interval.cancel(o);function g(){var k=Math.max(0,Math.ceil((v-Date.now())/1e3));if(k<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(o),o=null;else{var m=Math.floor(k/60),b=k%60;e.rateLimitCountdown=m>0?m+"m "+b+"s":b+"s"}}g(),o=i.interval(g,1e3)}e.on("dispose",function(){a=!0,o&&i.interval.cancel(o),r&&i.timeout.cancel(r)});function f(v){if(!v)return v;var g=v.match(/^rate_limited:(\d+)$/);return g?(c(parseInt(g[1],10)),null):(e.rateLimitResetAt=0,v)}e.getStatus=()=>{a||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(v=>{if(!a){e.repo=v.data,v.data.rateLimitResetAt?c(v.data.rateLimitResetAt):e.repo.statusMessage=f(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 g=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(g=!1),g&&(r=i.timeout(e.getStatus,2e3))}},v=>{e.error=v.data.error})},e.getStatus()},as=function(e,t,s,i,o,r,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let c=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!c?.matches,c?.addEventListener&&Jt()(c,"change",_=>{e.mobileWorkspace=_.matches}),e.selectMobilePane=_=>{e.mobilePane=_};let f=0,v=!1,g=new Set,k=(_,h=!1)=>!v&&_.generation===f&&_.url===e.sourceUrl.trim()&&_.connection===e.githubConnection&&(!h||_.branch===e.source.branch),m=()=>{let _={generation:f,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(_),e.sourceLoading=!0,_},b=_=>{g.delete(_),v||(e.sourceLoading=[...g].some(h=>k(h)))};e.on("dispose",()=>{v=!0,f++});let C=null,E=_=>_.gistId&&!_.repo?"gist:"+_.gistId.toLowerCase():(_.owner+"/"+_.repo).toLowerCase()+(_.pullRequestId?"/pull/"+_.pullRequestId:""),T=ai(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),D=null,O=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,Ye(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=_=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(ge()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository():e.anonymizeRepo(_)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=_=>_.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:_.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(_.amount/100)+(_.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="author_monthly",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(_=>_.id===e.hostingPlan)||e.authorPlans()[0];let q=()=>t.get("/api/user/quota").then(_=>{e.hostingQuota=_.data});rs(e,t,async()=>{await q(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),q().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(_=>["author_monthly","author_annual"].includes(_.id)),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner")return!1;let _=e.options?.expirationMode==="never"&&!e._existingNever,h=e.hostingQuota?.repository,w=!e.isUpdate&&!e.conference&&h&&h.used>=h.total;return!!(_||!e.conference&&(w||e.hostingQuotaBlocked))},e.checkoutRepository=async(_=!1)=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let h=T.checkpoint(),w=JSON.stringify(h);(!D||w!==O)&&(D=(await t.post("/api/billing/draft",{path:o.path(),values:h},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,O=w);let R=e.authorPlans().find(P=>P.id===e.hostingPlan)||e.authorPlans()[0];if(!_&&!R)throw new Error("No author plan available");await e.checkout(_?"author_pass":R.id,_?e.repoId:"",{draftId:D})}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()=>{T.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(f++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),Ee.cancel(),U.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let F=()=>{let _={};for(let h of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])_[h]=e[h];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:_}))};e.connectGistApp=()=>{F(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{F(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{F();let _=o.path(),h=I(e.sourceUrl)||"",w=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=w+"?returnTo="+encodeURIComponent(_)+"&repository="+encodeURIComponent(h)+"&install=1"},e.chooseGitHubConnection=async _=>{e.githubConnection=_,e.readme="",e.sourceUrl&&await K()},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 M(){let _=new Date;return _.setMonth(_.getMonth()+6),_}e.options.expirationDate=M();function z(_){let h=_.getFullYear(),w=String(_.getMonth()+1).padStart(2,"0"),R=String(_.getDate()).padStart(2,"0");return`${h}-${w}-${R}`}e.minExpirationDate=z(new Date);let se=new Date;se.setFullYear(se.getFullYear()+1),e.maxExpirationDate=z(se),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function oe(_){t.get("/api/user/default").then(h=>{let w=h.data;w.terms&&(e.defaultTerms=w.terms.join(` -`)),e.options=Object.assign({},e.options,w.options),e.options.expirationDate=w.options&&w.options.expirationDate?new Date(w.options.expirationDate):M(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),_&&_()})}function S(_,h,w){e.anonymize&&e.anonymize[_]&&e.anonymize[_].setValidity(h,w)}function I(_){try{let h=parseGithubUrl(_);if(h&&h.owner&&h.repo)return h.owner+"/"+h.repo}catch{}return null}e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await Y()}catch{}}};function H(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:I(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function K(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function X(){let _=new URLSearchParams(window.location.search).get("billingDraft");if(_){T.restore();try{let w=(await t.get("/api/billing/draft/"+encodeURIComponent(_))).data;if(w.path!==o.path())throw new Error("Wrong task");for(let R of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(w.values,R)&&(e[R]=w.values[R]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),D=w.id,O=JSON.stringify(T.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await K(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let h;try{h=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!h||h.path!==o.path()||Date.now()-h.savedAt>=30*6e4)return T.restore()?(e.sourceUrl&&await K(),!0):!1;T.restore();for(let w of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(h.draft,w)&&(e[w]=h.draft[w]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await K(),sessionStorage.removeItem("github-access-draft"),!0}oe(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&a(X,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async _=>{e.githubConnection=_.data.connection||"oauth",e.sourceUrl="https://github.com/"+_.data.source.fullName,e._originalFullName=_.data.source.fullName,e.terms=_.data.options.terms.filter(h=>h).join(` -`),e.source=_.data.source,e.role=_.data.role||"owner",e._existingNever=_.data.options.expirationMode==="never",e.coauthors=_.data.coauthors||[],e._originalBranch=_.data.source.branch,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,e.repositoryID=_.data.source.repositoryID,e._originalRepositoryID=_.data.source.repositoryID,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await X()&&(await Promise.all([Y(),ee()]),Se())},()=>{o.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async _=>{if(e.githubConnection=_.data.connection||"oauth",e.sourceUrl="https://github.com/"+_.data.source.repositoryFullName+"/pull/"+_.data.source.pullRequestId,e.terms=_.data.options.terms.filter(h=>h).join(` -`),e.source=_.data.source,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await X())try{await $e()}catch{}},()=>{o.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.sourceUrl="https://gist.github.com/"+_.data.source.gistId,e.terms=_.data.options.terms.filter(h=>h).join(` -`),e.source=_.data.source,e.options=Object.assign({},e.options,_.data.options),e.conference=_.data.conference,e._originalConference=_.data.conference,_.data.options.expirationDate&&(e.options.expirationDate=new Date(_.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await X()&&await Le()},()=>{o.url("/404")}))}),t.get("/github/connections").then(_=>{e.githubConnections=_.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&_.data.appEnabled&&_.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&K())}).catch(()=>{}),e.urlSelected=async(_=!1)=>{let h=++f,w;try{w=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),Ee.cancel(),U.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",S("sourceUrl","github",!1);return}let R=E(w),P=_||C===R;C=R,e.sourceUrlError="",S("sourceUrl","github",!0);let L=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,L&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!P&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],P||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),Ee.cancel(),U.cancel(),Ne.clear(),qe.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=P;try{w.gistId&&!w.repo?(e.detectedType="gist",e.source={gistId:w.gistId},await Le()):w.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:w.owner+"/"+w.repo,pullRequestId:w.pullRequestId},await $e()):(e.detectedType="repo",await Promise.all([Y(),ee()]),Se())}catch{}finally{h===f&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let _=e.branches.filter(w=>w.name==e.source.branch)[0];if(!_)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=_.commit),e.readme=_.readme,await ee(),Se()}),e.getBranches=async _=>{let h=parseGithubUrl(e.sourceUrl),w=m();try{let R=await t.get(`/api/repo/${h.owner}/${h.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&I(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:_===!0||e.reconnectingSource?"1":"0",repositoryID:H()}});if(!k(w))return;e.branches=R.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let P=e.branches.filter(L=>L.name==e.source.branch);P.length>0&&(!(!e.reconnectingSource&&!_&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=P[0].commit),e.readme=P[0].readme,await ee(_))}catch(R){if(!k(w))return;e.branches=[],e.sourceUnreachable=R&&(R.status===404||R.data&&R.data.error==="repo_not_found");let P=R&&R.data&&R.data.error||(R&&R.status===404?"repo_not_found":"unknown_error");r("ERRORS."+P).then(L=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:L}),e.error=L},console.error),typeof S=="function"&&S("sourceUrl","missing",!1)}finally{b(w)}};async function Y(){let _=parseGithubUrl(e.sourceUrl),h=m();try{ie();let w=await t.get(`/api/repo/${_.owner}/${_.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&I(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:H(),force:"1"}});if(!k(h))return;e.details=w.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(w){if(!k(h))return;throw w.data&&(r("ERRORS."+w.data.error).then(R=>{e.addToast({title:"Error",date:new Date,body:R}),e.error=R},console.error),Ce(w.data.error)),S("sourceUrl","missing",!1),w}finally{b(h)}}async function ee(_){if(e.readme&&!_)return e.readme;let h=parseGithubUrl(e.sourceUrl),w=m();try{let R=await t.get(`/api/repo/${h.owner}/${h.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&I(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:_===!0?"1":"0",branch:e.source.branch,repositoryID:H()}});k(w,!0)&&(e.readme=R.data)}catch{k(w,!0)&&(e.readme="")}finally{b(w)}}function ce(){let _={terms:e.terms?e.terms.split(` -`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(_.branchName=e.source.branch);try{let h=parseGithubUrl(e.sourceUrl);_.repoName=`${h.owner}/${h.repo}`}catch{}return _}function le(_,h,w){let R=null,P=0,L=()=>{if(e.detectedType!==_)return;R&&a.cancel(R);let V=++P;e.previewStatus="loading",R=a(()=>{R=null;let B=h();if(!B){e.previewStatus="idle";return}t.post("/api/anonymize-preview",B).then(Q=>{V===P&&(w(Q.data,B),e.previewStatus="ready")}).catch(()=>{V===P&&(e.previewStatus="error")})},200)};return L.cancel=()=>{P++,R&&a.cancel(R),R=null},e.on("dispose",L.cancel),L}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&Ee(),e.detectedType==="gist"&&U()};let re=le("repo",()=>e.readme?{content:e.readme,options:ce()}:null,_=>{if(typeof _?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=_.content;let h="";try{let R=parseGithubUrl(e.sourceUrl),P=e.source.branch||e.details&&e.details.defaultBranch||"main";h=`https://github.com/${R.owner}/${R.repo}/raw/${P}/`}catch{}let w=renderMD(e.anonymize_readme,h);e.html_readme=w,a(Prism.highlightAll,150)});function Se(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function $e(){let _=parseGithubUrl(e.sourceUrl),h=m();try{ie();let w=await t.get(`/api/pr/${_.owner}/${_.repo}/${_.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(h))return;e.details=w.data,e.pullRequestId||(e.pullRequestId=_.repo+"-PR"+_.pullRequestId+"-"+generateRandomId(4))}catch(w){if(!k(h))return;throw w.data&&(r("ERRORS."+w.data.error).then(R=>{e.addToast({title:"Error",date:new Date,body:R}),e.error=R},console.error),Ce(w.data.error)),S("sourceUrl","missing",!1),w}finally{b(h)}}let Ne=ze(new Map);function ke(){let _=new Set,h=e.details&&e.details.pullRequest;if(!h)return _;typeof h.title=="string"&&_.add(h.title),typeof h.body=="string"&&_.add(h.body),typeof h.diff=="string"&&_.add(h.diff);let w=h.comments||[];for(let R of w)typeof R.author=="string"&&_.add(R.author),typeof R.body=="string"&&_.add(R.body);return _}let Ee=le("pr",()=>{let _=ke(),h=Array.from(_);return h.length===0?null:{contents:h,options:ce()}},(_,h)=>{if(!Array.isArray(_?.contents)||_.contents.length!==h.contents.length||_.contents.some(P=>typeof P!="string"))throw Error("Invalid preview response");let w=h.contents,R=new Map;for(let P=0;PNe.set(L,P))});e.anonymizePrContent=function(_){return _&&(Ne.has(_)?Ne.get(_):"")};async function Le(){let _=parseGithubUrl(e.sourceUrl),h=m();try{ie(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let w=await t.get(`/api/gist/source/${_.gistId}`);if(!k(h))return;e.details=w.data,e.gistId||(e.gistId="gist-"+_.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(w){if(!k(h))return;if(w.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,S("sourceUrl","missing",!1);return}if(w.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,S("sourceUrl","missing",!1);return}throw w.data&&(r("ERRORS."+w.data.error).then(R=>{e.addToast({title:"Error",date:new Date,body:R}),e.error=R},console.error),Ce(w.data.error)),S("sourceUrl","missing",!1),w}finally{b(h)}}let qe=ze(new Map);function Ue(){let _=new Set,h=e.details&&e.details.gist;if(!h)return _;typeof h.description=="string"&&_.add(h.description),typeof h.ownerLogin=="string"&&_.add(h.ownerLogin);let w=h.files||[];for(let P of w)typeof P.filename=="string"&&_.add(P.filename),typeof P.content=="string"&&_.add(P.content);let R=h.comments||[];for(let P of R)typeof P.author=="string"&&_.add(P.author),typeof P.body=="string"&&_.add(P.body);return _}let U=le("gist",()=>{let _=Ue(),h=Array.from(_);return h.length===0?null:{contents:h,options:ce()}},(_,h)=>{if(!Array.isArray(_?.contents)||_.contents.length!==h.contents.length||_.contents.some(P=>typeof P!="string"))throw Error("Invalid preview response");let w=h.contents,R=new Map;for(let P=0;Pqe.set(L,P)),ne()});e.anonymizeGistContent=function(_){return _&&(qe.has(_)?qe.get(_):"")},e.previewGistFiles=[];function ne(){let _=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=_.map(h=>({filename:e.anonymizeGistContent(h.filename),content:e.anonymizeGistContent(h.content),language:h.language}))}e.watch("details.gist.files",ne,!0),e.watch("terms",ne);function x(){let _=e.conference;if(e.conference_data=null,!_)return;let h=e.isUpdate&&_===e._originalConference;t.get("/api/conferences/"+_).then(w=>{e.conference===_&&(e.conference_data=w.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!h&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===_&&(e.conference_data=null)})}function ie(){S("repoId","used",!0),S("repoId","format",!0),S("pullRequestId","used",!0),S("pullRequestId","format",!0),S("gistId","used",!0),S("gistId","format",!0),S("sourceUrl","used",!0),S("sourceUrl","missing",!0),S("sourceUrl","access",!0),S("sourceUrl","github",!0),S("commit","exists",!0),S("conference","activated",!0),S("terms","format",!0),e.termsRegexWarning=!1}function ge(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let _=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||_&&_.invalid?(_&&_.setDirty&&_.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ce(_){let h=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(_){case"repoId_already_used":S(h,"used",!1);break;case"invalid_repoId":S(h,"format",!1);break;case"options_not_provided":S(h,"format",!1);break;case"repo_already_anonymized":S("sourceUrl","used",!1);break;case"invalid_terms_format":S("terms","format",!1);break;case"repo_not_found":S("sourceUrl","missing",!1);break;case"repo_not_accessible":S("sourceUrl","access",!1);break;case"commit_not_found":S("commit","exists",!1);break;case"conf_not_activated":S("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let _=(e.coauthorSearch||"").trim();if(e.coauthorError="",_.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:_}}).then(h=>{let w=new Set((e.coauthors||[]).map(R=>(R.username||"").toLowerCase()));e.coauthorResults=(h.data||[]).filter(R=>!w.has((R.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(_,h)=>{h&&h.preventDefault(),!(!_||!_.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:_.username}).then(w=>{e.coauthors=w.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},w=>{let R=w&&w.data&&w.data.error||"unknown_error";e.coauthorError=R})},e.removeCoauthor=_=>{!_||!_.username||confirm("Remove co-author "+_.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(_.username)).then(h=>{e.coauthors=h.data||[]},h=>{let w=h&&h.data&&h.data.error||"unknown_error";e.coauthorError=w})},e.anonymizeRepo=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(ge()){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,Ye(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let h=_.currentTarget||_.target.closest?.("button")||_.target;h.disabled=!0;let w=parseGithubUrl(e.sourceUrl),R={repoId:e.repoId,terms:e.terms.trim().split(` -`).filter(L=>L),connection:e.githubConnection,fullName:`${w.owner}/${w.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(R.options.pageSource=e.details.pageSource),ie();let P=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(P,R,{headers:{"Content-Type":"application/json"}}).then(()=>{T.clear(),window.location.href="/status/"+e.repoId},L=>{L.data&&(r("ERRORS."+L.data.error).then(V=>{e.error=V},console.error),Ce(L.data.error),["quota_exceeded","subscription_required_for_never_expiration"].includes(L.data.error)&&(L.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Ye(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}))))}).finally(()=>{h.disabled=!1})},e.anonymizeGist=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ge())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let h=_.currentTarget||_.target.closest?.("button")||_.target;h.disabled=!0;let w=parseGithubUrl(e.sourceUrl),R={gistId:e.gistId,terms:e.terms.trim().split(` -`).filter(L=>L),source:{gistId:w.gistId},options:e.options,conference:e.conference};ie();let P=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(P,R,{headers:{"Content-Type":"application/json"}}).then(()=>{T.clear(),window.location.href="/gist/"+e.gistId},L=>{L.data&&(r("ERRORS."+L.data.error).then(V=>{e.error=V},console.error),Ce(L.data.error))}).finally(()=>{h.disabled=!1})},e.anonymizePullRequest=_=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ge())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let h=_.currentTarget||_.target.closest?.("button")||_.target;h.disabled=!0;let w=parseGithubUrl(e.sourceUrl),R={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` -`).filter(L=>L),source:{repositoryFullName:`${w.owner}/${w.repo}`,pullRequestId:w.pullRequestId},options:e.options,conference:e.conference};ie();let P=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(P,R,{headers:{"Content-Type":"application/json"}}).then(()=>{T.clear(),window.location.href="/pr/"+e.pullRequestId},L=>{L.data&&(r("ERRORS."+L.data.error).then(V=>{e.error=V},console.error),Ce(L.data.error))}).finally(()=>{h.disabled=!1})},e.watch("conference",()=>{x()}),e.watch("terms",()=>{e.detectedType==="repo"&&Se(),e.detectedType==="pr"&&Ee(),e.detectedType==="gist"&&U()}),e.watch("options.image",()=>{e.detectedType==="repo"&&Se(),e.detectedType==="pr"&&Ee(),e.detectedType==="gist"&&U()}),e.watch("options.link",()=>{e.detectedType==="repo"&&Se(),e.detectedType==="pr"&&Ee(),e.detectedType==="gist"&&U()}),e.watch("details",()=>{e.detectedType==="pr"&&Ee(),e.detectedType==="gist"&&U()},!0)},li=function(e,t,s,i,o,r){let a=ct(),c=Jt();e.on("dark-mode",(I,H)=>{e.aceOption&&(H?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let f=0,v=!1;e.on("dispose",()=>{v=!0,f++,g&&g.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,c(document,"keydown",function(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.preventDefault();var H=document.querySelector(".tree-search-input");H&&(H.focus(),H.select())}});var g=null;e.onFileSearchChange=function(){g&&(g.resolve(),g=null);let I=e.fileSearchQuery;if(!I||I.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let H=r.defer();g=H,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(I)}`,{timeout:H.promise}).then(function(K){if(!(v||g!==H)){g=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(U){X[(U.path||"")+"/"+U.name]=!0});for(var Y=[],ee={},ce=0;ce0&&e.files.push.apply(e.files,Y);for(var Ee=[],Le=0;Le0&&e.files.push.apply(e.files,Ee),e.fileSearchResults=K.data}},function(){!v&&g===H&&(g=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},m=["license","txt"],b=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],C=["wav","mp3","ogg","wma","flac","aac","m4a"],E=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(I,H){if(e.repoId!=i.repoId)return S();if((i.path||"")!=e.filePath){e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(K=>K&&K.trim().length>0),oe();for(let K=0;K0?e.paths.slice(0,K).join("/"):"";e.files.some(ee=>ee.path===X)||e.getFiles(X)}}});function T(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],H={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(H[X.name.toLowerCase()]=X.name);let K=null;for(let X of I)if(H[X]){K=X;break}if(!K&&Object.keys(H).length>0&&(K=Object.keys(H)[0]),K){let X=s.url();X[X.length-1]!="/"&&(X+="/"),s.url(X+encodePathForUrl(H[K]))}}e.fileCounts=null,e.getFiles=function(I){let H=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(K){if(v||H!==e.repoId)return[];let X=I||"";return e.files=e.files.filter(Y=>Y.path!==X),e.files.push(...K.data),K.data},function(K){if(v||H!==e.repoId)return[];e.type="error",e.content=K&&K.data&&K.data.error||"unknown_error",e.files=[]})};function D(){let I=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(H){v||I!==e.repoId||(e.fileCounts=H.data)},function(){e.fileCounts={}})}function O(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var q=null;e.on("dispose",function(){q&&a.interval.cancel(q)});function F(I){if(v)return;let H=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(K=>{if(!(v||H!==e.repoId)){if(e.options=K.data,e.options.url){window.location=e.options.url;return}I&&I(K.data)}},K=>{if(!(v||H!==e.repoId)){var X=K.data||{};if(X.error==="rate_limited"&&X.resetAt){let ee=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,q&&(a.interval.cancel(q),q=null),F(I);else{var le=Math.floor(ce/60),re=ce%60;e.rateLimitCountdown=le>0?le+"m "+re+"s":re+"s"}};var Y=ee;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,q&&a.interval.cancel(q),ee(),q=a.interval(ee,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){F(I)},3e3)):(e.type="error",e.content=X.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function M(I){return k[I]?k[I]:I}function z(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":I=="md"?"md":I=="org"?"org":I=="ipynb"?"IPython":m.indexOf(I)>-1?"text":b.indexOf(I)>-1?"image":E.indexOf(I)>-1?"media":C.indexOf(I)>-1?"audio":"code"}function se(I,H){let K=f;if(!I){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let Y=H&&H.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+Y,{transformResponse:ee=>ee}).then(ee=>{if(!(v||K!==f)){if(e.type=X,e.content=ee.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(ee.data,s.url()+"/../"),e.type="html"),e.type=="org"){let le=contentAbs2Relative(ee.data);var ce=new Org.Parser().parse(le).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&ee.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},ee=>{if(!(v||K!==f)){e.type="error",e.content="unknown_error";try{ee.data=JSON.parse(ee.data),ee.data.error?e.content=ee.data.error:e.content=ee.data}catch{console.log(ee),ee.status==-1?e.content="request_error":ee.status==502&&(e.content="unreachable")}}})}function oe(){f++,e.content="",e.file=O();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;let H=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${H?encodePathForUrl(H):""}`,e.showSource=!1,e.allowScripts=!1;let K=e.filePath.toLowerCase(),X=K.lastIndexOf(".");if(X>-1&&(K=K.substring(X+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:15,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:M(K),onLoad:function(Y){let ee=ace.require("ace/range").Range,ce=null;function le(Ne,ke){ce!==null&&(Y.session.removeMarker(ce),ce=null),Ne!=null&&(ce=Y.session.addMarker(new ee(Ne,0,ke,1),"highlighted-line","fullLine"))}function re(Ne){let ke=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!ke){le(null);return}let Ee=parseInt(ke[1])-1,Le=ke[2]?parseInt(ke[2])-1:Ee;le(Ee,Le),Ne&&a.timeout(()=>{Y.scrollToLine(Ee,!0,!0,function(){})},100)}re(!0);let Se=null;Y.on("guttermousedown",function(Ne){let ke=Ne.getDocumentPosition().row,Ee=Ne.domEvent&&Ne.domEvent.shiftKey,Le=ke,qe=ke;Ee&&Se!==null?(Le=Math.min(Se,ke),qe=Math.max(Se,ke)):Se=ke;let Ue=Le===qe?`#L${Le+1}`:`#L${Le+1}-L${qe+1}`,U=window.location.pathname+window.location.search+Ue;window.history.replaceState(null,"",U),le(Le,qe),Ne.stop()});let $e=c(window,"hashchange",()=>re(!1));return Y.setFontSize(e.aceOption.fontSize),Y.setReadOnly(e.aceOption.readOnly),Y.setKeyboardHandler(e.aceOption.keyBinding),Y.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),Y.setOption("displayIndentGuides",!0),Y.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(Y.renderer.$cursorLayer.element.style.display="none"),Y.setHighlightGutterLine(e.aceOption.highlightGutterLine),Y.setShowInvisibles(e.aceOption.showInvisibles),Y.setDisplayIndentGuides(e.aceOption.showIndentGuides),Y.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),Y.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),Y.session.setUseSoftTabs(e.aceOption.useSoftTab),Y.session.setTabSize(e.aceOption.tabSize),Y.setBehavioursEnabled(e.aceOption.enableBehaviours),Y.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets),$e}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(K),e.type=="pdf"){e.content="pdf";return}se(e.filePath,e.file)}function S(){f++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let I=e.repoId;F(function(H){D();var K=r.resolve();for(let X=0;X0?e.paths.slice(0,X).join("/"):"";K=K.then(function(){return e.getFiles(Y)}).then(function(){if(e.type==="error")return r.reject("error")})}K.then(function(){v||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(T(),oe()))})})}S()},Ja=function(e,t,s,i,o){async function r(f){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(f){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}function c(){e.pullRequestId=i.pullRequestId,e.type="loading",r(f=>{a()})}c()},Xa=function(e,t,s,i,o){async function r(f){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(f){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let g=v.data&&v.data.files&&v.data.files.length;e.tabState={active:g?"files":"comments"},f&&f(v.data)},v=>{e.type="error",e.content=v.data.error})}function c(){e.gistId=i.gistId,e.type="loading",r(()=>{a()})}c()},Za=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",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.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(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let c=ze({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(c),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{c.title=`${a.name} is removed.`,c.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{c.title="Unable to remove conference",c.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let c=e.search.trim().toLowerCase();return!!(!c||(a.name||"").toLowerCase().includes(c)||(a.conferenceID||"").toLowerCase().includes(c))}},di=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function o(){return t.get("/api/conferences/"+i.conferenceId).then(g=>{e.options={...e.options,...g.data,billing:g.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,o());function r(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}r();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let c=new Date(a);c.setTime(a.getTime()+179*864e5),e.options={billing:{},startDate:a,endDate:c,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(g=>g.id==e.options.plan.planID)[0]});function f(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function v(g){switch(g){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 g=JSON.parse(JSON.stringify(e.options)),k=ze({title:`Creating ${g.name}...`,date:new Date,body:`The conference ${g.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${g.name}...`,k.body=`The conference '${g.conferenceID}' is updating.`),e.addToast(k),f(),t.post("/api/conferences/"+(e.editionMode?g.conferenceID:""),g).then(()=>{e.editionMode?(k.title=`${g.name} updated`,k.body=`The conference '${g.conferenceID}' is updated.`):(k.title=`${g.name} created`,k.body=`The conference '${g.conferenceID}' is created.`),s.url("/conference/"+g.conferenceID)},m=>{v(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},xa=function(e,t,s,i){rs(e,t,()=>o(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=r=>{if(e.filters.status[r.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(r.source?.fullName||"").toLowerCase().includes(a)||(r.repoId||"").toLowerCase().includes(a))};function o(){t.get("/api/conferences/"+i.conferenceId).then(r=>{e.conference=r.data})}o()},el=function(e,t){e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.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()},tl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};var nl=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=C=>{if(C.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){C.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=C=>{C==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[C]="",e.query.page=1},e.chips=[];let a=()=>{let C=[];e.query.owner&&C.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&C.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=C};e.showStatusMessage=C=>{let E=C.statusMessage||"(no message)";window.prompt(`Status message for ${C.repoId} (${C.status}):`,E)},e.fetchGithubInfo=C=>{let E=window.open("","_blank");E&&E.document.write("
Loading GitHub info for "+C.repoId+"...
"),t.get("/api/admin/repos/"+C.repoId+"/github").then(T=>{E&&(E.document.open(),E.document.write('
'+JSON.stringify(T.data,null,2).replace(/[<>]/g,D=>D==="<"?"<":">")+"
"),E.document.close())},T=>{let D=T&&T.data?JSON.stringify(T.data,null,2):String(T);E&&(E.document.body.innerHTML='
'+D+"
")})},e.statusCountFor=C=>{let E=(e.statusCounts||[]).find(T=>T._id===C);return E?E.count:0},e.statusStorageFor=C=>{let E=(e.statusCounts||[]).find(T=>T._id===C);return E?E.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.repos.filterPrefs",f={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(c)||{};e.query=Object.assign({},f,v,{page:1,search:""});let g=s.search();g.owner&&(e.query.owner=g.owner),g.conference&&(e.query.conference=g.conference),g.search&&(e.query.search=g.search);let k="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let E=Object.assign({},e.query);delete E.page,e.presets=(e.presets||[]).filter(T=>T.name!==C),e.presets.push({name:C,query:E}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(E=>E.name!==C.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(C=>{e.selected[C.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(C=>e.selected[C.repoId]),e.bulkRefresh=()=>{let C=e.selectedRepos();C.length&&confirm(`Force refresh ${C.length} repositories?`)&&C.forEach(E=>e.updateRepository(E))},e.bulkRemoveCache=()=>{let C=e.selectedRepos();C.length&&confirm(`Purge cache for ${C.length} repositories?`)&&C.forEach(E=>e.removeCache(E))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/repos?"+C.toString(),"_blank")},e.removeCache=C=>{confirm("Remove cached files for "+C.repoId+"?")&&t.delete("/api/admin/repos/"+C.repoId).then(()=>m(),E=>console.error(E))},e.removeRepository=C=>{confirm("Remove repository "+C.repoId+"?")&&t.delete("/api/repo/"+C.repoId+"/").then(()=>m(),E=>console.error(E))},e.updateRepository=C=>{let E=ze({title:`Refreshing ${C.repoId}...`,date:new Date,body:`The repository ${C.repoId} is going to be refreshed.`});e.toasts.push(E),t.post(`/api/repo/${C.repoId}/refresh`).then(T=>{T.data.status=="ready"?E.title=`${C.repoId} is refreshed.`:E.title=`Refreshing of ${C.repoId}.`},T=>{E.title=`Error during the refresh of ${C.repoId}.`,E.body=T.body})},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.repositories=C.data.results,e.statusCounts=C.data.statusCounts||[],e.totalSize=C.data.totalSize||0,e.allSelected=!1},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load repositories",console.error(C)})}m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:C,search:E,...T}=e.query;saveFilterPrefs(c,T),a()},!0),a()},ol=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let a=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let b=(e.statusCounts||[]).find(C=>C._id===m);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.users.filterPrefs",f={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(c)||{};e.query=Object.assign({},f,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(g,b=>console.error(b))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(g,b=>console.error(b))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(b=>e.banUser(b))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}g();let k=null;e.watch("query",()=>{i.timeout.cancel(k),k=i.timeout(g,500);let{page:m,search:b,...C}=e.query;saveFilterPrefs(c,C),a()},!0),a()},sl=function(e,t,s,i){let o=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},c=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},a.filters.status,c.filters&&c.filters.status||{})},e.query={sort:c.sort||a.sort,direction:c.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(b=>b.status===m).length,e.repoFiler=m=>e.filters.status[m.status]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,C=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),E=m.map(O=>[O.repoId,O.status,O.statusMessage||"",O.pageView||0,O.anonymizeDate||"",O.source&&O.source.fullName||"",O.conference||"",O.size&&O.size.storage||0].map(q=>{let F=String(q??"");return/[",\n\r]/.test(F)?'"'+F.replace(/"/g,'""')+'"':F}).join(",")),T=new Blob([C+` +`+JSON.stringify(t):""}`},[je.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${Fc(t)}" via a navigation guard.`},[je.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[je.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[je.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function pn(e,t){return Pe(new Error,{type:e,[ka]:!0},t)}function Lt(e,t){return e instanceof Error&&ka in e&&(t==null||!!(e.type&t))}var Uc=["params","query","hash"];function Fc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Uc)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function Ea(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&Ys(o)):[i&&Ys(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function Ca(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=kt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var _a=Symbol(""),oi=Symbol(""),ts=Symbol(""),ns=Symbol(""),os=Symbol("");function On(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Yt(e,t,s,i,o,r=a=>a()){let a=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((c,h)=>{let v=m=>{m===!1?h(pn(je.NAVIGATION_ABORTED,{from:s,to:t})):m instanceof Error?h(m):Lc(m)?h(pn(je.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(a&&i.enterCallbacks[o]===a&&typeof m=="function"&&a.push(m),c())},g=r(()=>e.call(i&&i.instances[o],t,s,v)),k=Promise.resolve(g);e.length<3&&(k=k.then(v)),k.catch(m=>h(m))})}function ss(e,t,s,i,o=r=>r()){let r=[];for(let a of e)for(let c in a.components){let h=a.components[c];if(!(t!=="beforeRouteEnter"&&!a.instances[c]))if(ra(h)){let v=(h.__vccOpts||h)[t];v&&r.push(Yt(v,s,i,a,c,o))}else{let v=h();r.push(()=>v.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${c}" at "${a.path}"`);let k=wc(g)?g.default:g;a.mods[c]=g,a.components[c]=k;let m=(k.__vccOpts||k)[t];return m&&Yt(m,s,i,a,c,o)()}))}}return r}function Sa(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;acn(v,c))?i.push(c):s.push(c));let h=e.matched[a];h&&(t.matched.find(v=>cn(v,h))||o.push(h))}return[s,i,o]}var Bc=()=>location.protocol+"//"+location.host;function Ma(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),Zs(c,"")}return Zs(s,e)+i+o}function zc(e,t,s,i){let o=[],r=[],a=null,c=({state:m})=>{let b=Ma(e,location),C=s.value,E=t.value,R=0;if(m){if(s.value=b,t.value=m,a&&a===C){a=null;return}R=E?m.position-E.position:0}else i(b);o.forEach(D=>{D(s.value,C,{delta:R,type:xo.pop,direction:R?R>0?es.forward:es.back:es.unknown})})};function h(){a=s.value}function v(m){o.push(m);let b=()=>{let C=o.indexOf(m);C>-1&&o.splice(C,1)};return r.push(b),b}function g(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Pe({},m.state,{scroll:po()}),"")}}function k(){for(let m of r)m();r=[],window.removeEventListener("popstate",c),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",c),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:v,destroy:k}}function Na(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?po():null}}function Hc(e){let{history:t,location:s}=window,i={value:Ma(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(h,v,g){let k=e.indexOf("#"),m=k>-1?(s.host&&document.querySelector("base")?e:e.slice(k))+h:Bc()+e+h;try{t[g?"replaceState":"pushState"](v,"",m),o.value=v}catch(b){console.error(b),s[g?"replace":"assign"](m)}}function a(h,v){r(h,Pe({},t.state,Na(o.value.back,h,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=h}function c(h,v){let g=Pe({},o.value,t.state,{forward:h,scroll:po()});r(g.current,g,!0),r(h,Pe({},Na(i.value,h,null),{position:g.position+1},v),!1),i.value=h}return{location:i,state:o,push:c,replace:a}}function $a(e){e=va(e);let t=Hc(e),s=zc(e,t.state,t.location,t.replace);function i(r,a=!0){a||s.pauseListeners(),history.go(r)}let o=Pe({location:"",base:e,go:i,createHref:ga.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var hn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Ze=(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})(Ze||{}),jc={type:hn.Static,value:""},Gc=/[a-zA-Z0-9_]/;function Wc(e){if(!e)return[[]];if(e==="/")return[[jc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${s})/"${v}": ${b}`)}let s=Ze.Static,i=s,o=[],r;function a(){r&&o.push(r),r=[]}let c=0,h,v="",g="";function k(){v&&(s===Ze.Static?r.push({type:hn.Static,value:v}):s===Ze.Param||s===Ze.ParamRegExp||s===Ze.ParamRegExpEnd?(r.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:hn.Param,value:v,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),v="")}function m(){v+=h}for(;ct.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function La(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var Xc={strict:!1,end:!0,sensitive:!1};function Zc(e,t,s){let i=Qc(Wc(e.path),s),o=Pe(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function xc(e,t){let s=[],i=new Map;t=Js(Xc,t);function o(k){return i.get(k)}function r(k,m,b){let C=!b,E=Aa(k);E.aliasOf=b&&b.record;let R=Js(t,k),D=[E];if("alias"in k){let L=typeof k.alias=="string"?[k.alias]:k.alias;for(let M of L)D.push(Aa(Pe({},E,{components:b?b.record.components:E.components,path:M,aliasOf:b?b.record:E})))}let T,q;for(let L of D){let{path:M}=L;if(m&&M[0]!=="/"){let z=m.record.path,se=z[z.length-1]==="/"?"":"/";L.path=m.record.path+(M&&se+M)}if(T=Zc(L,m,R),b?b.alias.push(T):(q=q||T,q!==T&&q.alias.push(T),C&&k.name&&!Oa(T)&&a(k.name)),Ua(T)&&h(T),E.children){let z=E.children;for(let se=0;se{a(q)}:An}function a(k){if(ti(k)){let m=i.get(k);m&&(i.delete(k),s.splice(s.indexOf(m),1),m.children.forEach(a),m.alias.forEach(a))}else{let m=s.indexOf(k);m>-1&&(s.splice(m,1),k.record.name&&i.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function c(){return s}function h(k){let m=np(k,s);s.splice(m,0,k),k.record.name&&!Oa(k)&&i.set(k.record.name,k)}function v(k,m){let b,C={},E,R;if("name"in k&&k.name){if(b=i.get(k.name),!b)throw pn(je.MATCHER_NOT_FOUND,{location:k});R=b.record.name,C=Pe(Ta(m.params,b.keys.filter(q=>!q.optional).concat(b.parent?b.parent.keys.filter(q=>q.optional):[]).map(q=>q.name)),k.params&&Ta(k.params,b.keys.map(q=>q.name))),E=b.stringify(C)}else if(k.path!=null)E=k.path,b=s.find(q=>q.re.test(E)),b&&(C=b.parse(E),R=b.record.name);else{if(b=m.name?i.get(m.name):s.find(q=>q.re.test(m.path)),!b)throw pn(je.MATCHER_NOT_FOUND,{location:k,currentLocation:m});R=b.record.name,C=Pe({},m.params,k.params),E=b.stringify(C)}let D=[],T=b;for(;T;)D.unshift(T.record),T=T.parent;return{name:R,path:E,params:C,matched:D,meta:tp(D)}}e.forEach(k=>r(k));function g(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:a,clearRoutes:g,getRoutes:c,getRecordMatcher:o}}function Ta(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Aa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ep(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 ep(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 Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tp(e){return e.reduce((t,s)=>Pe(t,s.meta),{})}function np(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;La(e,t[r])<0?i=r:s=r+1}let o=op(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function op(e){let t=e;for(;t=t.parent;)if(Ua(t)&&La(e,t)===0)return t}function Ua({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Pa(e){let t=ut(ts),s=ut(ns),i=!1,o=null,r=ot(()=>{let g=Ht(e.to);return t.resolve(g)}),a=ot(()=>{let{matched:g}=r.value,{length:k}=g,m=g[k-1],b=s.matched;if(!m||!b.length)return-1;let C=b.findIndex(cn.bind(null,m));if(C>-1)return C;let E=Ia(g[k-2]);return k>1&&Ia(m)===E&&b[b.length-1].path!==E?b.findIndex(cn.bind(null,g[k-2])):C}),c=ot(()=>a.value>-1&&lp(s.params,r.value.params)),h=ot(()=>a.value>-1&&a.value===s.matched.length-1&&xs(s.params,r.value.params));function v(g={}){if(ap(g)){let k=t[Ht(e.replace)?"replace":"push"](Ht(e.to)).catch(An);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:r,href:ot(()=>r.value.href),isActive:c,isExactActive:h,navigate:v}}function sp(e){return e.length===1?e[0]:e}var ip=io({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:Pa,setup(e,{slots:t}){let s=ze(Pa(e)),{options:i}=ut(ts),o=ot(()=>({[Va(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Va(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&sp(t.default(s));return e.custom?r:we("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),rp=ip;function ap(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 lp(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!kt(o)||o.length!==i.length||i.some((r,a)=>r.valueOf()!==o[a].valueOf()))return!1}return!0}function Ia(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Va=(e,t,s)=>e??t??s,dp=io({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=ut(os),o=ot(()=>e.route||i.value),r=ut(oi,0),a=ot(()=>{let v=Ht(r),{matched:g}=o.value,k;for(;(k=g[v])&&!k.components;)v++;return v}),c=ot(()=>o.value.matched[a.value]);an(oi,ot(()=>a.value+1)),an(_a,c),an(os,o);let h=tt();return He(()=>[h.value,c.value,e.name],([v,g,k],[m,b,C])=>{g&&(g.instances[k]=v,b&&b!==g&&v&&v===m&&(g.leaveGuards.size||(g.leaveGuards=b.leaveGuards),g.updateGuards.size||(g.updateGuards=b.updateGuards))),v&&g&&(!b||!cn(g,b)||!m)&&(g.enterCallbacks[k]||[]).forEach(E=>E(v))},{flush:"post"}),()=>{let v=o.value,g=e.name,k=c.value,m=k&&k.components[g];if(!m)return qa(s.default,{Component:m,route:v});let b=k.props[g],C=b?b===!0?v.params:typeof b=="function"?b(v):b:null,R=we(m,Pe({},C,t,{onVnodeUnmounted:D=>{D.component.isUnmounted&&(k.instances[g]=null)},ref:h}));return qa(s.default,{Component:R,route:v})||R}}});function qa(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var si=dp;function Fa(e){let t=xc(e.routes,e),s=e.parseQuery||Ea,i=e.stringifyQuery||ni,o=e.history,r=On(),a=On(),c=On(),h=No(Qt),v=Qt;fn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=Xo.bind(null,U=>""+U),k=Xo.bind(null,fa),m=Xo.bind(null,Tn);function b(U,x){let Z,ie;return ti(U)?(Z=t.getRecordMatcher(U),ie=x):ie=U,t.addRoute(ie,Z)}function C(U){let x=t.getRecordMatcher(U);x&&t.removeRoute(x)}function E(){return t.getRoutes().map(U=>U.record)}function R(U){return!!t.getRecordMatcher(U)}function D(U,x){if(x=Pe({},x||h.value),typeof U=="string"){let p=Zo(s,U,x.path),w=t.resolve({path:p.path},x),S=o.createHref(p.fullPath);return Pe(p,w,{params:m(w.params),hash:Tn(p.hash),redirectedFrom:void 0,href:S})}let Z;if(U.path!=null)Z=Pe({},U,{path:Zo(s,U.path,x.path).path});else{let p=Pe({},U.params);for(let w in p)p[w]==null&&delete p[w];Z=Pe({},U,{params:k(p)}),x.params=k(x.params)}let ie=t.resolve(Z,x),me=U.hash||"";ie.params=g(m(ie.params));let _e=ha(i,Pe({},U,{hash:pa(me),path:ie.path})),W=o.createHref(_e);return Pe({fullPath:_e,hash:me,query:i===ni?Ca(U.query):U.query||{}},ie,{redirectedFrom:void 0,href:W})}function T(U){return typeof U=="string"?Zo(s,U,h.value.path):Pe({},U)}function q(U,x){if(v!==U)return pn(je.NAVIGATION_CANCELLED,{from:x,to:U})}function L(U){return se(U)}function M(U){return L(Pe(T(U),{replace:!0}))}function z(U,x){let Z=U.matched[U.matched.length-1];if(Z&&Z.redirect){let{redirect:ie}=Z,me=typeof ie=="function"?ie(U,x):ie;return typeof me=="string"&&(me=me.includes("?")||me.includes("#")?me=T(me):{path:me},me.params={}),Pe({query:U.query,hash:U.hash,params:me.path!=null?{}:U.params},me)}}function se(U,x){let Z=v=D(U),ie=h.value,me=U.state,_e=U.force,W=U.replace===!0,p=z(Z,ie);if(p)return se(Pe(T(p),{state:typeof p=="object"?Pe({},me,p.state):me,force:_e,replace:W}),x||Z);let w=Z;w.redirectedFrom=x;let S;return!_e&&ma(i,ie,Z)&&(S=pn(je.NAVIGATION_DUPLICATED,{to:w,from:ie}),Oe(ie,ie,!0,!1)),(S?Promise.resolve(S):O(w,ie)).catch(P=>Lt(P)?Lt(P,je.NAVIGATION_GUARD_REDIRECT)?P:Ae(P):re(P,w,ie)).then(P=>{if(P){if(Lt(P,je.NAVIGATION_GUARD_REDIRECT))return se(Pe({replace:W},T(P.to),{state:typeof P.to=="object"?Pe({},me,P.to.state):me,force:_e}),x||w)}else P=Y(w,ie,!0,W,me);return B(w,ie,P),P})}function oe(U,x){let Z=q(U,x);return Z?Promise.reject(Z):Promise.resolve()}function _(U){let x=Se.values().next().value;return x&&typeof x.runWithContext=="function"?x.runWithContext(U):U()}function O(U,x){let Z,[ie,me,_e]=Sa(U,x);Z=ss(ie.reverse(),"beforeRouteLeave",U,x);for(let p of ie)p.leaveGuards.forEach(w=>{Z.push(Yt(w,U,x))});let W=oe.bind(null,U,x);return Z.push(W),Ve(Z).then(()=>{Z=[];for(let p of r.list())Z.push(Yt(p,U,x));return Z.push(W),Ve(Z)}).then(()=>{Z=ss(me,"beforeRouteUpdate",U,x);for(let p of me)p.updateGuards.forEach(w=>{Z.push(Yt(w,U,x))});return Z.push(W),Ve(Z)}).then(()=>{Z=[];for(let p of _e)if(p.beforeEnter)if(kt(p.beforeEnter))for(let w of p.beforeEnter)Z.push(Yt(w,U,x));else Z.push(Yt(p.beforeEnter,U,x));return Z.push(W),Ve(Z)}).then(()=>(U.matched.forEach(p=>p.enterCallbacks={}),Z=ss(_e,"beforeRouteEnter",U,x,_),Z.push(W),Ve(Z))).then(()=>{Z=[];for(let p of a.list())Z.push(Yt(p,U,x));return Z.push(W),Ve(Z)}).catch(p=>Lt(p,je.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function B(U,x,Z){c.list().forEach(ie=>_(()=>ie(U,x,Z)))}function Y(U,x,Z,ie,me){let _e=q(U,x);if(_e)return _e;let W=x===Qt,p=fn?history.state:{};Z&&(ie||W?o.replace(U.fullPath,Pe({scroll:W&&p&&p.scroll},me)):o.push(U.fullPath,me)),h.value=U,Oe(U,x,Z,W),Ae()}let X;function K(){X||(X=o.listen((U,x,Z)=>{if(!Fe.listening)return;let ie=D(U),me=z(ie,Fe.currentRoute.value);if(me){se(Pe(me,{replace:!0,force:!0}),ie).catch(An);return}v=ie;let _e=h.value;fn&&ba(ei(_e.fullPath,Z.delta),po()),O(ie,_e).catch(W=>Lt(W,je.NAVIGATION_ABORTED|je.NAVIGATION_CANCELLED)?W:Lt(W,je.NAVIGATION_GUARD_REDIRECT)?(se(Pe(T(W.to),{force:!0}),ie).then(p=>{Lt(p,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&!Z.delta&&Z.type===xo.pop&&o.go(-1,!1)}).catch(An),Promise.reject()):(Z.delta&&o.go(-Z.delta,!1),re(W,ie,_e))).then(W=>{W=W||Y(ie,_e,!1),W&&(Z.delta&&!Lt(W,je.NAVIGATION_CANCELLED)?o.go(-Z.delta,!1):Z.type===xo.pop&&Lt(W,je.NAVIGATION_ABORTED|je.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),B(ie,_e,W)}).catch(An)}))}let te=On(),ue=On(),le;function re(U,x,Z){Ae(U);let ie=ue.list();return ie.length?ie.forEach(me=>me(U,x,Z)):console.error(U),Promise.reject(U)}function Ce(){return le&&h.value!==Qt?Promise.resolve():new Promise((U,x)=>{te.add([U,x])})}function Ae(U){return le||(le=!U,K(),te.list().forEach(([x,Z])=>U?Z(U):x()),te.reset()),U}function Oe(U,x,Z,ie){let{scrollBehavior:me}=e;if(!fn||!me)return Promise.resolve();let _e=!Z&&wa(ei(U.fullPath,0))||(ie||!Z)&&history.state&&history.state.scroll||null;return Ye().then(()=>me(U,x,_e)).then(W=>W&&ya(W)).catch(W=>re(W,U,x))}let ke=U=>o.go(U),Ie,Se=new Set,Fe={currentRoute:h,listening:!0,addRoute:b,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:E,resolve:D,options:e,push:L,replace:M,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:r.add,beforeResolve:a.add,afterEach:c.add,onError:ue.add,isReady:Ce,install(U){U.component("RouterLink",rp),U.component("RouterView",si),U.config.globalProperties.$router=Fe,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Ht(h)}),fn&&!Ie&&h.value===Qt&&(Ie=!0,L(o.location).catch(ie=>{}));let x={};for(let ie in Qt)Object.defineProperty(x,ie,{get:()=>h.value[ie],enumerable:!0});U.provide(ts,Fe),U.provide(ns,Wn(x)),U.provide(os,h);let Z=U.unmount;Se.add(U),U.unmount=function(){Se.delete(U),Se.size<1&&(v=Qt,X&&X(),X=null,h.value=Qt,Ie=!1,le=!1),Z()}}};function Ve(U){return U.reduce((x,Z)=>x.then(()=>_(Z)),Promise.resolve())}return Fe}function Ba(e){return ut(ns)}var is=new WeakMap;function ii(e){if(!is.has(e)){let t=e.get("/api/billing/").finally(()=>is.delete(e));is.set(e,t)}return is.get(e)}function rs(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success"||o==="portal",e.billingRepository="";let r={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 for it to expire before choosing a different plan.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has an active paid package.",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.billingPrice=h=>h.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:h.currency}).format(h.amount/100)+(h.interval?` / ${h.intervalCount>1?h.intervalCount+" ":""}${h.interval}`:" once"),e.billingBytes=h=>{let v=Number(h)||0;if(v<1024)return`${v} B`;let g=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**g)} ${["B","KiB","MiB","GiB","TiB"][g]}`},e.billingDate=h=>h?new Date(h).toLocaleDateString():"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,ii(t).then(h=>{e.billing=h.data,e.emit?.("billing:updated",h.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function a(h,v,g=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let k=await t.post(`/api/billing/${h}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(g)window.location.assign(k.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!k.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=k.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",k.data}catch(k){e.billingError=r[k.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(h,v="",g={})=>a("checkout",{planId:h,target:v,...g}),e.billingPortal=()=>a("portal",{}),e.refreshBilling=()=>a("refresh",{},!1);async function c(){for(let h=0;h<5;h++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(g=>window.setTimeout(g,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"||o==="portal"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",c()):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function za(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function ri(e=null,t=new Map){let s=ze({}),i=[],o=!1,r=new Proxy(s,{get(a,c){return typeof c=="string"&&c.startsWith("__v_")||Reflect.has(a,c)?Reflect.get(a,c):e?.[c]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(a,c,h=!1,v=!0)=>{let g=typeof a=="function"?()=>a(r):()=>za(r,a),k=He(g,c,{deep:h,flush:"post"});return i.push(k),v&&Ye(()=>{o||c(g(),g())}),k},r.watchGroup=(a,c,h=!0)=>r.watch(()=>a.map(v=>za(r,v)),c,!0,h),r.on=(a,c)=>{if(a==="dispose")return i.push(c),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(c);let h=()=>t.get(a)?.delete(c);return i.push(h),h},r.emit=(a,...c)=>{for(let h of[...t.get(a)||[]])h({},...c)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(a=>a())},jn(r.dispose),r}function ct(){let e=new Set,t=new Set,s=!1,i=(r,a=0)=>{if(s)return;let c=setTimeout(()=>{e.delete(c),r()},a);return e.add(c),c};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,a)=>{if(s)return;let c=setInterval(r,a);return t.add(c),c};return o.cancel=r=>{clearInterval(r),t.delete(r)},jn(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Jt(){let e=new Set;return jn(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}function ai(e,t,s){let i,o=!1,r="form-draft:"+s,a=()=>Object.fromEntries(t.map(m=>[m,e[m]])),c=()=>JSON.stringify(a()),h=m=>{for(let b of t)Object.prototype.hasOwnProperty.call(m,b)&&(e[b]=m[b]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},g=(m=!1)=>{if(i!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(b=>{b._field?.binding.state===e&&b._field.timer&&b._field.commit()}),e.unsavedChanges=c()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},k=()=>g(!0);return e.on("routeLeave",k),window.addEventListener("beforeunload",k),e.on("dispose",()=>window.removeEventListener("beforeunload",k)),{restore(){i=c();let m;try{m=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let b=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return b&&(h(m.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>a(),()=>g(),!0)),e.unsavedChanges=c()!==i,!!b},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state===e&&m._field.timer&&m._field.commit()}),JSON.parse(c())},accept(m){i=JSON.stringify(m),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),i!==void 0&&h(JSON.parse(i)),e.draftRestored=!1,g()},clear(){i=c(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function up(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 Ha=function(e,t,s,i){e.previewTabKeydown=up,e.headerCanUpgrade=!1,e.headerBillingPending=["success","portal"].includes(new URLSearchParams(window.location.search).get("billing"));let o=v=>{let g=(v?.grants||[]).some(k=>["author_monthly","author_annual"].includes(k.planId)&&["active","paid","past_due"].includes(k.status)&&new Date(k.until).getTime()>Date.now());e.headerCanUpgrade=!!v?.enabled&&v.checkoutEnabled!==!1&&!g&&(v.plans||[]).some(k=>["author_monthly","author_annual"].includes(k.id))};e.on("billing:updated",(v,g)=>o(g)),e.on("billing:pending",(v,g)=>{e.headerBillingPending=g}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")},e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(v){let g=e.toasts.indexOf(v);g!==-1&&e.toasts.splice(g,1)},e.addToast=function(v){return e.toasts.push(v),i(function(){e.removeToast(v)},8e3),v},e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.darkMode=function(v){localStorage.setItem("darkMode",v),e.isDarkMode=v;let g="/css/prism-okaidia.css",k="/css/prism.css";if(v){$("body").addClass("dark-mode");let b=document.createElement("link");b.href=g,b.rel="stylesheet",document.head.append(b),$(`link[href='${k}']`).remove()}else{$("body").removeClass("dark-mode");let b=document.createElement("link");b.href=k,b.rel="stylesheet",document.head.append(b),$(`link[href='${g}']`).remove()}let m=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");m&&(m.style.backgroundColor=v?"#FAF9F6":"#1A1815",m.style.color=v?"#1A1815":"#FAF9F6"),e.emit("dark-mode",v)},e.darkMode(localStorage.getItem("darkMode")=="true");function r(){t.get("/api/user").then(v=>{v&&(e.user=v.data),e.user?.username&&ii(t).then(g=>o(g.data)).catch(()=>{})},()=>{e.user=null})}r();function a(){t.get("/api/options").then(v=>{v&&(e.site_options=v.data)},()=>{e.site_options=null})}a();function c(){t.get("/api/message").then(v=>{v&&(e.generalMessage=v.data)},()=>{e.generalMessage=null})}c();function h(v,g){g&&(e.title=g.title),e.path=s.url(),e.paths=s.path().substring(1).split("/")}e.on("routeChange",h),e.on("routeUpdate",h)},ja=function(e,t){let s=Jt(),i=ct(),o=()=>{let r=window.location.hash.slice(1),a=document.getElementById(r);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let c=document.getElementById(a.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(o,0)),s(window,"hashchange",o),i.timeout(o,0)},Ga=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(h=>["author_monthly","author_annual"].includes(h.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_monthly",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,Ye(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(h=>["author_monthly","author_annual"].includes(h.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(h=>h.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(h=>h.id==="author_pass"),e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(h=>["author_monthly","author_annual"].includes(h.planId)&&["active","paid","past_due"].includes(h.status)&&new Date(h.until).getTime()>Date.now()),e.profileGrantName=h=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Repository pass",conference:"Conference hosting"})[h.planId]||h.planId,rs(e,t,()=>o.load().then(h=>{e.quota=h},console.error)),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,o.load().then(h=>{e.quota=h},console.error);let r=ai(e,["terms","options"],"profile");e.discardDraft=()=>r.discard();function a(){t.get("/api/user/default").then(h=>{let v=h.data||{};v.terms&&(e.terms=v.terms.join(` +`)),e.options=Object.assign({},e.options,v.options),r.restore()})}a();let c=null;e.saveDefault=h=>{if(h&&h.preventDefault&&h.preventDefault(),e.saving)return;let v=r.checkpoint(),g={terms:e.terms.split(` +`).map(k=>k.trim()).filter(k=>k.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",g).then(()=>{r.accept(v),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",c&&i.cancel(c),c=i(()=>{e.message=null},2500)},k=>{e.saving=!1;let b="ERRORS."+(k&&k.data&&k.data.error);s(b).then(C=>{e.error=C&&C!==b?C:"Unable to save your defaults. Please try again."},()=>{e.error="Unable to save your defaults. Please try again."})})},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."}))}},Wa=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)})}},Ka=function(e,t,s,i,o){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(c){e.feature=c},e.featureHref=function(c){return c.needsUser&&!e.user?"/signin":c.href},e.featureTarget=function(c){return c.needsUser&&!e.user?"_self":c.target||void 0},e.featureKeydown=function(c,h){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[c.key];if(v===void 0)return;c.preventDefault();let g=e.features.length,k=v==="first"?0:v==="last"?g-1:(h+v+g)%g;e.feature=e.features[k].key,o(()=>{let m=i.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function r(){t.get("/api/stat/").then(c=>{e.stat=c.data,e.cards[0].total=c.data.nbRepositories,e.cards[1].total=c.data.nbUsers,e.cards[2].total=c.data.nbPageViews,e.cards[3].total=c.data.nbPullRequests})}r();function a(c){let h={series:c,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!c||c.length<2)return h;let v=new Array(c.length-1);for(let E=1;E=2){let E=v[g-2];E&&(h.pctChange=(h.deltaToday-E)/E*100)}return h.pctAbs=Math.round(Math.abs(h.pctChange)),h.isUp=h.pctChange>=0,h}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(c=>{let h=c.data||[];e.history={repositories:a(h.map(v=>v.nbRepositories||0)),users:a(h.map(v=>v.nbUsers||0)),pageViews:a(h.map(v=>v.nbPageViews||0)),pullRequests:a(h.map(v=>v.nbPullRequests||0))}})},Ya=function(e,t,s,i,o,r){let a=ct();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,Ye(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Jt()(document,"click",_=>{e.quotaExpanded&&!_.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=_=>_.status==="error"||_._broken||h(_.status)==="progress"&&_._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=_=>{e.projectView=_,_==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=_=>"project-details-"+encodeURIComponent(_._type+":"+(_._id||_._source||"unknown")),e.showProjectDetails=async _=>{e.selectedProject=_,e.projectName=_.projectName||"",e.nameError="",e.nameMessage="",await Ye();let O=document.getElementById(e.projectDetailsId(_));O?.focus(),O?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=_=>{e.selectedProject=null,Ye(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(_._type+":"+_._id)}"]`)?.focus())},e.saveProjectName=async _=>{if(e.nameSaving||!_._id)return;let O=e.projectName.trim();if(O.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let B=await t.post("/api/user/project-name",{type:_._type,id:_._id,name:O});_.projectName=B.data.name,_._label=_.projectName||_._fallbackLabel,e.selectedProject===_&&(e.nameMessage=O?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await L(),e.selectedProject===_&&(e.selectedProject=e.items.find(Y=>Y._type===_._type&&Y._id===_._id)||null))}catch{e.selectedProject===_&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async _=>{if(!_._viewUrl||e.copyingId)return;let O=new URL(_._viewUrl,o.location.origin).href;e.copyingId=_._type+":"+_._id;try{if(o.navigator.clipboard?.writeText)await o.navigator.clipboard.writeText(O);else{let B=document.createElement("textarea");B.value=O,B.setAttribute("readonly",""),B.style.position="fixed",B.style.opacity="0";let Y=document.activeElement;document.body.appendChild(B);try{if(B.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{B.remove(),Y?.focus()}}e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:O})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let c=["queue","download","downloaded","preparing","anonymizing"];function h(_){return _==="ready"||_==="error"?_:_==="expired"||_==="expiring"?"expired":_==="removed"||_==="removing"?"removed":(c.indexOf(_)>-1,"progress")}let v=7200*1e3,g="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(g)||{};e.typeFilter=m.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||k.orderBy;let b={_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=b,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let _=b[e.sortField()];return _?_.label:"Custom"},e.isSortedBy=_=>e.sortField()===_,e.setSort=(_,O)=>{typeof O!="boolean"&&(O=e.isSortedBy(_)?!e.sortDesc():!!(b[_]&&b[_].defaultDesc)),e.orderBy=(O?"-":"")+_},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(_=>{e.quota=_},console.error);function C(_,O,B,Y,X,K){_.pageView||(_.pageView=0),_.lastView||(_.lastView=""),_.options=_.options||{},_.options.terms=(_.options.terms||[]).filter(ue=>ue),_._id=O||"",_._source=Y,_._broken=!O,_._name=O||Y||"(unnamed)",_._fallbackLabel=_._type==="gist"?"Gist "+(O||Y||"without an ID"):Y||B||_._name,_._label=_.projectName||_._fallbackLabel,_._editUrl=O?X:null,_._viewUrl=O?K:null,_._broken&&(_.status="error",_.statusMessage="incomplete_record"),_._statusKey=h(_.status);let te=_.anonymizeDate||_.lastView;return _._stale=_._statusKey==="progress"&&!!te&&Date.now()-new Date(te).getTime()>v,_.status==="expired"||_.status==="expiring"?_._expiry={kind:"expired",date:_.options.expirationDate}:_.status!=="ready"?_._expiry={kind:"none"}:_.options.expirationMode==="never"||!_.options.expirationDate?_._expiry={kind:"never"}:_._expiry={kind:"date",date:_.options.expirationDate},_}function E(_){return t.get(_).then(O=>O.data||[],O=>(console.error(O),[]))}function R(){return e.loading=!0,i.all([E("/api/user/anonymized_repositories"),E("/api/user/anonymized_pull_requests"),E("/api/user/anonymized_gists")]).then(_=>{let O=_[0],B=_[1],Y=_[2],X=[];O.forEach(K=>{K._type="repo";let te=K.source||{};X.push(C(K,K.repoId,K.repoId,te.fullName,"/anonymize/"+K.repoId,"/r/"+K.repoId+"/"))}),B.forEach(K=>{K._type="pr";let te=K.source||{};X.push(C(K,K.pullRequestId,K.pullRequestId,te.repositoryFullName?te.repositoryFullName+"#"+te.pullRequestId:void 0,"/pull-request-anonymize/"+K.pullRequestId,"/pr/"+K.pullRequestId+"/"))}),Y.forEach(K=>{K._type="gist";let te=K.source||{};X.push(C(K,K.gistId,K.gistId,te.gistId,"/gist-anonymize/"+K.gistId,"/gist/"+K.gistId+"/"))}),e.items=X,e.loading=!1})}let D=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function q(_){let O=_.source||{};return _._type==="repo"?C(_,_.repoId,_.repoId,O.fullName,"/anonymize/"+_.repoId,"/r/"+_.repoId+"/"):_._type==="pr"?C(_,_.pullRequestId,_.pullRequestId,O.repositoryFullName?O.repositoryFullName+"#"+O.pullRequestId:void 0,"/pull-request-anonymize/"+_.pullRequestId,"/pr/"+_.pullRequestId+"/"):C(_,_.gistId,_.gistId,O.gistId,"/gist-anonymize/"+_.gistId,"/gist/"+_.gistId+"/")}function L(_=!1){if(T)return R();let O=++D;return e.loading=!_,e.loadingMore=_,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(B=>e.filters.status[B]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:_?e.dashboardCursor:void 0}}).then(B=>{if(O===D){if(!Array.isArray(B.data?.items))return T=!0,R();e.items=(_?e.items:[]).concat(B.data.items.map(q)),e.dashboardCursor=B.data.cursor,e.dashboardTotals=B.data}},B=>{if(O===D){if(B.status===404)return T=!0,R();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{O===D&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>L(!0);let M;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(M&&a.timeout.cancel(M),M=a.timeout(()=>L(),150))},!1),e.watch("filters",()=>{T||L()},!0,!1),e.on("dispose",()=>{D++}),L(),e.openItem=(_,O)=>{if(!_._viewUrl)return;let B=O&&O.target;B&&B.closest&&B.closest("a, button, .dropdown, input")||(o.location.href=_._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(_=>e.filters.status[_]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(_=>e.filters.status[_]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(_=>{e.filters.status[_]=!0})};function z(_,O,B,Y){t.get("/api/repo/"+_).then(async X=>{let K=Y!==void 0&&Y!==X.data.status;for(let te of e.items)if(te._type==="repo"&&te.repoId==_){K=K||te.status!==X.data.status;let ue=e.needsAttention(te);te.status=X.data.status,te.statusMessage=X.data.statusMessage,te._statusKey=h(te.status),te._statusKey!=="progress"&&(te._stale=!1);let le=e.needsAttention(te);e.dashboardTotals&&ue!==le&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(le?1:-1)));break}if(K&&!T){e.dashboardCursor=null;let te=e.selectedProject;await L(),te&&e.selectedProject===te&&(e.selectedProject=e.items.find(ue=>ue._type===te._type&&ue._id===te._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){O(X.data);return}a.timeout(()=>z(_,O,B,X.data.status),2500)},B)}let se=_=>_==="repo"?"repository":_==="gist"?"gist":"pull request",oe=_=>_==="repo"?"/api/repo":_==="gist"?"/api/gist":"/api/pr";e.removeItem=_=>{let O=se(_._type);if(confirm(`Are you sure that you want to remove the ${O} ${_._id}?`)){let B=ze({title:`Removing ${_._id}...`,date:new Date,body:`The ${O} ${_._id} is going to be removed.`});e.addToast(B);let Y=`${oe(_._type)}/${_._id}`;t.delete(Y).then(()=>{_._type==="repo"?z(_._id,()=>{B.title=`${_._id} is removed.`,B.body=`The ${O} ${_._id} is removed.`},void 0,_.status):(B.title=`${_._id} is removed.`,B.body=`The ${O} ${_._id} is removed.`,L())},X=>{B.title=`Error during the removal of ${_._id}.`,B.body=X.body,L()})}},e.refreshItem=_=>{let O=se(_._type),B=ze({title:`Refreshing ${_._id}...`,date:new Date,body:`The ${O} ${_._id} is going to be refreshed.`});e.addToast(B);let Y=K=>{B.title=`Error during the refresh of ${_._id}.`,B.body=K.data?.error||K.body||"The refresh could not be completed. Please try again.",L()},X=`${oe(_._type)}/${_._id}/refresh`;t.post(X).then(()=>{_._type==="repo"?z(_._id,K=>{if(K.status!=="ready"){Y({body:K.statusMessage||`The repository is ${K.status}.`});return}B.title=`${_._id} is refreshed.`,B.body=`The ${O} ${_._id} is refreshed.`},Y,_.status):(B.title=`${_._id} is refreshed.`,B.body=`The ${O} ${_._id} is refreshed.`,L())},Y)},e.extendItem=_=>{let O=se(_._type),B=ze({title:`Extending ${_._id}...`,date:new Date,body:`The expiration of ${O} ${_._id} is going to be extended by 6 months.`});e.addToast(B);let Y=`${oe(_._type)}/${_._id}/extend`;t.post(Y).then(()=>{_._type==="repo"?z(_._id,()=>{B.title=`${_._id} is extended.`,B.body=`The expiration of ${O} ${_._id} is extended by 6 months.`},void 0,_.status):(B.title=`${_._id} is extended.`,B.body=`The expiration of ${O} ${_._id} is extended by 6 months.`,L())},X=>{B.title=`Error during the extension of ${_._id}.`,B.body=X.data&&X.data.error||X.body,L()})},e.itemFilter=_=>{if(e.projectView==="attention"&&!e.needsAttention(_)||e.typeFilter!=="all"&&_._type!==e.typeFilter||e.filters.status[_._statusKey]===!1)return!1;let O=e.search.trim().toLowerCase();return!!(O.length==0||_._label&&String(_._label).toLowerCase().indexOf(O)>-1||_._source&&String(_._source).toLowerCase().indexOf(O)>-1||_._id&&String(_._id).toLowerCase().indexOf(O)>-1||_.conference&&String(_.conference).toLowerCase().indexOf(O)>-1)}};var Qa=function(e,t,s){let i=ct();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="";var o=null;let r=null,a=!1;function c(v){e.rateLimitResetAt=v,o&&i.interval.cancel(o);function g(){var k=Math.max(0,Math.ceil((v-Date.now())/1e3));if(k<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(o),o=null;else{var m=Math.floor(k/60),b=k%60;e.rateLimitCountdown=m>0?m+"m "+b+"s":b+"s"}}g(),o=i.interval(g,1e3)}e.on("dispose",function(){a=!0,o&&i.interval.cancel(o),r&&i.timeout.cancel(r)});function h(v){if(!v)return v;var g=v.match(/^rate_limited:(\d+)$/);return g?(c(parseInt(g[1],10)),null):(e.rateLimitResetAt=0,v)}e.getStatus=()=>{a||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(v=>{if(!a){e.repo=v.data,v.data.rateLimitResetAt?c(v.data.rateLimitResetAt):e.repo.statusMessage=h(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 g=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(g=!1),g&&(r=i.timeout(e.getStatus,2e3))}},v=>{e.error=v.data.error})},e.getStatus()},as=function(e,t,s,i,o,r,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let c=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!c?.matches,c?.addEventListener&&Jt()(c,"change",p=>{e.mobileWorkspace=p.matches}),e.selectMobilePane=p=>{e.mobilePane=p};let h=0,v=!1,g=new Set,k=(p,w=!1)=>!v&&p.generation===h&&p.url===e.sourceUrl.trim()&&p.connection===e.githubConnection&&(!w||p.branch===e.source.branch),m=()=>{let p={generation:h,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(p),e.sourceLoading=!0,p},b=p=>{g.delete(p),v||(e.sourceLoading=[...g].some(w=>k(w)))};e.on("dispose",()=>{v=!0,h++});let C=null,E=p=>p.gistId&&!p.repo?"gist:"+p.gistId.toLowerCase():(p.owner+"/"+p.repo).toLowerCase()+(p.pullRequestId?"/pull/"+p.pullRequestId:""),R=ai(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),D=null,T=null,q=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,Ye(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=p=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(_e()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository():e.anonymizeRepo(p)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=p=>p.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:p.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(p.amount/100)+(p.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="author_monthly",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(p=>p.id===e.hostingPlan)||e.authorPlans()[0];let L=()=>t.get("/api/user/quota").then(p=>{e.hostingQuota=p.data});rs(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(p=>["author_monthly","author_annual"].includes(p.id)),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner")return!1;let p=e.options?.expirationMode==="never"&&!e._existingNever,w=e.hostingQuota?.repository,S=!e.isUpdate&&!e.conference&&w&&w.used>=w.total;return!!(p||!e.conference&&(S||e.hostingQuotaBlocked))},e.checkoutRepository=async(p=!1)=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let w=R.checkpoint(),S=JSON.stringify(w);(!T||S!==q)&&(T=(await t.post("/api/billing/draft",{path:o.path(),values:w},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,q=S);let P=e.authorPlans().find(V=>V.id===e.hostingPlan)||e.authorPlans()[0];if(!p&&!P)throw new Error("No author plan available");await e.checkout(p?"author_pass":P.id,p?e.repoId:"",{draftId:T})}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):(h++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Ce.cancel(),Se.cancel(),x.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let M=()=>{let p={};for(let w of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])p[w]=e[w];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:p}))};e.connectGistApp=()=>{M(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{M(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{M();let p=o.path(),w=B(e.sourceUrl)||"",S=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=S+"?returnTo="+encodeURIComponent(p)+"&repository="+encodeURIComponent(w)+"&install=1"},e.chooseGitHubConnection=async p=>{e.githubConnection=p,e.readme="",e.sourceUrl&&await X()},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 z(){let p=new Date;return p.setMonth(p.getMonth()+6),p}e.options.expirationDate=z();function se(p){let w=p.getFullYear(),S=String(p.getMonth()+1).padStart(2,"0"),P=String(p.getDate()).padStart(2,"0");return`${w}-${S}-${P}`}e.minExpirationDate=se(new Date);let oe=new Date;oe.setFullYear(oe.getFullYear()+1),e.maxExpirationDate=se(oe),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function _(p){t.get("/api/user/default").then(w=>{let S=w.data;S.terms&&(e.defaultTerms=S.terms.join(` +`)),e.options=Object.assign({},e.options,S.options),e.options.expirationDate=S.options&&S.options.expirationDate?new Date(S.options.expirationDate):z(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),p&&p()})}function O(p,w,S){e.anonymize&&e.anonymize[p]&&e.anonymize[p].setValidity(w,S)}function B(p){try{let w=parseGithubUrl(p);if(w&&w.owner&&w.repo)return w.owner+"/"+w.repo}catch{}return null}e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await te()}catch{}}};function Y(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:B(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function X(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function K(){let p=new URLSearchParams(window.location.search).get("billingDraft");if(p){R.restore();try{let S=(await t.get("/api/billing/draft/"+encodeURIComponent(p))).data;if(S.path!==o.path())throw new Error("Wrong task");D=S.values.conference||null;for(let P of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(S.values,P)&&(e[P]=S.values[P]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),T=S.id,q=JSON.stringify(R.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await X(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let w;try{w=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!w||w.path!==o.path()||Date.now()-w.savedAt>=30*6e4)return R.restore()?(e.sourceUrl&&await X(),!0):!1;R.restore();for(let S of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(w.draft,S)&&(e[S]=w.draft[S]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await X(),sessionStorage.removeItem("github-access-draft"),!0}_(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&a(K,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async p=>{e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.fullName,e._originalFullName=p.data.source.fullName,e.terms=p.data.options.terms.filter(w=>w).join(` +`),e.source=p.data.source,e.role=p.data.role||"owner",e._existingNever=p.data.options.expirationMode==="never",e.coauthors=p.data.coauthors||[],e._originalBranch=p.data.source.branch,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,e.repositoryID=p.data.source.repositoryID,e._originalRepositoryID=p.data.source.repositoryID,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await K()&&(await Promise.all([te(),ue()]),Ae())},()=>{o.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async p=>{if(e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.repositoryFullName+"/pull/"+p.data.source.pullRequestId,e.terms=p.data.options.terms.filter(w=>w).join(` +`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await K())try{await Oe()}catch{}},()=>{o.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async p=>{e.sourceUrl="https://gist.github.com/"+p.data.source.gistId,e.terms=p.data.options.terms.filter(w=>w).join(` +`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),C=E(parseGithubUrl(e.sourceUrl)),!await K()&&await Fe()},()=>{o.url("/404")}))}),t.get("/github/connections").then(p=>{e.githubConnections=p.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&p.data.appEnabled&&p.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&X())}).catch(()=>{}),e.urlSelected=async(p=!1)=>{let w=++h,S;try{S=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,Ce.cancel(),Se.cancel(),x.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",O("sourceUrl","github",!1);return}let P=E(S),V=p||C===P;C=P,e.sourceUrlError="",O("sourceUrl","github",!0);let I=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,I&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!V&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],V||(e.source={type:"GitHubStream",branch:"",commit:""}),Ce.cancel(),Se.cancel(),x.cancel(),ke.clear(),Ve.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=V;try{S.gistId&&!S.repo?(e.detectedType="gist",e.source={gistId:S.gistId},await Fe()):S.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:S.owner+"/"+S.repo,pullRequestId:S.pullRequestId},await Oe()):(e.detectedType="repo",await Promise.all([te(),ue()]),Ae())}catch{}finally{w===h&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let p=e.branches.filter(S=>S.name==e.source.branch)[0];if(!p)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=p.commit),e.readme=p.readme,await ue(),Ae()}),e.getBranches=async p=>{let w=parseGithubUrl(e.sourceUrl),S=m();try{let P=await t.get(`/api/repo/${w.owner}/${w.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&B(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:p===!0||e.reconnectingSource?"1":"0",repositoryID:Y()}});if(!k(S))return;e.branches=P.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let V=e.branches.filter(I=>I.name==e.source.branch);V.length>0&&(!(!e.reconnectingSource&&!p&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=V[0].commit),e.readme=V[0].readme,await ue(p))}catch(P){if(!k(S))return;e.branches=[],e.sourceUnreachable=P&&(P.status===404||P.data&&P.data.error==="repo_not_found");let V=P&&P.data&&P.data.error||(P&&P.status===404?"repo_not_found":"unknown_error");r("ERRORS."+V).then(I=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:I}),e.error=I},console.error),typeof O=="function"&&O("sourceUrl","missing",!1)}finally{b(S)}};async function te(){let p=parseGithubUrl(e.sourceUrl),w=m();try{me();let S=await t.get(`/api/repo/${p.owner}/${p.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&B(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:Y(),force:"1"}});if(!k(w))return;e.details=S.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(S){if(!k(w))return;throw S.data&&(r("ERRORS."+S.data.error).then(P=>{e.addToast({title:"Error",date:new Date,body:P}),e.error=P},console.error),W(S.data.error)),O("sourceUrl","missing",!1),S}finally{b(w)}}async function ue(p){if(e.readme&&!p)return e.readme;let w=parseGithubUrl(e.sourceUrl),S=m();try{let P=await t.get(`/api/repo/${w.owner}/${w.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&B(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:p===!0?"1":"0",branch:e.source.branch,repositoryID:Y()}});k(S,!0)&&(e.readme=P.data)}catch{k(S,!0)&&(e.readme="")}finally{b(S)}}function le(){let p={terms:e.terms?e.terms.split(` +`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(p.branchName=e.source.branch);try{let w=parseGithubUrl(e.sourceUrl);p.repoName=`${w.owner}/${w.repo}`}catch{}return p}function re(p,w,S){let P=null,V=0,I=()=>{if(e.detectedType!==p)return;P&&a.cancel(P);let F=++V;e.previewStatus="loading",P=a(()=>{P=null;let Q=w();if(!Q){e.previewStatus="idle";return}t.post("/api/anonymize-preview",Q).then(J=>{F===V&&(S(J.data,Q),e.previewStatus="ready")}).catch(()=>{F===V&&(e.previewStatus="error")})},200)};return I.cancel=()=>{V++,P&&a.cancel(P),P=null},e.on("dispose",I.cancel),I}e.retryPreview=()=>{e.detectedType==="repo"&&Ce(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&x()};let Ce=re("repo",()=>e.readme?{content:e.readme,options:le()}:null,p=>{if(typeof p?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=p.content;let w="";try{let P=parseGithubUrl(e.sourceUrl),V=e.source.branch||e.details&&e.details.defaultBranch||"main";w=`https://github.com/${P.owner}/${P.repo}/raw/${V}/`}catch{}let S=renderMD(e.anonymize_readme,w);e.html_readme=S,a(Prism.highlightAll,150)});function Ae(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),Ce())}async function Oe(){let p=parseGithubUrl(e.sourceUrl),w=m();try{me();let S=await t.get(`/api/pr/${p.owner}/${p.repo}/${p.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(w))return;e.details=S.data,e.pullRequestId||(e.pullRequestId=p.repo+"-PR"+p.pullRequestId+"-"+generateRandomId(4))}catch(S){if(!k(w))return;throw S.data&&(r("ERRORS."+S.data.error).then(P=>{e.addToast({title:"Error",date:new Date,body:P}),e.error=P},console.error),W(S.data.error)),O("sourceUrl","missing",!1),S}finally{b(w)}}let ke=ze(new Map);function Ie(){let p=new Set,w=e.details&&e.details.pullRequest;if(!w)return p;typeof w.title=="string"&&p.add(w.title),typeof w.body=="string"&&p.add(w.body),typeof w.diff=="string"&&p.add(w.diff);let S=w.comments||[];for(let P of S)typeof P.author=="string"&&p.add(P.author),typeof P.body=="string"&&p.add(P.body);return p}let Se=re("pr",()=>{let p=Ie(),w=Array.from(p);return w.length===0?null:{contents:w,options:le()}},(p,w)=>{if(!Array.isArray(p?.contents)||p.contents.length!==w.contents.length||p.contents.some(V=>typeof V!="string"))throw Error("Invalid preview response");let S=w.contents,P=new Map;for(let V=0;Vke.set(I,V))});e.anonymizePrContent=function(p){return p&&(ke.has(p)?ke.get(p):"")};async function Fe(){let p=parseGithubUrl(e.sourceUrl),w=m();try{me(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let S=await t.get(`/api/gist/source/${p.gistId}`);if(!k(w))return;e.details=S.data,e.gistId||(e.gistId="gist-"+p.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(S){if(!k(w))return;if(S.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,O("sourceUrl","missing",!1);return}if(S.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,O("sourceUrl","missing",!1);return}throw S.data&&(r("ERRORS."+S.data.error).then(P=>{e.addToast({title:"Error",date:new Date,body:P}),e.error=P},console.error),W(S.data.error)),O("sourceUrl","missing",!1),S}finally{b(w)}}let Ve=ze(new Map);function U(){let p=new Set,w=e.details&&e.details.gist;if(!w)return p;typeof w.description=="string"&&p.add(w.description),typeof w.ownerLogin=="string"&&p.add(w.ownerLogin);let S=w.files||[];for(let V of S)typeof V.filename=="string"&&p.add(V.filename),typeof V.content=="string"&&p.add(V.content);let P=w.comments||[];for(let V of P)typeof V.author=="string"&&p.add(V.author),typeof V.body=="string"&&p.add(V.body);return p}let x=re("gist",()=>{let p=U(),w=Array.from(p);return w.length===0?null:{contents:w,options:le()}},(p,w)=>{if(!Array.isArray(p?.contents)||p.contents.length!==w.contents.length||p.contents.some(V=>typeof V!="string"))throw Error("Invalid preview response");let S=w.contents,P=new Map;for(let V=0;VVe.set(I,V)),Z()});e.anonymizeGistContent=function(p){return p&&(Ve.has(p)?Ve.get(p):"")},e.previewGistFiles=[];function Z(){let p=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=p.map(w=>({filename:e.anonymizeGistContent(w.filename),content:e.anonymizeGistContent(w.content),language:w.language}))}e.watch("details.gist.files",Z,!0),e.watch("terms",Z);function ie(){let p=e.conference;if(e.conference_data=null,!p)return;let w=p===D||e.isUpdate&&p===e._originalConference;p!==D&&(D=null),t.get("/api/conferences/"+p).then(S=>{e.conference===p&&(e.conference_data=S.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!w&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===p&&(e.conference_data=null)})}function me(){O("repoId","used",!0),O("repoId","format",!0),O("pullRequestId","used",!0),O("pullRequestId","format",!0),O("gistId","used",!0),O("gistId","format",!0),O("sourceUrl","used",!0),O("sourceUrl","missing",!0),O("sourceUrl","access",!0),O("sourceUrl","github",!0),O("commit","exists",!0),O("conference","activated",!0),O("terms","format",!0),e.termsRegexWarning=!1}function _e(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let p=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||p&&p.invalid?(p&&p.setDirty&&p.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function W(p){let w=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(p){case"repoId_already_used":O(w,"used",!1);break;case"invalid_repoId":O(w,"format",!1);break;case"options_not_provided":O(w,"format",!1);break;case"repo_already_anonymized":O("sourceUrl","used",!1);break;case"invalid_terms_format":O("terms","format",!1);break;case"repo_not_found":O("sourceUrl","missing",!1);break;case"repo_not_accessible":O("sourceUrl","access",!1);break;case"commit_not_found":O("commit","exists",!1);break;case"conf_not_activated":O("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let p=(e.coauthorSearch||"").trim();if(e.coauthorError="",p.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:p}}).then(w=>{let S=new Set((e.coauthors||[]).map(P=>(P.username||"").toLowerCase()));e.coauthorResults=(w.data||[]).filter(P=>!S.has((P.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(p,w)=>{w&&w.preventDefault(),!(!p||!p.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:p.username}).then(S=>{e.coauthors=S.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},S=>{let P=S&&S.data&&S.data.error||"unknown_error";e.coauthorError=P})},e.removeCoauthor=p=>{!p||!p.username||confirm("Remove co-author "+p.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(p.username)).then(w=>{e.coauthors=w.data||[]},w=>{let S=w&&w.data&&w.data.error||"unknown_error";e.coauthorError=S})},e.anonymizeRepo=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(_e()){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,Ye(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let w=p.currentTarget||p.target.closest?.("button")||p.target;w.disabled=!0;let S=parseGithubUrl(e.sourceUrl),P={repoId:e.repoId,terms:e.terms.trim().split(` +`).filter(I=>I),connection:e.githubConnection,fullName:`${S.owner}/${S.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(P.options.pageSource=e.details.pageSource),me();let V=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(V,P,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/status/"+e.repoId},I=>{I.data&&(r("ERRORS."+I.data.error).then(F=>{e.error=F},console.error),W(I.data.error),["quota_exceeded","subscription_required_for_never_expiration"].includes(I.data.error)&&(I.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,Ye(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}))))}).finally(()=>{w.disabled=!1})},e.anonymizeGist=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(_e())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let w=p.currentTarget||p.target.closest?.("button")||p.target;w.disabled=!0;let S=parseGithubUrl(e.sourceUrl),P={gistId:e.gistId,terms:e.terms.trim().split(` +`).filter(I=>I),source:{gistId:S.gistId},options:e.options,conference:e.conference};me();let V=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(V,P,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/gist/"+e.gistId},I=>{I.data&&(r("ERRORS."+I.data.error).then(F=>{e.error=F},console.error),W(I.data.error))}).finally(()=>{w.disabled=!1})},e.anonymizePullRequest=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(_e())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let w=p.currentTarget||p.target.closest?.("button")||p.target;w.disabled=!0;let S=parseGithubUrl(e.sourceUrl),P={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` +`).filter(I=>I),source:{repositoryFullName:`${S.owner}/${S.repo}`,pullRequestId:S.pullRequestId},options:e.options,conference:e.conference};me();let V=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(V,P,{headers:{"Content-Type":"application/json"}}).then(()=>{R.clear(),window.location.href="/pr/"+e.pullRequestId},I=>{I.data&&(r("ERRORS."+I.data.error).then(F=>{e.error=F},console.error),W(I.data.error))}).finally(()=>{w.disabled=!1})},e.watch("conference",()=>{ie()}),e.watch("terms",()=>{e.detectedType==="repo"&&Ae(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&x()}),e.watch("options.image",()=>{e.detectedType==="repo"&&Ae(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&x()}),e.watch("options.link",()=>{e.detectedType==="repo"&&Ae(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&x()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&x()},!0)},li=function(e,t,s,i,o,r){let a=ct(),c=Jt();e.on("dark-mode",(O,B)=>{e.aceOption&&(B?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let h=0,v=!1;e.on("dispose",()=>{v=!0,h++,g&&g.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,c(document,"keydown",function(O){if((O.metaKey||O.ctrlKey)&&O.key==="k"){O.preventDefault();var B=document.querySelector(".tree-search-input");B&&(B.focus(),B.select())}});var g=null;e.onFileSearchChange=function(){g&&(g.resolve(),g=null);let O=e.fileSearchQuery;if(!O||O.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let B=r.defer();g=B,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(O)}`,{timeout:B.promise}).then(function(Y){if(!(v||g!==B)){g=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(U){X[(U.path||"")+"/"+U.name]=!0});for(var K=[],te={},ue=0;ue0&&e.files.push.apply(e.files,K);for(var Ie=[],Se=0;Se0&&e.files.push.apply(e.files,Ie),e.fileSearchResults=Y.data}},function(){!v&&g===B&&(g=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},m=["license","txt"],b=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],C=["wav","mp3","ogg","wma","flac","aac","m4a"],E=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(O,B){if(e.repoId!=i.repoId)return _();if((i.path||"")!=e.filePath){e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(Y=>Y&&Y.trim().length>0),oe();for(let Y=0;Y0?e.paths.slice(0,Y).join("/"):"";e.files.some(te=>te.path===X)||e.getFiles(X)}}});function R(){if(e.paths[0]!="")return;let O=["readme.md","readme.txt","readme.org","readme.1st","readme"],B={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(B[X.name.toLowerCase()]=X.name);let Y=null;for(let X of O)if(B[X]){Y=X;break}if(!Y&&Object.keys(B).length>0&&(Y=Object.keys(B)[0]),Y){let X=s.url();X[X.length-1]!="/"&&(X+="/"),s.url(X+encodePathForUrl(B[Y]))}}e.fileCounts=null,e.getFiles=function(O){let B=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(O)}&v=${e.options.lastUpdateDate}`).then(function(Y){if(v||B!==e.repoId)return[];let X=O||"";return e.files=e.files.filter(K=>K.path!==X),e.files.push(...Y.data),Y.data},function(Y){if(v||B!==e.repoId)return[];e.type="error",e.content=Y&&Y.data&&Y.data.error||"unknown_error",e.files=[]})};function D(){let O=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(B){v||O!==e.repoId||(e.fileCounts=B.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(O=>O.name==e.paths[e.paths.length-1]&&O.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var q=null;e.on("dispose",function(){q&&a.interval.cancel(q)});function L(O){if(v)return;let B=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(Y=>{if(!(v||B!==e.repoId)){if(e.options=Y.data,e.options.url){window.location=e.options.url;return}O&&O(Y.data)}},Y=>{if(!(v||B!==e.repoId)){var X=Y.data||{};if(X.error==="rate_limited"&&X.resetAt){let te=function(){var ue=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ue<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,q&&(a.interval.cancel(q),q=null),L(O);else{var le=Math.floor(ue/60),re=ue%60;e.rateLimitCountdown=le>0?le+"m "+re+"s":re+"s"}};var K=te;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,q&&a.interval.cancel(q),te(),q=a.interval(te,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){L(O)},3e3)):(e.type="error",e.content=X.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function M(O){return k[O]?k[O]:O}function z(O){return O=="pdf"?"pdf":O=="html"||O=="htm"?"html-doc":O=="md"?"md":O=="org"?"org":O=="ipynb"?"IPython":m.indexOf(O)>-1?"text":b.indexOf(O)>-1?"image":E.indexOf(O)>-1?"media":C.indexOf(O)>-1?"audio":"code"}function se(O,B){let Y=h;if(!O){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let K=B&&B.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(O)}?v=`+K,{transformResponse:te=>te}).then(te=>{if(!(v||Y!==h)){if(e.type=X,e.content=te.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(te.data,s.url()+"/../"),e.type="html"),e.type=="org"){let le=contentAbs2Relative(te.data);var ue=new Org.Parser().parse(le).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ue.toString()),e.type="html"}e.type=="code"&&te.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},te=>{if(!(v||Y!==h)){e.type="error",e.content="unknown_error";try{te.data=JSON.parse(te.data),te.data.error?e.content=te.data.error:e.content=te.data}catch{console.log(te),te.status==-1?e.content="request_error":te.status==502&&(e.content="unreachable")}}})}function oe(){h++,e.content="",e.file=T();let O="0";e.file&&e.file.sha&&(O=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${O}`;let B=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${B?encodePathForUrl(B):""}`,e.showSource=!1,e.allowScripts=!1;let Y=e.filePath.toLowerCase(),X=Y.lastIndexOf(".");if(X>-1&&(Y=Y.substring(X+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:15,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:M(Y),onLoad:function(K){let te=ace.require("ace/range").Range,ue=null;function le(Oe,ke){ue!==null&&(K.session.removeMarker(ue),ue=null),Oe!=null&&(ue=K.session.addMarker(new te(Oe,0,ke,1),"highlighted-line","fullLine"))}function re(Oe){let ke=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!ke){le(null);return}let Ie=parseInt(ke[1])-1,Se=ke[2]?parseInt(ke[2])-1:Ie;le(Ie,Se),Oe&&a.timeout(()=>{K.scrollToLine(Ie,!0,!0,function(){})},100)}re(!0);let Ce=null;K.on("guttermousedown",function(Oe){let ke=Oe.getDocumentPosition().row,Ie=Oe.domEvent&&Oe.domEvent.shiftKey,Se=ke,Fe=ke;Ie&&Ce!==null?(Se=Math.min(Ce,ke),Fe=Math.max(Ce,ke)):Ce=ke;let Ve=Se===Fe?`#L${Se+1}`:`#L${Se+1}-L${Fe+1}`,U=window.location.pathname+window.location.search+Ve;window.history.replaceState(null,"",U),le(Se,Fe),Oe.stop()});let Ae=c(window,"hashchange",()=>re(!1));return K.setFontSize(e.aceOption.fontSize),K.setReadOnly(e.aceOption.readOnly),K.setKeyboardHandler(e.aceOption.keyBinding),K.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),K.setOption("displayIndentGuides",!0),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),Ae}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(Y),e.type=="pdf"){e.content="pdf";return}se(e.filePath,e.file)}function _(){h++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let O=e.repoId;L(function(B){D();var Y=r.resolve();for(let X=0;X0?e.paths.slice(0,X).join("/"):"";Y=Y.then(function(){return e.getFiles(K)}).then(function(){if(e.type==="error")return r.reject("error")})}Y.then(function(){v||O!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(R(),oe()))})})}_()},Ja=function(e,t,s,i,o){async function r(h){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}h&&h(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(h){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},h&&h(v.data)},v=>{e.type="error",e.content=v.data.error})}function c(){e.pullRequestId=i.pullRequestId,e.type="loading",r(h=>{a()})}c()},Xa=function(e,t,s,i,o){async function r(h){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}h&&h(v.data)},v=>{e.type="error",e.content=v.data.error})}async function a(h){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let g=v.data&&v.data.files&&v.data.files.length;e.tabState={active:g?"files":"comments"},h&&h(v.data)},v=>{e.type="error",e.content=v.data.error})}function c(){e.gistId=i.gistId,e.type="loading",r(()=>{a()})}c()},Za=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",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.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(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let c=ze({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(c),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{c.title=`${a.name} is removed.`,c.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{c.title="Unable to remove conference",c.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let c=e.search.trim().toLowerCase();return!!(!c||(a.name||"").toLowerCase().includes(c)||(a.conferenceID||"").toLowerCase().includes(c))}},di=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function o(){return t.get("/api/conferences/"+i.conferenceId).then(g=>{e.options={...e.options,...g.data,billing:g.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,o());function r(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}r();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let c=new Date(a);c.setTime(a.getTime()+179*864e5),e.options={billing:{},startDate:a,endDate:c,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(g=>g.id==e.options.plan.planID)[0]});function h(){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(g){switch(g){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 g=JSON.parse(JSON.stringify(e.options)),k=ze({title:`Creating ${g.name}...`,date:new Date,body:`The conference ${g.conferenceID} is in creation.`});e.editionMode&&(k.title=`Updating ${g.name}...`,k.body=`The conference '${g.conferenceID}' is updating.`),e.addToast(k),h(),t.post("/api/conferences/"+(e.editionMode?g.conferenceID:""),g).then(()=>{e.editionMode?(k.title=`${g.name} updated`,k.body=`The conference '${g.conferenceID}' is updated.`):(k.title=`${g.name} created`,k.body=`The conference '${g.conferenceID}' is created.`),s.url("/conference/"+g.conferenceID)},m=>{v(m.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},xa=function(e,t,s,i){rs(e,t,()=>o(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=r=>{if(e.filters.status[r.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(r.source?.fullName||"").toLowerCase().includes(a)||(r.repoId||"").toLowerCase().includes(a))};function o(){t.get("/api/conferences/"+i.conferenceId).then(r=>{e.conference=r.data})}o()},el=function(e,t){e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.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()},tl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};var nl=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=C=>{if(C.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){C.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=C=>{C==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[C]="",e.query.page=1},e.chips=[];let a=()=>{let C=[];e.query.owner&&C.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&C.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=C};e.showStatusMessage=C=>{let E=C.statusMessage||"(no message)";window.prompt(`Status message for ${C.repoId} (${C.status}):`,E)},e.fetchGithubInfo=C=>{let E=window.open("","_blank");E&&E.document.write("
Loading GitHub info for "+C.repoId+"...
"),t.get("/api/admin/repos/"+C.repoId+"/github").then(R=>{E&&(E.document.open(),E.document.write('
'+JSON.stringify(R.data,null,2).replace(/[<>]/g,D=>D==="<"?"<":">")+"
"),E.document.close())},R=>{let D=R&&R.data?JSON.stringify(R.data,null,2):String(R);E&&(E.document.body.innerHTML='
'+D+"
")})},e.statusCountFor=C=>{let E=(e.statusCounts||[]).find(R=>R._id===C);return E?E.count:0},e.statusStorageFor=C=>{let E=(e.statusCounts||[]).find(R=>R._id===C);return E?E.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.repos.filterPrefs",h={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(c)||{};e.query=Object.assign({},h,v,{page:1,search:""});let g=s.search();g.owner&&(e.query.owner=g.owner),g.conference&&(e.query.conference=g.conference),g.search&&(e.query.search=g.search);let k="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let E=Object.assign({},e.query);delete E.page,e.presets=(e.presets||[]).filter(R=>R.name!==C),e.presets.push({name:C,query:E}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(E=>E.name!==C.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(C=>{e.selected[C.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(C=>e.selected[C.repoId]),e.bulkRefresh=()=>{let C=e.selectedRepos();C.length&&confirm(`Force refresh ${C.length} repositories?`)&&C.forEach(E=>e.updateRepository(E))},e.bulkRemoveCache=()=>{let C=e.selectedRepos();C.length&&confirm(`Purge cache for ${C.length} repositories?`)&&C.forEach(E=>e.removeCache(E))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/repos?"+C.toString(),"_blank")},e.removeCache=C=>{confirm("Remove cached files for "+C.repoId+"?")&&t.delete("/api/admin/repos/"+C.repoId).then(()=>m(),E=>console.error(E))},e.removeRepository=C=>{confirm("Remove repository "+C.repoId+"?")&&t.delete("/api/repo/"+C.repoId+"/").then(()=>m(),E=>console.error(E))},e.updateRepository=C=>{let E=ze({title:`Refreshing ${C.repoId}...`,date:new Date,body:`The repository ${C.repoId} is going to be refreshed.`});e.toasts.push(E),t.post(`/api/repo/${C.repoId}/refresh`).then(R=>{R.data.status=="ready"?E.title=`${C.repoId} is refreshed.`:E.title=`Refreshing of ${C.repoId}.`},R=>{E.title=`Error during the refresh of ${C.repoId}.`,E.body=R.body})},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.repositories=C.data.results,e.statusCounts=C.data.statusCounts||[],e.totalSize=C.data.totalSize||0,e.allSelected=!1},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load repositories",console.error(C)})}m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:C,search:E,...R}=e.query;saveFilterPrefs(c,R),a()},!0),a()},ol=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let a=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let b=(e.statusCounts||[]).find(C=>C._id===m);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.users.filterPrefs",h={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(c)||{};e.query=Object.assign({},h,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(g,b=>console.error(b))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(g,b=>console.error(b))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(b=>e.banUser(b))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}g();let k=null;e.watch("query",()=>{i.timeout.cancel(k),k=i.timeout(g,500);let{page:m,search:b,...C}=e.query;saveFilterPrefs(c,C),a()},!0),a()},sl=function(e,t,s,i){let o=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},c=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},a.filters.status,c.filters&&c.filters.status||{})},e.query={sort:c.sort||a.sort,direction:c.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(b=>b.status===m).length,e.repoFiler=m=>e.filters.status[m.status]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,C=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),E=m.map(T=>[T.repoId,T.status,T.statusMessage||"",T.pageView||0,T.anonymizeDate||"",T.source&&T.source.fullName||"",T.conference||"",T.size&&T.size.storage||0].map(q=>{let L=String(q??"");return/[",\n\r]/.test(L)?'"'+L.replace(/"/g,'""')+'"':L}).join(",")),R=new Blob([C+` `+E.join(` -`)],{type:"text/csv"}),D=document.createElement("a");D.href=URL.createObjectURL(T),D.download=i.username+"-repositories.csv",D.click()},e.showStatusMessage=m=>{let b=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,b)},e.fetchGithubInfo=m=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+m.repoId+"...
"),t.get("/api/admin/repos/"+m.repoId+"/github").then(C=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(C.data,null,2).replace(/[<>]/g,E=>E==="<"?"<":">")+"
"),b.document.close())},C=>{let E=C&&C.data?JSON.stringify(C.data,null,2):String(C);b&&(b.document.body.innerHTML='
'+E+"
")})};function f(m){t.get("/api/admin/users/"+m+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function v(m){t.get("/api/admin/users/"+m,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}v(i.username),f(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function g(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}g(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",g()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>g(),b=>console.error(b))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>f(i.username),b=>console.error(b))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>f(i.username),b=>console.error(b))},e.updateRepository=m=>{let b=ze({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${m.repoId}/refresh`).then(C=>{C.data.status=="ready"?b.title=`${m.repoId} is refreshed.`:b.title=`Refreshing of ${m.repoId}.`},C=>{b.title=`Error during the refresh of ${m.repoId}.`,b.body=C.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let k=null;e.watch("query",()=>{o.timeout.cancel(k),k=o.timeout(()=>{f(i.username)},500)},!0)},il=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=C=>{if(C.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){C.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=C=>{C==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[C]="",e.query.page=1},e.chips=[];let a=()=>{let C=[];(e.query.dateFrom||e.query.dateTo)&&C.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=C};e.statusCountFor=C=>{let E=(e.statusCounts||[]).find(T=>T._id===C);return E?E.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.conferences.filterPrefs",f={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(c)||{};e.query=Object.assign({},f,v,{page:1,search:""});let g=s.search();g.search&&(e.query.search=g.search);let k="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let E=Object.assign({},e.query);delete E.page,e.presets=(e.presets||[]).filter(T=>T.name!==C),e.presets.push({name:C,query:E}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(E=>E.name!==C.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.removeConference=C=>{confirm("Remove conference "+C.conferenceID+"?")&&t.delete("/api/admin/conferences/"+C.conferenceID).then(()=>m(),E=>console.error(E))},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/conferences?"+C.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.conferences=C.data.results,e.statusCounts=C.data.statusCounts||[]},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load conferences",console.error(C)})}m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:C,search:E,...T}=e.query;saveFilterPrefs(c,T),a()},!0),a()},rl=function(e,t,s,i,o){let r=ct();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},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(E=>e.stateFilter[E._state]),e.jobProgressPct=E=>E&&E.progress&&typeof E.progress=="object"&&typeof E.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(E.progress.percent))):typeof E.progress=="number"?Math.max(0,Math.min(100,Math.round(E.progress))):null,e.jobDuration=E=>{if(!E.processedOn)return"-";let D=(E.finishedOn||Date.now())-E.processedOn;return D<1e3?D+"ms":(D/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=E=>{e.selectedQueue=E,a(),c()},e.setRange=E=>{e.range=E,c()};function a(){let E={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:E}).then(T=>{e.queueList=T.data.queues||[],e.jobs=T.data.jobs||[],e.selectedStats=e.queueList.find(D=>D.key===e.selectedQueue)||e.queueList[0]||null},T=>console.error(T))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(E=>{e.metricsPoints=E.data.points||[],o(m,0)},E=>console.error(E))}a(),c();let f=i(()=>{e.query.autoRefresh&&(a(),c())},15e3);e.on("dispose",()=>i.cancel(f)),e.refreshNow=function(){a(),c()};function v(E){let T=E&&E.data&&(E.data.message||E.data.error)||"Request failed";e.actionError=T,o(()=>{e.actionError=null},5e3),console.error(E)}e.actionError=null,e.removeJob=E=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${E.id}`).then(a,v)},e.retryJob=E=>{t.post(`/api/admin/queue/${e.selectedQueue}/${E.id}`).then(a,v)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,E=>console.error(E))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,E=>console.error(E))},e.togglePause=()=>{let E=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${E}`).then(a,T=>console.error(T))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,E=>console.error(E))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,E=>console.error(E))};let g=null;e.watch("query.search",()=>{r.timeout.cancel(g),g=r.timeout(a,350)}),e.expanded={},e.toggleJob=E=>{e.expanded[E.id]=!e.expanded[E.id]},e.humanTime=E=>{if(!E)return"";let T=new Date(E);return T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+T.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=E=>{if(!E)return"";var T=Math.max(0,Math.ceil((E-Date.now())/1e3));if(T<=0)return"resuming soon";var D=Math.floor(T/60),O=T%60;return"in "+(D>0?D+"m "+O+"s":O+"s")};function k(E){if(E<=0)return{ticks:[0],niceMax:1};let T=Math.pow(10,Math.floor(Math.log10(E))),D=T;E/D<2?D=T/2:E/D>5&&(D=T*2);let O=Math.ceil(E/D)*D,q=[];for(let F=0;F<=O;F+=D)q.push(F);return{ticks:q,niceMax:O}}function m(){var E=document.getElementById("q-throughput-chart");if(!E)return;var T=E.getContext("2d"),D=window.devicePixelRatio||1,O=E.parentElement.getBoundingClientRect(),q=44,F=50,M=20,z=O.width-40,se=180,oe=z-q-F,S=se-M;E.width=z*D,E.height=se*D,E.style.width=z+"px",E.style.height=se+"px",T.setTransform(D,0,0,D,0,0);var I=document.body.classList.contains("dark-mode"),H="#8A857C",K=I?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",X=I?"#A7B2FF":"#3B4AD6",Y=I?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",ee=I?"#F08A82":"#B42318",ce=I?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",le=I?"#F5C842":"#B8860B",re=e.metricsPoints||[];if(re.length===0){T.fillStyle=H,T.font="12px monospace",T.textAlign="center",T.fillText("No metrics data yet",z/2,se/2),b=null;return}var Se=re.map(function(V){return V.completed}),$e=re.map(function(V){return V.failed}),Ne=re.map(function(V){return V.avgMs}),ke=re.length,Ee=oe/(ke-1||1),Le=Math.max(1,Math.max.apply(null,Se),Math.max.apply(null,$e)),qe=k(Le),Ue=Math.max.apply(null,Ne),U=Ue>0?k(Ue):{ticks:[0],niceMax:1},ne=function(V){return S-V/qe.niceMax*(S-10)},x=function(V){return S-V/U.niceMax*(S-10)},ie=function(V){return q+V*Ee};T.textAlign="right",T.textBaseline="middle",T.font="10px monospace",qe.ticks.forEach(function(V){var B=ne(V);T.strokeStyle=K,T.lineWidth=1,T.beginPath(),T.moveTo(q,B),T.lineTo(z-F,B),T.stroke(),T.fillStyle=H,T.fillText(V>=1e3?(V/1e3).toFixed(1)+"k":String(V),q-6,B)}),Ue>0&&(T.textAlign="left",U.ticks.forEach(function(V){var B=x(V);T.fillStyle=le,T.fillText(V>=1e3?(V/1e3).toFixed(1)+"s":V+"ms",z-F+6,B)}));var ge=Date.now(),Ce=Math.min(6,ke);T.textAlign="center",T.textBaseline="top";for(var _=0;_0&&(T.beginPath(),Ne.forEach(function(V,B){var Q=ie(B),J=x(V);if(B===0)T.moveTo(Q,J);else{var j=(ie(B-1)+Q)/2;T.bezierCurveTo(j,x(Ne[B-1]),j,J,Q,J)}}),T.strokeStyle=le,T.lineWidth=1,T.setLineDash([4,3]),T.stroke(),T.setLineDash([])),b={pts:re,maxLen:ke,marginLeft:q,step:Ee,totalW:z,toX:ie}}var b=null;function C(){var E=document.getElementById("q-throughput-chart");if(!(!E||E._tipBound)){E._tipBound=!0;var T=document.getElementById("q-chart-tooltip"),D=document.getElementById("q-chart-crosshair");E.addEventListener("mousemove",function(O){if(!(!b||!T||!D)){var q=b,F=E.getBoundingClientRect(),M=O.clientX-F.left,z=Math.round((M-q.marginLeft)/q.step);if(z<0||z>=q.maxLen){T.style.display="none",D.style.display="none";return}var se=q.pts[z],oe=Date.now(),S=Math.round((oe-se.ts)/6e4),I;if(S<=0)I="now";else if(S<60)I=S+"m ago";else if(S<1440){var H=Math.floor(S/60),K=S%60;I=H+"h"+(K?" "+K+"m":"")+" ago"}else I=Math.round(S/1440)+"d ago";var X='
'+I+'
● completed: '+se.completed+'/min
● failed: '+se.failed+"/min
";if(se.avgMs>0){var Y=se.avgMs>=1e3?(se.avgMs/1e3).toFixed(1)+"s":se.avgMs+"ms";X+='
● avg time: '+Y+"
"}T.innerHTML=X;var ee=q.toX(z),ce=T.offsetWidth,le=ee+10;le+ce>q.totalW&&(le=ee-ce-10),T.style.display="block",T.style.left=le+"px",T.style.top="8px",D.style.display="block",D.style.left=ee+"px"}}),E.addEventListener("mouseleave",function(){T&&(T.style.display="none"),D&&(D.style.display="none")})}}e.watch("metricsPoints",function(){o(C,50)})},al=function(e,t,s,i){let o=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=D=>{if(!D)return"";let O=new Date(D).getTime();if(isNaN(O))return D;let q=Math.max(0,Date.now()-O),F=Math.floor(q/1e3);if(F<5)return"just now";if(F<60)return`${F}s ago`;let M=Math.floor(F/60);if(M<60)return`${M}m ago`;let z=Math.floor(M/60);if(z<24)return`${z}h ago`;let se=Math.floor(z/24);return se<7?`${se}d ago`:new Date(D).toLocaleDateString()},e.absTime=D=>{if(!D)return"";let O=new Date(D);return isNaN(O.getTime())?D:O.toLocaleString()},e.absTimeShort=D=>{if(!D)return"";let O=new Date(D);return isNaN(O.getTime())?D:O.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let r=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(D,O){let q=D&&(D.httpStatus||D.status)||null;if(typeof q=="number"){if(q>=500)return"error";if(q===401||q===403||q===404)return"info";if(q>=400)return"warn"}return O==="error"?"error":O==="warn"?"warn":"info"}function c(D){let O=(D.raw||[]).find(z=>z&&typeof z=="object"&&!Array.isArray(z));if(O){O.message&&r.test(O.message)?(D.displayMessage=O.message,D.displayContext=D.message):O.code&&r.test(String(O.code))?(D.displayMessage=String(O.code),D.displayContext=D.message):O.name&&O.name!=="AnonymousError"&&O.name!=="Error"?(D.displayMessage=O.name,D.displayContext=O.message||D.message):D.displayMessage=D.message,D._status=O.httpStatus||O.status||null,D._url=O.url||null,D._method=O.method||null,D._repoId=O.repoId||O.detail||null,D._detail=O.detail&&O.detail!==D._repoId?O.detail:null;let z=typeof O.stack=="string"?O.stack:null;for(var q=[O.cause,O.err].filter(Boolean),F=0;!z&&F{S==null||S===""||q.push([oe,S])};F("name",O&&O.name),F("code",D.displayMessage||O&&O.message),D._bucket&&F("kind",D._bucket),F("httpStatus",O&&O.httpStatus),O&&O.status&&!O.httpStatus&&F("status",O.status),F("module",D.module);let M=O&&O.detail;if(typeof M=="string"){let oe=M.trim();if(oe[0]==="{"||oe[0]==="[")try{M=JSON.parse(M)}catch{}}if(F("detail",M),F("repoId",O&&O.repoId),F("filePath",O&&O.filePath),F("upstreamStatus",O&&O.upstreamStatus),F("upstreamBody",O&&O.upstreamBody),F("url",D._url),F("err",O&&O.err),F("cause",O&&!O.err&&O.cause),F("ts",D.ts),!q.length)return JSON.stringify(D,null,2);let z=q.reduce((oe,S)=>Math.max(oe,S[0].length),0),se=["{"];return q.forEach(([oe,S],I)=>{let K=` ${`"${oe}":`.padEnd(z+3," ")} `,X=Ile===0?ce:ee+ce).join(` -`)}else typeof S=="number"||typeof S=="boolean"?Y=String(S):Y=JSON.stringify(S);se.push(`${K}${Y}${X}`)}),se.push("}"),se.join(` -`)}function v(D){let O=[],q="",F=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,M=0,z;for(;z=F.exec(D);)q+=D.slice(M,z.index),M=F.lastIndex,O.push({key:z[1],op:z[2]||"=",val:z[3]});return q+=D.slice(M),{filters:O,free:q.trim().toLowerCase()}}function g(D,O){for(let q of O.filters){let F=(z,se,oe)=>{let S=parseFloat(z),I=parseFloat(se);return oe==="="?String(z)===String(se):oe==="!="?String(z)!==String(se):oe===">="?S>=I:oe==="<="?S<=I:oe===">"?S>I:oe==="<"?SO&&M._bucket!==O?!1:g(M,D)),F=e.query.group;if(F){let M=oe=>F==="module"?oe.module:oe.displayMessage||oe.message||"_",z=new Map;for(let oe of q){let S=M(oe);if(z.has(S)){let I=z.get(S);I.count++,I._related.push(oe),new Date(oe.ts)>new Date(I.ts)&&(I.ts=oe.ts,I._url=oe._url,I._status=oe._status),new Date(oe.ts)new Date(S.ts).getTime()>=se).length;q=Array.from(z.values())}else q=q.map((M,z)=>(M._key="row:"+z+":"+M.ts,M._related=[M],M._firstSeen=M.ts,M._lastHourCount=0,M.count=1,M));e.query.sort==="count"?q.sort((M,z)=>z.count-M.count||new Date(z.ts)-new Date(M.ts)):q.sort((M,z)=>new Date(z.ts)-new Date(M.ts)),e.visible=q}function m(D){let O=D?e.entries.length:0,q=D?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:O,limit:q}}).then(F=>{let M=(F.data.entries||[]).map(c);e.entries=D?e.entries.concat(M):M,e.available=!!F.data.available,e.cap=F.data.max||e.cap,e.total=F.data.total||e.entries.length,k()},F=>console.error(F))}e.loadMore=()=>m(!0),e.canLoadMore=()=>e.entries.length{let O=D.data||{},q=O.prev24h?Math.round((O.last24h-O.prev24h)/O.prev24h*100):0;e.stats={last24h:O.last24h||0,prev24h:O.prev24h||0,delta:q,severity:O.severity||{error:0,warn:0,info:0},unique:O.unique||{error:0,warn:0,info:0},buckets:O.buckets||[],dropped:O.dropped||0}},D=>console.error(D))}function C(){m(),b()}e.barPx=(D,O)=>{let q=e.stats.buckets||[],F=0;for(let oe of q)F=Math.max(F,(oe.error||0)+(oe.warn||0)+(oe.info||0));if(!F)return 0;let M=(D.error||0)+(D.warn||0)+(D.info||0);if(!M)return 0;let z=Math.round(M/F*60),se=D[O]||0;return Math.round(se/M*z)},e.bucketTitle=D=>`${new Date(D.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${D.error||0} err \xB7 ${D.warn||0} warn \xB7 ${D.info||0} info`,e.toggle=D=>{e.expanded[D._key]=!e.expanded[D._key]},e.setBucket=D=>{e.query.bucket=D},e.refreshNow=C,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(C,D=>console.error(D))},e.exportCsv=()=>{let D=["ts","level","module","displayMessage","_status","_url","_repoId"],O=[D.join(",")];for(let z of e.visible)O.push(D.map(se=>{let oe=z[se]==null?"":String(z[se]);return/[",\n]/.test(oe)?`"${oe.replace(/"/g,'""')}"`:oe}).join(","));let q=new Blob([O.join(` -`)],{type:"text/csv;charset=utf-8"}),F=URL.createObjectURL(q),M=document.createElement("a");M.href=F,M.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(M),M.click(),document.body.removeChild(M),URL.revokeObjectURL(F)};function E(D){e.copyHint=`${D} copied`,o.timeout(()=>{e.copyHint=""},1500)}e.copyJson=D=>{navigator.clipboard.writeText(D._detailJson).then(()=>E("JSON"))},e.copyCurl=D=>{if(!D._url)return;let q=`curl -X ${D._method||"GET"} '${window.location.origin}${D._url}'`;navigator.clipboard.writeText(q).then(()=>E("curl"))},C();let T=i(()=>{e.query.autoRefresh&&C()},15e3);e.on("dispose",()=>i.cancel(T)),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},ll=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.performanceError=null,e.latencyBound=function(b,C){return b.count?b[C]==null?"> 60 s":"\u2264 "+b[C]+" ms":"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(C){return C.instance===b.instance}).reduce(function(C,E){return Math.max(C,E.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(C){b===e.performanceMinutes&&(e.performance=C.data,e.performanceError=C.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 r(b){if(b==null)return"\u2014";for(var C=["B","KB","MB","GB","TB"],E=0,T=b;T>=1024&&E0?1:0)+" "+C[E]}e.humanBytes=r;function a(b){if(!b)return"\u2014";var C=Math.floor(b/86400),E=Math.floor(b%86400/3600),T=Math.floor(b%3600/60);return C>0?C+"d "+(E<10?"0":"")+E+"h":E>0?E+"h "+(T<10?"0":"")+T+"m":T+"m"}e.humanDuration=a;function c(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=c,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 C=e.data.repos.statusBreakdown||[],E=0;Eg[E])&&(g[E]=C[E])})})},function(b){e.loading=!1,e.error=b.data&&b.data.error||"Failed to load overview"})}k();var m=i(k,3e4);e.on("dispose",function(){i.cancel(m)})};var dl=[{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>el(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>tl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Ka(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)=>Ya(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qa(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Za(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>di(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)=>di(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xa(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ja(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ga(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)=>Wa(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)=>Ja(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)=>Xa(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)=>li(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)=>li(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)=>ll(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)=>nl(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)=>ol(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)=>sl(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)=>il(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)=>rl(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)=>al(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 fp={class:"container paper-page connections-page"},hp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},mp={key:1,role:"status"},vp=["disabled"],gp={key:3},yp={class:"connections-grid"},bp={key:0},wp={class:"connection-title"},kp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Ep={class:"connection-actions"},Cp={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},_p={key:1,class:"connection-installations"},Sp={key:0},Np=["href"],Dp={class:"sr-only"},Rp=["disabled"],Tp={class:"connection-title"},Ap={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Op={key:1,class:"connection-revoke"},Pp={key:0},Ip=["disabled"],Vp={class:"connection-resources"},qp={class:"connection-title"},Mp={class:"connection-count"},$p={key:0,class:"connection-empty"},Lp={class:"connection-resource-name"},Up={key:0,class:"connection-resource-actions"},Fp=["disabled","onClick"],Bp=["disabled","onClick"],zp={key:1,class:"connection-help",role:"status"},Hp=["disabled","onClick"];function ul(e,t){return l(),d("div",fp,[t[20]||(t[20]=pe('
My work / GitHub connections

GitHub connections

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

',2)),e.connectionError?(l(),d("p",hp,u(e.connectionError),1)):p("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",mp,"Loading your connections\u2026")):p("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,vp)):p("v-if",!0),e.connections?(l(),d("div",gp,[n("div",yp,[e.connections.appEnabled?(l(),d("section",bp,[t[8]||(t[8]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",wp,[t[3]||(t[3]=n("h2",null,"GitHub App",-1)),n("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},u(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",kp,u(e.connections.appError)+". Reconnect to restore access.",1)):p("v-if",!0),n("div",Ep,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",Cp,[...t[4]||(t[4]=[y("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),n("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},u(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",_p,[(l(!0),d(W,null,Z(e.connections.installations,s=>(l(),d("li",{key:s.id},[n("div",null,[n("strong",null,u(s.account),1),s.suspended?(l(),d("span",Sp," \xB7 Suspended")):p("v-if",!0)]),n("a",{target:"_self",href:"/github/app/install?installationId="+s.id},[t[5]||(t[5]=y("Manage access ",-1)),n("span",Dp,"for "+u(s.account),1),t[6]||(t[6]=y(" \u2192",-1))],8,Np)]))),128))])):p("v-if",!0),n("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=s=>e.loadConnections())},[...t[7]||(t[7]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Refresh access",-1)])],8,Rp)])):p("v-if",!0),n("section",null,[t[13]||(t[13]=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",Tp,[t[11]||(t[11]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},u(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=n("p",null,"For existing OAuth anonymizations.",-1)),t[15]||(t[15]=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?(l(),d("a",Ap,u(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):p("v-if",!0),e.connections.oauthConnected?(l(),d("div",Op,[e.connections.gistCount?(l(),d("p",Pp,u(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):p("v-if",!0),t[12]||(t[12]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[2]||(t[2]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Ip)):p("v-if",!0)])):p("v-if",!0)])]),n("section",Vp,[n("div",qp,[t[16]||(t[16]=n("h2",null,"Repository connections",-1)),n("span",Mp,u(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=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?p("v-if",!0):(l(),d("div",$p,[...t[17]||(t[17]=[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)])])),(l(!0),d(W,null,Z(e.connections.resources,s=>(l(),d("div",{class:"connection-resource",key:s.type+s.id},[n("div",Lp,[n("strong",null,u(s.name||s.id),1),n("small",null,u(s.type)+" \xB7 "+u(s.id),1)]),n("span",{class:A(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},u(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Up,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Fp),s.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},u(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Bp)):p("v-if",!0),s.eligible===!1?(l(),d("span",zp,"Access unavailable. Allow this repository on GitHub, then check again.")):p("v-if",!0)])):p("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,Hp)):p("v-if",!0)]))),128)),t[19]||(t[19]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):p("v-if",!0)])}var jp={class:"container paper-page auth-page"},Gp={class:"auth-layout"},Wp={class:"auth-options"},Kp={key:0},Yp={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Qp={key:1},Jp={key:1},Xp={key:2,class:"auth-legacy"},Zp={key:3,role:"status"};function cl(e,t){return l(),d("div",jp,[t[5]||(t[5]=n("a",{class:"auth-back",href:"/"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-left"})]),y(" Anonymous GitHub")],-1)),n("div",Gp,[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",Wp,[e.accountRecovery?(l(),d("section",Kp,[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?(l(),d("a",Yp,"Verify with previous GitHub connection")):(l(),d("p",Qp,"Account verification is currently unavailable. Please try again later."))])):p("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Jp,[...t[2]||(t[2]=[pe('
Read-only access

Continue with GitHub

Connect through the GitHub App with read-only repository access.

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):p("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Xp,[...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"},[y("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):p("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",Zp,"GitHub sign-in is currently unavailable. Please try again later.")):p("v-if",!0)])])])}var xp={class:"paper-empty"};function pl(e,t){return l(),d("div",xp,[...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)])])}var ef={class:"container paper-page admin-page"},tf={class:"admin-summary"},nf={class:"summary-total"},of=["aria-pressed"],sf={class:"count"},rf=["aria-pressed"],af={class:"count"},lf=["aria-pressed"],df={class:"count"},uf=["aria-pressed"],cf={class:"count"},pf=["aria-pressed"],ff={class:"count"},hf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},mf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},vf={class:"admin-filter-row"},gf={class:"search-wrap"},yf={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},bf={key:0,class:"admin-search-hint"},wf={class:"admin-filter-inline","aria-label":"Pagination"},kf=["disabled"],Ef={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Cf=["disabled"],_f={key:0,class:"admin-filter-row"},Sf={class:"admin-active-chips"},Nf={class:"key"},Df=["onClick"],Rf={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},Tf={class:"paper-table-head",role:"row"},Af={role:"columnheader"},Of={role:"columnheader"},Pf={role:"columnheader"},If={class:"paper-table-row",role:"row"},Vf={class:"cell-anon",role:"cell"},qf={class:"anon-text"},Mf=["textContent","href"],$f={class:"anon-sub"},Lf={class:"cell-status",role:"cell"},Uf=["textContent"],Ff={class:"cell-views num",role:"cell"},Bf=["textContent","href"],zf={class:"cell-expires",role:"cell"},Hf={class:"cell-actions",role:"cell"},jf={class:"dropdown"},Gf={class:"dropdown-menu dropdown-menu-right"},Wf=["href"],Kf=["href"],Yf=["href"],Qf=["onClick"],Jf={key:0,class:"paper-table-empty"},Xf={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Zf={style:{"font-size":"12px",color:"var(--ink-muted)"}},xf={key:0,class:"pagination-compact"},eh=["disabled"],th=["max"],nh=["disabled"],oh={class:"admin-filter-inline"},sh={class:"form-control form-control-sm"};function fl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",ef,[t[47]||(t[47]=pe('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",tf,[n("span",nf,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=o=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[13]||(t[13]=y("Ready ",-1)),n("span",sf,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,of),n("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=o=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[14]||(t[14]=y("Preparing ",-1)),n("span",af,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,rf),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=o=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[15]||(t[15]=y("Errored ",-1)),n("span",df,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,lf),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=o=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[16]||(t[16]=y("Expired ",-1)),n("span",cf,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,uf),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=o=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[17]||(t[17]=y("Removed ",-1)),n("span",ff,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,pf)]),e.fetchError?(l(),d("div",hf,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",mf,[n("div",vf,[n("div",gf,[N(n("input",yf,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",bf,"/"))]),t[22]||(t[22]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=o=>e.exportCsv())},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",wf,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,kf),n("span",Ef,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Cf)])]),e.chips?.length?(l(),d("div",_f,[n("div",Sf,[(l(!0),d(W,null,Z(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",Nf,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Df)]))),128))])])):p("v-if",!0)])),[[i,e.viewState]]),n("div",Rf,[n("div",Tf,[n("div",Af,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=o=>e.sortBy("name"))},[t[25]||(t[25]=y("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",Of,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=o=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",Pf,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=o=>e.sortBy("startDate"))},[t[29]||(t[29]=y("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,Z(e.filteredConferences,(o,r)=>(l(),d("div",If,[n("div",Vf,[t[33]||(t[33]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",qf,[n("a",{class:"repo-name",textContent:u(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,Mf),n("div",$f,[n("span",null,u(o?.conferenceID),1),t[32]||(t[32]=y("\xA0\xB7\xA0",-1)),n("span",null,u(e.fmt?.number(o?.price||0))+" \u20AC",1)])])]),n("div",Lf,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,Uf)]),n("div",Ff,[t[34]||(t[34]=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:u(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,Bf)]),n("div",zf,[t[35]||(t[35]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),y(" "+u(e.fmt?.date(o?.startDate))+" \u2013 "+u(e.fmt?.date(o?.endDate)),1)]),n("div",Hf,[n("div",jf,[t[41]||(t[41]=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",Gf,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,Wf),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View",-1)])],8,Kf),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),y(" View repositories",-1)])],8,Yf),t[40]||(t[40]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ue(a=>e.removeConference(o),["prevent"])},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,Qf),[[G,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Jf,[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No conferences match the current filters.",-1)])])):p("v-if",!0)]),n("div",Xf,[n("span",Zf,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",xf,[n("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous",-1)])],8,eh),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,th),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[44]||(t[44]=[y("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,nh)])):p("v-if",!0),n("span",oh,[t[46]||(t[46]=n("label",null,"Per page",-1)),N((l(),d("select",sh,[...t[45]||(t[45]=[pe('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var ih={class:"container paper-page admin-page errors-page"},rh={class:"errors-header"},ah={class:"errors-actions"},lh={class:"kpi-grid"},dh={class:"kpi-card"},uh={class:"kpi-value"},ch={key:0},ph={key:1},fh={class:"kpi-card kpi-error"},hh={class:"kpi-value"},mh={class:"kpi-sub"},vh={class:"kpi-card kpi-warn"},gh={class:"kpi-value"},yh={class:"kpi-sub"},bh={class:"kpi-card kpi-info"},wh={class:"kpi-value"},kh={class:"kpi-sub"},Eh={class:"kpi-value"},Ch={class:"kpi-sub"},_h={key:0,class:"dropped-warn"},Sh={class:"volume-chart"},Nh={class:"volume-bars"},Dh=["title"],Rh={class:"errors-toolbar","aria-label":"Error filters"},Th={class:"seg-tabs"},Ah={class:"search-wrap"},Oh={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},Ph={key:0,class:"filter-count"},Ih={class:"select-wrap"},Vh={class:"form-control form-control-sm"},qh={class:"select-wrap"},Mh={class:"form-control form-control-sm"},$h={class:"autoref"},Lh={type:"checkbox"},Uh={key:0,class:"admin-empty"},Fh={key:1,class:"errors-pager"},Bh={key:2,class:"errors-list"},zh=["onClick"],Hh={class:"col-when"},jh={class:"when-rel"},Gh={class:"when-abs"},Wh={class:"col-sev"},Kh={class:"sev-label"},Yh={class:"col-mod"},Qh={class:"pill pill-module"},Jh={class:"col-msg"},Xh={class:"msg-code"},Zh={key:0,class:"msg-context"},xh={key:1,class:"msg-detail"},em={key:2,class:"msg-url"},tm={class:"col-count"},nm={key:0,class:"count-pill"},om={key:1,class:"count-pill count-pill-muted"},sm={class:"col-status"},im={key:0,class:"errors-row-detail"},rm={class:"detail-tabs"},am=["onClick"],lm=["onClick"],dm=["onClick"],um={class:"detail-body"},cm={class:"detail-main"},pm={key:0},fm={key:1,class:"stack-pre"},hm={key:2,class:"related-list"},mm={class:"when-abs"},vm={class:"msg-url"},gm={class:"detail-actions"},ym=["onClick"],bm=["onClick"],wm={key:0,class:"copy-hint"},km={class:"detail-aside"},Em={class:"aside-block"},Cm=["title"],_m={class:"aside-block"},Sm=["title"],Nm={class:"aside-block"},Dm={class:"aside-value"},Rm={key:0,class:"aside-sub"},Tm={key:0,class:"aside-block"},Am=["href"],Om={key:1,class:"aside-block"},Pm={class:"aside-value mono"};function hl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",ih,[t[32]||(t[32]=n("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),n("span",{class:"here"},"Errors")],-1)),n("header",rh,[t[10]||(t[10]=n("h1",{class:"paper-page-title"},"Errors",-1)),n("div",ah,[n("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=o=>e.exportCsv())},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export CSV",-1)])]),n("button",{class:"btn btn-sm btn-danger",type:"button",onClick:t[1]||(t[1]=o=>e.clearAll())},[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Clear all",-1)])])])]),t[33]||(t[33]=pe('',1)),n("section",lh,[n("div",dh,[t[11]||(t[11]=n("div",{class:"kpi-label"},"Last 24h",-1)),n("div",uh,u(e.stats?.last24h),1),n("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",ch,u(e.stats?.delta>0?"+":"")+u(e.stats?.delta)+"% vs yesterday",1)):p("v-if",!0),e.stats?.prev24h?p("v-if",!0):(l(),d("span",ph,"no prior baseline"))],2)]),n("div",fh,[t[12]||(t[12]=n("div",{class:"kpi-label"},"Errors (5xx)",-1)),n("div",hh,u(e.stats?.severity?.error),1),n("div",mh,u(e.stats?.unique?.error)+" unique",1)]),n("div",vh,[t[13]||(t[13]=n("div",{class:"kpi-label"},"Warnings (4xx)",-1)),n("div",gh,u(e.stats?.severity?.warn),1),n("div",yh,u(e.stats?.unique?.warn)+" unique",1)]),n("div",bh,[t[14]||(t[14]=n("div",{class:"kpi-label"},"Info (auth, 404)",-1)),n("div",wh,u(e.stats?.severity?.info),1),n("div",kh,u(e.stats?.unique?.info)+" unique",1)]),n("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=n("div",{class:"kpi-label"},"Captured",-1)),n("div",Eh,u(e.total),1),n("div",Ch,[y(" cap "+u(e.cap)+" \xB7 "+u(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",_h," \xB7 "+u(e.stats?.dropped)+" dropped",1)):p("v-if",!0)])],2)]),n("section",Sh,[t[16]||(t[16]=pe('
Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),n("div",Nh,[(l(!0),d(W,null,Z(e.stats?.buckets,(o,r)=>(l(),d("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:Ve({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Ve({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Ve({height:e.barPx(o,"info")+"px"})},null,4)],8,Dh))),128))])]),N((l(),d("form",Rh,[n("div",Th,[n("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=o=>e.setBucket(""))},"All",2),n("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=o=>e.setBucket("error"))},"5xx",2),n("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=o=>e.setBucket("warn"))},"4xx",2),n("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=o=>e.setBucket("info"))},"Info",2)]),n("div",Ah,[t[17]||(t[17]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),N(n("input",Oh,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",Ph,u(e.parsedFilterCount)+" filter"+u(e.parsedFilterCount>1?"s":""),1)):p("v-if",!0)]),n("div",Ih,[t[19]||(t[19]=n("label",null,"Sort",-1)),N((l(),d("select",Vh,[...t[18]||(t[18]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",qh,[t[21]||(t[21]=n("label",null,"Group",-1)),N((l(),d("select",Mh,[...t[20]||(t[20]=[n("option",{value:""},"Off",-1),n("option",{value:"code"},"By code",-1),n("option",{value:"module"},"By module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",$h,[N(n("input",Lh,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=y(" Auto-refresh ",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=o=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])),[[i,e.viewState]]),e.visible?.length?p("v-if",!0):(l(),d("div",Uh,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Fh,[n("span",null,"Showing "+u(e.entries?.length)+" of "+u(e.total)+" captured",1),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>e.loadMore())},"Load older")])):p("v-if",!0),e.visible?.length?(l(),d("div",Bh,[t[31]||(t[31]=pe('
WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(W,null,Z(e.visible,(o,r)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[o?._key]}]),key:o?._key},[n("div",{class:"errors-row-main",onClick:a=>e.toggle(o)},[n("div",Hh,[n("div",jh,u(e.relTime(o?.ts)),1),n("div",Gh,u(e.absTimeShort(o?.ts)),1)]),n("div",Wh,[n("span",{class:A(["sev-dot","sev-"+o?._bucket])},null,2),n("span",Kh,u(e.fmt?.uppercase(o?._bucket)),1)]),n("div",Yh,[n("span",Qh,u(o?.module),1)]),n("div",Jh,[n("strong",Xh,u(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(l(),d("span",Zh,u(o?.displayContext),1)):p("v-if",!0),o?._detail?(l(),d("span",xh,u(o?._detail),1)):p("v-if",!0),o?._url?(l(),d("div",em,u(o?._url),1)):p("v-if",!0)]),n("div",tm,[o?.count>1?(l(),d("span",nm,"\xD7"+u(o?.count),1)):p("v-if",!0),o?.count===1?(l(),d("span",om,"\xD71")):p("v-if",!0)]),n("div",sm,[o?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+o?._bucket])},u(o?._status),3)):p("v-if",!0)])],8,zh),e.expanded[o?._key]?(l(),d("div",im,[n("div",rm,[n("button",{type:"button",class:A({active:e.detailTab[o?._key]==="raw"||!e.detailTab[o?._key]}),onClick:a=>e.detailTab[o._key]="raw"},"Raw",10,am),o?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[o?._key]==="stack"}),onClick:a=>e.detailTab[o._key]="stack"},"Stack",10,lm)):p("v-if",!0),o?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[o?._key]==="related"}),onClick:a=>e.detailTab[o._key]="related"},"Related ("+u(o?.count)+")",11,dm)):p("v-if",!0)]),n("div",um,[n("div",cm,[(e.detailTab[o?._key]||"raw")==="raw"?(l(),d("pre",pm,u(o?._detailJson),1)):p("v-if",!0),e.detailTab[o?._key]==="stack"?(l(),d("pre",fm,u(o?._stack),1)):p("v-if",!0),e.detailTab[o?._key]==="related"?(l(),d("div",hm,[(l(!0),d(W,null,Z(o?._related,(a,c)=>(l(),d("div",{class:"related-row",key:c},[n("span",mm,u(e.absTimeShort(a?.ts)),1),n("span",vm,u(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},u(a?._status),3)):p("v-if",!0)]))),128))])):p("v-if",!0),n("div",gm,[n("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(o)},[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Copy curl",-1)])],8,ym),n("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(o)},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),y(" Copy JSON",-1)])],8,bm),e.copyHint?(l(),d("span",wm,u(e.copyHint),1)):p("v-if",!0)])]),n("aside",km,[n("div",Em,[t[26]||(t[26]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},u(e.relTime(o?._firstSeen)),9,Cm)]),n("div",_m,[t[27]||(t[27]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},u(e.relTime(o?.ts)),9,Sm)]),n("div",Nm,[t[28]||(t[28]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",Dm,[y(u(o?.count),1),o?._lastHourCount?(l(),d("span",Rm," \xB7 "+u(o?._lastHourCount)+" this hour",1)):p("v-if",!0)])]),o?._repoId?(l(),d("div",Tm,[t[29]||(t[29]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},u(o?._repoId),9,Am)])):p("v-if",!0),o?._url?(l(),d("div",Om,[t[30]||(t[30]=n("div",{class:"aside-label"},"URL",-1)),n("div",Pm,u(o?._url),1)])):p("v-if",!0)])])])):p("v-if",!0)],2))),128))])):p("v-if",!0)])}var Im={class:"container paper-page admin-page overview-page"},Vm={key:0,class:"admin-empty"},qm={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},Mm={key:2},$m={class:"ov-kpi-row"},Lm={class:"ov-kpi-card"},Um={class:"ov-kpi-value"},Fm={class:"ov-kpi-sub"},Bm={class:"ov-kpi-card"},zm={class:"ov-kpi-sub"},Hm={class:"ov-kpi-card"},jm={class:"ov-kpi-sub"},Gm={class:"ov-kpi-card"},Wm={class:"ov-kpi-sub"},Km={class:"ov-kpi-card"},Ym={class:"ov-kpi-value"},Qm={class:"ov-kpi-sub"},Jm={class:"ov-daily-row"},Xm={class:"ov-daily-card"},Zm={class:"ov-daily-value"},xm={class:"ov-daily-card"},ev={class:"ov-daily-value"},tv={class:"ov-daily-sub"},nv={class:"ov-daily-card"},ov={class:"ov-daily-value"},sv={class:"ov-chart-row"},iv={class:"ov-chart-card"},rv={key:0,class:"ov-spark-bars"},av=["data-tip","aria-label"],lv={key:1,class:"ov-spark-x"},dv={class:"ov-chart-card"},uv={key:0,class:"ov-spark-bars"},cv=["data-tip","aria-label"],pv={key:1,class:"ov-spark-x"},fv={class:"ov-chart-card"},hv={key:0,class:"ov-spark-bars"},mv=["data-tip","aria-label"],vv={key:1,class:"ov-spark-x"},gv={class:"ov-chart-card"},yv={key:0,class:"ov-spark-bars"},bv=["data-tip","aria-label"],wv={key:1,class:"ov-spark-x"},kv={class:"ov-triple-row"},Ev={class:"ov-panel-card"},Cv={class:"ov-panel-head"},_v={class:"ov-panel-meta"},Sv={class:"ov-stacked-bar"},Nv={class:"ov-bar-legend"},Dv={href:"/admin/repositories",class:"ov-legend-item"},Rv={class:"ov-legend-n"},Tv={href:"/admin/repositories",class:"ov-legend-item"},Av={class:"ov-legend-n"},Ov={href:"/admin/repositories",class:"ov-legend-item"},Pv={class:"ov-legend-n"},Iv={href:"/admin/repositories",class:"ov-legend-item"},Vv={class:"ov-legend-n"},qv={href:"/admin/repositories",class:"ov-legend-item"},Mv={class:"ov-legend-n"},$v={class:"ov-panel-card"},Lv={class:"ov-panel-head"},Uv={class:"ov-panel-meta"},Fv={class:"ov-error-bars"},Bv={class:"ov-ebar-row"},zv={class:"ov-ebar-track"},Hv={class:"ov-ebar-n"},jv={class:"ov-ebar-row"},Gv={class:"ov-ebar-track"},Wv={class:"ov-ebar-n"},Kv={class:"ov-ebar-row"},Yv={class:"ov-ebar-track"},Qv={class:"ov-ebar-n"},Jv={key:0,class:"ov-panel-foot"},Xv={href:"/admin/errors"},Zv={class:"ov-panel-card"},xv={class:"ov-routes-table"},eg={class:"ov-route-row",href:"/admin/queues"},tg={class:"ov-route-n"},ng={class:"ov-route-n"},og={class:"ov-route-row",href:"/admin/queues"},sg={class:"ov-route-n"},ig={class:"ov-route-n"},rg={class:"ov-route-row",href:"/admin/queues"},ag={class:"ov-route-n"},lg={class:"ov-route-n"},dg={class:"ov-services-card"},ug={class:"ov-services-head"},cg={class:"ov-panel-meta"},pg={class:"ov-services-grid"},fg={class:"ov-svc"},hg={class:"ov-svc-info"},mg={class:"ov-svc-meta"},vg={class:"ov-svc-detail"},gg={class:"ov-svc"},yg={class:"ov-svc-info"},bg={key:0,class:"ov-svc-meta"},wg={key:1,class:"ov-svc-meta"},kg={class:"ov-svc"},Eg={class:"ov-svc-info"},Cg={key:0,class:"ov-svc-meta"},_g={key:1,class:"ov-svc-meta"},Sg={class:"ov-svc"},Ng={class:"ov-svc-info"},Dg={key:0,class:"ov-svc-meta"},Rg={key:1,class:"ov-svc-meta"},Tg={class:"ov-svc"},Ag={class:"ov-svc-info"},Og={class:"ov-svc-meta"},Pg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},Ig={class:"ov-panel-head ov-performance-head"},Vg={class:"ov-performance-window"},qg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Mg={key:1,class:"ov-performance-empty",role:"status"},$g={key:2},Lg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Ug=["aria-selected","tabindex"],Fg=["aria-selected","tabindex"],Bg=["aria-selected","tabindex"],zg={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},Hg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},jg={class:"ov-metrics-table"},Gg={scope:"row",class:"ov-metric-name"},Wg={class:"num"},Kg={class:"num"},Yg={class:"num"},Qg={class:"num"},Jg={class:"num"},Xg={key:1,class:"ov-performance-empty"},Zg={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},xg={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},ey={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},ty={class:"ov-metrics-table"},ny={scope:"row",class:"ov-metric-name"},oy={key:0,class:"ov-metric-warn"},sy={class:"num"},iy={class:"num"},ry={class:"num"},ay={class:"num"},ly={class:"num"},dy={class:"num"},uy={class:"num"},cy={class:"num"},py={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},fy={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},hy={class:"ov-metrics-table"},my={scope:"row",class:"ov-metric-name"},vy={class:"num"},gy={class:"num"},yy={class:"num"},by={key:1,class:"ov-performance-empty"};function ml(e,t){return l(),d("div",Im,[t[64]||(t[64]=pe('
Admin \xB7 System Health

Overview

',3)),e.loading?(l(),d("div",Vm,"Loading overview\u2026")):p("v-if",!0),e.error?(l(),d("div",qm,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.error),1)])):p("v-if",!0),e.data?(l(),d("div",Mm,[p(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",$m,[n("div",Lm,[t[10]||(t[10]=n("div",{class:"ov-kpi-label"},[y("Repositories "),n("span",{class:"ov-dot ov-dot-ok"})],-1)),n("div",Um,u(e.humanNum(e.data?.repos?.total)),1),n("div",Fm,"+"+u(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),n("div",Bm,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},u(e.data?.system?.cpuPercent)+"%",3),n("div",zm,u(e.data?.system?.cpuCount)+" cores \xB7 load "+u(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),n("div",Hm,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},u(e.data?.system?.memPercent)+"%",3),n("div",jm,u(e.humanBytes(e.data?.system?.memUsed))+" / "+u(e.humanBytes(e.data?.system?.memTotal)),1)]),n("div",Gm,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},u(e.data?.system?.diskPercent)+"%",3),n("div",Wm,u(e.humanBytes(e.data?.system?.diskUsed))+" / "+u(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+u(e.data?.system?.diskMount),1)]),n("div",Km,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",Ym,u(e.humanDuration(e.data?.system?.uptime)),1),n("div",Qm,u(e.data?.system?.nodeVersion)+" \xB7 "+u(e.data?.system?.platform),1)])]),p(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",Jm,[n("div",Xm,[t[15]||(t[15]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",Zm,"+"+u(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[16]||(t[16]=n("div",{class:"ov-daily-sub"},"since yesterday",-1))]),n("div",xm,[t[17]||(t[17]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",ev,"+"+u(e.fmt?.number(e.data?.daily?.today?.users)),1),n("div",tv,u(e.fmt?.number(e.data?.users?.total))+" total users",1)]),n("div",nv,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",ov,"+"+u(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[19]||(t[19]=n("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),p(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",sv,[n("div",iv,[t[20]||(t[20]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-accent"}),y("views/day")])],-1)),e.data?.history?.length?(l(),d("div",rv,[(l(!0),d(W,null,Z(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views"},[n("span",{class:"ov-spark-fill",style:Ve({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],8,av))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",lv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),n("div",dv,[t[21]||(t[21]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"New repos \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-ok-fill"}),y("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",uv,[(l(!0),d(W,null,Z(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos"},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ve({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],8,cv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",pv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),n("div",fv,[t[22]||(t[22]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"Users \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-user-fill"}),y("total users")])],-1)),e.data?.history?.length?(l(),d("div",hv,[(l(!0),d(W,null,Z(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users","aria-label":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-user",style:Ve({height:e.historyBarH(s,"nbUsers")+"px"})},null,4)],8,mv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",vv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)]),n("div",gv,[t[23]||(t[23]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"New users \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),y("users/day")])],-1)),e.data?.history?.length?(l(),d("div",yv,[(l(!0),d(W,null,Z(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ve({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],8,bv))),128))])):p("v-if",!0),e.data?.history?.length?(l(),d("div",wv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):p("v-if",!0)])]),p(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",kv,[p(" Repo status breakdown "),n("div",Ev,[n("div",Cv,[t[24]||(t[24]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",_v,u(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",Sv,[n("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ve({width:e.barPct("ready")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ve({width:e.barPct("preparing")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Ve({width:e.barPct("error")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Ve({width:e.barPct("expired")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Ve({width:e.barPct("removed")+"%"})},null,4)]),n("div",Nv,[n("a",Dv,[t[25]||(t[25]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[26]||(t[26]=y(" ready ",-1)),n("span",Rv,u(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",Tv,[t[27]||(t[27]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[28]||(t[28]=y(" preparing ",-1)),n("span",Av,u(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",Ov,[t[29]||(t[29]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[30]||(t[30]=y(" error ",-1)),n("span",Pv,u(e.fmt?.number(e.statusCount("error"))),1)]),n("a",Iv,[t[31]||(t[31]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[32]||(t[32]=y(" expired ",-1)),n("span",Vv,u(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",qv,[t[33]||(t[33]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[34]||(t[34]=y(" removed ",-1)),n("span",Mv,u(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),p(" Error breakdown "),n("div",$v,[n("div",Lv,[t[35]||(t[35]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",Uv,u(e.data?.errors?.last24h)+" total",1)]),n("div",Fv,[n("div",Bv,[t[36]||(t[36]=n("span",{class:"ov-ebar-label"},"5xx",-1)),n("span",zv,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:Ve({width:e.errPct("error")+"%"})},null,4)]),n("span",Hv,u(e.data?.errors?.severity?.error),1)]),n("div",jv,[t[37]||(t[37]=n("span",{class:"ov-ebar-label"},"4xx",-1)),n("span",Gv,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ve({width:e.errPct("warn")+"%"})},null,4)]),n("span",Wv,u(e.data?.errors?.severity?.warn),1)]),n("div",Kv,[t[38]||(t[38]=n("span",{class:"ov-ebar-label"},"Info",-1)),n("span",Yv,[n("span",{class:"ov-ebar-fill ov-ebar-info",style:Ve({width:e.errPct("info")+"%"})},null,4)]),n("span",Qv,u(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Jv,[n("a",Xv,u(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):p("v-if",!0)]),p(" Top routes / queues "),n("div",Zv,[t[43]||(t[43]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",xv,[t[42]||(t[42]=pe('
QueueActiveWaitFailed
',1)),n("a",eg,[t[39]||(t[39]=n("span",{class:"ov-route-name"},"download",-1)),n("span",tg,u(e.data?.queues?.download?.active),1),n("span",ng,u(e.data?.queues?.download?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},u(e.data?.queues?.download?.failed),3)]),n("a",og,[t[40]||(t[40]=n("span",{class:"ov-route-name"},"remove",-1)),n("span",sg,u(e.data?.queues?.remove?.active),1),n("span",ig,u(e.data?.queues?.remove?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},u(e.data?.queues?.remove?.failed),3)]),n("a",rg,[t[41]||(t[41]=n("span",{class:"ov-route-name"},"cache",-1)),n("span",ag,u(e.data?.queues?.cache?.active),1),n("span",lg,u(e.data?.queues?.cache?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},u(e.data?.queues?.cache?.failed),3)])])])]),p(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",dg,[n("div",ug,[t[44]||(t[44]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",cg,u(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+u(e.data?.conferences?.total)+" conferences",1)]),n("div",pg,[n("div",fg,[t[46]||(t[46]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",hg,[t[45]||(t[45]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",mg,u(e.data?.system?.nodeVersion),1)]),n("span",vg,"uptime "+u(e.humanDuration(e.data?.system?.uptime)),1)]),n("div",gg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",yg,[t[47]||(t[47]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",bg,u(e.queueTotal(e.data?.queues?.download))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.download)?p("v-if",!0):(l(),d("span",wg,"idle"))])]),n("div",kg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Eg,[t[48]||(t[48]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Cg,u(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.cache)?p("v-if",!0):(l(),d("span",_g,"idle"))])]),n("div",Sg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Ng,[t[49]||(t[49]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Dg,u(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):p("v-if",!0),e.queueTotal(e.data?.queues?.remove)?p("v-if",!0):(l(),d("span",Rg,"idle"))])]),n("div",Tg,[n("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),n("div",Ag,[t[50]||(t[50]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",Og,u(e.data?.errors?.last24h)+" / 24h",1)])])])])])):p("v-if",!0),n("section",Pg,[n("div",Ig,[t[53]||(t[53]=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 \xB7 refreshes every 30 seconds")],-1)),n("div",Vg,[t[52]||(t[52]=n("label",{for:"performance-window"},"Time range",-1)),N(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.performanceMinutes=s),onChange:t[1]||(t[1]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[51]||(t[51]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Jo,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",qg,[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,u(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadPerformance())},"Retry")])):p("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Mg,"Loading performance monitoring\u2026")):p("v-if",!0),e.performance?.available?(l(),d("div",$g,[n("div",Lg,[n("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[3]||(t[3]=s=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=s=>e.previewTabKeydown(s))},"Routes",42,Ug),n("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[5]||(t[5]=s=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=s=>e.previewTabKeydown(s))},"Processes",42,Fg),n("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[7]||(t[7]=s=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=s=>e.previewTabKeydown(s))},"Work stages",42,Bg)]),N(n("div",zg,[e.performance.routes?.length?(l(),d("div",Hg,[n("table",jg,[t[55]||(t[55]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[56]||(t[56]=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,[(l(!0),d(W,null,Z(e.performance.routes,s=>(l(),d("tr",{key:s.service+s.method+s.route},[n("th",Gg,[n("span",null,u(s.route),1),n("small",null,u(s.service)+" \xB7 "+u(s.method),1)]),n("td",Wg,u(e.fmt.number(s.count)),1),n("td",Kg,u(s.avgMs)+" ms",1),n("td",Yg,u(e.firstByteBound(s)),1),n("td",Qg,u(e.latencyBound(s,"p95UpperMs")),1),n("td",Jg,u(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:A(["num",{"ov-metric-warn":s.aborted>0}])},u(e.fmt.number(s.aborted)),3),n("td",{class:A(["num",{"ov-metric-warn":s.errors>0}])},u(e.fmt.number(s.errors)),3),n("td",{class:A(["num",{"ov-metric-warn":s.slow>0}])},u(e.fmt.number(s.slow)),3)]))),128))])])])):(l(),d("p",Xg,"No recorded requests in this time range yet."))],512),[[G,e.performanceTab==="routes"]]),N(n("div",Zg,[t[60]||(t[60]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",ey,[n("table",ty,[t[58]||(t[58]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[59]||(t[59]=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,[(l(!0),d(W,null,Z(e.performance.instances,s=>(l(),d("tr",{key:s.instance,class:A({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",ny,[n("span",null,u(s.instance),1),e.performanceWarning(s)?(l(),d("small",oy,[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" Needs attention",-1)])])):p("v-if",!0)]),n("td",sy,[y(u(e.humanBytes(s.memory.rss))+" / "+u(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+u(e.humanBytes(e.peakRss(s))),1)]),n("td",iy,u(s.cpuPercent.toFixed(1))+"%",1),n("td",ry,u(s.eventLoop.p95Ms.toFixed(1))+" ms",1),n("td",ay,u(s.activeRequests),1),n("td",ly,u(s.sockets?.descriptors??"Unavailable")+" / "+u(s.sockets?.closeWait??"Unavailable"),1),n("td",dy,u(s.workers?.running??0)+" / "+u(s.workers?.waiting??0),1),n("td",uy,u(e.sampleAge(s))+" s",1),n("td",cy,u(s.droppedBatches)+" / "+u(s.droppedMetrics),1)],2))),128))])])])):(l(),d("div",xg,"No recent process samples. Monitoring coverage is incomplete."))],512),[[G,e.performanceTab==="processes"]]),N(n("div",py,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(l(),d("div",fy,[n("table",hy,[t[61]||(t[61]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[62]||(t[62]=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,[(l(!0),d(W,null,Z(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(l(),d("tr",{key:s.service+s.metric},[n("th",my,[n("span",null,u(s.metric),1),n("small",null,u(s.service),1)]),n("td",vy,u(e.fmt.number(s.count)),1),n("td",gy,u(s.avgMs)+" ms",1),n("td",yy,u(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",by,"No recorded work stages or cache results in this time range yet."))],512),[[G,e.performanceTab==="stages"]]),t[63]||(t[63]=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))])):p("v-if",!0)])])}var wy={class:"container paper-page admin-page"},ky={class:"q-header"},Ey={class:"q-header-actions"},Cy={class:"q-range-btns"},_y={class:"q-cards"},Sy=["aria-pressed","onKeydown","onClick"],Ny={class:"q-card-head"},Dy=["textContent"],Ry=["textContent"],Ty={class:"q-card-sub"},Ay={key:0,class:"q-card-bar"},Oy={key:0,class:"q-detail"},Py={class:"q-throughput"},Iy={class:"q-section-label"},Vy={class:"q-section-right"},qy={class:"q-stats-panel"},My={class:"q-section-label"},$y={class:"q-stats-grid"},Ly={class:"q-stat"},Uy=["textContent"],Fy={class:"q-stat"},By=["textContent"],zy={class:"q-stat"},Hy=["textContent"],jy={class:"q-stat"},Gy=["textContent"],Wy={class:"q-stat"},Ky=["textContent"],Yy={class:"q-stat"},Qy=["textContent"],Jy={class:"q-stats-actions"},Xy=["disabled"],Zy={class:"q-jobs"},xy={class:"q-jobs-header"},eb={class:"q-section-label"},tb={class:"q-state-filters"},ob={class:"q-state-toggle"},sb={type:"checkbox"},ib={class:"q-search-row"},rb={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},ab={class:"q-auto-refresh"},lb={type:"checkbox"},db={key:0,class:"q-table"},ub=["onClick"],cb={class:"q-cell-state"},pb=["textContent"],fb=["textContent"],hb={class:"q-cell-id"},mb=["textContent","href"],vb={class:"q-cell-payload"},gb=["textContent"],yb={key:0,class:"q-payload-detail"},bb=["textContent"],wb=["textContent"],kb={class:"q-cell-progress"},Eb={key:0,class:"q-progress-wrap"},Cb=["textContent"],_b={class:"q-cell-actions"},Sb=["onClick"],Nb=["onClick"],Db={key:0,class:"q-detail-row"},Rb={colspan:"7"},Tb={class:"q-job-detail"},Ab={class:"q-job-detail-grid"},Ob={class:"q-job-detail-item"},Pb={class:"q-job-detail-value"},Ib=["textContent","href"],Vb={class:"q-job-detail-item"},qb={class:"q-job-detail-value"},Mb=["textContent"],$b={key:0,class:"q-job-detail-item"},Lb=["textContent"],Ub={key:1,class:"q-job-detail-item"},Fb=["textContent"],Bb={key:2,class:"q-job-detail-item"},zb={class:"q-job-detail-value"},Hb={key:3,class:"q-job-detail-item"},jb=["textContent"],Gb={key:4,class:"q-job-detail-item"},Wb=["textContent"],Kb={key:5,class:"q-job-detail-item"},Yb=["textContent"],Qb={key:6,class:"q-job-detail-item"},Jb=["textContent"],Xb={key:7,class:"q-job-detail-item"},Zb=["textContent"],xb={key:0,class:"q-job-detail-error"},e1=["textContent"],t1={key:1},n1=["textContent"],o1={class:"q-job-detail-actions"},s1=["onClick"],i1=["onClick"],r1=["href"],a1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},l1={key:0},d1={key:1};function vl(e,t){let s=ye("field");return l(),d("div",wy,[t[48]||(t[48]=n("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",ky,[t[12]||(t[12]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",Ey,[n("div",Cy,[n("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=i=>e.setRange("1h"))},"1h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=i=>e.setRange("6h"))},"6h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=i=>e.setRange("24h"))},"24h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=i=>e.setRange("7d"))},"7d",2)]),n("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=i=>e.pauseAll())},"Pause all"),n("button",{class:"btn btn-sm btn-dark",onClick:t[5]||(t[5]=i=>e.drainSelected())},"Drain "+u(e.selectedQueue),1)])]),t[49]||(t[49]=pe('',1)),p(" Queue overview cards "),n("div",_y,[(l(!0),d(W,null,Z(e.queueList,(i,o)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[Rn(ue(r=>e.selectQueue(i.key),["prevent"]),["enter"]),Rn(ue(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",Ny,[n("span",{class:A(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0}])},null,2),n("span",{class:"q-card-name",textContent:u(i?.label)},null,8,Dy)]),n("div",{class:"q-card-count",textContent:u((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,Ry),n("div",Ty,[n("span",null,"waiting \xB7 "+u(i?.counts?.active||0)+" active",1),i?.counts?.active?(l(),d("div",Ay,[n("div",{class:"q-card-bar-fill",style:Ve({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):p("v-if",!0)])],42,Sy))),256))]),p(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Oy,[n("div",Py,[n("div",Iy,[y(u(e.selectedQueue)+"\xB7throughput ",1),n("span",Vy,[t[13]||(t[13]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=y(" completed ",-1)),t[15]||(t[15]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=y(" failed ",-1)),t[17]||(t[17]=n("span",{class:"q-legend-exec"},"- -",-1)),y(" avg time \xB7 "+u(e.fmt?.uppercase(e.range)),1)])]),t[18]||(t[18]=n("div",{class:"q-chart-wrap"},[n("canvas",{id:"q-throughput-chart",height:"180"}),n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),n("div",qy,[n("div",My,u(e.selectedQueue)+"\xB7stats",1),n("div",$y,[n("div",Ly,[t[19]||(t[19]=n("div",{class:"q-stat-label"},"WAITING",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.waiting||0)},null,8,Uy)]),n("div",Fy,[t[20]||(t[20]=n("div",{class:"q-stat-label"},"ACTIVE",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.active||0)},null,8,By)]),n("div",zy,[t[21]||(t[21]=n("div",{class:"q-stat-label"},"COMPLETED (24H)",-1)),n("div",{class:"q-stat-value",textContent:u(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Hy)]),n("div",jy,[t[22]||(t[22]=n("div",{class:"q-stat-label"},"FAILED (24H)",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.failed24h||0)},null,8,Gy)]),n("div",Wy,[t[23]||(t[23]=n("div",{class:"q-stat-label"},"DELAYED",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.delayed||0)},null,8,Ky)]),n("div",Yy,[t[24]||(t[24]=n("div",{class:"q-stat-label"},"WORKERS",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.workers||0)},null,8,Qy)])]),n("div",Jy,[n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.togglePause())},u(e.selectedStats?.paused?"Resume":"Pause"),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Xy),n("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])):p("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[25]||(t[25]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),y(" "+u(e.actionError),1)])):p("v-if",!0),p(" Jobs table "),n("div",Zy,[n("div",xy,[n("div",eb,"ALL JOBS \xB7 "+u(e.fmt?.uppercase(e.selectedQueue)),1),n("div",tb,[(l(!0),d(W,null,Z(e.allStates,(i,o)=>(l(),d("label",ob,[N(n("input",sb,null,512),[[s,{state:e.viewState,set:r=>{e.stateFilter[i]=r},value:e.stateFilter[i],form:null,options:{}}]]),n("span",{class:A("q-state-chip q-state-"+i)},u(i),3)]))),256))])]),n("div",ib,[N(n("input",rb,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",ab,[N(n("input",lb,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=y(" Auto-refresh ",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",db,[t[46]||(t[46]=n("thead",null,[n("tr",null,[n("th",null,"STATE"),n("th",null,"JOB ID"),n("th",null,"PAYLOAD"),n("th",null,"ATTEMPTS"),n("th",null,"DURATION"),n("th",null,"PROGRESS"),n("th")])],-1)),(l(!0),d(W,null,Z(e.filteredJobs(),(i,o)=>(l(),d("tbody",null,[n("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",cb,[n("span",{textContent:u(i?._state),class:A("q-state-badge q-state-"+i?._state)},null,10,pb),i?._state=="delayed"&&i?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:u(e.delayCountdown(i?.delayUntil))},null,8,fb)):p("v-if",!0)]),n("td",hb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",textContent:u("job:"+e.fmt.limitTo(i?.id,6)),onClick:t[11]||(t[11]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+i?.id)},null,8,mb)]),n("td",vb,[n("span",{textContent:u(i?.name||"anonymize")},null,8,gb),i?.data?.repoId&&i?.data?.repoId!==i?.name?(l(),d("span",yb," \xB7 "+u(i?.data?.repoId),1)):p("v-if",!0)]),n("td",{class:"q-cell-num",textContent:u(i?.attemptsMade||1)},null,8,bb),n("td",{class:"q-cell-num",textContent:u(e.jobDuration(i))},null,8,wb),n("td",kb,[e.jobProgressPct(i)!==null?(l(),d("div",Eb,[n("div",{class:"q-progress-bar",style:Ve({"--pct":e.jobProgressPct(i)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:u(e.jobProgressPct(i)+"%")},null,8,Cb)])):p("v-if",!0)]),n("td",_b,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,Sb)):p("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Nb)])],10,ub),e.expanded[i?.id]?(l(),d("tr",Db,[n("td",Rb,[n("div",Tb,[n("div",Ab,[n("div",Ob,[t[31]||(t[31]=n("span",{class:"q-job-detail-label"},"JOB ID",-1)),n("span",Pb,[n("a",{target:"_blank",textContent:u(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,Ib)])]),n("div",Vb,[t[32]||(t[32]=n("span",{class:"q-job-detail-label"},"STATE",-1)),n("span",qb,[n("span",{textContent:u(i?._state),class:A("q-state-badge q-state-"+i?._state)},null,10,Mb)])]),i?.data?.repoId?(l(),d("div",$b,[t[33]||(t[33]=n("span",{class:"q-job-detail-label"},"REPO ID",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.data?.repoId)},null,8,Lb)])):p("v-if",!0),i?.timestamp?(l(),d("div",Ub,[t[34]||(t[34]=n("span",{class:"q-job-detail-label"},"CREATED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.timestamp))},null,8,Fb)])):p("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(l(),d("div",Bb,[t[35]||(t[35]=n("span",{class:"q-job-detail-label"},"RETRY AT",-1)),n("span",zb,u(e.humanTime(i?.delayUntil))+" ("+u(e.delayCountdown(i?.delayUntil))+")",1)])):p("v-if",!0),i?.processedOn?(l(),d("div",Hb,[t[36]||(t[36]=n("span",{class:"q-job-detail-label"},"PROCESSED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.processedOn))},null,8,jb)])):p("v-if",!0),i?.finishedOn?(l(),d("div",Gb,[t[37]||(t[37]=n("span",{class:"q-job-detail-label"},"FINISHED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.finishedOn))},null,8,Wb)])):p("v-if",!0),i?.attemptsMade?(l(),d("div",Kb,[t[38]||(t[38]=n("span",{class:"q-job-detail-label"},"ATTEMPTS",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.attemptsMade)},null,8,Yb)])):p("v-if",!0),i?.progress&&i?.progress?.status?(l(),d("div",Qb,[t[39]||(t[39]=n("span",{class:"q-job-detail-label"},"STATUS",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.progress?.status)},null,8,Jb)])):p("v-if",!0),e.jobProgressPct(i)!==null?(l(),d("div",Xb,[t[40]||(t[40]=n("span",{class:"q-job-detail-label"},"PROGRESS",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.jobProgressPct(i)+"%")},null,8,Zb)])):p("v-if",!0)]),i?.failedReason?(l(),d("div",xb,[t[41]||(t[41]=n("span",{class:"q-job-detail-label"},"ERROR",-1)),n("div",{class:"q-error-reason",textContent:u(i?.failedReason)},null,8,e1)])):p("v-if",!0),i?.stacktrace?.length?(l(),d("div",t1,[t[42]||(t[42]=n("span",{class:"q-job-detail-label"},"STACKTRACE",-1)),(l(!0),d(W,null,Z(i?.stacktrace,(r,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[n("code",{textContent:u(r)},null,8,n1)]))),128))])):p("v-if",!0),n("div",o1,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Retry",-1)])],8,s1)):p("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,i1),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),y(" View repo",-1)])],8,r1)])])])])):p("v-if",!0)]))),256))])):p("v-if",!0),e.filteredJobs().length==0?(l(),d("div",a1,[t[47]||(t[47]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?p("v-if",!0):(l(),d("span",l1,"No jobs in the "+u(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",d1,"No jobs match the current filters.")):p("v-if",!0)])):p("v-if",!0)])])}var u1={class:"container paper-page admin-page"},c1={class:"admin-summary"},p1={class:"summary-total"},f1={class:"summary-meta"},h1=["aria-pressed"],m1={class:"count"},v1=["aria-pressed"],g1={class:"count"},y1=["aria-pressed"],b1={class:"count"},w1=["aria-pressed"],k1={class:"count"},E1=["aria-pressed"],C1={class:"count"},_1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},S1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},N1={class:"admin-filter-row"},D1={class:"search-wrap"},R1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},T1={key:0,class:"admin-search-hint"},A1={class:"admin-filter-inline"},O1={type:"text",class:"form-control form-control-sm",placeholder:"username"},P1={class:"admin-filter-inline"},I1={type:"text",class:"form-control form-control-sm",placeholder:"ID"},V1={class:"admin-filter-inline","aria-label":"Pagination"},q1=["disabled"],M1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$1=["disabled"],L1={key:0,class:"admin-filter-row"},U1={class:"admin-active-chips"},F1={class:"key"},B1=["onClick"],z1={key:1,class:"bulk-bar"},H1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},j1={class:"paper-table-head",role:"row"},G1={role:"columnheader",style:{width:"28px"}},W1=["checked"],K1={role:"columnheader"},Y1={role:"columnheader"},Q1={role:"columnheader",class:"num"},J1={role:"columnheader"},X1={role:"cell",style:{width:"28px"}},Z1={type:"checkbox","aria-label":"Select repository"},x1={class:"cell-anon",role:"cell"},ew={class:"anon-text"},tw=["textContent","href"],nw={class:"anon-sub"},ow=["textContent","href"],sw={key:0},iw=["textContent","href"],rw={key:1},aw=["textContent","href"],lw={key:2},dw={class:"cell-status",role:"cell"},uw={class:"status-line"},cw=["textContent"],pw=["textContent","title"],fw={class:"cell-views num",role:"cell"},hw=["textContent"],mw={class:"cell-expires",role:"cell"},vw=["textContent"],gw={class:"cell-actions",role:"cell"},yw={class:"dropdown"},bw={class:"dropdown-menu dropdown-menu-right"},ww=["href"],kw=["href"],Ew=["href"],Cw=["onClick"],_w=["onClick"],Sw=["onClick"],Nw=["onClick"],Dw=["onClick"],Rw=["onClick"],Tw={key:0,class:"paper-table-empty"},Aw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Ow={style:{"font-size":"12px",color:"var(--ink-muted)"}},Pw={key:0,class:"pagination-compact"},Iw=["disabled"],Vw=["max"],qw=["disabled"],Mw={class:"admin-filter-inline"},$w={class:"form-control form-control-sm"};function gl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",u1,[t[69]||(t[69]=pe('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",c1,[n("span",p1,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("span",f1,u(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=o=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=y("Ready ",-1)),n("span",m1,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,h1),n("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=o=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=y("Preparing ",-1)),n("span",g1,u(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,v1),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=o=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=y("Errored ",-1)),n("span",b1,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,y1),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=o=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=y("Expired ",-1)),n("span",k1,u(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,w1),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=o=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=y("Removed ",-1)),n("span",C1,u(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,E1)]),e.fetchError?(l(),d("div",_1,[t[23]||(t[23]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",S1,[p(" Row 1: search + scoped inputs + headline actions "),n("div",N1,[n("div",D1,[N(n("input",R1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",T1,"/"))]),n("span",A1,[t[24]||(t[24]=n("label",null,"Owner",-1)),N(n("input",O1,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",P1,[t[25]||(t[25]=n("label",null,"Conference",-1)),N(n("input",I1,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=o=>e.exportCsv())},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",V1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,q1),n("span",M1,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$1)])]),p(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",L1,[n("div",U1,[(l(!0),d(W,null,Z(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",F1,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(o.key)},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,B1)]))),128))])])):p("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",z1,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>e.bulkRefresh())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=o=>e.bulkRemoveCache())},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.clearSelection())},"Clear")])):p("v-if",!0),n("div",H1,[n("div",j1,[n("div",G1,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,W1)]),n("div",K1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=o=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=y("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",Y1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=o=>e.sortBy("status"))},[t[37]||(t[37]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",Q1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=o=>e.sortBy("pageView"))},[t[39]||(t[39]=y("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",J1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=o=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=y("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[42]||(t[42]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,Z(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["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",X1,[N(n("input",Z1,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.repoId]=a},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",x1,[t[47]||(t[47]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",ew,[n("a",{class:"repo-name",target:"_blank",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,tw),n("div",nw,[n("a",{textContent:u(o?.source?.repositoryName),href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},null,8,ow),o?.options?.update?(l(),d("span",sw,[t[43]||(t[43]=y("\xA0\xB7\xA0",-1)),n("a",{textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,iw)])):p("v-if",!0),o?.options?.update?p("v-if",!0):(l(),d("span",rw,[t[44]||(t[44]=y("\xA0\xB7\xA0@",-1)),n("a",{textContent:u(o?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,aw)])),o?.conference?(l(),d("span",lw,[t[45]||(t[45]=y("\xA0\xB7\xA0",-1)),t[46]||(t[46]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):p("v-if",!0),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.humanFileSize(o?.size?.storage)),1),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.number(o?.options?.terms?.length))+" terms",1)])])]),n("div",dw,[n("span",uw,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,cw)]),o?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,pw)):p("v-if",!0)]),n("div",fw,[t[48]||(t[48]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=y()),n("span",{textContent:u(e.fmt?.number(o?.pageView||0))},null,8,hw)]),n("div",mw,[t[50]||(t[50]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=y()),n("span",{textContent:u(e.fmt?.humanTime(o?.anonymizeDate))},null,8,vw)]),n("div",gw,[n("div",yw,[t[63]||(t[63]=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",bw,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,ww),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View repo",-1)])],8,kw),o?.options?.page&&o?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[54]||(t[54]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" View page",-1)])],8,Ew)):p("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.fetchGithubInfo(o),["prevent"])},[...t[55]||(t[55]=[n("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Cw),t[61]||(t[61]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updateRepository(o),["prevent"])},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update",-1)])],8,_w),[[G,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updateRepository(o),["prevent"])},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable",-1)])],8,Sw),[[G,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.showStatusMessage(o),["prevent"])},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" View status message",-1)])],8,Nw),[[G,o?.statusMessage]]),t[62]||(t[62]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.removeCache(o),["prevent"])},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])],8,Dw),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ue(a=>e.removeRepository(o),["prevent"])},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,Rw),[[G,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Tw,[...t[64]||(t[64]=[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)])])):p("v-if",!0)]),n("div",Aw,[n("span",Ow,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Pw,[n("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous ",-1)])],8,Iw),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,Vw),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[y(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,qw)])):p("v-if",!0),n("span",Mw,[t[68]||(t[68]=n("label",null,"Per page",-1)),N((l(),d("select",$w,[...t[67]||(t[67]=[pe('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var Lw={class:"container paper-page admin-page"},Uw={class:"paper-crumbs"},Fw={class:"here"},Bw={class:"paper-page-title"},zw={key:0,class:"user-detail-card"},Hw={class:"user-header"},jw=["src"],Gw={class:"status-dot-wrap"},Ww=["textContent"],Kw={key:0,class:"type-badge type-repo"},Yw={class:"user-actions",style:{"margin-top":"4px"}},Qw={class:"user-detail-grid"},Jw={class:"detail-value"},Xw={class:"detail-value"},Zw={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},xw={class:"detail-value"},ek=["href"],tk={class:"detail-value"},nk={class:"detail-value"},ok={key:0},sk={key:1,class:"text-muted"},ik={class:"detail-value"},rk={key:0,style:{"margin-top":"20px"}},ak={class:"paper-table w-100",style:{"margin-top":"10px"}},lk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},dk={class:"cell-anon",role:"cell"},uk={class:"anon-text"},ck=["textContent"],pk={class:"cell-expires",role:"cell"},fk={key:1,class:"admin-section-header"},hk={class:"section-count"},mk={key:2,class:"user-detail-card"},vk={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},gk={key:0,class:"alert alert-warning",role:"alert"},yk={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},bk={key:1,class:"paper-table w-100"},wk={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},kk=["textContent"],Ek=["textContent"],Ck={role:"cell"},_k={key:0},Sk={key:1,class:"text-muted"},Nk={role:"cell"},Dk=["onClick"],Rk={key:2,class:"paper-table-empty"},Tk={class:"admin-section-header"},Ak={class:"section-count"},Ok={class:"admin-summary"},Pk={class:"summary-total"},Ik=["aria-pressed"],Vk={class:"count"},qk=["aria-pressed"],Mk={class:"count"},$k=["aria-pressed"],Lk={class:"count"},Uk=["aria-pressed"],Fk={class:"count"},Bk=["aria-pressed"],zk={class:"count"},Hk={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},jk={class:"admin-filter-row"},Gk={class:"search-wrap"},Wk={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Kk={key:3,class:"bulk-bar"},Yk={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Qk={class:"paper-table-head",role:"row"},Jk={role:"columnheader",style:{width:"28px"}},Xk=["checked"],Zk={role:"columnheader"},xk={role:"columnheader"},e0={role:"columnheader",class:"num"},t0={role:"columnheader"},n0={role:"cell",style:{width:"28px"}},o0={type:"checkbox","aria-label":"Select repository"},s0={class:"cell-anon",role:"cell"},i0={class:"anon-text"},r0=["textContent","href"],a0={class:"anon-sub"},l0=["textContent","href"],d0={key:0},u0=["textContent","href"],c0={key:1},p0=["textContent","href"],f0={key:2},h0={class:"cell-status",role:"cell"},m0={class:"status-line"},v0=["textContent"],g0=["textContent","title"],y0=["textContent"],b0=["textContent"],w0={class:"cell-actions",role:"cell"},k0={class:"dropdown"},E0={class:"dropdown-menu dropdown-menu-right"},C0=["href"],_0=["href"],S0=["href"],N0=["onClick"],D0=["onClick"],R0=["onClick"],T0=["onClick"],A0=["onClick"],O0=["onClick"],P0={key:0,class:"paper-table-empty"};function yl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",Lw,[n("div",Uw,[t[22]||(t[22]=n("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),n("span",Fw,u(e.userInfo?.username||"Profile"),1)]),n("h1",Bw,u(e.userInfo?.username||"User"),1),t[85]||(t[85]=pe('',1)),e.userInfo?(l(),d("div",zw,[n("div",Hw,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,jw)):p("v-if",!0),n("div",null,[n("h2",null,[y(u(e.userInfo?.username)+" ",1),n("span",Gw,[n("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),n("span",{textContent:u(e.fmt?.title(e.userInfo?.status))},null,8,Ww)]),e.userInfo?.isAdmin?(l(),d("span",Kw,"Admin")):p("v-if",!0)]),n("div",Yw,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])])):p("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Activate",-1)])])):p("v-if",!0),e.userInfo?.isAdmin?p("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),y(" Remove admin",-1)])])):p("v-if",!0)])])]),n("div",Qw,[t[30]||(t[30]=n("div",{class:"detail-label"},"ID",-1)),n("div",Jw,u(e.userInfo?._id),1),t[31]||(t[31]=n("div",{class:"detail-label"},"Email",-1)),n("div",Xw,u(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=n("div",{class:"detail-label"},"Access token",-1)),n("div",Zw,u(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",xw,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=n("i",{class:"fab fa-github"},null,-1)),y(" "+u(e.userInfo?.username),1)],8,ek)]),t[34]||(t[34]=n("div",{class:"detail-label"},"Created",-1)),n("div",tk,u(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",nk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",ok,u(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):p("v-if",!0),e.userInfo?.accessTokenDates?.github?p("v-if",!0):(l(),d("span",sk,"never"))]),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",ik,[y(u(e.userInfo?.repositories?.length)+" repositories ",1),n("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},u(e.showRepos?"Hide":"Show"),1),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",rk,[t[39]||(t[39]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",ak,[(l(!0),d(W,null,Z(e.userInfo?.repositories,(o,r)=>(l(),d("div",lk,[n("div",dk,[t[37]||(t[37]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",uk,[n("span",{class:"repo-name",textContent:u(o?.name)},null,8,ck)])]),n("div",pk,[t[38]||(t[38]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),y(" "+u(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):p("v-if",!0)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",fk,[t[40]||(t[40]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),y(" API tokens")],-1)),n("span",hk,u(e.tokens?.length),1)])):p("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",mk,[t[46]||(t[46]=n("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),N((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ue(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[N(n("input",vk,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=n("button",{type:"submit",class:"btn btn-primary"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),y(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",gk,[t[42]||(t[42]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",yk,u(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):p("v-if",!0),e.tokens?.length?(l(),d("div",bk,[t[44]||(t[44]=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)),(l(!0),d(W,null,Z(e.tokens,(o,r)=>(l(),d("div",wk,[n("div",{role:"cell",textContent:u(o?.name)},null,8,kk),n("div",{role:"cell",textContent:u(e.fmt?.humanTime(o?.createdAt))},null,8,Ek),n("div",Ck,[o?.lastUsedAt?(l(),d("span",_k,u(e.fmt?.humanTime(o?.lastUsedAt)),1)):p("v-if",!0),o?.lastUsedAt?p("v-if",!0):(l(),d("span",Sk,"never"))]),n("div",Nk,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(o)},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Dk)])]))),256))])):p("v-if",!0),e.tokens?.length?p("v-if",!0):(l(),d("div",Rk,[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):p("v-if",!0),n("div",Tk,[t[47]||(t[47]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),y(" Anonymized repositories")],-1)),n("span",Ak,u(e.repositories?.length),1)]),n("div",Ok,[n("span",Pk,u(e.fmt?.number(e.repositories?.length)),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=o=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[48]||(t[48]=y("Ready ",-1)),n("span",Vk,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Ik),n("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=o=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[49]||(t[49]=y("Preparing ",-1)),n("span",Mk,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,qk),n("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=o=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[50]||(t[50]=y("Errored ",-1)),n("span",Lk,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,$k),n("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=o=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[51]||(t[51]=y("Expired ",-1)),n("span",Fk,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Uk),n("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=o=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[52]||(t[52]=y("Removed ",-1)),n("span",zk,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Bk)]),N((l(),d("form",Hk,[n("div",jk,[n("div",Gk,[N(n("input",Wk,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=o=>e.exportCsv())},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",Kk,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=o=>e.bulkRefresh())},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRemoveCache())},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=o=>e.clearSelection())},"Clear")])):p("v-if",!0),n("div",Yk,[n("div",Qk,[n("div",Jk,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,Xk)]),n("div",Zk,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=o=>e.sortBy("source.repositoryName"))},[t[59]||(t[59]=y("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[58]||(t[58]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",xk,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=o=>e.sortBy("status"))},[t[61]||(t[61]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",e0,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=o=>e.sortBy("pageView"))},[t[63]||(t[63]=y("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),n("div",t0,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=o=>e.sortBy("anonymizeDate"))},[t[65]||(t[65]=y("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[66]||(t[66]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,Z(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["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",n0,[N(n("input",o0,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.repoId]=a},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",s0,[t[71]||(t[71]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",i0,[n("a",{class:"repo-name",target:"_blank",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,r0),n("div",a0,[n("a",{textContent:u(o?.source?.fullName),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},null,8,l0),o?.options?.update?(l(),d("span",d0,[t[67]||(t[67]=y("\xA0\xB7\xA0",-1)),n("a",{textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,u0)])):p("v-if",!0),o?.options?.update?p("v-if",!0):(l(),d("span",c0,[t[68]||(t[68]=y("\xA0\xB7\xA0@",-1)),n("a",{textContent:u(o?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,p0)])),o?.conference?(l(),d("span",f0,[t[69]||(t[69]=y("\xA0\xB7\xA0",-1)),t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):p("v-if",!0),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.humanFileSize(o?.size?.storage)),1),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.number(o?.options?.terms?.length))+" terms",1)])])]),n("div",h0,[n("span",m0,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,v0)]),o?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,g0)):p("v-if",!0)]),n("div",{class:"cell-views num",role:"cell",textContent:u(e.fmt?.number(o?.pageView||0))},null,8,y0),n("div",{class:"cell-expires",role:"cell",textContent:u(e.fmt?.humanTime(o?.anonymizeDate))},null,8,b0),n("div",w0,[n("div",k0,[t[83]||(t[83]=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",E0,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,C0),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View repo",-1)])],8,_0),o?.options?.page&&o?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" View page",-1)])],8,S0)):p("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.fetchGithubInfo(o),["prevent"])},[...t[75]||(t[75]=[n("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,N0),t[81]||(t[81]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updateRepository(o),["prevent"])},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update",-1)])],8,D0),[[G,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updateRepository(o),["prevent"])},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable",-1)])],8,R0),[[G,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.showStatusMessage(o),["prevent"])},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" View status message",-1)])],8,T0),[[G,o?.statusMessage]]),t[82]||(t[82]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.removeCache(o),["prevent"])},[...t[79]||(t[79]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])],8,A0),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ue(a=>e.removeRepository(o),["prevent"])},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,O0),[[G,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",P0,[...t[84]||(t[84]=[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)])])):p("v-if",!0)])])}var I0={class:"container paper-page admin-page"},V0={class:"admin-summary"},q0={class:"summary-total"},M0=["aria-pressed"],$0={class:"count"},L0=["aria-pressed"],U0={class:"count"},F0=["aria-pressed"],B0={class:"count"},z0={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},H0={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},j0={class:"admin-filter-row"},G0={class:"search-wrap"},W0={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},K0={key:0,class:"admin-search-hint"},Y0={class:"admin-filter-inline"},Q0={class:"form-control form-control-sm"},J0={class:"admin-filter-inline","aria-label":"Pagination"},X0=["disabled"],Z0={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},x0=["disabled"],eE={key:0,class:"admin-filter-row"},tE={class:"admin-active-chips"},nE={class:"key"},oE=["onClick"],sE={key:1,class:"bulk-bar"},iE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},rE={class:"paper-table-head admin-users-row",role:"row"},aE={role:"columnheader",style:{width:"28px"}},lE=["checked"],dE={role:"columnheader"},uE={role:"columnheader"},cE={role:"cell",style:{width:"28px"}},pE={type:"checkbox","aria-label":"Select user"},fE={class:"cell-anon",role:"cell"},hE=["src"],mE={class:"anon-text"},vE=["textContent","href"],gE={class:"anon-sub"},yE={key:0},bE=["href"],wE={key:1},kE={class:"cell-views num",role:"cell"},EE=["textContent","href"],CE={class:"cell-status",role:"cell"},_E=["textContent"],SE={class:"cell-status",role:"cell"},NE={key:0,class:"type-badge type-repo"},DE={key:1,class:"empty-dash"},RE={class:"cell-actions",role:"cell"},TE={class:"dropdown"},AE={class:"dropdown-menu dropdown-menu-right"},OE=["href"],PE=["href"],IE=["onClick"],VE=["onClick"],qE={key:0,class:"paper-table-empty"},ME={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},$E={style:{"font-size":"12px",color:"var(--ink-muted)"}},LE={key:0,class:"pagination-compact"},UE=["disabled"],FE=["max"],BE=["disabled"],zE={class:"admin-filter-inline"},HE={class:"form-control form-control-sm"};function bl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",I0,[t[46]||(t[46]=pe('
Admin \xA0/\xA0 Users

Users

',3)),n("div",V0,[n("span",q0,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=o=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=y("Active ",-1)),n("span",$0,u(e.fmt?.number(e.statusCountFor("active"))),1)],10,M0),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=o=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=y("Banned ",-1)),n("span",U0,u(e.fmt?.number(e.statusCountFor("banned"))),1)],10,L0),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=o=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=y("Removed ",-1)),n("span",B0,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,F0)]),e.fetchError?(l(),d("div",z0,[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):p("v-if",!0),N((l(),d("form",H0,[n("div",j0,[n("div",G0,[N(n("input",W0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?p("v-if",!0):(l(),d("span",K0,"/"))]),n("span",Y0,[t[18]||(t[18]=n("label",null,"Role",-1)),N((l(),d("select",Q0,[...t[17]||(t[17]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=o=>e.exportCsv())},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",J0,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,X0),n("span",Z0,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,x0)])]),e.chips?.length?(l(),d("div",eE,[n("div",tE,[(l(!0),d(W,null,Z(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",nE,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,oE)]))),128))])])):p("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",sE,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=o=>e.bulkBan())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):p("v-if",!0),n("div",iE,[n("div",rE,[n("div",aE,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,lE)]),n("div",dE,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=o=>e.sortBy("username"))},[t[27]||(t[27]=y("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[30]||(t[30]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",uE,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[29]||(t[29]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)]),t[31]||(t[31]=n("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,Z(e.filteredUsers,(o,r)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",cE,[N(n("input",pE,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.username]=a},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",fE,[o?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,hE)):p("v-if",!0),n("div",mE,[n("a",{class:"repo-name",textContent:u(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,vE),n("div",gE,[o?.emails?.[0]?.email?(l(),d("span",yE,u(o?.emails?.[0]?.email)+" \xB7 ",1)):p("v-if",!0),n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+o?.username)},[t[33]||(t[33]=n("i",{class:"fab fa-github"},null,-1)),y(" "+u(o?.username),1)],8,bE),o?.dateOfEntry?(l(),d("span",wE,"\xA0\xB7\xA0Joined "+u(e.fmt?.humanTime(o?.dateOfEntry)),1)):p("v-if",!0)])])]),n("div",kE,[t[34]||(t[34]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show this user's repositories",textContent:u(e.fmt?.number(o?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,8,EE)]),n("div",CE,[n("span",{class:A(["status-dot",{"status-ready":o?.status=="active","status-removed":o?.status=="removed"||o?.status=="banned"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,_E)]),n("div",SE,[o?.isAdmin?(l(),d("span",NE,"Admin")):p("v-if",!0),o?.isAdmin?p("v-if",!0):(l(),d("span",DE,"\u2014"))]),n("div",RE,[n("div",TE,[t[40]||(t[40]=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",AE,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View details",-1)])],8,OE),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),y(" View repositories",-1)])],8,PE),t[39]||(t[39]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ue(a=>e.banUser(o),["prevent"])},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])],8,IE),[[G,o?.status=="active"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.activateUser(o),["prevent"])},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Activate",-1)])],8,VE),[[G,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",qE,[...t[41]||(t[41]=[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)])])):p("v-if",!0)]),n("div",ME,[n("span",$E,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",LE,[n("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous",-1)])],8,UE),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,FE),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[y("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,BE)])):p("v-if",!0),n("span",zE,[t[45]||(t[45]=n("label",null,"Per page",-1)),N((l(),d("select",HE,[...t[44]||(t[44]=[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:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var jE={class:"anonymize-landing"},GE={class:"anonymize-landing-inner"},WE={class:"form-group mt-4 mb-2"},KE={class:"source-url-label-row"},YE={key:0,class:"repo-access","aria-label":"GitHub access"},QE={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},JE=["aria-pressed","disabled"],XE=["aria-pressed","disabled"],ZE={key:1,class:"connection-badge"},xE={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},eC={key:0,class:"draft-status",role:"status"},tC={key:1,class:"text-danger",role:"alert"},nC={key:2,class:"repo-access-details","aria-label":"GitHub access"},oC={class:"repo-access-main"},sC={class:"repo-access-controls"},iC={key:1,class:"connection-link",href:"/connections"},rC={class:"anonymize-workspace"},aC={class:"anonymize-topbar"},lC={class:"anonymize-topbar-inner"},dC={class:"anonymize-topbar-head"},uC={class:"paper-page-title anonymize-topbar-title"},cC={key:0},pC={key:1},fC={key:0,class:"alert alert-info",role:"status"},hC={key:1,class:"alert alert-info",role:"status"},mC={key:1},vC={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},gC=["aria-selected","tabindex"],yC=["aria-selected","tabindex"],bC={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},wC={class:"anonymize-split"},kC=["role","aria-labelledby"],EC={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},CC={class:"anonymize-fields"},_C={class:"paper-settings-section"},SC={class:"form-group"},NC={class:"source-url-label-row"},DC={key:0,class:"repo-access","aria-label":"GitHub access"},RC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},TC=["aria-pressed","disabled"],AC=["aria-pressed","disabled"],OC={key:1,class:"connection-badge"},PC=["disabled"],IC={class:"invalid-feedback"},VC={class:"invalid-feedback"},qC={class:"invalid-feedback"},MC={class:"invalid-feedback"},$C={key:0,class:"repo-access-details","aria-label":"GitHub access"},LC={class:"repo-access-main"},UC={class:"repo-access-controls"},FC={key:1,class:"connection-link",href:"/connections"},BC={key:1,class:"repo-access-details"},zC={key:0,role:"status"},HC={key:2,class:"form-grid-2"},jC={class:"form-group"},GC={class:"input-group"},WC={class:"form-control",id:"branch",name:"branch"},KC=["textContent","value"],YC={class:"input-group-append"},QC={class:"form-group"},JC=["disabled"],XC={class:"invalid-feedback"},ZC={class:"invalid-feedback"},xC={class:"form-check"},e2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},t2={class:"paper-settings-section"},n2={class:"form-group"},o2=["disabled"],s2={class:"form-text text-muted"},i2={class:"invalid-feedback"},r2={class:"form-group"},a2=["disabled"],l2={class:"form-text text-muted"},d2={class:"invalid-feedback"},u2={class:"form-group"},c2=["disabled"],p2={class:"form-text text-muted"},f2={class:"invalid-feedback"},h2={class:"form-group"},m2={class:"redaction-syntax"},v2={class:"form-text text-muted"},g2={class:"warning-feedback"},y2={class:"invalid-feedback"},b2={class:"paper-settings-section"},w2={class:"form-check"},k2={class:"form-check-input",type:"checkbox",id:"link",name:"link"},E2={class:"form-check"},C2={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_2={class:"form-check"},S2={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},N2={class:"form-check"},D2={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},R2={class:"form-check"},T2=["disabled"],A2={key:0,class:"form-text text-muted"},O2={key:1,class:"form-text text-muted"},P2={key:0,class:"form-text text-muted"},I2={class:"form-check"},V2={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},q2={class:"form-check"},M2={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},$2={class:"form-check"},L2={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},U2={class:"form-check"},F2={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},B2={class:"form-check"},z2={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},H2={class:"form-check"},j2={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},G2={class:"form-check"},W2={class:"form-check-input",type:"checkbox",id:"title",name:"title"},K2={class:"form-check"},Y2={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Q2={class:"form-check"},J2={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},X2={class:"form-check"},Z2={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},x2={class:"form-check"},e_={class:"form-check-input",type:"checkbox",id:"username",name:"username"},t_={class:"form-check"},n_={class:"form-check-input",type:"checkbox",id:"date",name:"date"},o_={class:"form-check"},s_={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},i_={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},r_={key:0,class:"hosting-usage"},a_={key:0},l_={key:1},d_={key:2},u_={key:3},c_={class:"expiration-choices"},p_={class:"expiration-choice"},f_=["checked","disabled"],h_={key:0,class:"dated-options"},m_={key:0,class:"hosting-date"},v_=["min","max"],g_={class:"invalid-feedback"},y_={class:"invalid-feedback"},b_={class:"hosting-property"},w_={key:1,class:"expiration-choice"},k_=["checked","disabled"],E_={key:0},C_={key:1,class:"form-text text-muted"},__={class:"form-group conference-field"},S_={class:"form-text text-muted"},N_=["href"],D_={class:"invalid-feedback"},R_={class:"form-text text-muted"},T_={key:2,class:"inline-hosting"},A_={key:0,role:"alert",class:"text-danger"},O_={key:1,role:"alert",class:"text-danger"},P_=["disabled"],I_={key:2,role:"status"},V_={key:3,role:"status",class:"form-text text-muted"},q_={key:0,class:"capacity-reason"},M_={key:1,class:"subscription-choice"},$_={class:"billing-cycle"},L_=["value","checked","onChange"],U_={class:"hosting-terms"},F_={key:2,role:"status"},B_={key:3,class:"capacity-options"},z_=["disabled"],H_={key:5,class:"hosting-terms"},j_={key:6,class:"repository-pass"},G_=["disabled"],W_={class:"paper-settings-section"},K_={class:"form-group"},Y_={style:{position:"relative"}},Q_={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},J_={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},X_=["onClick"],Z_=["src"],x_=["textContent"],eS=["textContent"],tS={class:"coauthor-list"},nS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},oS=["src"],sS=["textContent","href"],iS=["onClick"],rS={class:"form-text text-muted"},aS=["textContent"],lS={key:1,class:"draft-status",role:"status"},dS={key:2,class:"draft-status"},uS={class:"anonymize-submit-bar"},cS=["disabled"],pS=["disabled"],fS={key:2,class:"checkout-return-note"},hS=["disabled"],mS=["disabled"],vS=["disabled"],gS=["disabled"],yS=["role","aria-labelledby"],bS={class:"anonymize-preview-head"},wS={key:0,class:"anonymize-preview-status",role:"status"},kS={key:1,class:"anonymize-preview-status",role:"status"},ES={key:2,class:"anonymize-preview-status",role:"alert"},CS={key:3,class:"anonymize-preview-status"},_S=["innerHTML"],SS=["role","aria-labelledby"],NS={class:"anonymize-preview-head"},DS={key:0,class:"anonymize-preview-status",role:"status"},RS={key:1,class:"anonymize-preview-status",role:"status"},TS={key:2,class:"anonymize-preview-status",role:"alert"},AS={key:3,class:"anonymize-preview-body"},OS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},PS={class:"pr-title mb-1"},IS={key:0},VS=["textContent"],qS={key:0},MS={key:1},$S={key:2},LS={class:"pr-comments mt-3"},US={class:"pr-comment"},FS={class:"pr-comment-head"},BS=["textContent"],zS={key:0,class:"pr-comment-date"},HS={key:3},jS={class:"pr-comments"},GS={class:"pr-comment"},WS={class:"pr-comment-head"},KS={key:0,class:"pr-comment-author"},YS=["textContent"],QS=["textContent"],JS={key:0,class:"pr-comment-body"},XS=["role","aria-labelledby"],ZS={class:"anonymize-preview-head"},xS={key:0,class:"anonymize-preview-status",role:"status"},eN={key:1,class:"anonymize-preview-status",role:"status"},tN={key:2,class:"anonymize-preview-status",role:"alert"},nN={key:3,class:"anonymize-preview-body"},oN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},sN={class:"pr-title mb-1"},iN={key:0},rN=["textContent"],aN={key:0},lN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},dN={key:2,class:"paper-tabs",role:"tablist"},uN=["aria-selected","tabindex"],cN=["aria-selected","tabindex"],pN=["textContent"],fN={key:3,class:"anonymize-preview-status"},hN={class:"paper-tab-content"},mN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},vN=["innerHTML"],gN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},yN={class:"pr-comments"},bN={class:"pr-comment"},wN={class:"pr-comment-head"},kN={key:0,class:"pr-comment-author"},EN=["textContent"],CN=["textContent"],_N={key:0,class:"pr-comment-body"};function wl(e,t){let s=We("gist-file"),i=We("markdown"),o=ye("field"),r=ye("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[p(" ===== STATE 1: No URL \u2014 centered input ===== "),N(n("div",jE,[n("div",GE,[t[44]||(t[44]=n("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),n("span",{class:"here"},"New anonymization")],-1)),t[45]||(t[45]=n("h1",{class:"paper-page-title"},[y("New "),n("em",null,"anonymization")],-1)),t[46]||(t[46]=n("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),n("div",WE,[n("div",KE,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",YE,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",QE,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(),n("span",{class:"sr-only"},"Read-only ",-1),y("GitHub App",-1)])],8,JE),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,XE)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",ZE,u((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(n("input",xE,null,512),[[o,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",eC,[t[41]||(t[41]=y("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):p("v-if",!0),e.sourceUrlError?(l(),d("p",tC,u(e.sourceUrlError),1)):p("v-if",!0),t[47]||(t[47]=n("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",nC,[n("div",oC,[n("div",sC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[42]||(t[42]=[y("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",iC,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),t[43]||(t[43]=n("div",{class:"repo-access-note"},[n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Anonymized content is public, even from private repositories.")])],-1))])):p("v-if",!0)])],512),[[G,!e.workspaceOpen&&!e.isUpdate]]),p(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(n("div",rC,[n("header",aC,[n("div",lC,[n("div",dC,[n("h1",uC,[e.isUpdate?p("v-if",!0):(l(),d("span",cC,"New anonymization")),e.isUpdate?(l(),d("span",pC,"Edit anonymization")):p("v-if",!0)]),N(n("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},u(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[G,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",fC,[t[48]||(t[48]=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[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):p("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",hC,[t[49]||(t[49]=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[50]||(t[50]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",mC,"GitHub OAuth is currently unavailable. Please try again later."))])):p("v-if",!0),n("nav",vC,[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[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,gC),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[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,yC)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",bC,u(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):p("v-if",!0),n("div",wC,[p(" 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"},[N((l(),d("form",EC,[n("div",CC,[n("section",_C,[t[61]||(t[61]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",SC,[n("div",NC,[t[52]||(t[52]=n("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",DC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",RC,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[51]||(t[51]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(),n("span",{class:"sr-only"},"Read-only ",-1),y("GitHub App",-1)])],8,TC),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,AC)])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",OC,u((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):p("v-if",!0)])):p("v-if",!0)]),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,PC),[[o,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),N(n("div",IC," Please provide a valid GitHub URL. ",512),[[G,e.anonymize?.sourceUrl?.errors?.github]]),N(n("div",VC," Not accessible. The organization may restrict access. ",512),[[G,e.anonymize?.sourceUrl?.errors?.access]]),N(n("div",qC," Does not exist or is not accessible. ",512),[[G,e.anonymize?.sourceUrl?.errors?.missing]]),N(n("div",MC," Already anonymized. ",512),[[G,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",$C,[n("div",LC,[n("div",UC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=a=>e.grantGitHubAccess())},[...t[53]||(t[53]=[y("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):p("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",FC,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):p("v-if",!0)])]),t[54]||(t[54]=n("div",{class:"repo-access-note"},[n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Anonymized content is public, even from private repositories.")])],-1))])):p("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",BC,[t[55]||(t[55]=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[13]||(t[13]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",zC,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):p("v-if",!0)])):p("v-if",!0),e.detectedType==="repo"?(l(),d("div",HC,[n("div",jC,[t[57]||(t[57]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",GC,[N((l(),d("select",WC,[(l(!0),d(W,null,Z(e.branches,(a,c)=>(l(),d("option",{textContent:u(a?.name),value:a?.name},null,8,KC))),256))])),[[o,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",YC,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[14]||(t[14]=a=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",QC,[t[58]||(t[58]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,JC),[[o,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(n("div",XC," The commit SHA is not valid. ",512),[[G,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(n("div",ZC," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[G,e.anonymize?.commit?.errors?.exists]])])])):p("v-if",!0),N(n("div",xC,[N(n("input",e2,null,512),[[o,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[59]||(t[59]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[60]||(t[60]=n("small",{class:"form-text text-muted"},"Follows the latest version, at most once an hour.",-1))],512),[[G,e.detectedType]])]),N(n("section",t2,[t[79]||(t[79]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),N(n("div",n2,[t[62]||(t[62]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,o2),[[o,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",s2,"anonymous.4open.science/r/"+u(e.repoId),1),N(n("div",i2,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.repoId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.repoId)+" is already used.",513),[[G,e.anonymize?.repoId?.errors?.used]])],512),[[G,e.detectedType==="repo"]]),N(n("div",r2,[t[65]||(t[65]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,a2),[[o,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",l2,[t[63]||(t[63]=y("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/pr/"+u(e.pullRequestId),1),t[64]||(t[64]=y(".",-1))]),N(n("div",d2,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used.",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])],512),[[G,e.detectedType==="pr"]]),N(n("div",u2,[t[68]||(t[68]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,c2),[[o,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",p2,[t[66]||(t[66]=y("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/gist/"+u(e.gistId),1),t[67]||(t[67]=y(".",-1))]),N(n("div",f2,"ID can only contain letters and numbers.",512),[[G,e.anonymize?.gistId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.gistId)+" is already used.",513),[[G,e.anonymize?.gistId?.errors?.used]])],512),[[G,e.detectedType==="gist"]]),n("div",h2,[t[77]||(t[77]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),N(n("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[o,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[78]||(t[78]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",m2,[t[75]||(t[75]=n("summary",null,"Regex & replacement syntax",-1)),t[76]||(t[76]=y()),n("small",v2,[t[69]||(t[69]=y("Regex is supported. Replaced by ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[70]||(t[70]=y(", or use ",-1)),t[71]||(t[71]=n("code",null,"term=>replacement",-1)),t[72]||(t[72]=y(" to pick your own (e.g. ",-1)),t[73]||(t[73]=n("code",null,"Anonymous=>ABC",-1)),t[74]||(t[74]=y(").",-1))])]),N(n("div",g2,"Regex characters detected. Escape them if unintentional.",512),[[G,e.termsRegexWarning]]),N(n("div",y2,"Terms are in an invalid format.",512),[[G,e.anonymize?.terms?.errors?.format]])])],512),[[G,e.detectedType]]),N(n("section",b2,[t[99]||(t[99]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),N(n("div",null,[n("div",w2,[N(n("input",k2,null,512),[[o,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[80]||(t[80]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",E2,[N(n("input",C2,null,512),[[o,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[81]||(t[81]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",_2,[N(n("input",S2,null,512),[[o,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[82]||(t[82]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",N2,[N(n("input",D2,null,512),[[o,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[83]||(t[83]=n("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),n("div",R2,[N(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,T2),[[o,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[84]||(t[84]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?p("v-if",!0):(l(),d("small",A2,u(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",O2,u(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):p("v-if",!0)])],512),[[G,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",P2,[...t[85]||(t[85]=[y("Images and PDFs are served unchanged. Review their contents and metadata before sharing. ",-1),n("a",{href:"/faq#formats"},"Supported formats",-1)])])):p("v-if",!0),N(n("div",null,[n("div",I2,[N(n("input",V2,null,512),[[o,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[86]||(t[86]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",q2,[N(n("input",M2,null,512),[[o,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[87]||(t[87]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",$2,[N(n("input",L2,null,512),[[o,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[88]||(t[88]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",U2,[N(n("input",F2,null,512),[[o,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[89]||(t[89]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",B2,[N(n("input",z2,null,512),[[o,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[90]||(t[90]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",H2,[N(n("input",j2,null,512),[[o,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[91]||(t[91]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[G,e.detectedType==="gist"]]),N(n("div",null,[n("div",G2,[N(n("input",W2,null,512),[[o,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",K2,[N(n("input",Y2,null,512),[[o,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[93]||(t[93]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",Q2,[N(n("input",J2,null,512),[[o,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[94]||(t[94]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",X2,[N(n("input",Z2,null,512),[[o,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[95]||(t[95]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",x2,[N(n("input",e_,null,512),[[o,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[96]||(t[96]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",t_,[N(n("input",n_,null,512),[[o,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[97]||(t[97]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",o_,[N(n("input",s_,null,512),[[o,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[98]||(t[98]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[G,e.detectedType==="pr"]])],512),[[G,e.detectedType]]),N(n("section",i_,[t[115]||(t[115]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("p",r_,[e.isUpdate&&e.role!=="owner"?(l(),d("span",a_,"Uses the owner's hosting")):e.hasAuthorHosting()?(l(),d("span",l_,"Your author subscription is active.")):e.conference?(l(),d("span",d_,"Conference hosting is checked on submission.")):e.hostingQuota?.repository?(l(),d("span",u_,u(e.hostingQuota.repository.used)+" of "+u(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):p("v-if",!0)])):p("v-if",!0),n("fieldset",c_,[t[105]||(t[105]=n("legend",{class:"sr-only"},"Expiration",-1)),n("label",p_,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[15]||(t[15]=a=>e.useDatedHosting()),disabled:e.billingPending},null,40,f_),t[100]||(t[100]=n("span",null,"Expire on a date",-1))]),e.options.expirationMode!=="never"?(l(),d("div",h_,[e.options?.expirationMode!=="never"?(l(),d("div",m_,[t[101]||(t[101]=n("label",{class:"paper-field-label",for:"expirationDate"},"Expires",-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,v_),[[o,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(n("div",g_,"Pick a date in the future.",512),[[G,e.anonymize?.expirationDate?.errors?.min]]),N(n("div",{class:"invalid-feedback"},"Pick a date on or before "+u(e.fmt?.date(e.maxExpirationDate))+".",513),[[G,e.anonymize?.expirationDate?.errors?.max]]),N(n("div",y_,"Enter a valid expiration date.",512),[[G,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])):p("v-if",!0),n("div",b_,[t[103]||(t[103]=n("label",{for:"expiration"},"Then",-1)),N(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[16]||(t[16]=a=>e.options.expirationMode=a)},[...t[102]||(t[102]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[Jo,e.options.expirationMode]])])])):p("v-if",!0),e.detectedType==="repo"?(l(),d("label",w_,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[17]||(t[17]=a=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,k_),n("span",null,[t[104]||(t[104]=y("Never expire",-1)),e.options.expirationMode!=="never"||e.hasAuthorHosting()?(l(),d("small",E_,u(e.hasAuthorHosting()?"Included in your subscription":"Author subscription"),1)):p("v-if",!0)])])):p("v-if",!0)]),e.options.expirationMode==="redirect"?(l(),d("p",C_,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):p("v-if",!0),n("div",__,[t[106]||(t[106]=n("label",{class:"paper-field-label",for:"conference"},[y("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[o,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(n("small",S_,[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,N_),y(" expires "+u(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[G,e.conference_data]]),N(n("div",D_,"The conference is not activated.",512),[[G,e.anonymize?.conference?.errors?.activated]]),N(n("small",R_,"Link to a conference to apply its shared defaults.",512),[[G,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("div",T_,[e.taskValidationError?(l(),d("p",A_,u(e.taskValidationError),1)):p("v-if",!0),e.billingError?(l(),d("p",O_,[y(u(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[18]||(t[18]=a=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,P_)])):p("v-if",!0),e.billingPending?(l(),d("div",I_,[...t[107]||(t[107]=[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?(l(),d("p",V_,u(e.billingNotice),1)):p("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(l(),d(W,{key:4},[e.options.expirationMode!=="never"?(l(),d("p",q_,u(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(l(),d("label",{class:A(["cycle-option",{selected:e.selectedHostingPlan()?.id===a.id}]),key:a.id},[n("input",{type:"radio",name:"hosting-plan",value:a.id,checked:e.selectedHostingPlan()?.id===a.id,onChange:c=>e.hostingPlan=a.id},null,40,L_),n("span",null,u(e.billingPrice(a)),1)],2))),128))]),n("p",null,u(e.selectedHostingPlan()?.repositories)+" repositories, "+u(e.billingBytes(e.selectedHostingPlan()?.storage))+". Coauthors included.",1),n("p",U_,"Renews "+u(e.selectedHostingPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[110]||(t[110]=n("p",{class:"hosting-terms"},"If paid access ends, never-expiring repositories expire after 90 days.",-1))])):(l(),d("p",F_,"New purchases are temporarily unavailable. Your draft is kept.")),e.options.expirationMode!=="never"?(l(),d("details",B_,[t[111]||(t[111]=n("summary",null,"Keep using free hosting",-1)),t[112]||(t[112]=n("p",null,"Remove a repository you no longer need, or use conference hosting. Removing a repository affects its review link.",-1)),t[113]||(t[113]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[19]||(t[19]=a=>e.anonymizeRepo(a)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,z_)])):p("v-if",!0)],64)):e.options.expirationMode==="never"&&!e.billingPending?(l(),d("p",H_,"No scheduled expiration while subscribed. A 90-day grace period applies if paid access ends.")):p("v-if",!0),e.isUpdate&&e.role==="owner"&&!e.hasAuthorHosting()?(l(),d("details",j_,[t[114]||(t[114]=n("summary",null,"Hosting just this repository?",-1)),(l(!0),d(W,null,Z((e.billing?.plans||[]).filter(a=>a.id==="author_pass"),a=>(l(),d("div",{key:a.id},[n("p",null,u(e.billingPrice(a))+" \xB7 "+u(e.billingBytes(a.storage))+" for 180 days. No renewal. Does not include Never expire.",1),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:t[20]||(t[20]=c=>e.checkoutRepository(!0))},"Review repository pass",8,G_)]))),128))])):p("v-if",!0)])):p("v-if",!0)],512),[[G,e.detectedType]]),N(n("section",W_,[t[119]||(t[119]=n("h2",{class:"paper-section-eyebrow"},"Coauthors",-1)),t[120]||(t[120]=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)),N(n("div",K_,[t[116]||(t[116]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",Y_,[N(n("input",Q_,null,512),[[o,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(n("div",J_,[(l(!0),d(W,null,Z(e.coauthorResults,(a,c)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ue(f=>e.addCoauthor(a,f),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,Z_),n("span",{textContent:u(a?.username)},null,8,x_)],8,X_))),256))],512),[[G,e.coauthorResults?.length>0]])]),N(n("small",{class:"form-text text-muted",textContent:u(e.coauthorError)},null,8,eS),[[G,e.coauthorError]])],512),[[G,e.role==="owner"||e.role==="admin"]]),n("div",tS,[(l(!0),d(W,null,Z(e.coauthors,(a,c)=>(l(),d("div",nS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,oS)):p("v-if",!0),n("a",{target:"_blank",textContent:u(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,sS),t[118]||(t[118]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),N(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:f=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[117]||(t[117]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,iS),[[G,e.role==="owner"||e.role==="admin"]])]))),256)),N(n("div",rS," No co-authors yet. ",512),[[G,!e.coauthors||e.coauthors?.length===0]])])],512),[[G,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,aS)):p("v-if",!0),e.draftRestored?(l(),d("div",lS,[t[121]||(t[121]=y("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[21]||(t[21]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",dS,[y(u(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[22]||(t[22]=a=>e.discardDraft())},u(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):p("v-if",!0)]),N(n("div",uS,[e.detectedType==="repo"?(l(),d(W,{key:0},[e.billingPending?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[23]||(t[23]=a=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,cS)):(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length||e.billing?.checkoutEnabled===!1),onClick:t[24]||(t[24]=ue(a=>e.submitForm(a,()=>{e.submitRepository(a)}),["prevent"]))},u(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,pS)),e.hostingNeedsPayment()&&!e.billingPending?(l(),d("p",fS,"Review payment in Stripe, then return to finish.")):p("v-if",!0)],64)):p("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ue(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[122]||(t[122]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize Pull Request ",-1)])],8,hS)):p("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ue(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[123]||(t[123]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update Pull Request ",-1)])],8,mS)):p("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ue(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[124]||(t[124]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize Gist ",-1)])],8,vS)):p("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[28]||(t[28]=ue(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[125]||(t[125]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update Gist ",-1)])],8,gS)):p("v-if",!0)],512),[[G,e.detectedType]])])),[[r,e.viewState]])],8,kC),p(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",bS,[t[126]||(t[126]=n("strong",null,"README.md",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[29]||(t[29]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",wS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",kS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",ES,[t[127]||(t[127]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",CS,"No README is available to preview. Review the published files before sharing.")):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,_S)):p("v-if",!0)],8,yS)):p("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",NS,[t[128]||(t[128]=n("strong",null,"Gist preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[31]||(t[31]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",DS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",RS,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",TS,[t[129]||(t[129]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[32]||(t[32]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",AS,[n("div",OS,[n("h2",PS,[e.options?.title?(l(),d("span",IS,u(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):p("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},u(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,VS)):p("v-if",!0)]),e.options?.origin?(l(),d("small",qS,"Gist ID: "+u(e.details?.source?.gistId),1)):p("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",MS,"By @"+u(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):p("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",$S,[n("ul",LS,[(l(!0),d(W,null,Z(e.previewGistFiles,(a,c)=>(l(),d("li",US,[n("div",FS,[n("strong",{textContent:u(a?.filename)},null,8,BS),a?.language?(l(),d("span",zS,u(a?.language),1)):p("v-if",!0)]),_e(s,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):p("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",HS,[t[132]||(t[132]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",jS,[(l(!0),d(W,null,Z(e.details?.gist?.comments,(a,c)=>(l(),d("li",GS,[n("div",WS,[e.options?.username?(l(),d("span",KS,[t[130]||(t[130]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[131]||(t[131]=y(" @",-1)),n("span",{textContent:u(e.anonymizeGistContent(a?.author))},null,8,YS)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,QS)):p("v-if",!0)]),e.options?.body?(l(),d("div",JS,[_e(i,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])):p("v-if",!0)],8,SS)):p("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",ZS,[t[133]||(t[133]=n("strong",null,"Pull request preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[33]||(t[33]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",xS,"Loading source\u2026")):p("v-if",!0),e.previewStatus==="loading"?(l(),d("div",eN,"Updating the anonymized preview\u2026")):p("v-if",!0),e.previewStatus==="error"?(l(),d("div",tN,[t[134]||(t[134]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[34]||(t[34]=a=>e.retryPreview())},"Retry preview")])):p("v-if",!0),e.previewStatus==="ready"?(l(),d("div",nN,[n("div",oN,[n("h2",sN,[e.options?.title?(l(),d("span",iN,u(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):p("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,rN)):p("v-if",!0)]),e.options?.origin?(l(),d("small",aN,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",lN,[_e(i,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",dN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[35]||(t[35]=a=>e.previewTabKeydown(a)),onClick:t[36]||(t[36]=a=>e.prTabState.active="diff")},[...t[135]||(t[135]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Diff ",-1)])],42,uN)):p("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[37]||(t[37]=a=>e.previewTabKeydown(a)),onClick:t[38]||(t[38]=a=>e.prTabState.active="comments")},[t[136]||(t[136]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,pN)],42,cN)):p("v-if",!0)])):p("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",fN,"Diff and comments are hidden by your display settings.")):p("v-if",!0),n("div",hN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",mN,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,vN)])):p("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",gN,[n("ul",yN,[(l(!0),d(W,null,Z(e.details?.pullRequest?.comments,(a,c)=>(l(),d("li",bN,[n("div",wN,[e.options?.username?(l(),d("span",kN,[t[137]||(t[137]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[138]||(t[138]=y(" @",-1)),n("span",{textContent:u(e.anonymizePrContent(a?.author))},null,8,EN)])):p("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,CN)):p("v-if",!0)]),e.options?.body?(l(),d("div",_N,[_e(i,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0)]))),256))])])):p("v-if",!0)])])):p("v-if",!0)],8,XS)):p("v-if",!0)])],512),[[G,e.workspaceOpen||e.isUpdate]])],2)}var SN={class:"container-fluid h-100 anonymize-page"},NN={class:"row h-100 flex-column flex-md-row"},DN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},RN={class:"form-group"},TN={class:"form-group"},AN={class:"form-check"},ON={class:"form-check-input",type:"checkbox",id:"update",name:"update"},PN={class:"form-group"},IN={class:"form-text text-muted"},VN=["href"],qN={class:"invalid-feedback"},MN={class:"form-text text-muted"},$N={class:"form-group"},LN={id:"idHelp",class:"form-text text-muted"},UN={class:"invalid-feedback"},FN={class:"form-group"},BN={class:"invalid-feedback"},zN={class:"form-group"},HN={class:"form-control",id:"expiration",name:"expiration"},jN={class:"form-group",id:"expiration-date-form"},GN={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},WN={class:"accordion mb-3",id:"options"},KN={class:"card"},YN={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},QN={class:"card-body"},JN={class:"form-group mb-0"},XN={class:"form-check"},ZN={class:"form-check-input",type:"checkbox",id:"link",name:"link"},xN={class:"form-check"},eD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},tD={class:"form-check"},nD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},oD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},iD={class:"form-check"},rD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},aD={class:"form-check"},lD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},dD={class:"form-check"},uD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},cD={class:"form-check"},pD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},fD={class:"form-check"},hD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},mD=["textContent"],vD={class:"anonymize-submit-bar"},gD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},yD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},bD={class:"pr-title mb-1"},wD={key:0},kD=["textContent"],ED={key:0},CD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},_D={class:"nav nav-tabs",id:"myTab",role:"tablist"},SD={key:0,class:"nav-item",role:"presentation"},ND={key:1,class:"nav-item",role:"presentation"},DD=["textContent"],RD={class:"tab-content",id:"pills-tabContent"},TD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},AD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},OD={style:{"overflow-x":"auto"}},PD=["innerHTML"],ID={key:0,class:"pr-comments list-group"},VD={class:"pr-comment list-group-item"},qD={class:"d-flex w-100 justify-content-between flex-wrap"},MD={key:0,class:"mb-1"},$D=["textContent"],LD={class:"mb-1"};function kl(e,t){let s=We("markdown"),i=ye("field"),o=ye("form");return l(),d("div",SN,[n("div",NN,[n("div",DN,[n("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[N((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=pe('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

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

Source
',4)),p(" pullRequestUrl "),n("div",RN,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestUrl=r},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.access]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is already anonymized ",513),[[G,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(n("div",null,[n("div",TN,[n("div",AN,[N(n("input",ON,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},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"})]),y(" Conference ID ")],-1)),p(" Conference "),n("div",PN,[t[5]||(t[5]=n("label",{for:"conference"},[y("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:r=>{e.conference=r},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(n("small",IN,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,VN),y(" will expire on "+u(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[G,e.conference_data]]),N(n("div",qN," The conference is not activated. ",512),[[G,e.anonymize?.conference?.errors?.activated]]),N(n("small",MN," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[G,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),y(" Anonymization Options ")],-1)),p(" Pull Request ID "),n("div",$N,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestId=r},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",LN,"Id used in the url: https://anonymous.4open.science/r/"+u(e.pullRequestId),1),N(n("div",UN," Repository id can only contain letters and numbers ",512),[[G,e.anonymize?.pullRequestId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used ",513),[[G,e.anonymize?.pullRequestId?.errors?.used]])]),p(" Terms "),n("div",FN,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),N(n("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:r=>{e.terms=r},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)),N(n("div",BN," Terms are in an invalid format ",512),[[G,e.anonymize?.terms?.errors?.format]])]),n("div",zN,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",HN,[...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:r=>{e.options.expirationMode=r},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))]),N(n("div",jN,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(n("input",GN,null,512),[[i,{state:e.viewState,set:r=>{e.options.expirationDate=r},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),N(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[G,e.options?.expirationMode=="remove"]]),N(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+u(e.pullRequestUrl)+".",513),[[G,e.options?.expirationMode=="redirect"]])],512),[[G,e.options?.expirationMode!="never"]]),n("div",WN,[n("div",KN,[t[25]||(t[25]=pe('

',1)),n("div",YN,[n("div",QN,[n("div",JN,[n("div",XN,[N(n("input",ZN,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},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",xN,[N(n("input",eD,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},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",tD,[N(n("input",nD,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},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",oD,[N(n("input",sD,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",iD,[N(n("input",rD,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",aD,[N(n("input",lD,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",dD,[N(n("input",uD,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},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",cD,[N(n("input",pD,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},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",fD,[N(n("input",hD,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},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),[[G,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,mD)):p("v-if",!0),N(n("div",vD,[e.isUpdate?p("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ue(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ue(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update ",-1)])])):p("v-if",!0)],512),[[G,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(l(),d("div",gD,[n("div",yD,[n("h2",bD,[e.options?.title?(l(),d("span",wD,u(e.anonymize(e.details?.pullRequest?.title)),1)):p("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,kD)):p("v-if",!0)]),e.options?.origin?(l(),d("small",ED,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):p("v-if",!0),e.options?.body?(l(),d("div",CD,[_e(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):p("v-if",!0),n("ul",_D,[e.options?.diff?(l(),d("li",SD,[...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)])])):p("v-if",!0),e.options?.comments?(l(),d("li",ND,[n("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,DD)],2)])):p("v-if",!0)]),n("div",RD,[n("div",TD,[e.options?.diff?(l(),d("div",AD,[n("pre",OD,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,PD)])])):p("v-if",!0)]),n("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",ID,[(l(!0),d(W,null,Z(e.details?.pullRequest?.comments,(r,a)=>(l(),d("li",VD,[n("div",qD,[e.options?.username?(l(),d("h5",MD," @"+u(e.anonymize(r?.author)),1)):p("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:u(e.fmt?.date(r?.updatedDate))},null,8,$D)):p("v-if",!0)]),n("p",LD,[e.options?.body?(l(),$t(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):p("v-if",!0)])]))),256))])):p("v-if",!0)],2)])])):p("v-if",!0)])])}var UD={class:"container paper-page claim-page"},FD={class:"paper-settings-main claim-form"},BD={class:"form-group"},zD={class:"invalid-feedback"},HD={class:"form-group"};function El(e,t){let s=ye("field"),i=ye("form");return l(),d("div",UD,[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",FD,[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)),N((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ue(o=>e.submitForm(o,()=>{e.claim()}),["prevent"]))},[n("div",BD,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoUrl=o},value:e.repoUrl,form:"claimForm",options:{}}]]),N(n("div",zD," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[G,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",HD,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoId=o},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var jD={class:"container page paper-page conference-page"},GD={class:"paper-crumbs"},WD={class:"here"},KD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},YD=["textContent"],QD={key:0,class:"paper-page-lede"},JD=["textContent","href"],XD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},ZD=["textContent"],xD=["href"],eR={class:"paper-meta-rule"},tR=["textContent"],nR=["textContent"],oR={key:0},sR={key:0,class:"conference-payment-status",role:"status"},iR=["disabled"],rR={key:1,role:"alert"},aR={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},lR={key:0,role:"status"},dR={key:1,role:"alert"},uR=["disabled"],cR={class:"search-wrap"},pR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},fR={class:"dashboard-filter-controls"},hR={class:"dropdown"},mR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},vR={class:"filter-btn-value"},gR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},yR={class:"form-check dropdown-item"},bR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},wR={class:"form-check dropdown-item"},kR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},ER={class:"form-check dropdown-item"},CR={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},_R={class:"form-check dropdown-item"},SR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},NR={class:"dropdown"},DR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},RR={key:0,class:"filter-btn-value"},TR={key:1,class:"filter-btn-value"},AR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},OR={class:"form-check dropdown-item"},PR=["id"],IR=["for"],VR={class:"dashboard-meta"},qR={class:"dashboard-count"},MR={key:0},$R={key:0},LR={key:1},UR={key:1},FR={key:0,class:"filter-chip"},BR=["onClick","aria-label"],zR={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},HR={class:"cell-anon",role:"cell"},jR={class:"anon-text"},GR=["textContent","href"],WR={class:"anon-sub"},KR={class:"anon-source"},YR=["textContent","href"],QR={key:0},JR=["textContent","href"],XR={key:1},ZR=["href"],xR={class:"cell-status",role:"cell"},eT={class:"status-line"},tT=["textContent"],nT={key:0,class:"status-sub"},oT={class:"cell-views num",role:"cell"},sT=["textContent"],iT={class:"cell-expires",role:"cell"},rT={key:0,class:"expires-never"},aT=["textContent"],lT={key:2,class:"expires-past"},dT={key:0},uT={key:3,class:"empty-dash","aria-label":"Not applicable"},cT={class:"cell-actions",role:"cell"},pT={class:"dropdown"},fT=["aria-label"],hT={class:"dropdown-menu dropdown-menu-right"},mT=["href"],vT=["href"],gT={key:0,class:"paper-table-empty"},yT={key:0},bT={key:1},wT={key:2,class:"paper-table-empty-actions"};function Cl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",jD,[n("div",null,[n("div",GD,[t[4]||(t[4]=n("a",{href:"/dashboard"},"My work",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),t[6]||(t[6]=n("a",{href:"/conferences"},"Conferences",-1)),t[7]||(t[7]=y(" \xA0/\xA0 ",-1)),n("span",WD,u(e.conference?.conferenceID),1)]),n("div",KD,[n("div",null,[n("h1",{class:"paper-page-title",textContent:u(e.conference?.name)},null,8,YD),e.conference?.url?(l(),d("p",QD,[n("a",{target:"_blank",rel:"noopener",textContent:u(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,JD)])):p("v-if",!0)]),n("div",XD,[n("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[n("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:u(e.fmt?.statusLabel(e.conference?.status))},null,8,ZD)],2),n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[8]||(t[8]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit conference",-1)])],8,xD)])]),n("div",eR,[n("span",null,[t[9]||(t[9]=y("ID ",-1)),n("b",{class:"commit-hash",textContent:u(e.conference?.conferenceID)},null,8,tR)]),n("span",null,[t[10]||(t[10]=y("Review window ",-1)),n("b",null,u(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[11]||(t[11]=y("Repositories ",-1)),n("b",null,u(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[12]||(t[12]=y("Plan ",-1)),n("b",{textContent:u(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,nR)]),e.conference?.price?(l(),d("span",oR,[t[13]||(t[13]=y("Cost so far ",-1)),n("b",null,u(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):p("v-if",!0)]),e.billingNotice?(l(),d("div",sR,[n("p",null,u(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,iR)])):p("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(l(),d("p",rR,u(e.billingError),1)):p("v-if",!0),e.conference?.status==="pending_payment"?(l(),d("section",aR,[t[14]||(t[14]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[15]||(t[15]=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?(l(),d("p",lR,"Loading payment options\u2026")):p("v-if",!0),e.billingError?(l(),d("p",dR,u(e.billingError),1)):p("v-if",!0),(l(!0),d(W,null,Z((e.billing?.plans||[]).filter(o=>o.id==="conference"),o=>(l(),d("div",{key:o.id},[n("p",null,u(e.billingPrice(o))+" for up to "+u(o.repositories)+" repositories and "+u(e.billingBytes(o.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1),n("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=r=>e.checkout("conference",e.conference.conferenceID)),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},u(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,uR)]))),128)),t[16]||(t[16]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):p("v-if",!0),t[37]||(t[37]=n("div",{class:"paper-section-eyebrow"},"Repositories",-1)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[2]||(t[2]=ue(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",cR,[N(n("input",pR,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",fR,[n("div",hR,[n("button",mR,[t[17]||(t[17]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",vR,u({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",gR,[t[22]||(t[22]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",yR,[N(n("input",bR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",wR,[N(n("input",kR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",ER,[N(n("input",CR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",_R,[N(n("input",SR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),n("div",NR,[n("button",DR,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",RR,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",TR,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",AR,[t[24]||(t[24]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,Z(e.statusLabels,(o,r,a)=>(l(),d("div",OR,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,PR),[[s,{state:e.viewState,set:c=>{e.filters.status[r]=c},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(o),9,IR)]))),256))])])])],32)),[[i,e.viewState]]),n("div",VR,[n("span",qR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",MR,[y(u(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",$R,"y")):p("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",LR,"ies")):p("v-if",!0)])):p("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",UR,u(e.fmt?.number(e.filteredRepositories?.length))+" of "+u(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(W,null,Z(e.filters?.status,(o,r,a)=>(l(),d(W,null,[o===!1?(l(),d("span",FR,[y(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:c=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,BR)])):p("v-if",!0)],64))),256))]),n("div",zR,[t[36]||(t[36]=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)),(l(!0),d(W,null,Z(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error"}]),role:"row",key:o?.repoId},[n("div",HR,[t[27]||(t[27]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",jR,[n("a",{class:"repo-name",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId+"/")},null,8,GR),n("div",WR,[n("span",KR,[n("a",{target:"_blank",rel:"noopener",textContent:u(o?.source?.fullName),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},null,8,YR),o?.options?.update&&o?.source?.branch?(l(),d("span",QR,[t[25]||(t[25]=y(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,JR)])):p("v-if",!0),o?.source?.commit?(l(),d("span",XR,[t[26]||(t[26]=y(" \xB7 ",-1)),n("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},"@"+u(o?.source?.commit?.substring(0,8)),9,ZR)])):p("v-if",!0)])])])]),n("div",xR,[n("div",eT,[n("span",{class:A(["status-dot","status-"+(o?.status=="error"?"error":o?.status=="ready"?"ready":o?.status=="expired"||o?.status=="removed"?o?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(o?.status))},null,8,tT)]),o?.anonymizeDate?(l(),d("div",nT,"anonymized "+u(e.fmt?.humanTime(o?.anonymizeDate)),1)):p("v-if",!0)]),n("div",oT,[t[28]||(t[28]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[29]||(t[29]=y()),n("span",{textContent:u(e.fmt?.number(o?.pageView))},null,8,sT)]),n("div",iT,[t[31]||(t[31]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.status=="ready"&&(o?.options?.expirationMode==="never"||!o?.options?.expirationDate)?(l(),d("span",rT,"Never")):p("v-if",!0),o?.status=="ready"&&o?.options?.expirationMode!=="never"&&o?.options?.expirationDate?(l(),d("span",{key:1,textContent:u(e.fmt?.humanTime(o?.options?.expirationDate))},null,8,aT)):p("v-if",!0),o?.status=="expired"?(l(),d("span",lT,[t[30]||(t[30]=y("Expired",-1)),o?.options?.expirationDate?(l(),d("span",dT,u(e.fmt?.humanTime(o?.options?.expirationDate)),1)):p("v-if",!0)])):p("v-if",!0),o?.status!="ready"&&o?.status!="expired"?(l(),d("span",uT,"\u2014")):p("v-if",!0)]),n("div",cT,[n("div",pT,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+o?.repoId},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,fT),n("div",hT,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View ",-1)])],8,mT),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,vT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",gT,[t[35]||(t[35]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?p("v-if",!0):(l(),d("span",yT,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",bT,"Nothing matches the current filters.")):p("v-if",!0),e.conference?.repositories?.length?(l(),d("div",wT,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):p("v-if",!0)])):p("v-if",!0)])])])}var kT={class:"container page paper-page conferences-page"},ET={class:"row"},CT={class:"w-100"},_T={class:"search-wrap"},ST={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},NT={class:"dashboard-filter-controls"},DT={class:"dropdown"},RT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},TT={class:"filter-btn-value"},AT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},OT={class:"form-check dropdown-item"},PT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},IT={class:"form-check dropdown-item"},VT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},qT={class:"form-check dropdown-item"},MT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},$T={class:"dropdown"},LT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},UT={key:0,class:"filter-btn-value"},FT={key:1,class:"filter-btn-value"},BT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},zT={class:"form-check dropdown-item"},HT=["id"],jT=["for"],GT={class:"dashboard-meta"},WT={class:"dashboard-count"},KT={key:0},YT={key:0},QT={key:1},JT={key:0,class:"filter-chip"},XT=["onClick","aria-label"],ZT={key:0,class:"conference-feedback",role:"alert"},xT={key:1,class:"conference-feedback",role:"status"},eA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},tA={class:"cell-anon",role:"cell"},nA={class:"anon-text"},oA=["textContent","href"],sA={class:"anon-sub"},iA={class:"anon-source"},rA=["textContent"],aA={key:0},lA=["textContent","href"],dA={class:"cell-status",role:"cell"},uA={class:"status-line"},cA=["textContent"],pA={class:"cell-views num",role:"cell"},fA=["textContent"],hA={class:"cell-expires",role:"cell"},mA={key:0},vA={key:1,class:"empty-dash","aria-label":"No review window"},gA={class:"cell-actions",role:"cell"},yA={class:"dropdown"},bA=["disabled","aria-label"],wA={class:"dropdown-menu dropdown-menu-right"},kA=["href"],EA=["href"],CA={key:0},_A=["onClick"],SA={key:0,class:"paper-table-empty"},NA={key:0},DA={key:1},RA={class:"paper-table-empty-actions"},TA={key:1,href:"/conference/new",class:"btn btn-ink"};function _l(e,t){let s=ye("field"),i=ye("form");return l(),d("div",kT,[n("div",ET,[n("div",CT,[t[10]||(t[10]=pe('
My work \xA0/\xA0 Conferences

Your conferences

Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.

New conference
',2)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ue(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",_T,[N(n("input",ST,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",NT,[n("div",DT,[n("button",RT,[t[3]||(t[3]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",TT,u({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",AT,[t[7]||(t[7]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",OT,[N(n("input",PT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",IT,[N(n("input",VT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",qT,[N(n("input",MT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",$T,[n("button",LT,[t[8]||(t[8]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",UT,"All")):p("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?p("v-if",!0):(l(),d("span",FT,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",BT,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,Z(e.statusLabels,(o,r,a)=>(l(),d("div",zT,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,HT),[[s,{state:e.viewState,set:c=>{e.filters.status[r]=c},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(o),9,jT)]))),256))])])])],32)),[[i,e.viewState]]),n("div",GT,[n("span",WT,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",KT,[y(u(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",YT,"s")):p("v-if",!0)])):p("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",QT,u(e.fmt?.number(e.filteredConferences?.length))+" of "+u(e.fmt?.number(e.conferences?.length))+" shown",1)):p("v-if",!0)]),(l(!0),d(W,null,Z(e.filters?.status,(o,r,a)=>(l(),d(W,null,[o===!1?(l(),d("span",JT,[y(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:c=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,XT)])):p("v-if",!0)],64))),256))])]),e.error?(l(),d("div",ZT,[n("span",null,u(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=o=>e.loadConferences())},"Retry")])):p("v-if",!0),e.loading?(l(),d("div",xT,"Loading conferences\u2026")):p("v-if",!0),n("div",eA,[t[24]||(t[24]=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)),(l(!0),d(W,null,Z(e.filteredConferences,(o,r)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":o?.status=="expired"||o?.status=="removed"}]),role:"row",key:o?.conferenceID},[n("div",tA,[t[13]||(t[13]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",nA,[n("a",{class:"repo-name",textContent:u(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,oA),n("div",sA,[n("span",iA,[t[12]||(t[12]=y("ID ",-1)),n("span",{class:"commit-hash",textContent:u(o?.conferenceID)},null,8,rA),o?.url?(l(),d("span",aA,[t[11]||(t[11]=y(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(e.fmt?.limitTo(o?.url,60)),href:e.safeUrl(o?.url)},null,8,lA)])):p("v-if",!0)])])])]),n("div",dA,[n("div",uA,[n("span",{class:A(["status-dot","status-"+o?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(o?.status))},null,8,cA)])]),n("div",pA,[t[14]||(t[14]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=y()),n("span",{textContent:u(e.fmt?.number(o?.nbRepositories||0))},null,8,fA)]),n("div",hA,[t[16]||(t[16]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.startDate?(l(),d("span",mA,u(e.fmt?.date(o?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(o?.endDate,"mediumDate")),1)):p("v-if",!0),o?.startDate?p("v-if",!0):(l(),d("span",vA,"\u2014"))]),n("div",gA,[n("div",yA,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:o?.removing,"aria-label":"Actions for "+o?.name},[...t[17]||(t[17]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,bA),n("div",wA,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View ",-1)])],8,kA),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,EA),o?.status!="removed"?(l(),d("div",CA,[t[21]||(t[21]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(o)},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove ",-1)])],8,_A)])):p("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",SA,[t[23]||(t[23]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",NA,"You have not created a conference yet.")):p("v-if",!0),e.conferences?.length>0?(l(),d("span",DA,"Nothing matches the current filters.")):p("v-if",!0),n("div",RA,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):p("v-if",!0),e.conferences?.length==0?(l(),d("a",TA,[...t[22]||(t[22]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),y(" New conference",-1)])])):p("v-if",!0)])])):p("v-if",!0)])])])}var AA={class:"container page dashboard-page paper-page"},OA={class:"row"},PA={class:"w-100"},IA={class:"dashboard-heading"},VA=["open"],qA=["aria-expanded"],MA=["stroke-dasharray"],$A={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"},LA={key:0,class:"quota-summary-value"},UA={key:0},FA={class:"quota-panel",id:"dashboard-usage"},BA={class:"quota-panel-heading"},zA={key:1,class:"quota-loading",role:"status"},HA={class:"search-wrap"},jA={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},GA=["aria-expanded"],WA={class:"btn-group",role:"group","aria-label":"Type"},KA=["aria-pressed"],YA=["aria-pressed"],QA=["aria-pressed"],JA=["aria-pressed"],XA={class:"dropdown"},ZA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},xA={class:"filter-btn-value"},eO={class:"sr-only"},tO={class:"dropdown-menu","aria-labelledby":"dropdownSort"},nO={class:"form-check dropdown-item"},oO=["onClick","checked","id"],sO=["for"],iO={class:"dropdown"},rO={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},aO={key:0,class:"filter-btn-value"},lO={key:1,class:"filter-btn-value"},dO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},uO={class:"form-check dropdown-item"},cO=["id"],pO=["for"],fO={key:0,class:"dashboard-meta"},hO={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},mO=["aria-pressed"],vO=["aria-pressed","aria-label"],gO={class:"dashboard-count"},yO={key:0},bO={key:0},wO={key:1},kO={class:"dashboard-active-filters"},EO=["onClick","aria-label","title"],CO=["aria-busy"],_O={class:"paper-table-head",role:"row"},SO=["aria-sort"],NO=["aria-sort"],DO=["aria-sort"],RO=["aria-sort"],TO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},AO=["onClick"],OO={class:"cell-anon",role:"cell"},PO=["aria-label","title"],IO={class:"project-type-svg","aria-hidden":"true"},VO=["href"],qO={class:"anon-text"},MO={class:"anon-title"},$O=["title","textContent","href"],LO=["textContent"],UO={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},FO={class:"anon-sub"},BO=["title"],zO=["title"],HO=["title"],jO=["textContent"],GO={class:"dashboard-row-meta",role:"presentation"},WO={class:"cell-status",role:"cell"},KO={class:"status-line"},YO=["textContent"],QO=["textContent","title"],JO=["title"],XO=["href"],ZO=["onClick"],xO={key:4,class:"status-sub status-sub-date"},eP=["aria-label"],tP={class:"cell-expires",role:"cell"},nP={key:0,class:"expires-never"},oP=["textContent"],sP={key:2,class:"expires-past"},iP={key:3,class:"expires-past"},rP={key:4,class:"empty-dash","aria-label":"Not applicable"},aP={class:"cell-actions",role:"cell"},lP=["onClick","disabled","title","aria-label"],dP=["onClick","data-project-actions","aria-controls","aria-expanded"],uP={key:2,class:"dropdown"},cP=["data-project-actions","aria-label"],pP={class:"dropdown-menu dropdown-menu-right"},fP=["onClick","aria-controls","aria-expanded"],hP=["href"],mP=["href"],vP=["onClick","disabled"],gP=["href"],yP=["onClick"],bP=["onClick"],wP=["onClick"],kP={key:5},EP=["onClick"],CP={key:1,class:"project-details-row",role:"row"},_P=["id","onKeydown"],SP={class:"project-details-heading"},NP=["onClick"],DP={class:"project-details-list"},RP={key:0},TP={key:1},AP={key:0},OP={key:2},PP={key:0,class:"project-progress-help"},IP=["href"],VP=["onSubmit"],qP=["for"],MP=["id"],$P={class:"project-name-controls"},LP=["id","aria-describedby","disabled"],UP=["disabled"],FP={key:0,class:"project-name-error",role:"alert"},BP={key:1,role:"status"},zP={key:0,class:"paper-table-empty"},HP={key:0},jP={key:1},GP={class:"paper-table-empty-actions"},WP={key:1,href:"/anonymize",class:"btn btn-ink"},KP={key:0,class:"dashboard-pagination"},YP={key:0,role:"alert"},QP=["disabled"];function Sl(e,t){let s=We("quota-usage"),i=ye("field"),o=ye("form");return l(),d("div",AA,[n("div",OA,[n("div",PA,[n("div",IA,[n("div",null,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=r=>e.quotaExpanded=r.target.open),onKeydown:t[2]||(t[2]=Rn(ue(r=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,MA)):p("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",$A)):p("v-if",!0)],2)),t[23]||(t[23]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",LA,[y(u(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?p("v-if",!0):(l(),d("span",UA," / "+u(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=y(" repos",-1))])):p("v-if",!0),t[24]||(t[24]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],8,qA),n("div",FA,[n("div",BA,[t[26]||(t[26]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=r=>e.closeQuota())},[...t[25]||(t[25]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),$t(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",zA,"Loading usage\u2026"))])],40,VA)]),t[29]||(t[29]=pe('',1))]),p(" Search + filters "),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ue(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",HA,[N(n("input",jA,null,512),[[i,{state:e.viewState,set:r=>{e.search=r},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[3]||(t[3]=r=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[y("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,GA),n("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",WA,[n("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=r=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,KA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=r=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[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,YA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=r=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[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,QA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=r=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[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,JA)]),n("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",XA,[n("button",ZA,[t[35]||(t[35]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",xA,u(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",eO,u(e.sortDesc()?"descending":"ascending"),1)]),n("div",tO,[t[36]||(t[36]=n("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(W,null,Z(e.sortFields,(r,a,c)=>(l(),d("div",nO,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:f=>e.setSort(a,r.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+c},null,8,oO),n("label",{class:"form-check-label",for:"sort-"+c},u(r?.label),9,sO)]))),256)),t[37]||(t[37]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=r=>e.toggleSortDirection())},u(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",iO,[n("button",rO,[t[38]||(t[38]=n("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?p("v-if",!0):(l(),d("span",aO,"All")),e.hasHiddenStatus()?(l(),d("span",lO,u(e.hiddenStatusCount())+" hidden",1)):p("v-if",!0)]),n("div",dO,[t[39]||(t[39]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,Z(e.statusKeyLabels,(r,a,c)=>(l(),d("div",uO,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,cO),[[i,{state:e.viewState,set:f=>{e.filters.status[a]=f},value:e.filters?.status[a],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+a},u(r),9,pO)]))),256))])])],2)],2)],32)),[[o,e.viewState]]),p(" Result count + active filter chips "),e.loading?p("v-if",!0):(l(),d("div",fO,[n("div",hO,[n("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=r=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[n("span",{class:"dashboard-view-long"},"All projects",-1),n("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,mO),n("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=r=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=n("span",null,"attention",-1)),t[43]||(t[43]=y()),n("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},u(e.attentionCount()),3)],8,vO)]),n("span",gO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",yO,[y(u(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",bO,"s")):p("v-if",!0)])):(l(),d("span",wO,u(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+u(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),n("div",kO,[(l(!0),d(W,null,Z(e.filters?.status,(r,a,c)=>(l(),d(W,null,[r===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:f=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[y(u(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,EO)):p("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=r=>e.typeFilter="all"),"aria-label":"Show all project types"},[y(u(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):p("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=r=>e.clearFilters())},"Clear filters")):p("v-if",!0)])]))]),p(" Table "),n("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[n("div",_O,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=r=>e.setSort("_label"))},[t[47]||(t[47]=y(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,SO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=r=>e.setSort("status"))},[t[49]||(t[49]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,NO),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=r=>e.setSort("pageView"))},[t[51]||(t[51]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,DO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=r=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):p("v-if",!0)],2)],8,RO),t[54]||(t[54]=n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")],-1))]),p(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(W,null,Z([1,2,3,4],(r,a)=>(l(),d(W,null,[e.loading?(l(),d("div",TO,[...t[55]||(t[55]=[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)])])):p("v-if",!0)],64))),64)),(l(!0),d(W,null,Z(e.filteredItems,(r,a)=>(l(),d(W,{key:r?._type+":"+(r?._id||a)},[e.loading?p("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:c=>e.openItem(r,c)},[n("div",OO,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",IO,[n("use",{href:"#project-type-"+r._type},null,8,VO)]))],8,PO),n("div",qO,[n("div",MO,[r?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:r._label,textContent:u(r?._label),href:e.safeUrl(r?._viewUrl)},null,8,$O)):p("v-if",!0),r?._viewUrl?p("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:u(r?._label)},null,8,LO)),r?.role==="coauthor"?(l(),d("span",UO,"Co-author")):p("v-if",!0)]),n("div",FO,[r?._id?(l(),d("code",{key:0,class:"anonymous-id",title:r._id},u(r._id),9,BO)):p("v-if",!0),r?._type==="repo"&&r?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:r.source.commit},u(r.source.commit.substring(0,8)),9,zO)):p("v-if",!0),r?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:r?.conference},[t[56]||(t[56]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=y()),n("span",{textContent:u(r?.conference)},null,8,jO)],8,HO)):p("v-if",!0)])])]),n("div",GO,[n("div",WO,[n("div",KO,[n("span",{class:A(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(r?.status))},null,8,YO)]),r?.status=="error"&&r?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:u(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,QO)):p("v-if",!0),r?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)}," Last activity "+u(e.fmt?.humanTime(r?.anonymizeDate||r?.lastView))+" \xB7 may be stuck ",9,JO)):p("v-if",!0),r.status==="error"&&r._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,XO)):p("v-if",!0),r._stale||r._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ue(c=>e.showProjectDetails(r),["stop"])},u(r._broken?"Review details":"Check progress"),9,ZO)):p("v-if",!0),r?.status!="error"&&!r?._stale&&r?.anonymizeDate?(l(),d("div",xO," anonymized "+u(e.fmt?.humanTime(r?.anonymizeDate)),1)):p("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(r.pageView)+" views"},[t[58]||(t[58]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,u(e.fmt.number(r.pageView)),1)],8,eP),n("div",tP,[t[59]||(t[59]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?._expiry?.kind==="never"?(l(),d("span",nP,"Never")):p("v-if",!0),r?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:u(e.fmt?.humanTime(r?._expiry?.date))},null,8,oP)):p("v-if",!0),r?._expiry?.kind==="expired"&&r?._expiry?.date?(l(),d("span",sP,"Expired "+u(e.fmt?.humanTime(r?._expiry?.date)),1)):p("v-if",!0),r?._expiry?.kind==="expired"&&!r?._expiry?.date?(l(),d("span",iP,"Expired")):p("v-if",!0),r?._expiry?.kind==="none"?(l(),d("span",rP,"\u2014")):p("v-if",!0)])]),n("div",aP,[r._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ue(c=>e.copyLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+r._label,"aria-label":"Copy anonymous link for "+r._label},[...t[60]||(t[60]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1)])],8,lP)):p("v-if",!0),r._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ue(c=>e.showProjectDetails(r),["stop"]),"data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Details",8,dP)):p("v-if",!0),r?._broken?p("v-if",!0):(l(),d("div",uP,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-label":"Actions for "+r?._name},[...t[61]||(t[61]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,cP),n("div",pP,[n("button",{type:"button",class:"dropdown-item",onClick:c=>e.showProjectDetails(r),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Project details & name",8,fP),n("a",{class:"dropdown-item",href:e.safeUrl(r?._viewUrl)}," View ",8,hP),r?._type==="repo"&&r?.options?.page&&r?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+r?.repoId+"/")}," View page ",8,mP)):p("v-if",!0),r?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:c=>e.copyLink(r),disabled:!!e.copyingId}," Copy anonymous link ",8,vP)):p("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(r?._editUrl)}," Edit ",8,gP),r?.status=="ready"||r?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:c=>e.refreshItem(r)}," Force update ",8,yP)):p("v-if",!0),r?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:c=>e.refreshItem(r)}," Enable ",8,bP)):p("v-if",!0),r?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:c=>e.extendItem(r)}," Extend 6 months ",8,wP)):p("v-if",!0),(r?.status=="ready"||r?.status=="expired"||r?.status=="error")&&r?.role!=="coauthor"?(l(),d("div",kP,[t[62]||(t[62]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:c=>e.removeItem(r)}," Remove ",8,EP)])):p("v-if",!0)])]))])],10,AO)),!e.loading&&e.selectedProject===r?(l(),d("div",CP,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(r),tabindex:"-1",onKeydown:Rn(ue(c=>e.closeProjectDetails(r),["stop"]),["esc"])},[n("div",SP,[t[64]||(t[64]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:c=>e.closeProjectDetails(r),"aria-label":"Close project details"},[...t[63]||(t[63]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,NP)]),n("dl",DP,[n("div",null,[t[65]||(t[65]=n("dt",null,"Source",-1)),n("dd",null,u(r._source||"Not available"),1)]),n("div",null,[t[66]||(t[66]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,u(r._id||"Missing identifier"),1)])]),r.source?.commit?(l(),d("div",RP,[t[67]||(t[67]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,u(r.source.commit),1)])])):p("v-if",!0),r.conference?(l(),d("div",TP,[t[68]||(t[68]=n("dt",null,"Conference",-1)),n("dd",null,u(r.conference),1)])):p("v-if",!0),n("div",null,[t[69]||(t[69]=n("dt",null,"Status",-1)),n("dd",null,[y(u(e.fmt.statusLabel(r.status)),1),r.statusMessage?(l(),d("span",AP," \xB7 "+u(e.fmt.statusMsg(r.statusMessage)),1)):p("v-if",!0)])]),r.anonymizeDate?(l(),d("div",OP,[t[70]||(t[70]=n("dt",null,"Last anonymized",-1)),n("dd",null,u(e.fmt.humanTime(r.anonymizeDate)),1)])):p("v-if",!0)]),r._stale?(l(),d("p",PP,"This download has not progressed recently. Check the source access and selected branch before retrying.")):p("v-if",!0),r._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(r._editUrl)},u(e.needsAttention(r)?"Check source settings":"Edit anonymization settings"),9,IP)):p("v-if",!0),r._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ue(c=>e.saveProjectName(r),["prevent"])},[n("label",{for:"project-name-"+r._type+"-"+r._id},"Project name",8,qP),n("p",{id:"project-name-help-"+r._type+"-"+r._id},"Only you see this name. Leave it blank to use the default.",8,MP),n("div",$P,[N(n("input",{class:"form-control",type:"text",id:"project-name-"+r._type+"-"+r._id,"aria-describedby":"project-name-help-"+r._type+"-"+r._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=c=>e.projectName=c),disabled:e.nameSaving},null,8,LP),[[co,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},u(e.nameSaving?"Saving\u2026":"Save name"),9,UP)]),e.nameError?(l(),d("p",FP,u(e.nameError),1)):p("v-if",!0),e.nameMessage?(l(),d("p",BP,u(e.nameMessage),1)):p("v-if",!0)],40,VP)):p("v-if",!0)],40,_P)])):p("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",zP,[t[72]||(t[72]=n("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?p("v-if",!0):(l(),d("span",HP,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",jP,"Nothing matches the current filters.")):p("v-if",!0),n("div",GP,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=r=>e.clearFilters())},"Clear filters")):p("v-if",!0),e.hasProjects()?p("v-if",!0):(l(),d("a",WP,[...t[71]||(t[71]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),y(" New anonymization",-1)])]))])])):p("v-if",!0)],8,CO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",KP,[e.dashboardError?(l(),d("p",YP,u(e.dashboardError),1)):p("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=r=>e.loadMoreProjects()),disabled:e.loadingMore},u(e.loadingMore?"Loading\u2026":"Load more projects"),9,QP)):p("v-if",!0)])):p("v-if",!0)])}var JP={class:"explorer-page"},XP=["aria-label"],ZP={class:"ui-icon","aria-hidden":"true"},xP=["href"],e3=["textContent"],t3={class:"leftCol-head"},n3={class:"leftCol-search"},o3={class:"tree-search-box"},s3=["href"],i3={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},r3={class:"leftCol-project-header"},a3=["textContent"],l3={class:"project-file-count"},d3={class:"leftCol-body"},u3={key:0,class:"paper-inline-warning",role:"alert"},c3={key:1,class:"paper-inline-warning",role:"alert"},p3={class:"leftCol-foot"},f3=["title"],h3=["title"],m3=["title"],v3={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},g3={class:"explorer-main"},y3={class:"status-bar"},b3={class:"breadcrumb paths","aria-label":"Path"},w3=["textContent"],k3={class:"status-bar-actions"},E3=["href"],C3={class:"d-none d-md-inline"},_3={class:"ui-icon","aria-hidden":"true"},S3=["href"],N3={class:"d-none d-md-inline"},D3=["href"],R3=["href"],T3=["href"],A3=["href"],O3={class:"explorer-content"};function Nl(e,t){let s=We("tree"),i=We("partial-view"),o=ye("field");return l(),d("div",JP,[N(n("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=r=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",ZP,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,xP)])),n("span",{textContent:u(e.sidebarCollapsed?"Files":"Close")},null,8,e3)],8,XP),[[G,e.files?.length]]),N(n("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",t3,[t[7]||(t[7]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=r=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",n3,[n("div",o3,[(l(),d("svg",{class:A(["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,s3)],2)),N(n("input",i3,null,512),[[o,{state:e.viewState,set:r=>{e.fileSearchQuery=r},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),N(n("kbd",{class:"tree-search-kbd"},u(e.isMac?"\u2318":"Ctrl+")+"K",513),[[G,!e.fileSearchQuery]]),N(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=r=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[G,e.fileSearchQuery]])])]),n("div",r3,[n("span",{class:"project-name",textContent:u(e.repoId)},null,8,a3),n("span",l3,u(e.fileCounts?.[""]||e.files?.length)+" files",1)]),n("div",d3,[e.options?.truncatedFolders?.length>0?(l(),d("div",u3,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):p("v-if",!0),e.options?.hasSubmodules?(l(),d("div",c3,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):p("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"])]),n("div",p3,[n("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},u(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+u(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,f3),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+u(e.fmt?.date(e.options.settingsSavedAt)),9,h3)):p("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+u(e.fmt?.date(e.options.publishedAt)),9,m3)):p("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",v3," Snapshot ready date not recorded ")):p("v-if",!0)])],2),[[G,e.files?.length]]),N(n("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=r=>e.sidebarCollapsed=!0)},null,512),[[G,e.files?.length&&!e.sidebarCollapsed]]),n("div",g3,[n("div",y3,[n("ol",b3,[(l(!0),d(W,null,Z(e.paths,(r,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:u(r)},null,8,w3))),256))]),n("div",k3,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[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,E3)):p("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=r=>e.toggleAllowScripts())},[t[11]||(t[11]=n("i",{class:"fab fa-js"},null,-1)),n("span",C3,u(e.allowScripts?"JS on":"JS off"),1)],2)):p("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=r=>e.toggleSource())},[(l(),d("svg",_3,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,S3)])),n("span",N3,u(e.showSource?"Rendered":"Source"),1)])):p("v-if",!0),N(n("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,D3),[[G,e.content!=null]]),N(n("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"d-none d-md-inline"}," Download",-1)])],8,R3),[[G,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),n("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,T3)):p("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[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,A3)):p("v-if",!0)])]),n("div",O3,[_e(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var P3={class:"paper-faq"};function Dl(e,t){return l(),d("div",P3,[...t[0]||(t[0]=[pe('
Help

Answers to the questions that come up most.

If something's missing, write to us \u2014 report a bug on GitHub.

',1),n("div",{class:"paper-faq-body"},[n("aside",{class:"paper-faq-toc"},[n("div",{class:"paper-faq-toc-head"},"Contents"),n("nav",null,[n("a",{href:"#faq-general"},"General"),n("a",{href:"#faq-plans"},"Plans and billing"),n("a",{href:"#faq-features"},"Features"),n("a",{href:"#faq-limitations"},"Limitations"),n("a",{href:"#faq-privacy"},"Privacy & Security"),n("a",{href:"#faq-hosting"},"Self-Hosting")])]),n("section",{class:"faq-section","aria-label":"FAQs"},[n("div",null,[p(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y("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",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse",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 \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),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 \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),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 2 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,[y(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(" 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,[y(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),y(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),y(". Donations are separate from subscriptions and do not automatically unlock paid features. ")])])])])]),p(" 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:"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 2 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 one year ahead."),n("p",null,"Repositories shared with you as a coauthor 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,[y("Both include 20 owned repositories and 10 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"),y(".")]),n("p",null,[y("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"),y(".")]),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,"The author review pass covers one selected repository for 180 days, with a separate 2 GiB allowance and automatic refresh when enabled. It is a one-time purchase and does not renew automatically."),n("p",null,[y("Enter the anonymized ID of an existing repository you own in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(". A pass does not unlock Never expire and does not override the repository's chosen expiration date.")])])])]),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 of 100 repositories and 50 GiB for a review window of up to 180 days. The organizer pays once; the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"The paid 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 monthly or annual author subscription. See the available offer when creating a conference.")])])]),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 coauthor 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. Coauthors 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 coauthor's personal allowance."),n("p",null,"A coauthor's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a coauthor'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, choose a paid plan, 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,[y("Never expire is available to monthly and annual author subscribers. If paid access ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),y(", 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,[y("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(" and choose "),n("strong",null,"Manage billing and invoices"),y(" 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:"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,[y("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"),y(".")]),n("p",null,[y("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),y(" before trying another purchase. If paid plans are unavailable on this instance, no checkout is offered.")])])])])]),p(" Features "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})]),y("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"),y(" \u2014 displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),n("li",null,[n("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),y(" \u2014 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"),y(": 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"),y(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),y(" \u2014 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`)])])])])]),p(" Limitations "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})]),y("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). ")])])])])]),p(" Privacy & Security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),y("Privacy & 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 \u2014 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,[y("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"),y(" 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. ")])])])]),p(" Self-Hosting "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#project-icon-storage"})]),y("Self-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,[y(" 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"),y(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[y("Create a "),n("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[y("Run "),n("code",null,"docker-compose up -d")])])])])])]),n("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[n("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),n("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var I3={class:"pr-page"},V3={class:"container paper-page pr-page-inner"},q3={class:"pr-header"},M3={class:"pr-title-row"},$3={class:"paper-page-title pr-title"},L3=["textContent"],U3={key:1,class:"text-muted"},F3=["href"],B3={class:"pr-header-meta"},z3={key:0,class:"pr-meta-item"},H3=["textContent"],j3={key:1,class:"pr-meta-item"},G3=["textContent"],W3={key:2,class:"pr-meta-item"},K3=["textContent"],Y3={key:0,class:"paper-tabs",role:"tablist"},Q3=["aria-selected","tabindex"],J3=["textContent"],X3=["aria-selected","tabindex"],Z3=["textContent"],x3={class:"paper-tab-content"},eI={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},tI={class:"pr-comments"},nI={class:"pr-comment"},oI={class:"pr-comment-head"},sI=["textContent"],iI={key:0,class:"pr-comment-date"},rI={key:0,class:"paper-table-empty"},aI={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},lI={class:"pr-comments"},dI={class:"pr-comment"},uI={class:"pr-comment-head"},cI={key:0,class:"pr-comment-author"},pI=["textContent"],fI=["textContent"],hI={key:0,class:"pr-comment-body"},mI={key:0,class:"paper-table-empty"};function Rl(e,t){let s=We("gist-file"),i=We("markdown");return l(),d("div",I3,[n("div",V3,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",q3,[n("div",M3,[n("h1",$3,[e.details?.description?(l(),d("span",{key:0,textContent:u(e.details?.description)},null,8,L3)):p("v-if",!0),e.details?.description?p("v-if",!0):(l(),d("span",U3,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[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,F3)):p("v-if",!0)]),n("div",B3,[n("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},u(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",z3,[t[5]||(t[5]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=y(" @",-1)),n("span",{textContent:u(e.details?.ownerLogin)},null,8,H3)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",j3,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=y()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,G3)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",W3,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=y(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,K3)])):p("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",Y3,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.tabState.active="files")},[t[11]||(t[11]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,J3)],42,Q3)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.tabState.active="comments")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Z3)],42,X3)):p("v-if",!0)])):p("v-if",!0),n("div",x3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",eI,[n("ul",tI,[(l(!0),d(W,null,Z(e.details?.files,(o,r)=>(l(),d("li",nI,[n("div",oI,[n("strong",{textContent:u(o?.filename)},null,8,sI),o?.language?(l(),d("span",iI,u(o?.language),1)):p("v-if",!0)]),_e(s,{file:o},null,8,["file"])]))),256)),e.details?.files?.length?p("v-if",!0):(l(),d("li",rI,[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))])])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",aI,[n("ul",lI,[(l(!0),d(W,null,Z(e.details?.comments,(o,r)=>(l(),d("li",dI,[n("div",uI,[o?.author?(l(),d("span",cI,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=y(" @",-1)),n("span",{textContent:u(o?.author)},null,8,pI)])):p("v-if",!0),o?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(o?.updatedDate))},null,8,fI)):p("v-if",!0)]),o?.body?(l(),d("div",hI,[_e(i,{content:o?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",mI,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this gist.",-1)])]))])])):p("v-if",!0)])])])}var vI={class:"collapse navbar-collapse",id:"navbarSupportedContent"},gI={class:"navbar-nav mr-auto smooth-scroll"},yI={key:0,class:"nav-item"},bI={key:1,class:"nav-item"},wI={key:2,class:"nav-item"},kI={key:3,class:"nav-item"},EI={class:"nav-item"},CI={key:4,class:"nav-item"},_I={class:"navbar-nav"},SI={key:0,class:"nav-item"},NI={key:1,class:"nav-item"},DI={key:2,class:"nav-item"},RI={key:3,class:"nav-item"},TI={key:4,class:"nav-item dropdown user-chip-wrap"},AI={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},OI=["src"],PI={class:"user-chip-name"},II={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},VI={class:"dropdown-header"},qI=["innerHTML"];function Tl(e,t){return l(),d(W,null,[n("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[14]||(t[14]=pe('Anonymous GitHubSupport',3)),n("div",vI,[n("ul",gI,[e.user?p("v-if",!0):(l(),d("li",yI,[n("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",bI,[n("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[3]||(t[3]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),y(" My work ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",wI,[n("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[4]||(t[4]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize ",-1)])],2)])):p("v-if",!0),e.user?(l(),d("li",kI,[n("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[5]||(t[5]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),y(" Conferences ",-1)])],2)])):p("v-if",!0),n("li",EI,[n("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[6]||(t[6]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",CI,[n("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[7]||(t[7]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1),y(" Admin ",-1)])],2)])):p("v-if",!0)]),n("ul",_I,[t[12]||(t[12]=n("li",{class:"nav-item"},[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)),p(` "Report a bug" is about this service. Reviewers who land on an +`)],{type:"text/csv"}),D=document.createElement("a");D.href=URL.createObjectURL(R),D.download=i.username+"-repositories.csv",D.click()},e.showStatusMessage=m=>{let b=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,b)},e.fetchGithubInfo=m=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+m.repoId+"...
"),t.get("/api/admin/repos/"+m.repoId+"/github").then(C=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(C.data,null,2).replace(/[<>]/g,E=>E==="<"?"<":">")+"
"),b.document.close())},C=>{let E=C&&C.data?JSON.stringify(C.data,null,2):String(C);b&&(b.document.body.innerHTML='
'+E+"
")})};function h(m){t.get("/api/admin/users/"+m+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function v(m){t.get("/api/admin/users/"+m,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}v(i.username),h(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function g(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}g(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",g()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>g(),b=>console.error(b))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>h(i.username),b=>console.error(b))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>h(i.username),b=>console.error(b))},e.updateRepository=m=>{let b=ze({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${m.repoId}/refresh`).then(C=>{C.data.status=="ready"?b.title=`${m.repoId} is refreshed.`:b.title=`Refreshing of ${m.repoId}.`},C=>{b.title=`Error during the refresh of ${m.repoId}.`,b.body=C.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let k=null;e.watch("query",()=>{o.timeout.cancel(k),k=o.timeout(()=>{h(i.username)},500)},!0)},il=function(e,t,s){let i=ct(),o=Jt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=C=>{if(C.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){C.preventDefault();let E=document.querySelector('.admin-filter-toolbar input[type="search"]');E&&E.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=C=>{C==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[C]="",e.query.page=1},e.chips=[];let a=()=>{let C=[];(e.query.dateFrom||e.query.dateTo)&&C.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=C};e.statusCountFor=C=>{let E=(e.statusCounts||[]).find(R=>R._id===C);return E?E.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=C=>{e.query.sort===C?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=C,e.query.direction="desc"),e.query.page=1},e.sortIcon=C=>e.query.sort===C?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let c="admin.conferences.filterPrefs",h={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},v=loadFilterPrefs(c)||{};e.query=Object.assign({},h,v,{page:1,search:""});let g=s.search();g.search&&(e.query.search=g.search);let k="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(k)||"[]"),e.savePreset=()=>{let C=window.prompt("Preset name:");if(!C)return;let E=Object.assign({},e.query);delete E.page,e.presets=(e.presets||[]).filter(R=>R.name!==C),e.presets.push({name:C,query:E}),localStorage.setItem(k,JSON.stringify(e.presets))},e.applyPreset=C=>{Object.assign(e.query,C.query,{page:1})},e.deletePreset=C=>{e.presets=(e.presets||[]).filter(E=>E.name!==C.name),localStorage.setItem(k,JSON.stringify(e.presets))},e.removeConference=C=>{confirm("Remove conference "+C.conferenceID+"?")&&t.delete("/api/admin/conferences/"+C.conferenceID).then(()=>m(),E=>console.error(E))},e.exportCsv=()=>{let C=new URLSearchParams(Object.entries(e.query).filter(([,E])=>E!==""&&E!==!1&&E!=null));C.set("format","csv"),C.set("limit","10000"),window.open("/api/admin/conferences?"+C.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(C=>{e.total=C.data.total,e.totalPage=Math.ceil(C.data.total/e.query.limit),e.conferences=C.data.results,e.statusCounts=C.data.statusCounts||[]},C=>{e.fetchError=C&&C.data&&C.data.error||"Failed to load conferences",console.error(C)})}m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:C,search:E,...R}=e.query;saveFilterPrefs(c,R),a()},!0),a()},rl=function(e,t,s,i,o){let r=ct();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},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(E=>e.stateFilter[E._state]),e.jobProgressPct=E=>E&&E.progress&&typeof E.progress=="object"&&typeof E.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(E.progress.percent))):typeof E.progress=="number"?Math.max(0,Math.min(100,Math.round(E.progress))):null,e.jobDuration=E=>{if(!E.processedOn)return"-";let D=(E.finishedOn||Date.now())-E.processedOn;return D<1e3?D+"ms":(D/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=E=>{e.selectedQueue=E,a(),c()},e.setRange=E=>{e.range=E,c()};function a(){let E={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:E}).then(R=>{e.queueList=R.data.queues||[],e.jobs=R.data.jobs||[],e.selectedStats=e.queueList.find(D=>D.key===e.selectedQueue)||e.queueList[0]||null},R=>console.error(R))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(E=>{e.metricsPoints=E.data.points||[],o(m,0)},E=>console.error(E))}a(),c();let h=i(()=>{e.query.autoRefresh&&(a(),c())},15e3);e.on("dispose",()=>i.cancel(h)),e.refreshNow=function(){a(),c()};function v(E){let R=E&&E.data&&(E.data.message||E.data.error)||"Request failed";e.actionError=R,o(()=>{e.actionError=null},5e3),console.error(E)}e.actionError=null,e.removeJob=E=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${E.id}`).then(a,v)},e.retryJob=E=>{t.post(`/api/admin/queue/${e.selectedQueue}/${E.id}`).then(a,v)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,E=>console.error(E))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,E=>console.error(E))},e.togglePause=()=>{let E=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${E}`).then(a,R=>console.error(R))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,E=>console.error(E))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,E=>console.error(E))};let g=null;e.watch("query.search",()=>{r.timeout.cancel(g),g=r.timeout(a,350)}),e.expanded={},e.toggleJob=E=>{e.expanded[E.id]=!e.expanded[E.id]},e.humanTime=E=>{if(!E)return"";let R=new Date(E);return R.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+R.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=E=>{if(!E)return"";var R=Math.max(0,Math.ceil((E-Date.now())/1e3));if(R<=0)return"resuming soon";var D=Math.floor(R/60),T=R%60;return"in "+(D>0?D+"m "+T+"s":T+"s")};function k(E){if(E<=0)return{ticks:[0],niceMax:1};let R=Math.pow(10,Math.floor(Math.log10(E))),D=R;E/D<2?D=R/2:E/D>5&&(D=R*2);let T=Math.ceil(E/D)*D,q=[];for(let L=0;L<=T;L+=D)q.push(L);return{ticks:q,niceMax:T}}function m(){var E=document.getElementById("q-throughput-chart");if(!E)return;var R=E.getContext("2d"),D=window.devicePixelRatio||1,T=E.parentElement.getBoundingClientRect(),q=44,L=50,M=20,z=T.width-40,se=180,oe=z-q-L,_=se-M;E.width=z*D,E.height=se*D,E.style.width=z+"px",E.style.height=se+"px",R.setTransform(D,0,0,D,0,0);var O=document.body.classList.contains("dark-mode"),B="#8A857C",Y=O?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",X=O?"#A7B2FF":"#3B4AD6",K=O?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",te=O?"#F08A82":"#B42318",ue=O?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",le=O?"#F5C842":"#B8860B",re=e.metricsPoints||[];if(re.length===0){R.fillStyle=B,R.font="12px monospace",R.textAlign="center",R.fillText("No metrics data yet",z/2,se/2),b=null;return}var Ce=re.map(function(I){return I.completed}),Ae=re.map(function(I){return I.failed}),Oe=re.map(function(I){return I.avgMs}),ke=re.length,Ie=oe/(ke-1||1),Se=Math.max(1,Math.max.apply(null,Ce),Math.max.apply(null,Ae)),Fe=k(Se),Ve=Math.max.apply(null,Oe),U=Ve>0?k(Ve):{ticks:[0],niceMax:1},x=function(I){return _-I/Fe.niceMax*(_-10)},Z=function(I){return _-I/U.niceMax*(_-10)},ie=function(I){return q+I*Ie};R.textAlign="right",R.textBaseline="middle",R.font="10px monospace",Fe.ticks.forEach(function(I){var F=x(I);R.strokeStyle=Y,R.lineWidth=1,R.beginPath(),R.moveTo(q,F),R.lineTo(z-L,F),R.stroke(),R.fillStyle=B,R.fillText(I>=1e3?(I/1e3).toFixed(1)+"k":String(I),q-6,F)}),Ve>0&&(R.textAlign="left",U.ticks.forEach(function(I){var F=Z(I);R.fillStyle=le,R.fillText(I>=1e3?(I/1e3).toFixed(1)+"s":I+"ms",z-L+6,F)}));var me=Date.now(),_e=Math.min(6,ke);R.textAlign="center",R.textBaseline="top";for(var W=0;W<_e;W++){var p=Math.round(W/(_e-1)*(ke-1)),w=Math.round((me-re[p].ts)/6e4),S=ie(p),P;w<=0?P="now":w<60?P=w+"m":w<1440?P=Math.round(w/60)+"h":P=Math.round(w/1440)+"d",R.fillStyle=B,R.fillText(P,S,_+4)}function V(I,F,Q,J){I.length!==0&&(R.beginPath(),R.moveTo(ie(0),_),I.forEach(function(H,de){var ne=ie(de),ae=F(H);if(de===0)R.lineTo(ne,ae);else{var ve=(ie(de-1)+ne)/2;R.bezierCurveTo(ve,F(I[de-1]),ve,ae,ne,ae)}}),R.lineTo(ie(I.length-1),_),R.closePath(),R.fillStyle=Q,R.fill(),R.beginPath(),I.forEach(function(H,de){var ne=ie(de),ae=F(H);if(de===0)R.moveTo(ne,ae);else{var ve=(ie(de-1)+ne)/2;R.bezierCurveTo(ve,F(I[de-1]),ve,ae,ne,ae)}}),R.strokeStyle=J,R.lineWidth=1.5,R.stroke())}V(Ce,x,K,X),V(Ae,x,ue,te),Ve>0&&(R.beginPath(),Oe.forEach(function(I,F){var Q=ie(F),J=Z(I);if(F===0)R.moveTo(Q,J);else{var H=(ie(F-1)+Q)/2;R.bezierCurveTo(H,Z(Oe[F-1]),H,J,Q,J)}}),R.strokeStyle=le,R.lineWidth=1,R.setLineDash([4,3]),R.stroke(),R.setLineDash([])),b={pts:re,maxLen:ke,marginLeft:q,step:Ie,totalW:z,toX:ie}}var b=null;function C(){var E=document.getElementById("q-throughput-chart");if(!(!E||E._tipBound)){E._tipBound=!0;var R=document.getElementById("q-chart-tooltip"),D=document.getElementById("q-chart-crosshair");E.addEventListener("mousemove",function(T){if(!(!b||!R||!D)){var q=b,L=E.getBoundingClientRect(),M=T.clientX-L.left,z=Math.round((M-q.marginLeft)/q.step);if(z<0||z>=q.maxLen){R.style.display="none",D.style.display="none";return}var se=q.pts[z],oe=Date.now(),_=Math.round((oe-se.ts)/6e4),O;if(_<=0)O="now";else if(_<60)O=_+"m ago";else if(_<1440){var B=Math.floor(_/60),Y=_%60;O=B+"h"+(Y?" "+Y+"m":"")+" ago"}else O=Math.round(_/1440)+"d ago";var X='
'+O+'
● completed: '+se.completed+'/min
● failed: '+se.failed+"/min
";if(se.avgMs>0){var K=se.avgMs>=1e3?(se.avgMs/1e3).toFixed(1)+"s":se.avgMs+"ms";X+='
● avg time: '+K+"
"}R.innerHTML=X;var te=q.toX(z),ue=R.offsetWidth,le=te+10;le+ue>q.totalW&&(le=te-ue-10),R.style.display="block",R.style.left=le+"px",R.style.top="8px",D.style.display="block",D.style.left=te+"px"}}),E.addEventListener("mouseleave",function(){R&&(R.style.display="none"),D&&(D.style.display="none")})}}e.watch("metricsPoints",function(){o(C,50)})},al=function(e,t,s,i){let o=ct();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=D=>{if(!D)return"";let T=new Date(D).getTime();if(isNaN(T))return D;let q=Math.max(0,Date.now()-T),L=Math.floor(q/1e3);if(L<5)return"just now";if(L<60)return`${L}s ago`;let M=Math.floor(L/60);if(M<60)return`${M}m ago`;let z=Math.floor(M/60);if(z<24)return`${z}h ago`;let se=Math.floor(z/24);return se<7?`${se}d ago`:new Date(D).toLocaleDateString()},e.absTime=D=>{if(!D)return"";let T=new Date(D);return isNaN(T.getTime())?D:T.toLocaleString()},e.absTimeShort=D=>{if(!D)return"";let T=new Date(D);return isNaN(T.getTime())?D:T.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let r=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(D,T){let q=D&&(D.httpStatus||D.status)||null;if(typeof q=="number"){if(q>=500)return"error";if(q===401||q===403||q===404)return"info";if(q>=400)return"warn"}return T==="error"?"error":T==="warn"?"warn":"info"}function c(D){let T=(D.raw||[]).find(z=>z&&typeof z=="object"&&!Array.isArray(z));if(T){T.message&&r.test(T.message)?(D.displayMessage=T.message,D.displayContext=D.message):T.code&&r.test(String(T.code))?(D.displayMessage=String(T.code),D.displayContext=D.message):T.name&&T.name!=="AnonymousError"&&T.name!=="Error"?(D.displayMessage=T.name,D.displayContext=T.message||D.message):D.displayMessage=D.message,D._status=T.httpStatus||T.status||null,D._url=T.url||null,D._method=T.method||null,D._repoId=T.repoId||T.detail||null,D._detail=T.detail&&T.detail!==D._repoId?T.detail:null;let z=typeof T.stack=="string"?T.stack:null;for(var q=[T.cause,T.err].filter(Boolean),L=0;!z&&L{_==null||_===""||q.push([oe,_])};L("name",T&&T.name),L("code",D.displayMessage||T&&T.message),D._bucket&&L("kind",D._bucket),L("httpStatus",T&&T.httpStatus),T&&T.status&&!T.httpStatus&&L("status",T.status),L("module",D.module);let M=T&&T.detail;if(typeof M=="string"){let oe=M.trim();if(oe[0]==="{"||oe[0]==="[")try{M=JSON.parse(M)}catch{}}if(L("detail",M),L("repoId",T&&T.repoId),L("filePath",T&&T.filePath),L("upstreamStatus",T&&T.upstreamStatus),L("upstreamBody",T&&T.upstreamBody),L("url",D._url),L("err",T&&T.err),L("cause",T&&!T.err&&T.cause),L("ts",D.ts),!q.length)return JSON.stringify(D,null,2);let z=q.reduce((oe,_)=>Math.max(oe,_[0].length),0),se=["{"];return q.forEach(([oe,_],O)=>{let Y=` ${`"${oe}":`.padEnd(z+3," ")} `,X=Ole===0?ue:te+ue).join(` +`)}else typeof _=="number"||typeof _=="boolean"?K=String(_):K=JSON.stringify(_);se.push(`${Y}${K}${X}`)}),se.push("}"),se.join(` +`)}function v(D){let T=[],q="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,M=0,z;for(;z=L.exec(D);)q+=D.slice(M,z.index),M=L.lastIndex,T.push({key:z[1],op:z[2]||"=",val:z[3]});return q+=D.slice(M),{filters:T,free:q.trim().toLowerCase()}}function g(D,T){for(let q of T.filters){let L=(z,se,oe)=>{let _=parseFloat(z),O=parseFloat(se);return oe==="="?String(z)===String(se):oe==="!="?String(z)!==String(se):oe===">="?_>=O:oe==="<="?_<=O:oe===">"?_>O:oe==="<"?_T&&M._bucket!==T?!1:g(M,D)),L=e.query.group;if(L){let M=oe=>L==="module"?oe.module:oe.displayMessage||oe.message||"_",z=new Map;for(let oe of q){let _=M(oe);if(z.has(_)){let O=z.get(_);O.count++,O._related.push(oe),new Date(oe.ts)>new Date(O.ts)&&(O.ts=oe.ts,O._url=oe._url,O._status=oe._status),new Date(oe.ts)new Date(_.ts).getTime()>=se).length;q=Array.from(z.values())}else q=q.map((M,z)=>(M._key="row:"+z+":"+M.ts,M._related=[M],M._firstSeen=M.ts,M._lastHourCount=0,M.count=1,M));e.query.sort==="count"?q.sort((M,z)=>z.count-M.count||new Date(z.ts)-new Date(M.ts)):q.sort((M,z)=>new Date(z.ts)-new Date(M.ts)),e.visible=q}function m(D){let T=D?e.entries.length:0,q=D?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:T,limit:q}}).then(L=>{let M=(L.data.entries||[]).map(c);e.entries=D?e.entries.concat(M):M,e.available=!!L.data.available,e.cap=L.data.max||e.cap,e.total=L.data.total||e.entries.length,k()},L=>console.error(L))}e.loadMore=()=>m(!0),e.canLoadMore=()=>e.entries.length{let T=D.data||{},q=T.prev24h?Math.round((T.last24h-T.prev24h)/T.prev24h*100):0;e.stats={last24h:T.last24h||0,prev24h:T.prev24h||0,delta:q,severity:T.severity||{error:0,warn:0,info:0},unique:T.unique||{error:0,warn:0,info:0},buckets:T.buckets||[],dropped:T.dropped||0}},D=>console.error(D))}function C(){m(),b()}e.barPx=(D,T)=>{let q=e.stats.buckets||[],L=0;for(let oe of q)L=Math.max(L,(oe.error||0)+(oe.warn||0)+(oe.info||0));if(!L)return 0;let M=(D.error||0)+(D.warn||0)+(D.info||0);if(!M)return 0;let z=Math.round(M/L*60),se=D[T]||0;return Math.round(se/M*z)},e.bucketTitle=D=>`${new Date(D.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${D.error||0} err \xB7 ${D.warn||0} warn \xB7 ${D.info||0} info`,e.toggle=D=>{e.expanded[D._key]=!e.expanded[D._key]},e.setBucket=D=>{e.query.bucket=D},e.refreshNow=C,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(C,D=>console.error(D))},e.exportCsv=()=>{let D=["ts","level","module","displayMessage","_status","_url","_repoId"],T=[D.join(",")];for(let z of e.visible)T.push(D.map(se=>{let oe=z[se]==null?"":String(z[se]);return/[",\n]/.test(oe)?`"${oe.replace(/"/g,'""')}"`:oe}).join(","));let q=new Blob([T.join(` +`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(q),M=document.createElement("a");M.href=L,M.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(M),M.click(),document.body.removeChild(M),URL.revokeObjectURL(L)};function E(D){e.copyHint=`${D} copied`,o.timeout(()=>{e.copyHint=""},1500)}e.copyJson=D=>{navigator.clipboard.writeText(D._detailJson).then(()=>E("JSON"))},e.copyCurl=D=>{if(!D._url)return;let q=`curl -X ${D._method||"GET"} '${window.location.origin}${D._url}'`;navigator.clipboard.writeText(q).then(()=>E("curl"))},C();let R=i(()=>{e.query.autoRefresh&&C()},15e3);e.on("dispose",()=>i.cancel(R)),e.watch("query.search",k),e.watch("query.bucket",k),e.watch("query.sort",k),e.watch("query.group",k)},ll=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.performanceError=null,e.latencyBound=function(b,C){return b.count?b[C]==null?"> 60 s":"\u2264 "+b[C]+" ms":"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(C){return C.instance===b.instance}).reduce(function(C,E){return Math.max(C,E.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(C){b===e.performanceMinutes&&(e.performance=C.data,e.performanceError=C.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 r(b){if(b==null)return"\u2014";for(var C=["B","KB","MB","GB","TB"],E=0,R=b;R>=1024&&E0?1:0)+" "+C[E]}e.humanBytes=r;function a(b){if(!b)return"\u2014";var C=Math.floor(b/86400),E=Math.floor(b%86400/3600),R=Math.floor(b%3600/60);return C>0?C+"d "+(E<10?"0":"")+E+"h":E>0?E+"h "+(R<10?"0":"")+R+"m":R+"m"}e.humanDuration=a;function c(b){return b==null?"\u2014":b>=1e6?(b/1e6).toFixed(1)+"M":b>=1e3?(b/1e3).toFixed(1)+"K":String(b)}e.humanNum=c,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 C=e.data.repos.statusBreakdown||[],E=0;Eg[E])&&(g[E]=C[E])})})},function(b){e.loading=!1,e.error=b.data&&b.data.error||"Failed to load overview"})}k();var m=i(k,3e4);e.on("dispose",function(){i.cancel(m)})};var dl=[{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>el(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>tl(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Ka(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)=>Ya(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>as(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Qa(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Za(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>di(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)=>di(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xa(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ja(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ga(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)=>Wa(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)=>Ja(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)=>Xa(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)=>li(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)=>li(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)=>ll(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)=>nl(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)=>ol(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)=>sl(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)=>il(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)=>rl(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)=>al(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 fp={class:"container paper-page connections-page"},hp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},mp={key:1,role:"status"},vp=["disabled"],gp={key:3},yp={class:"connections-grid"},bp={key:0},wp={class:"connection-title"},kp={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},Ep={class:"connection-actions"},Cp={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},_p={key:1,class:"connection-installations"},Sp={key:0},Np=["href"],Dp={class:"sr-only"},Rp=["disabled"],Tp={class:"connection-title"},Ap={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Op={key:1,class:"connection-revoke"},Pp={key:0},Ip=["disabled"],Vp={class:"connection-resources"},qp={class:"connection-title"},Mp={class:"connection-count"},$p={key:0,class:"connection-empty"},Lp={class:"connection-resource-name"},Up={key:0,class:"connection-resource-actions"},Fp=["disabled","onClick"],Bp=["disabled","onClick"],zp={key:1,class:"connection-help",role:"status"},Hp=["disabled","onClick"];function ul(e,t){return l(),d("div",fp,[t[20]||(t[20]=pe('
My work / GitHub connections

GitHub connections

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

',2)),e.connectionError?(l(),d("p",hp,u(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",mp,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,vp)):f("v-if",!0),e.connections?(l(),d("div",gp,[n("div",yp,[e.connections.appEnabled?(l(),d("section",bp,[t[8]||(t[8]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",wp,[t[3]||(t[3]=n("h2",null,"GitHub App",-1)),n("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},u(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[9]||(t[9]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",kp,u(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",Ep,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",Cp,[...t[4]||(t[4]=[y("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:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},u(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[10]||(t[10]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",_p,[(l(!0),d(G,null,ee(e.connections.installations,s=>(l(),d("li",{key:s.id},[n("div",null,[n("strong",null,u(s.account),1),s.suspended?(l(),d("span",Sp," \xB7 Suspended")):f("v-if",!0)]),n("a",{target:"_self",href:"/github/app/install?installationId="+s.id},[t[5]||(t[5]=y("Manage access ",-1)),n("span",Dp,"for "+u(s.account),1),t[6]||(t[6]=y(" \u2192",-1))],8,Np)]))),128))])):f("v-if",!0),n("button",{class:"connection-link",disabled:e.busy,onClick:t[1]||(t[1]=s=>e.loadConnections())},[...t[7]||(t[7]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Refresh access",-1)])],8,Rp)])):f("v-if",!0),n("section",null,[t[13]||(t[13]=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",Tp,[t[11]||(t[11]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},u(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=n("p",null,"For existing OAuth anonymizations.",-1)),t[15]||(t[15]=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?(l(),d("a",Ap,u(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(l(),d("div",Op,[e.connections.gistCount?(l(),d("p",Pp,u(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[12]||(t[12]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[2]||(t[2]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Ip)):f("v-if",!0)])):f("v-if",!0)])]),n("section",Vp,[n("div",qp,[t[16]||(t[16]=n("h2",null,"Repository connections",-1)),n("span",Mp,u(e.connections.resources?.length||0)+" resources",1)]),t[18]||(t[18]=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):(l(),d("div",$p,[...t[17]||(t[17]=[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)])])),(l(!0),d(G,null,ee(e.connections.resources,s=>(l(),d("div",{class:"connection-resource",key:s.type+s.id},[n("div",Lp,[n("strong",null,u(s.name||s.id),1),n("small",null,u(s.type)+" \xB7 "+u(s.id),1)]),n("span",{class:A(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},u(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Up,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Fp),s.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},u(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Bp)):f("v-if",!0),s.eligible===!1?(l(),d("span",zp,"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?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,Hp)):f("v-if",!0)]))),128)),t[19]||(t[19]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var jp={class:"container paper-page auth-page"},Gp={class:"auth-layout"},Wp={class:"auth-options"},Kp={key:0},Yp={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},Qp={key:1},Jp={key:1},Xp={key:2,class:"auth-legacy"},Zp={key:3,role:"status"};function cl(e,t){return l(),d("div",jp,[t[5]||(t[5]=n("a",{class:"auth-back",href:"/"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-left"})]),y(" Anonymous GitHub")],-1)),n("div",Gp,[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",Wp,[e.accountRecovery?(l(),d("section",Kp,[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?(l(),d("a",Yp,"Verify with previous GitHub connection")):(l(),d("p",Qp,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Jp,[...t[2]||(t[2]=[pe('
Read-only access

Continue with GitHub

Connect through the GitHub App with read-only repository access.

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Xp,[...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"},[y("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?(l(),d("p",Zp,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])])}var xp={class:"paper-empty"};function pl(e,t){return l(),d("div",xp,[...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)])])}var ef={class:"container paper-page admin-page"},tf={class:"admin-summary"},nf={class:"summary-total"},of=["aria-pressed"],sf={class:"count"},rf=["aria-pressed"],af={class:"count"},lf=["aria-pressed"],df={class:"count"},uf=["aria-pressed"],cf={class:"count"},pf=["aria-pressed"],ff={class:"count"},hf={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},mf={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},vf={class:"admin-filter-row"},gf={class:"search-wrap"},yf={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},bf={key:0,class:"admin-search-hint"},wf={class:"admin-filter-inline","aria-label":"Pagination"},kf=["disabled"],Ef={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Cf=["disabled"],_f={key:0,class:"admin-filter-row"},Sf={class:"admin-active-chips"},Nf={class:"key"},Df=["onClick"],Rf={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},Tf={class:"paper-table-head",role:"row"},Af={role:"columnheader"},Of={role:"columnheader"},Pf={role:"columnheader"},If={class:"paper-table-row",role:"row"},Vf={class:"cell-anon",role:"cell"},qf={class:"anon-text"},Mf=["textContent","href"],$f={class:"anon-sub"},Lf={class:"cell-status",role:"cell"},Uf=["textContent"],Ff={class:"cell-views num",role:"cell"},Bf=["textContent","href"],zf={class:"cell-expires",role:"cell"},Hf={class:"cell-actions",role:"cell"},jf={class:"dropdown"},Gf={class:"dropdown-menu dropdown-menu-right"},Wf=["href"],Kf=["href"],Yf=["href"],Qf=["onClick"],Jf={key:0,class:"paper-table-empty"},Xf={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Zf={style:{"font-size":"12px",color:"var(--ink-muted)"}},xf={key:0,class:"pagination-compact"},eh=["disabled"],th=["max"],nh=["disabled"],oh={class:"admin-filter-inline"},sh={class:"form-control form-control-sm"};function fl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",ef,[t[47]||(t[47]=pe('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",tf,[n("span",nf,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=o=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[13]||(t[13]=y("Ready ",-1)),n("span",sf,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,of),n("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=o=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[14]||(t[14]=y("Preparing ",-1)),n("span",af,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,rf),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=o=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[15]||(t[15]=y("Errored ",-1)),n("span",df,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,lf),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=o=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[16]||(t[16]=y("Expired ",-1)),n("span",cf,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,uf),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=o=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[17]||(t[17]=y("Removed ",-1)),n("span",ff,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,pf)]),e.fetchError?(l(),d("div",hf,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",mf,[n("div",vf,[n("div",gf,[N(n("input",yf,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",bf,"/"))]),t[22]||(t[22]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=o=>e.exportCsv())},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",wf,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,kf),n("span",Ef,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Cf)])]),e.chips?.length?(l(),d("div",_f,[n("div",Sf,[(l(!0),d(G,null,ee(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",Nf,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Df)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",Rf,[n("div",Tf,[n("div",Af,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=o=>e.sortBy("name"))},[t[25]||(t[25]=y("Conference ",-1)),e.sortIcon("name")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[24]||(t[24]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",Of,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=o=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",Pf,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=o=>e.sortBy("startDate"))},[t[29]||(t[29]=y("Window ",-1)),e.sortIcon("startDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(G,null,ee(e.filteredConferences,(o,r)=>(l(),d("div",If,[n("div",Vf,[t[33]||(t[33]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",qf,[n("a",{class:"repo-name",textContent:u(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,Mf),n("div",$f,[n("span",null,u(o?.conferenceID),1),t[32]||(t[32]=y("\xA0\xB7\xA0",-1)),n("span",null,u(e.fmt?.number(o?.price||0))+" \u20AC",1)])])]),n("div",Lf,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,Uf)]),n("div",Ff,[t[34]||(t[34]=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:u(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,Bf)]),n("div",zf,[t[35]||(t[35]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),y(" "+u(e.fmt?.date(o?.startDate))+" \u2013 "+u(e.fmt?.date(o?.endDate)),1)]),n("div",Hf,[n("div",jf,[t[41]||(t[41]=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",Gf,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,Wf),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View",-1)])],8,Kf),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),y(" View repositories",-1)])],8,Yf),t[40]||(t[40]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ce(a=>e.removeConference(o),["prevent"])},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,Qf),[[j,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Jf,[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No conferences match the current filters.",-1)])])):f("v-if",!0)]),n("div",Xf,[n("span",Zf,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",xf,[n("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous",-1)])],8,eh),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,th),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[44]||(t[44]=[y("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,nh)])):f("v-if",!0),n("span",oh,[t[46]||(t[46]=n("label",null,"Per page",-1)),N((l(),d("select",sh,[...t[45]||(t[45]=[pe('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var ih={class:"container paper-page admin-page errors-page"},rh={class:"errors-header"},ah={class:"errors-actions"},lh={class:"kpi-grid"},dh={class:"kpi-card"},uh={class:"kpi-value"},ch={key:0},ph={key:1},fh={class:"kpi-card kpi-error"},hh={class:"kpi-value"},mh={class:"kpi-sub"},vh={class:"kpi-card kpi-warn"},gh={class:"kpi-value"},yh={class:"kpi-sub"},bh={class:"kpi-card kpi-info"},wh={class:"kpi-value"},kh={class:"kpi-sub"},Eh={class:"kpi-value"},Ch={class:"kpi-sub"},_h={key:0,class:"dropped-warn"},Sh={class:"volume-chart"},Nh={class:"volume-bars"},Dh=["title"],Rh={class:"errors-toolbar","aria-label":"Error filters"},Th={class:"seg-tabs"},Ah={class:"search-wrap"},Oh={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},Ph={key:0,class:"filter-count"},Ih={class:"select-wrap"},Vh={class:"form-control form-control-sm"},qh={class:"select-wrap"},Mh={class:"form-control form-control-sm"},$h={class:"autoref"},Lh={type:"checkbox"},Uh={key:0,class:"admin-empty"},Fh={key:1,class:"errors-pager"},Bh={key:2,class:"errors-list"},zh=["onClick"],Hh={class:"col-when"},jh={class:"when-rel"},Gh={class:"when-abs"},Wh={class:"col-sev"},Kh={class:"sev-label"},Yh={class:"col-mod"},Qh={class:"pill pill-module"},Jh={class:"col-msg"},Xh={class:"msg-code"},Zh={key:0,class:"msg-context"},xh={key:1,class:"msg-detail"},em={key:2,class:"msg-url"},tm={class:"col-count"},nm={key:0,class:"count-pill"},om={key:1,class:"count-pill count-pill-muted"},sm={class:"col-status"},im={key:0,class:"errors-row-detail"},rm={class:"detail-tabs"},am=["onClick"],lm=["onClick"],dm=["onClick"],um={class:"detail-body"},cm={class:"detail-main"},pm={key:0},fm={key:1,class:"stack-pre"},hm={key:2,class:"related-list"},mm={class:"when-abs"},vm={class:"msg-url"},gm={class:"detail-actions"},ym=["onClick"],bm=["onClick"],wm={key:0,class:"copy-hint"},km={class:"detail-aside"},Em={class:"aside-block"},Cm=["title"],_m={class:"aside-block"},Sm=["title"],Nm={class:"aside-block"},Dm={class:"aside-value"},Rm={key:0,class:"aside-sub"},Tm={key:0,class:"aside-block"},Am=["href"],Om={key:1,class:"aside-block"},Pm={class:"aside-value mono"};function hl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",ih,[t[32]||(t[32]=n("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),n("span",{class:"here"},"Errors")],-1)),n("header",rh,[t[10]||(t[10]=n("h1",{class:"paper-page-title"},"Errors",-1)),n("div",ah,[n("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=o=>e.exportCsv())},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export CSV",-1)])]),n("button",{class:"btn btn-sm btn-danger",type:"button",onClick:t[1]||(t[1]=o=>e.clearAll())},[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Clear all",-1)])])])]),t[33]||(t[33]=pe('',1)),n("section",lh,[n("div",dh,[t[11]||(t[11]=n("div",{class:"kpi-label"},"Last 24h",-1)),n("div",uh,u(e.stats?.last24h),1),n("div",{class:A(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",ch,u(e.stats?.delta>0?"+":"")+u(e.stats?.delta)+"% vs yesterday",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(l(),d("span",ph,"no prior baseline"))],2)]),n("div",fh,[t[12]||(t[12]=n("div",{class:"kpi-label"},"Errors (5xx)",-1)),n("div",hh,u(e.stats?.severity?.error),1),n("div",mh,u(e.stats?.unique?.error)+" unique",1)]),n("div",vh,[t[13]||(t[13]=n("div",{class:"kpi-label"},"Warnings (4xx)",-1)),n("div",gh,u(e.stats?.severity?.warn),1),n("div",yh,u(e.stats?.unique?.warn)+" unique",1)]),n("div",bh,[t[14]||(t[14]=n("div",{class:"kpi-label"},"Info (auth, 404)",-1)),n("div",wh,u(e.stats?.severity?.info),1),n("div",kh,u(e.stats?.unique?.info)+" unique",1)]),n("div",{class:A(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=n("div",{class:"kpi-label"},"Captured",-1)),n("div",Eh,u(e.total),1),n("div",Ch,[y(" cap "+u(e.cap)+" \xB7 "+u(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",_h," \xB7 "+u(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)]),n("section",Sh,[t[16]||(t[16]=pe('
Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),n("div",Nh,[(l(!0),d(G,null,ee(e.stats?.buckets,(o,r)=>(l(),d("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:$e({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:$e({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:$e({height:e.barPx(o,"info")+"px"})},null,4)],8,Dh))),128))])]),N((l(),d("form",Rh,[n("div",Th,[n("button",{type:"button",class:A({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=o=>e.setBucket(""))},"All",2),n("button",{type:"button",class:A({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=o=>e.setBucket("error"))},"5xx",2),n("button",{type:"button",class:A({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=o=>e.setBucket("warn"))},"4xx",2),n("button",{type:"button",class:A({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=o=>e.setBucket("info"))},"Info",2)]),n("div",Ah,[t[17]||(t[17]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),N(n("input",Oh,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",Ph,u(e.parsedFilterCount)+" filter"+u(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),n("div",Ih,[t[19]||(t[19]=n("label",null,"Sort",-1)),N((l(),d("select",Vh,[...t[18]||(t[18]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",qh,[t[21]||(t[21]=n("label",null,"Group",-1)),N((l(),d("select",Mh,[...t[20]||(t[20]=[n("option",{value:""},"Off",-1),n("option",{value:"code"},"By code",-1),n("option",{value:"module"},"By module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",$h,[N(n("input",Lh,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=y(" Auto-refresh ",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=o=>e.refreshNow()),"aria-label":"Refresh"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])),[[i,e.viewState]]),e.visible?.length?f("v-if",!0):(l(),d("div",Uh,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",Fh,[n("span",null,"Showing "+u(e.entries?.length)+" of "+u(e.total)+" captured",1),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>e.loadMore())},"Load older")])):f("v-if",!0),e.visible?.length?(l(),d("div",Bh,[t[31]||(t[31]=pe('
WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(G,null,ee(e.visible,(o,r)=>(l(),d("div",{class:A(["errors-row",{open:e.expanded[o?._key]}]),key:o?._key},[n("div",{class:"errors-row-main",onClick:a=>e.toggle(o)},[n("div",Hh,[n("div",jh,u(e.relTime(o?.ts)),1),n("div",Gh,u(e.absTimeShort(o?.ts)),1)]),n("div",Wh,[n("span",{class:A(["sev-dot","sev-"+o?._bucket])},null,2),n("span",Kh,u(e.fmt?.uppercase(o?._bucket)),1)]),n("div",Yh,[n("span",Qh,u(o?.module),1)]),n("div",Jh,[n("strong",Xh,u(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(l(),d("span",Zh,u(o?.displayContext),1)):f("v-if",!0),o?._detail?(l(),d("span",xh,u(o?._detail),1)):f("v-if",!0),o?._url?(l(),d("div",em,u(o?._url),1)):f("v-if",!0)]),n("div",tm,[o?.count>1?(l(),d("span",nm,"\xD7"+u(o?.count),1)):f("v-if",!0),o?.count===1?(l(),d("span",om,"\xD71")):f("v-if",!0)]),n("div",sm,[o?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+o?._bucket])},u(o?._status),3)):f("v-if",!0)])],8,zh),e.expanded[o?._key]?(l(),d("div",im,[n("div",rm,[n("button",{type:"button",class:A({active:e.detailTab[o?._key]==="raw"||!e.detailTab[o?._key]}),onClick:a=>e.detailTab[o._key]="raw"},"Raw",10,am),o?._stack?(l(),d("button",{key:0,type:"button",class:A({active:e.detailTab[o?._key]==="stack"}),onClick:a=>e.detailTab[o._key]="stack"},"Stack",10,lm)):f("v-if",!0),o?.count>1?(l(),d("button",{key:1,type:"button",class:A({active:e.detailTab[o?._key]==="related"}),onClick:a=>e.detailTab[o._key]="related"},"Related ("+u(o?.count)+")",11,dm)):f("v-if",!0)]),n("div",um,[n("div",cm,[(e.detailTab[o?._key]||"raw")==="raw"?(l(),d("pre",pm,u(o?._detailJson),1)):f("v-if",!0),e.detailTab[o?._key]==="stack"?(l(),d("pre",fm,u(o?._stack),1)):f("v-if",!0),e.detailTab[o?._key]==="related"?(l(),d("div",hm,[(l(!0),d(G,null,ee(o?._related,(a,c)=>(l(),d("div",{class:"related-row",key:c},[n("span",mm,u(e.absTimeShort(a?.ts)),1),n("span",vm,u(a?._url),1),a?._status?(l(),d("span",{key:0,class:A(["status-pill","status-"+a?._bucket])},u(a?._status),3)):f("v-if",!0)]))),128))])):f("v-if",!0),n("div",gm,[n("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(o)},[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Copy curl",-1)])],8,ym),n("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(o)},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),y(" Copy JSON",-1)])],8,bm),e.copyHint?(l(),d("span",wm,u(e.copyHint),1)):f("v-if",!0)])]),n("aside",km,[n("div",Em,[t[26]||(t[26]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},u(e.relTime(o?._firstSeen)),9,Cm)]),n("div",_m,[t[27]||(t[27]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},u(e.relTime(o?.ts)),9,Sm)]),n("div",Nm,[t[28]||(t[28]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",Dm,[y(u(o?.count),1),o?._lastHourCount?(l(),d("span",Rm," \xB7 "+u(o?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),o?._repoId?(l(),d("div",Tm,[t[29]||(t[29]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},u(o?._repoId),9,Am)])):f("v-if",!0),o?._url?(l(),d("div",Om,[t[30]||(t[30]=n("div",{class:"aside-label"},"URL",-1)),n("div",Pm,u(o?._url),1)])):f("v-if",!0)])])])):f("v-if",!0)],2))),128))])):f("v-if",!0)])}var Im={class:"container paper-page admin-page overview-page"},Vm={key:0,class:"admin-empty"},qm={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},Mm={key:2},$m={class:"ov-kpi-row"},Lm={class:"ov-kpi-card"},Um={class:"ov-kpi-value"},Fm={class:"ov-kpi-sub"},Bm={class:"ov-kpi-card"},zm={class:"ov-kpi-sub"},Hm={class:"ov-kpi-card"},jm={class:"ov-kpi-sub"},Gm={class:"ov-kpi-card"},Wm={class:"ov-kpi-sub"},Km={class:"ov-kpi-card"},Ym={class:"ov-kpi-value"},Qm={class:"ov-kpi-sub"},Jm={class:"ov-daily-row"},Xm={class:"ov-daily-card"},Zm={class:"ov-daily-value"},xm={class:"ov-daily-card"},ev={class:"ov-daily-value"},tv={class:"ov-daily-sub"},nv={class:"ov-daily-card"},ov={class:"ov-daily-value"},sv={class:"ov-chart-row"},iv={class:"ov-chart-card"},rv={key:0,class:"ov-spark-bars"},av=["data-tip","aria-label"],lv={key:1,class:"ov-spark-x"},dv={class:"ov-chart-card"},uv={key:0,class:"ov-spark-bars"},cv=["data-tip","aria-label"],pv={key:1,class:"ov-spark-x"},fv={class:"ov-chart-card"},hv={key:0,class:"ov-spark-bars"},mv=["data-tip","aria-label"],vv={key:1,class:"ov-spark-x"},gv={class:"ov-chart-card"},yv={key:0,class:"ov-spark-bars"},bv=["data-tip","aria-label"],wv={key:1,class:"ov-spark-x"},kv={class:"ov-triple-row"},Ev={class:"ov-panel-card"},Cv={class:"ov-panel-head"},_v={class:"ov-panel-meta"},Sv={class:"ov-stacked-bar"},Nv={class:"ov-bar-legend"},Dv={href:"/admin/repositories",class:"ov-legend-item"},Rv={class:"ov-legend-n"},Tv={href:"/admin/repositories",class:"ov-legend-item"},Av={class:"ov-legend-n"},Ov={href:"/admin/repositories",class:"ov-legend-item"},Pv={class:"ov-legend-n"},Iv={href:"/admin/repositories",class:"ov-legend-item"},Vv={class:"ov-legend-n"},qv={href:"/admin/repositories",class:"ov-legend-item"},Mv={class:"ov-legend-n"},$v={class:"ov-panel-card"},Lv={class:"ov-panel-head"},Uv={class:"ov-panel-meta"},Fv={class:"ov-error-bars"},Bv={class:"ov-ebar-row"},zv={class:"ov-ebar-track"},Hv={class:"ov-ebar-n"},jv={class:"ov-ebar-row"},Gv={class:"ov-ebar-track"},Wv={class:"ov-ebar-n"},Kv={class:"ov-ebar-row"},Yv={class:"ov-ebar-track"},Qv={class:"ov-ebar-n"},Jv={key:0,class:"ov-panel-foot"},Xv={href:"/admin/errors"},Zv={class:"ov-panel-card"},xv={class:"ov-routes-table"},eg={class:"ov-route-row",href:"/admin/queues"},tg={class:"ov-route-n"},ng={class:"ov-route-n"},og={class:"ov-route-row",href:"/admin/queues"},sg={class:"ov-route-n"},ig={class:"ov-route-n"},rg={class:"ov-route-row",href:"/admin/queues"},ag={class:"ov-route-n"},lg={class:"ov-route-n"},dg={class:"ov-services-card"},ug={class:"ov-services-head"},cg={class:"ov-panel-meta"},pg={class:"ov-services-grid"},fg={class:"ov-svc"},hg={class:"ov-svc-info"},mg={class:"ov-svc-meta"},vg={class:"ov-svc-detail"},gg={class:"ov-svc"},yg={class:"ov-svc-info"},bg={key:0,class:"ov-svc-meta"},wg={key:1,class:"ov-svc-meta"},kg={class:"ov-svc"},Eg={class:"ov-svc-info"},Cg={key:0,class:"ov-svc-meta"},_g={key:1,class:"ov-svc-meta"},Sg={class:"ov-svc"},Ng={class:"ov-svc-info"},Dg={key:0,class:"ov-svc-meta"},Rg={key:1,class:"ov-svc-meta"},Tg={class:"ov-svc"},Ag={class:"ov-svc-info"},Og={class:"ov-svc-meta"},Pg={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},Ig={class:"ov-panel-head ov-performance-head"},Vg={class:"ov-performance-window"},qg={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},Mg={key:1,class:"ov-performance-empty",role:"status"},$g={key:2},Lg={class:"paper-tabs ov-performance-tabs",role:"tablist","aria-label":"Performance metrics"},Ug=["aria-selected","tabindex"],Fg=["aria-selected","tabindex"],Bg=["aria-selected","tabindex"],zg={id:"performance-routes",role:"tabpanel","aria-labelledby":"performance-routes-tab"},Hg={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},jg={class:"ov-metrics-table"},Gg={scope:"row",class:"ov-metric-name"},Wg={class:"num"},Kg={class:"num"},Yg={class:"num"},Qg={class:"num"},Jg={class:"num"},Xg={key:1,class:"ov-performance-empty"},Zg={id:"performance-processes",role:"tabpanel","aria-labelledby":"performance-processes-tab"},xg={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},ey={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},ty={class:"ov-metrics-table"},ny={scope:"row",class:"ov-metric-name"},oy={key:0,class:"ov-metric-warn"},sy={class:"num"},iy={class:"num"},ry={class:"num"},ay={class:"num"},ly={class:"num"},dy={class:"num"},uy={class:"num"},cy={class:"num"},py={id:"performance-stages",role:"tabpanel","aria-labelledby":"performance-stages-tab"},fy={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},hy={class:"ov-metrics-table"},my={scope:"row",class:"ov-metric-name"},vy={class:"num"},gy={class:"num"},yy={class:"num"},by={key:1,class:"ov-performance-empty"};function ml(e,t){return l(),d("div",Im,[t[64]||(t[64]=pe('
Admin \xB7 System Health

Overview

',3)),e.loading?(l(),d("div",Vm,"Loading overview\u2026")):f("v-if",!0),e.error?(l(),d("div",qm,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.error),1)])):f("v-if",!0),e.data?(l(),d("div",Mm,[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",$m,[n("div",Lm,[t[10]||(t[10]=n("div",{class:"ov-kpi-label"},[y("Repositories "),n("span",{class:"ov-dot ov-dot-ok"})],-1)),n("div",Um,u(e.humanNum(e.data?.repos?.total)),1),n("div",Fm,"+"+u(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),n("div",Bm,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},u(e.data?.system?.cpuPercent)+"%",3),n("div",zm,u(e.data?.system?.cpuCount)+" cores \xB7 load "+u(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),n("div",Hm,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},u(e.data?.system?.memPercent)+"%",3),n("div",jm,u(e.humanBytes(e.data?.system?.memUsed))+" / "+u(e.humanBytes(e.data?.system?.memTotal)),1)]),n("div",Gm,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:A(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},u(e.data?.system?.diskPercent)+"%",3),n("div",Wm,u(e.humanBytes(e.data?.system?.diskUsed))+" / "+u(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+u(e.data?.system?.diskMount),1)]),n("div",Km,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",Ym,u(e.humanDuration(e.data?.system?.uptime)),1),n("div",Qm,u(e.data?.system?.nodeVersion)+" \xB7 "+u(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",Jm,[n("div",Xm,[t[15]||(t[15]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",Zm,"+"+u(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[16]||(t[16]=n("div",{class:"ov-daily-sub"},"since yesterday",-1))]),n("div",xm,[t[17]||(t[17]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",ev,"+"+u(e.fmt?.number(e.data?.daily?.today?.users)),1),n("div",tv,u(e.fmt?.number(e.data?.users?.total))+" total users",1)]),n("div",nv,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",ov,"+"+u(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[19]||(t[19]=n("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),f(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",sv,[n("div",iv,[t[20]||(t[20]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-accent"}),y("views/day")])],-1)),e.data?.history?.length?(l(),d("div",rv,[(l(!0),d(G,null,ee(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+" views"},[n("span",{class:"ov-spark-fill",style:$e({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],8,av))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",lv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",dv,[t[21]||(t[21]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"New repos \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-ok-fill"}),y("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",uv,[(l(!0),d(G,null,ee(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+" repos"},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:$e({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],8,cv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",pv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",fv,[t[22]||(t[22]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"Users \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-user-fill"}),y("total users")])],-1)),e.data?.history?.length?(l(),d("div",hv,[(l(!0),d(G,null,ee(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users","aria-label":e.historyLabel(s)+": "+e.fmt?.number(s?.nbUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-user",style:$e({height:e.historyBarH(s,"nbUsers")+"px"})},null,4)],8,mv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",vv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",gv,[t[23]||(t[23]=n("div",{class:"ov-chart-head"},[n("span",{class:"ov-chart-title"},"New users \xB7 30d"),n("span",{class:"ov-chart-legend"},[n("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),y("users/day")])],-1)),e.data?.history?.length?(l(),d("div",yv,[(l(!0),d(G,null,ee(e.data?.history,(s,i)=>(l(),d("div",{class:"ov-spark-col has-tip",key:i,"data-tip":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users","aria-label":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+" users"},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:$e({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],8,bv))),128))])):f("v-if",!0),e.data?.history?.length?(l(),d("div",wv,[n("span",null,u(e.historyLabel(e.data?.history[0])),1),n("span",null,u(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,u(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])]),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",kv,[f(" Repo status breakdown "),n("div",Ev,[n("div",Cv,[t[24]||(t[24]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",_v,u(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",Sv,[n("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:$e({width:e.barPct("ready")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:$e({width:e.barPct("preparing")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:$e({width:e.barPct("error")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:$e({width:e.barPct("expired")+"%"})},null,4),n("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:$e({width:e.barPct("removed")+"%"})},null,4)]),n("div",Nv,[n("a",Dv,[t[25]||(t[25]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[26]||(t[26]=y(" ready ",-1)),n("span",Rv,u(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",Tv,[t[27]||(t[27]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[28]||(t[28]=y(" preparing ",-1)),n("span",Av,u(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",Ov,[t[29]||(t[29]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[30]||(t[30]=y(" error ",-1)),n("span",Pv,u(e.fmt?.number(e.statusCount("error"))),1)]),n("a",Iv,[t[31]||(t[31]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[32]||(t[32]=y(" expired ",-1)),n("span",Vv,u(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",qv,[t[33]||(t[33]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[34]||(t[34]=y(" removed ",-1)),n("span",Mv,u(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",$v,[n("div",Lv,[t[35]||(t[35]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",Uv,u(e.data?.errors?.last24h)+" total",1)]),n("div",Fv,[n("div",Bv,[t[36]||(t[36]=n("span",{class:"ov-ebar-label"},"5xx",-1)),n("span",zv,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:$e({width:e.errPct("error")+"%"})},null,4)]),n("span",Hv,u(e.data?.errors?.severity?.error),1)]),n("div",jv,[t[37]||(t[37]=n("span",{class:"ov-ebar-label"},"4xx",-1)),n("span",Gv,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:$e({width:e.errPct("warn")+"%"})},null,4)]),n("span",Wv,u(e.data?.errors?.severity?.warn),1)]),n("div",Kv,[t[38]||(t[38]=n("span",{class:"ov-ebar-label"},"Info",-1)),n("span",Yv,[n("span",{class:"ov-ebar-fill ov-ebar-info",style:$e({width:e.errPct("info")+"%"})},null,4)]),n("span",Qv,u(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Jv,[n("a",Xv,u(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",Zv,[t[43]||(t[43]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",xv,[t[42]||(t[42]=pe('
QueueActiveWaitFailed
',1)),n("a",eg,[t[39]||(t[39]=n("span",{class:"ov-route-name"},"download",-1)),n("span",tg,u(e.data?.queues?.download?.active),1),n("span",ng,u(e.data?.queues?.download?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},u(e.data?.queues?.download?.failed),3)]),n("a",og,[t[40]||(t[40]=n("span",{class:"ov-route-name"},"remove",-1)),n("span",sg,u(e.data?.queues?.remove?.active),1),n("span",ig,u(e.data?.queues?.remove?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},u(e.data?.queues?.remove?.failed),3)]),n("a",rg,[t[41]||(t[41]=n("span",{class:"ov-route-name"},"cache",-1)),n("span",ag,u(e.data?.queues?.cache?.active),1),n("span",lg,u(e.data?.queues?.cache?.waiting),1),n("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},u(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",dg,[n("div",ug,[t[44]||(t[44]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",cg,u(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+u(e.data?.conferences?.total)+" conferences",1)]),n("div",pg,[n("div",fg,[t[46]||(t[46]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",hg,[t[45]||(t[45]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",mg,u(e.data?.system?.nodeVersion),1)]),n("span",vg,"uptime "+u(e.humanDuration(e.data?.system?.uptime)),1)]),n("div",gg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",yg,[t[47]||(t[47]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",bg,u(e.queueTotal(e.data?.queues?.download))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(l(),d("span",wg,"idle"))])]),n("div",kg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Eg,[t[48]||(t[48]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Cg,u(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(l(),d("span",_g,"idle"))])]),n("div",Sg,[n("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",Ng,[t[49]||(t[49]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Dg,u(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(l(),d("span",Rg,"idle"))])]),n("div",Tg,[n("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),n("div",Ag,[t[50]||(t[50]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",Og,u(e.data?.errors?.last24h)+" / 24h",1)])])])])])):f("v-if",!0),n("section",Pg,[n("div",Ig,[t[53]||(t[53]=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 \xB7 refreshes every 30 seconds")],-1)),n("div",Vg,[t[52]||(t[52]=n("label",{for:"performance-window"},"Time range",-1)),N(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.performanceMinutes=s),onChange:t[1]||(t[1]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[51]||(t[51]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Jo,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",qg,[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,u(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Mg,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(l(),d("div",$g,[n("div",Lg,[n("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[3]||(t[3]=s=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=s=>e.previewTabKeydown(s))},"Routes",42,Ug),n("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[5]||(t[5]=s=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=s=>e.previewTabKeydown(s))},"Processes",42,Fg),n("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[7]||(t[7]=s=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=s=>e.previewTabKeydown(s))},"Work stages",42,Bg)]),N(n("div",zg,[e.performance.routes?.length?(l(),d("div",Hg,[n("table",jg,[t[55]||(t[55]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[56]||(t[56]=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,[(l(!0),d(G,null,ee(e.performance.routes,s=>(l(),d("tr",{key:s.service+s.method+s.route},[n("th",Gg,[n("span",null,u(s.route),1),n("small",null,u(s.service)+" \xB7 "+u(s.method),1)]),n("td",Wg,u(e.fmt.number(s.count)),1),n("td",Kg,u(s.avgMs)+" ms",1),n("td",Yg,u(e.firstByteBound(s)),1),n("td",Qg,u(e.latencyBound(s,"p95UpperMs")),1),n("td",Jg,u(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:A(["num",{"ov-metric-warn":s.aborted>0}])},u(e.fmt.number(s.aborted)),3),n("td",{class:A(["num",{"ov-metric-warn":s.errors>0}])},u(e.fmt.number(s.errors)),3),n("td",{class:A(["num",{"ov-metric-warn":s.slow>0}])},u(e.fmt.number(s.slow)),3)]))),128))])])])):(l(),d("p",Xg,"No recorded requests in this time range yet."))],512),[[j,e.performanceTab==="routes"]]),N(n("div",Zg,[t[60]||(t[60]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",ey,[n("table",ty,[t[58]||(t[58]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[59]||(t[59]=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,[(l(!0),d(G,null,ee(e.performance.instances,s=>(l(),d("tr",{key:s.instance,class:A({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",ny,[n("span",null,u(s.instance),1),e.performanceWarning(s)?(l(),d("small",oy,[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" Needs attention",-1)])])):f("v-if",!0)]),n("td",sy,[y(u(e.humanBytes(s.memory.rss))+" / "+u(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+u(e.humanBytes(e.peakRss(s))),1)]),n("td",iy,u(s.cpuPercent.toFixed(1))+"%",1),n("td",ry,u(s.eventLoop.p95Ms.toFixed(1))+" ms",1),n("td",ay,u(s.activeRequests),1),n("td",ly,u(s.sockets?.descriptors??"Unavailable")+" / "+u(s.sockets?.closeWait??"Unavailable"),1),n("td",dy,u(s.workers?.running??0)+" / "+u(s.workers?.waiting??0),1),n("td",uy,u(e.sampleAge(s))+" s",1),n("td",cy,u(s.droppedBatches)+" / "+u(s.droppedMetrics),1)],2))),128))])])])):(l(),d("div",xg,"No recent process samples. Monitoring coverage is incomplete."))],512),[[j,e.performanceTab==="processes"]]),N(n("div",py,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(l(),d("div",fy,[n("table",hy,[t[61]||(t[61]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[62]||(t[62]=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,[(l(!0),d(G,null,ee(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(l(),d("tr",{key:s.service+s.metric},[n("th",my,[n("span",null,u(s.metric),1),n("small",null,u(s.service),1)]),n("td",vy,u(e.fmt.number(s.count)),1),n("td",gy,u(s.avgMs)+" ms",1),n("td",yy,u(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",by,"No recorded work stages or cache results in this time range yet."))],512),[[j,e.performanceTab==="stages"]]),t[63]||(t[63]=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)])])}var wy={class:"container paper-page admin-page"},ky={class:"q-header"},Ey={class:"q-header-actions"},Cy={class:"q-range-btns"},_y={class:"q-cards"},Sy=["aria-pressed","onKeydown","onClick"],Ny={class:"q-card-head"},Dy=["textContent"],Ry=["textContent"],Ty={class:"q-card-sub"},Ay={key:0,class:"q-card-bar"},Oy={key:0,class:"q-detail"},Py={class:"q-throughput"},Iy={class:"q-section-label"},Vy={class:"q-section-right"},qy={class:"q-stats-panel"},My={class:"q-section-label"},$y={class:"q-stats-grid"},Ly={class:"q-stat"},Uy=["textContent"],Fy={class:"q-stat"},By=["textContent"],zy={class:"q-stat"},Hy=["textContent"],jy={class:"q-stat"},Gy=["textContent"],Wy={class:"q-stat"},Ky=["textContent"],Yy={class:"q-stat"},Qy=["textContent"],Jy={class:"q-stats-actions"},Xy=["disabled"],Zy={class:"q-jobs"},xy={class:"q-jobs-header"},eb={class:"q-section-label"},tb={class:"q-state-filters"},ob={class:"q-state-toggle"},sb={type:"checkbox"},ib={class:"q-search-row"},rb={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},ab={class:"q-auto-refresh"},lb={type:"checkbox"},db={key:0,class:"q-table"},ub=["onClick"],cb={class:"q-cell-state"},pb=["textContent"],fb=["textContent"],hb={class:"q-cell-id"},mb=["textContent","href"],vb={class:"q-cell-payload"},gb=["textContent"],yb={key:0,class:"q-payload-detail"},bb=["textContent"],wb=["textContent"],kb={class:"q-cell-progress"},Eb={key:0,class:"q-progress-wrap"},Cb=["textContent"],_b={class:"q-cell-actions"},Sb=["onClick"],Nb=["onClick"],Db={key:0,class:"q-detail-row"},Rb={colspan:"7"},Tb={class:"q-job-detail"},Ab={class:"q-job-detail-grid"},Ob={class:"q-job-detail-item"},Pb={class:"q-job-detail-value"},Ib=["textContent","href"],Vb={class:"q-job-detail-item"},qb={class:"q-job-detail-value"},Mb=["textContent"],$b={key:0,class:"q-job-detail-item"},Lb=["textContent"],Ub={key:1,class:"q-job-detail-item"},Fb=["textContent"],Bb={key:2,class:"q-job-detail-item"},zb={class:"q-job-detail-value"},Hb={key:3,class:"q-job-detail-item"},jb=["textContent"],Gb={key:4,class:"q-job-detail-item"},Wb=["textContent"],Kb={key:5,class:"q-job-detail-item"},Yb=["textContent"],Qb={key:6,class:"q-job-detail-item"},Jb=["textContent"],Xb={key:7,class:"q-job-detail-item"},Zb=["textContent"],xb={key:0,class:"q-job-detail-error"},e1=["textContent"],t1={key:1},n1=["textContent"],o1={class:"q-job-detail-actions"},s1=["onClick"],i1=["onClick"],r1=["href"],a1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},l1={key:0},d1={key:1};function vl(e,t){let s=ye("field");return l(),d("div",wy,[t[48]||(t[48]=n("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",ky,[t[12]||(t[12]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",Ey,[n("div",Cy,[n("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=i=>e.setRange("1h"))},"1h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=i=>e.setRange("6h"))},"6h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=i=>e.setRange("24h"))},"24h",2),n("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=i=>e.setRange("7d"))},"7d",2)]),n("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=i=>e.pauseAll())},"Pause all"),n("button",{class:"btn btn-sm btn-dark",onClick:t[5]||(t[5]=i=>e.drainSelected())},"Drain "+u(e.selectedQueue),1)])]),t[49]||(t[49]=pe('',1)),f(" Queue overview cards "),n("div",_y,[(l(!0),d(G,null,ee(e.queueList,(i,o)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[Rn(ce(r=>e.selectQueue(i.key),["prevent"]),["enter"]),Rn(ce(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",Ny,[n("span",{class:A(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0}])},null,2),n("span",{class:"q-card-name",textContent:u(i?.label)},null,8,Dy)]),n("div",{class:"q-card-count",textContent:u((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,Ry),n("div",Ty,[n("span",null,"waiting \xB7 "+u(i?.counts?.active||0)+" active",1),i?.counts?.active?(l(),d("div",Ay,[n("div",{class:"q-card-bar-fill",style:$e({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,Sy))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Oy,[n("div",Py,[n("div",Iy,[y(u(e.selectedQueue)+"\xB7throughput ",1),n("span",Vy,[t[13]||(t[13]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=y(" completed ",-1)),t[15]||(t[15]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=y(" failed ",-1)),t[17]||(t[17]=n("span",{class:"q-legend-exec"},"- -",-1)),y(" avg time \xB7 "+u(e.fmt?.uppercase(e.range)),1)])]),t[18]||(t[18]=n("div",{class:"q-chart-wrap"},[n("canvas",{id:"q-throughput-chart",height:"180"}),n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),n("div",qy,[n("div",My,u(e.selectedQueue)+"\xB7stats",1),n("div",$y,[n("div",Ly,[t[19]||(t[19]=n("div",{class:"q-stat-label"},"WAITING",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.waiting||0)},null,8,Uy)]),n("div",Fy,[t[20]||(t[20]=n("div",{class:"q-stat-label"},"ACTIVE",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.active||0)},null,8,By)]),n("div",zy,[t[21]||(t[21]=n("div",{class:"q-stat-label"},"COMPLETED (24H)",-1)),n("div",{class:"q-stat-value",textContent:u(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Hy)]),n("div",jy,[t[22]||(t[22]=n("div",{class:"q-stat-label"},"FAILED (24H)",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.failed24h||0)},null,8,Gy)]),n("div",Wy,[t[23]||(t[23]=n("div",{class:"q-stat-label"},"DELAYED",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.counts?.delayed||0)},null,8,Ky)]),n("div",Yy,[t[24]||(t[24]=n("div",{class:"q-stat-label"},"WORKERS",-1)),n("div",{class:"q-stat-value",textContent:u(e.selectedStats?.workers||0)},null,8,Qy)])]),n("div",Jy,[n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.togglePause())},u(e.selectedStats?.paused?"Resume":"Pause"),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Xy),n("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])):f("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[25]||(t[25]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),y(" "+u(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",Zy,[n("div",xy,[n("div",eb,"ALL JOBS \xB7 "+u(e.fmt?.uppercase(e.selectedQueue)),1),n("div",tb,[(l(!0),d(G,null,ee(e.allStates,(i,o)=>(l(),d("label",ob,[N(n("input",sb,null,512),[[s,{state:e.viewState,set:r=>{e.stateFilter[i]=r},value:e.stateFilter[i],form:null,options:{}}]]),n("span",{class:A("q-state-chip q-state-"+i)},u(i),3)]))),256))])]),n("div",ib,[N(n("input",rb,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",ab,[N(n("input",lb,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=y(" Auto-refresh ",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",db,[t[46]||(t[46]=n("thead",null,[n("tr",null,[n("th",null,"STATE"),n("th",null,"JOB ID"),n("th",null,"PAYLOAD"),n("th",null,"ATTEMPTS"),n("th",null,"DURATION"),n("th",null,"PROGRESS"),n("th")])],-1)),(l(!0),d(G,null,ee(e.filteredJobs(),(i,o)=>(l(),d("tbody",null,[n("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",cb,[n("span",{textContent:u(i?._state),class:A("q-state-badge q-state-"+i?._state)},null,10,pb),i?._state=="delayed"&&i?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:u(e.delayCountdown(i?.delayUntil))},null,8,fb)):f("v-if",!0)]),n("td",hb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",textContent:u("job:"+e.fmt.limitTo(i?.id,6)),onClick:t[11]||(t[11]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+i?.id)},null,8,mb)]),n("td",vb,[n("span",{textContent:u(i?.name||"anonymize")},null,8,gb),i?.data?.repoId&&i?.data?.repoId!==i?.name?(l(),d("span",yb," \xB7 "+u(i?.data?.repoId),1)):f("v-if",!0)]),n("td",{class:"q-cell-num",textContent:u(i?.attemptsMade||1)},null,8,bb),n("td",{class:"q-cell-num",textContent:u(e.jobDuration(i))},null,8,wb),n("td",kb,[e.jobProgressPct(i)!==null?(l(),d("div",Eb,[n("div",{class:"q-progress-bar",style:$e({"--pct":e.jobProgressPct(i)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:u(e.jobProgressPct(i)+"%")},null,8,Cb)])):f("v-if",!0)]),n("td",_b,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,Sb)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Nb)])],10,ub),e.expanded[i?.id]?(l(),d("tr",Db,[n("td",Rb,[n("div",Tb,[n("div",Ab,[n("div",Ob,[t[31]||(t[31]=n("span",{class:"q-job-detail-label"},"JOB ID",-1)),n("span",Pb,[n("a",{target:"_blank",textContent:u(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,Ib)])]),n("div",Vb,[t[32]||(t[32]=n("span",{class:"q-job-detail-label"},"STATE",-1)),n("span",qb,[n("span",{textContent:u(i?._state),class:A("q-state-badge q-state-"+i?._state)},null,10,Mb)])]),i?.data?.repoId?(l(),d("div",$b,[t[33]||(t[33]=n("span",{class:"q-job-detail-label"},"REPO ID",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.data?.repoId)},null,8,Lb)])):f("v-if",!0),i?.timestamp?(l(),d("div",Ub,[t[34]||(t[34]=n("span",{class:"q-job-detail-label"},"CREATED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.timestamp))},null,8,Fb)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(l(),d("div",Bb,[t[35]||(t[35]=n("span",{class:"q-job-detail-label"},"RETRY AT",-1)),n("span",zb,u(e.humanTime(i?.delayUntil))+" ("+u(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(l(),d("div",Hb,[t[36]||(t[36]=n("span",{class:"q-job-detail-label"},"PROCESSED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.processedOn))},null,8,jb)])):f("v-if",!0),i?.finishedOn?(l(),d("div",Gb,[t[37]||(t[37]=n("span",{class:"q-job-detail-label"},"FINISHED",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.humanTime(i?.finishedOn))},null,8,Wb)])):f("v-if",!0),i?.attemptsMade?(l(),d("div",Kb,[t[38]||(t[38]=n("span",{class:"q-job-detail-label"},"ATTEMPTS",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.attemptsMade)},null,8,Yb)])):f("v-if",!0),i?.progress&&i?.progress?.status?(l(),d("div",Qb,[t[39]||(t[39]=n("span",{class:"q-job-detail-label"},"STATUS",-1)),n("span",{class:"q-job-detail-value",textContent:u(i?.progress?.status)},null,8,Jb)])):f("v-if",!0),e.jobProgressPct(i)!==null?(l(),d("div",Xb,[t[40]||(t[40]=n("span",{class:"q-job-detail-label"},"PROGRESS",-1)),n("span",{class:"q-job-detail-value",textContent:u(e.jobProgressPct(i)+"%")},null,8,Zb)])):f("v-if",!0)]),i?.failedReason?(l(),d("div",xb,[t[41]||(t[41]=n("span",{class:"q-job-detail-label"},"ERROR",-1)),n("div",{class:"q-error-reason",textContent:u(i?.failedReason)},null,8,e1)])):f("v-if",!0),i?.stacktrace?.length?(l(),d("div",t1,[t[42]||(t[42]=n("span",{class:"q-job-detail-label"},"STACKTRACE",-1)),(l(!0),d(G,null,ee(i?.stacktrace,(r,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[n("code",{textContent:u(r)},null,8,n1)]))),128))])):f("v-if",!0),n("div",o1,[i?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Retry",-1)])],8,s1)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,i1),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),y(" View repo",-1)])],8,r1)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(l(),d("div",a1,[t[47]||(t[47]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(l(),d("span",l1,"No jobs in the "+u(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",d1,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var u1={class:"container paper-page admin-page"},c1={class:"admin-summary"},p1={class:"summary-total"},f1={class:"summary-meta"},h1=["aria-pressed"],m1={class:"count"},v1=["aria-pressed"],g1={class:"count"},y1=["aria-pressed"],b1={class:"count"},w1=["aria-pressed"],k1={class:"count"},E1=["aria-pressed"],C1={class:"count"},_1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},S1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},N1={class:"admin-filter-row"},D1={class:"search-wrap"},R1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},T1={key:0,class:"admin-search-hint"},A1={class:"admin-filter-inline"},O1={type:"text",class:"form-control form-control-sm",placeholder:"username"},P1={class:"admin-filter-inline"},I1={type:"text",class:"form-control form-control-sm",placeholder:"ID"},V1={class:"admin-filter-inline","aria-label":"Pagination"},q1=["disabled"],M1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$1=["disabled"],L1={key:0,class:"admin-filter-row"},U1={class:"admin-active-chips"},F1={class:"key"},B1=["onClick"],z1={key:1,class:"bulk-bar"},H1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},j1={class:"paper-table-head",role:"row"},G1={role:"columnheader",style:{width:"28px"}},W1=["checked"],K1={role:"columnheader"},Y1={role:"columnheader"},Q1={role:"columnheader",class:"num"},J1={role:"columnheader"},X1={role:"cell",style:{width:"28px"}},Z1={type:"checkbox","aria-label":"Select repository"},x1={class:"cell-anon",role:"cell"},ew={class:"anon-text"},tw=["textContent","href"],nw={class:"anon-sub"},ow=["textContent","href"],sw={key:0},iw=["textContent","href"],rw={key:1},aw=["textContent","href"],lw={key:2},dw={class:"cell-status",role:"cell"},uw={class:"status-line"},cw=["textContent"],pw=["textContent","title"],fw={class:"cell-views num",role:"cell"},hw=["textContent"],mw={class:"cell-expires",role:"cell"},vw=["textContent"],gw={class:"cell-actions",role:"cell"},yw={class:"dropdown"},bw={class:"dropdown-menu dropdown-menu-right"},ww=["href"],kw=["href"],Ew=["href"],Cw=["onClick"],_w=["onClick"],Sw=["onClick"],Nw=["onClick"],Dw=["onClick"],Rw=["onClick"],Tw={key:0,class:"paper-table-empty"},Aw={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Ow={style:{"font-size":"12px",color:"var(--ink-muted)"}},Pw={key:0,class:"pagination-compact"},Iw=["disabled"],Vw=["max"],qw=["disabled"],Mw={class:"admin-filter-inline"},$w={class:"form-control form-control-sm"};function gl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",u1,[t[69]||(t[69]=pe('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",c1,[n("span",p1,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("span",f1,u(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=o=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=y("Ready ",-1)),n("span",m1,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,h1),n("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=o=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=y("Preparing ",-1)),n("span",g1,u(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,v1),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=o=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=y("Errored ",-1)),n("span",b1,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,y1),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=o=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=y("Expired ",-1)),n("span",k1,u(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,w1),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=o=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=y("Removed ",-1)),n("span",C1,u(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,E1)]),e.fetchError?(l(),d("div",_1,[t[23]||(t[23]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",S1,[f(" Row 1: search + scoped inputs + headline actions "),n("div",N1,[n("div",D1,[N(n("input",R1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",T1,"/"))]),n("span",A1,[t[24]||(t[24]=n("label",null,"Owner",-1)),N(n("input",O1,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",P1,[t[25]||(t[25]=n("label",null,"Conference",-1)),N(n("input",I1,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=o=>e.exportCsv())},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",V1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,q1),n("span",M1,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$1)])]),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",L1,[n("div",U1,[(l(!0),d(G,null,ee(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",F1,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(o.key)},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,B1)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",z1,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>e.bulkRefresh())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=o=>e.bulkRemoveCache())},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",H1,[n("div",j1,[n("div",G1,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,W1)]),n("div",K1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=o=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=y("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",Y1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=o=>e.sortBy("status"))},[t[37]||(t[37]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",Q1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=o=>e.sortBy("pageView"))},[t[39]||(t[39]=y("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",J1,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=o=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=y("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[42]||(t[42]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(G,null,ee(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["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",X1,[N(n("input",Z1,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.repoId]=a},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",x1,[t[47]||(t[47]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",ew,[n("a",{class:"repo-name",target:"_blank",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,tw),n("div",nw,[n("a",{textContent:u(o?.source?.repositoryName),href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},null,8,ow),o?.options?.update?(l(),d("span",sw,[t[43]||(t[43]=y("\xA0\xB7\xA0",-1)),n("a",{textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,iw)])):f("v-if",!0),o?.options?.update?f("v-if",!0):(l(),d("span",rw,[t[44]||(t[44]=y("\xA0\xB7\xA0@",-1)),n("a",{textContent:u(o?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,aw)])),o?.conference?(l(),d("span",lw,[t[45]||(t[45]=y("\xA0\xB7\xA0",-1)),t[46]||(t[46]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):f("v-if",!0),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.humanFileSize(o?.size?.storage)),1),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.number(o?.options?.terms?.length))+" terms",1)])])]),n("div",dw,[n("span",uw,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,cw)]),o?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,pw)):f("v-if",!0)]),n("div",fw,[t[48]||(t[48]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=y()),n("span",{textContent:u(e.fmt?.number(o?.pageView||0))},null,8,hw)]),n("div",mw,[t[50]||(t[50]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=y()),n("span",{textContent:u(e.fmt?.humanTime(o?.anonymizeDate))},null,8,vw)]),n("div",gw,[n("div",yw,[t[63]||(t[63]=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",bw,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,ww),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View repo",-1)])],8,kw),o?.options?.page&&o?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[54]||(t[54]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" View page",-1)])],8,Ew)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.fetchGithubInfo(o),["prevent"])},[...t[55]||(t[55]=[n("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Cw),t[61]||(t[61]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updateRepository(o),["prevent"])},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update",-1)])],8,_w),[[j,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updateRepository(o),["prevent"])},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable",-1)])],8,Sw),[[j,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.showStatusMessage(o),["prevent"])},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" View status message",-1)])],8,Nw),[[j,o?.statusMessage]]),t[62]||(t[62]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.removeCache(o),["prevent"])},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])],8,Dw),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ce(a=>e.removeRepository(o),["prevent"])},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,Rw),[[j,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Tw,[...t[64]||(t[64]=[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)]),n("div",Aw,[n("span",Ow,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Pw,[n("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous ",-1)])],8,Iw),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,Vw),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[y(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,qw)])):f("v-if",!0),n("span",Mw,[t[68]||(t[68]=n("label",null,"Per page",-1)),N((l(),d("select",$w,[...t[67]||(t[67]=[pe('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var Lw={class:"container paper-page admin-page"},Uw={class:"paper-crumbs"},Fw={class:"here"},Bw={class:"paper-page-title"},zw={key:0,class:"user-detail-card"},Hw={class:"user-header"},jw=["src"],Gw={class:"status-dot-wrap"},Ww=["textContent"],Kw={key:0,class:"type-badge type-repo"},Yw={class:"user-actions",style:{"margin-top":"4px"}},Qw={class:"user-detail-grid"},Jw={class:"detail-value"},Xw={class:"detail-value"},Zw={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},xw={class:"detail-value"},ek=["href"],tk={class:"detail-value"},nk={class:"detail-value"},ok={key:0},sk={key:1,class:"text-muted"},ik={class:"detail-value"},rk={key:0,style:{"margin-top":"20px"}},ak={class:"paper-table w-100",style:{"margin-top":"10px"}},lk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},dk={class:"cell-anon",role:"cell"},uk={class:"anon-text"},ck=["textContent"],pk={class:"cell-expires",role:"cell"},fk={key:1,class:"admin-section-header"},hk={class:"section-count"},mk={key:2,class:"user-detail-card"},vk={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},gk={key:0,class:"alert alert-warning",role:"alert"},yk={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},bk={key:1,class:"paper-table w-100"},wk={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},kk=["textContent"],Ek=["textContent"],Ck={role:"cell"},_k={key:0},Sk={key:1,class:"text-muted"},Nk={role:"cell"},Dk=["onClick"],Rk={key:2,class:"paper-table-empty"},Tk={class:"admin-section-header"},Ak={class:"section-count"},Ok={class:"admin-summary"},Pk={class:"summary-total"},Ik=["aria-pressed"],Vk={class:"count"},qk=["aria-pressed"],Mk={class:"count"},$k=["aria-pressed"],Lk={class:"count"},Uk=["aria-pressed"],Fk={class:"count"},Bk=["aria-pressed"],zk={class:"count"},Hk={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},jk={class:"admin-filter-row"},Gk={class:"search-wrap"},Wk={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Kk={key:3,class:"bulk-bar"},Yk={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Qk={class:"paper-table-head",role:"row"},Jk={role:"columnheader",style:{width:"28px"}},Xk=["checked"],Zk={role:"columnheader"},xk={role:"columnheader"},e0={role:"columnheader",class:"num"},t0={role:"columnheader"},n0={role:"cell",style:{width:"28px"}},o0={type:"checkbox","aria-label":"Select repository"},s0={class:"cell-anon",role:"cell"},i0={class:"anon-text"},r0=["textContent","href"],a0={class:"anon-sub"},l0=["textContent","href"],d0={key:0},u0=["textContent","href"],c0={key:1},p0=["textContent","href"],f0={key:2},h0={class:"cell-status",role:"cell"},m0={class:"status-line"},v0=["textContent"],g0=["textContent","title"],y0=["textContent"],b0=["textContent"],w0={class:"cell-actions",role:"cell"},k0={class:"dropdown"},E0={class:"dropdown-menu dropdown-menu-right"},C0=["href"],_0=["href"],S0=["href"],N0=["onClick"],D0=["onClick"],R0=["onClick"],T0=["onClick"],A0=["onClick"],O0=["onClick"],P0={key:0,class:"paper-table-empty"};function yl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",Lw,[n("div",Uw,[t[22]||(t[22]=n("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),n("span",Fw,u(e.userInfo?.username||"Profile"),1)]),n("h1",Bw,u(e.userInfo?.username||"User"),1),t[85]||(t[85]=pe('',1)),e.userInfo?(l(),d("div",zw,[n("div",Hw,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,jw)):f("v-if",!0),n("div",null,[n("h2",null,[y(u(e.userInfo?.username)+" ",1),n("span",Gw,[n("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),n("span",{textContent:u(e.fmt?.title(e.userInfo?.status))},null,8,Ww)]),e.userInfo?.isAdmin?(l(),d("span",Kw,"Admin")):f("v-if",!0)]),n("div",Yw,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),y(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",Qw,[t[30]||(t[30]=n("div",{class:"detail-label"},"ID",-1)),n("div",Jw,u(e.userInfo?._id),1),t[31]||(t[31]=n("div",{class:"detail-label"},"Email",-1)),n("div",Xw,u(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=n("div",{class:"detail-label"},"Access token",-1)),n("div",Zw,u(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",xw,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=n("i",{class:"fab fa-github"},null,-1)),y(" "+u(e.userInfo?.username),1)],8,ek)]),t[34]||(t[34]=n("div",{class:"detail-label"},"Created",-1)),n("div",tk,u(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",nk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",ok,u(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(l(),d("span",sk,"never"))]),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",ik,[y(u(e.userInfo?.repositories?.length)+" repositories ",1),n("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},u(e.showRepos?"Hide":"Show"),1),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",rk,[t[39]||(t[39]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",ak,[(l(!0),d(G,null,ee(e.userInfo?.repositories,(o,r)=>(l(),d("div",lk,[n("div",dk,[t[37]||(t[37]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",uk,[n("span",{class:"repo-name",textContent:u(o?.name)},null,8,ck)])]),n("div",pk,[t[38]||(t[38]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),y(" "+u(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",fk,[t[40]||(t[40]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),y(" API tokens")],-1)),n("span",hk,u(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",mk,[t[46]||(t[46]=n("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),N((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ce(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[N(n("input",vk,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=n("button",{type:"submit",class:"btn btn-primary"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),y(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",gk,[t[42]||(t[42]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",yk,u(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?(l(),d("div",bk,[t[44]||(t[44]=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)),(l(!0),d(G,null,ee(e.tokens,(o,r)=>(l(),d("div",wk,[n("div",{role:"cell",textContent:u(o?.name)},null,8,kk),n("div",{role:"cell",textContent:u(e.fmt?.humanTime(o?.createdAt))},null,8,Ek),n("div",Ck,[o?.lastUsedAt?(l(),d("span",_k,u(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(l(),d("span",Sk,"never"))]),n("div",Nk,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(o)},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,Dk)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(l(),d("div",Rk,[...t[45]||(t[45]=[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",Tk,[t[47]||(t[47]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),y(" Anonymized repositories")],-1)),n("span",Ak,u(e.repositories?.length),1)]),n("div",Ok,[n("span",Pk,u(e.fmt?.number(e.repositories?.length)),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=o=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[48]||(t[48]=y("Ready ",-1)),n("span",Vk,u(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Ik),n("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=o=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[49]||(t[49]=y("Preparing ",-1)),n("span",Mk,u(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,qk),n("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=o=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[50]||(t[50]=y("Errored ",-1)),n("span",Lk,u(e.fmt?.number(e.statusCountFor("error"))),1)],10,$k),n("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=o=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[51]||(t[51]=y("Expired ",-1)),n("span",Fk,u(e.fmt?.number(e.statusCountFor("expired"))),1)],10,Uk),n("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=o=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[52]||(t[52]=y("Removed ",-1)),n("span",zk,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,Bk)]),N((l(),d("form",Hk,[n("div",jk,[n("div",Gk,[N(n("input",Wk,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=o=>e.exportCsv())},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",Kk,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=o=>e.bulkRefresh())},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRemoveCache())},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",Yk,[n("div",Qk,[n("div",Jk,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,Xk)]),n("div",Zk,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=o=>e.sortBy("source.repositoryName"))},[t[59]||(t[59]=y("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[58]||(t[58]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",xk,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=o=>e.sortBy("status"))},[t[61]||(t[61]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",e0,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=o=>e.sortBy("pageView"))},[t[63]||(t[63]=y("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",t0,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=o=>e.sortBy("anonymizeDate"))},[t[65]||(t[65]=y("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[66]||(t[66]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(G,null,ee(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["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",n0,[N(n("input",o0,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.repoId]=a},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",s0,[t[71]||(t[71]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",i0,[n("a",{class:"repo-name",target:"_blank",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,r0),n("div",a0,[n("a",{textContent:u(o?.source?.fullName),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},null,8,l0),o?.options?.update?(l(),d("span",d0,[t[67]||(t[67]=y("\xA0\xB7\xA0",-1)),n("a",{textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,u0)])):f("v-if",!0),o?.options?.update?f("v-if",!0):(l(),d("span",c0,[t[68]||(t[68]=y("\xA0\xB7\xA0@",-1)),n("a",{textContent:u(o?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,p0)])),o?.conference?(l(),d("span",f0,[t[69]||(t[69]=y("\xA0\xB7\xA0",-1)),t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):f("v-if",!0),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.humanFileSize(o?.size?.storage)),1),n("span",null,"\xA0\xB7\xA0"+u(e.fmt?.number(o?.options?.terms?.length))+" terms",1)])])]),n("div",h0,[n("span",m0,[n("span",{class:A(["status-dot",{"status-removed":o?.status=="removed"||o?.status=="expired","status-ready":o?.status=="ready","status-error":o?.status=="error","status-preparing":o?.status=="preparing"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,v0)]),o?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:u(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,g0)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell",textContent:u(e.fmt?.number(o?.pageView||0))},null,8,y0),n("div",{class:"cell-expires",role:"cell",textContent:u(e.fmt?.humanTime(o?.anonymizeDate))},null,8,b0),n("div",w0,[n("div",k0,[t[83]||(t[83]=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",E0,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit",-1)])],8,C0),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View repo",-1)])],8,_0),o?.options?.page&&o?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" View page",-1)])],8,S0)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.fetchGithubInfo(o),["prevent"])},[...t[75]||(t[75]=[n("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,N0),t[81]||(t[81]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updateRepository(o),["prevent"])},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update",-1)])],8,D0),[[j,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updateRepository(o),["prevent"])},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable",-1)])],8,R0),[[j,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.showStatusMessage(o),["prevent"])},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),y(" View status message",-1)])],8,T0),[[j,o?.statusMessage]]),t[82]||(t[82]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.removeCache(o),["prevent"])},[...t[79]||(t[79]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),y(" Remove cache",-1)])],8,A0),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ce(a=>e.removeRepository(o),["prevent"])},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove",-1)])],8,O0),[[j,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",P0,[...t[84]||(t[84]=[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 I0={class:"container paper-page admin-page"},V0={class:"admin-summary"},q0={class:"summary-total"},M0=["aria-pressed"],$0={class:"count"},L0=["aria-pressed"],U0={class:"count"},F0=["aria-pressed"],B0={class:"count"},z0={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},H0={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},j0={class:"admin-filter-row"},G0={class:"search-wrap"},W0={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},K0={key:0,class:"admin-search-hint"},Y0={class:"admin-filter-inline"},Q0={class:"form-control form-control-sm"},J0={class:"admin-filter-inline","aria-label":"Pagination"},X0=["disabled"],Z0={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},x0=["disabled"],eE={key:0,class:"admin-filter-row"},tE={class:"admin-active-chips"},nE={class:"key"},oE=["onClick"],sE={key:1,class:"bulk-bar"},iE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},rE={class:"paper-table-head admin-users-row",role:"row"},aE={role:"columnheader",style:{width:"28px"}},lE=["checked"],dE={role:"columnheader"},uE={role:"columnheader"},cE={role:"cell",style:{width:"28px"}},pE={type:"checkbox","aria-label":"Select user"},fE={class:"cell-anon",role:"cell"},hE=["src"],mE={class:"anon-text"},vE=["textContent","href"],gE={class:"anon-sub"},yE={key:0},bE=["href"],wE={key:1},kE={class:"cell-views num",role:"cell"},EE=["textContent","href"],CE={class:"cell-status",role:"cell"},_E=["textContent"],SE={class:"cell-status",role:"cell"},NE={key:0,class:"type-badge type-repo"},DE={key:1,class:"empty-dash"},RE={class:"cell-actions",role:"cell"},TE={class:"dropdown"},AE={class:"dropdown-menu dropdown-menu-right"},OE=["href"],PE=["href"],IE=["onClick"],VE=["onClick"],qE={key:0,class:"paper-table-empty"},ME={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},$E={style:{"font-size":"12px",color:"var(--ink-muted)"}},LE={key:0,class:"pagination-compact"},UE=["disabled"],FE=["max"],BE=["disabled"],zE={class:"admin-filter-inline"},HE={class:"form-control form-control-sm"};function bl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",I0,[t[46]||(t[46]=pe('
Admin \xA0/\xA0 Users

Users

',3)),n("div",V0,[n("span",q0,u(e.total>=0?e.fmt.number(e.total):"\u2026"),1),n("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=o=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=y("Active ",-1)),n("span",$0,u(e.fmt?.number(e.statusCountFor("active"))),1)],10,M0),n("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=o=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=y("Banned ",-1)),n("span",U0,u(e.fmt?.number(e.statusCountFor("banned"))),1)],10,L0),n("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=o=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=y("Removed ",-1)),n("span",B0,u(e.fmt?.number(e.statusCountFor("removed"))),1)],10,F0)]),e.fetchError?(l(),d("div",z0,[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",H0,[n("div",j0,[n("div",G0,[N(n("input",W0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",K0,"/"))]),n("span",Y0,[t[18]||(t[18]=n("label",null,"Role",-1)),N((l(),d("select",Q0,[...t[17]||(t[17]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=o=>e.exportCsv())},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),y(" Export",-1)])]),n("span",J0,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,X0),n("span",Z0,u(e.query?.page)+"/"+u(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,x0)])]),e.chips?.length?(l(),d("div",eE,[n("div",tE,[(l(!0),d(G,null,ee(e.chips,(o,r)=>(l(),d("span",{class:"admin-active-chip",key:o?.key},[n("span",nE,u(o?.label),1),n("span",null,u(o?.value),1),n("button",{type:"button",onClick:a=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,oE)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(l(),d("div",sE,[n("span",null,[n("strong",null,u(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=o=>e.bulkBan())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",iE,[n("div",rE,[n("div",aE,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,lE)]),n("div",dE,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=o=>e.sortBy("username"))},[t[27]||(t[27]=y("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",uE,[n("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[29]||(t[29]=y("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=n("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(G,null,ee(e.filteredUsers,(o,r)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",cE,[N(n("input",pE,null,512),[[s,{state:e.viewState,set:a=>{e.selected[o.username]=a},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",fE,[o?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,hE)):f("v-if",!0),n("div",mE,[n("a",{class:"repo-name",textContent:u(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,vE),n("div",gE,[o?.emails?.[0]?.email?(l(),d("span",yE,u(o?.emails?.[0]?.email)+" \xB7 ",1)):f("v-if",!0),n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+o?.username)},[t[33]||(t[33]=n("i",{class:"fab fa-github"},null,-1)),y(" "+u(o?.username),1)],8,bE),o?.dateOfEntry?(l(),d("span",wE,"\xA0\xB7\xA0Joined "+u(e.fmt?.humanTime(o?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",kE,[t[34]||(t[34]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show this user's repositories",textContent:u(e.fmt?.number(o?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,8,EE)]),n("div",CE,[n("span",{class:A(["status-dot",{"status-ready":o?.status=="active","status-removed":o?.status=="removed"||o?.status=="banned"}])},null,2),n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,_E)]),n("div",SE,[o?.isAdmin?(l(),d("span",NE,"Admin")):f("v-if",!0),o?.isAdmin?f("v-if",!0):(l(),d("span",DE,"\u2014"))]),n("div",RE,[n("div",TE,[t[40]||(t[40]=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",AE,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[35]||(t[35]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View details",-1)])],8,OE),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[36]||(t[36]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),y(" View repositories",-1)])],8,PE),t[39]||(t[39]=n("div",{class:"dropdown-divider"},null,-1)),N(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ce(a=>e.banUser(o),["prevent"])},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),y(" Ban",-1)])],8,IE),[[j,o?.status=="active"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.activateUser(o),["prevent"])},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Activate",-1)])],8,VE),[[j,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",qE,[...t[41]||(t[41]=[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)]),n("div",ME,[n("span",$E,u(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",LE,[n("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),y(" Previous",-1)])],8,UE),N(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,FE),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+u(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[y("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,BE)])):f("v-if",!0),n("span",zE,[t[45]||(t[45]=n("label",null,"Per page",-1)),N((l(),d("select",HE,[...t[44]||(t[44]=[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:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var jE={class:"anonymize-landing"},GE={class:"anonymize-landing-inner"},WE={class:"form-group mt-4 mb-2"},KE={class:"source-url-label-row"},YE={key:0,class:"repo-access","aria-label":"GitHub access"},QE={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},JE=["aria-pressed","disabled"],XE=["aria-pressed","disabled"],ZE={key:1,class:"connection-badge"},xE={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},eC={key:0,class:"draft-status",role:"status"},tC={key:1,class:"text-danger",role:"alert"},nC={key:2,class:"repo-access-details","aria-label":"GitHub access"},oC={class:"repo-access-main"},sC={class:"repo-access-controls"},iC={key:1,class:"connection-link",href:"/connections"},rC={class:"anonymize-workspace"},aC={class:"anonymize-topbar"},lC={class:"anonymize-topbar-inner"},dC={class:"anonymize-topbar-head"},uC={class:"paper-page-title anonymize-topbar-title"},cC={key:0},pC={key:1},fC={key:0,class:"alert alert-info",role:"status"},hC={key:1,class:"alert alert-info",role:"status"},mC={key:1},vC={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},gC=["aria-selected","tabindex"],yC=["aria-selected","tabindex"],bC={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},wC={class:"anonymize-split"},kC=["role","aria-labelledby"],EC={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},CC={class:"anonymize-fields"},_C={class:"paper-settings-section"},SC={class:"form-group"},NC={class:"source-url-label-row"},DC={key:0,class:"repo-access","aria-label":"GitHub access"},RC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},TC=["aria-pressed","disabled"],AC=["aria-pressed","disabled"],OC={key:1,class:"connection-badge"},PC=["disabled"],IC={class:"invalid-feedback"},VC={class:"invalid-feedback"},qC={class:"invalid-feedback"},MC={class:"invalid-feedback"},$C={key:0,class:"repo-access-details","aria-label":"GitHub access"},LC={class:"repo-access-main"},UC={class:"repo-access-controls"},FC={key:1,class:"connection-link",href:"/connections"},BC={key:1,class:"repo-access-details"},zC={key:0,role:"status"},HC={key:2,class:"form-grid-2"},jC={class:"form-group"},GC={class:"input-group"},WC={class:"form-control",id:"branch",name:"branch"},KC=["textContent","value"],YC={class:"input-group-append"},QC={class:"form-group"},JC=["disabled"],XC={class:"invalid-feedback"},ZC={class:"invalid-feedback"},xC={class:"form-check"},e2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},t2={class:"paper-settings-section"},n2={class:"form-group"},o2=["disabled"],s2={class:"form-text text-muted"},i2={class:"invalid-feedback"},r2={class:"form-group"},a2=["disabled"],l2={class:"form-text text-muted"},d2={class:"invalid-feedback"},u2={class:"form-group"},c2=["disabled"],p2={class:"form-text text-muted"},f2={class:"invalid-feedback"},h2={class:"form-group"},m2={class:"redaction-syntax"},v2={class:"form-text text-muted"},g2={class:"warning-feedback"},y2={class:"invalid-feedback"},b2={class:"paper-settings-section"},w2={class:"form-check"},k2={class:"form-check-input",type:"checkbox",id:"link",name:"link"},E2={class:"form-check"},C2={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_2={class:"form-check"},S2={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},N2={class:"form-check"},D2={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},R2={class:"form-check"},T2=["disabled"],A2={key:0,class:"form-text text-muted"},O2={key:1,class:"form-text text-muted"},P2={key:0,class:"form-text text-muted"},I2={class:"form-check"},V2={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},q2={class:"form-check"},M2={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},$2={class:"form-check"},L2={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},U2={class:"form-check"},F2={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},B2={class:"form-check"},z2={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},H2={class:"form-check"},j2={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},G2={class:"form-check"},W2={class:"form-check-input",type:"checkbox",id:"title",name:"title"},K2={class:"form-check"},Y2={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Q2={class:"form-check"},J2={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},X2={class:"form-check"},Z2={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},x2={class:"form-check"},e_={class:"form-check-input",type:"checkbox",id:"username",name:"username"},t_={class:"form-check"},n_={class:"form-check-input",type:"checkbox",id:"date",name:"date"},o_={class:"form-check"},s_={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},i_={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},r_={key:0,class:"hosting-usage"},a_={key:0},l_={key:1},d_={key:2},u_={key:3},c_={class:"expiration-choices"},p_={class:"expiration-choice"},f_=["checked","disabled"],h_={key:0,class:"dated-options"},m_={key:0,class:"hosting-date"},v_=["min","max"],g_={class:"invalid-feedback"},y_={class:"invalid-feedback"},b_={class:"hosting-property"},w_={key:1,class:"expiration-choice"},k_=["checked","disabled"],E_={key:0},C_={key:1,class:"form-text text-muted"},__={class:"form-group conference-field"},S_={class:"form-text text-muted"},N_=["href"],D_={class:"invalid-feedback"},R_={class:"form-text text-muted"},T_={key:2,class:"inline-hosting"},A_={key:0,role:"alert",class:"text-danger"},O_={key:1,role:"alert",class:"text-danger"},P_=["disabled"],I_={key:2,role:"status"},V_={key:3,role:"status",class:"form-text text-muted"},q_={key:0,class:"capacity-reason"},M_={key:1,class:"subscription-choice"},$_={class:"billing-cycle"},L_=["value","checked","onChange"],U_={class:"hosting-terms"},F_={key:2,role:"status"},B_={key:3,class:"capacity-options"},z_=["disabled"],H_={key:5,class:"hosting-terms"},j_={key:6,class:"repository-pass"},G_=["disabled"],W_={class:"paper-settings-section"},K_={class:"form-group"},Y_={style:{position:"relative"}},Q_={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},J_={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},X_=["onClick"],Z_=["src"],x_=["textContent"],eS=["textContent"],tS={class:"coauthor-list"},nS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},oS=["src"],sS=["textContent","href"],iS=["onClick"],rS={class:"form-text text-muted"},aS=["textContent"],lS={key:1,class:"draft-status",role:"status"},dS={key:2,class:"draft-status"},uS={class:"anonymize-submit-bar"},cS=["disabled"],pS=["disabled"],fS={key:2,class:"checkout-return-note"},hS=["disabled"],mS=["disabled"],vS=["disabled"],gS=["disabled"],yS=["role","aria-labelledby"],bS={class:"anonymize-preview-head"},wS={key:0,class:"anonymize-preview-status",role:"status"},kS={key:1,class:"anonymize-preview-status",role:"status"},ES={key:2,class:"anonymize-preview-status",role:"alert"},CS={key:3,class:"anonymize-preview-status"},_S=["innerHTML"],SS=["role","aria-labelledby"],NS={class:"anonymize-preview-head"},DS={key:0,class:"anonymize-preview-status",role:"status"},RS={key:1,class:"anonymize-preview-status",role:"status"},TS={key:2,class:"anonymize-preview-status",role:"alert"},AS={key:3,class:"anonymize-preview-body"},OS={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},PS={class:"pr-title mb-1"},IS={key:0},VS=["textContent"],qS={key:0},MS={key:1},$S={key:2},LS={class:"pr-comments mt-3"},US={class:"pr-comment"},FS={class:"pr-comment-head"},BS=["textContent"],zS={key:0,class:"pr-comment-date"},HS={key:3},jS={class:"pr-comments"},GS={class:"pr-comment"},WS={class:"pr-comment-head"},KS={key:0,class:"pr-comment-author"},YS=["textContent"],QS=["textContent"],JS={key:0,class:"pr-comment-body"},XS=["role","aria-labelledby"],ZS={class:"anonymize-preview-head"},xS={key:0,class:"anonymize-preview-status",role:"status"},eN={key:1,class:"anonymize-preview-status",role:"status"},tN={key:2,class:"anonymize-preview-status",role:"alert"},nN={key:3,class:"anonymize-preview-body"},oN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},sN={class:"pr-title mb-1"},iN={key:0},rN=["textContent"],aN={key:0},lN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},dN={key:2,class:"paper-tabs",role:"tablist"},uN=["aria-selected","tabindex"],cN=["aria-selected","tabindex"],pN=["textContent"],fN={key:3,class:"anonymize-preview-status"},hN={class:"paper-tab-content"},mN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},vN=["innerHTML"],gN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},yN={class:"pr-comments"},bN={class:"pr-comment"},wN={class:"pr-comment-head"},kN={key:0,class:"pr-comment-author"},EN=["textContent"],CN=["textContent"],_N={key:0,class:"pr-comment-body"};function wl(e,t){let s=We("gist-file"),i=We("markdown"),o=ye("field"),r=ye("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),N(n("div",jE,[n("div",GE,[t[44]||(t[44]=n("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),n("span",{class:"here"},"New anonymization")],-1)),t[45]||(t[45]=n("h1",{class:"paper-page-title"},[y("New "),n("em",null,"anonymization")],-1)),t[46]||(t[46]=n("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),n("div",WE,[n("div",KE,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",YE,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",QE,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(),n("span",{class:"sr-only"},"Read-only ",-1),y("GitHub App",-1)])],8,JE),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,XE)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",ZE,u((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(n("input",xE,null,512),[[o,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",eC,[t[41]||(t[41]=y("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):f("v-if",!0),e.sourceUrlError?(l(),d("p",tC,u(e.sourceUrlError),1)):f("v-if",!0),t[47]||(t[47]=n("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",nC,[n("div",oC,[n("div",sC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[42]||(t[42]=[y("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",iC,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),t[43]||(t[43]=n("div",{class:"repo-access-note"},[n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Anonymized content is public, even from private repositories.")])],-1))])):f("v-if",!0)])],512),[[j,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(n("div",rC,[n("header",aC,[n("div",lC,[n("div",dC,[n("h1",uC,[e.isUpdate?f("v-if",!0):(l(),d("span",cC,"New anonymization")),e.isUpdate?(l(),d("span",pC,"Edit anonymization")):f("v-if",!0)]),N(n("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},u(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[j,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",fC,[t[48]||(t[48]=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[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",hC,[t[49]||(t[49]=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[50]||(t[50]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",mC,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",vC,[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[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,gC),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[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,yC)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",bC,u(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):f("v-if",!0),n("div",wC,[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"},[N((l(),d("form",EC,[n("div",CC,[n("section",_C,[t[61]||(t[61]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",SC,[n("div",NC,[t[52]||(t[52]=n("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",DC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",RC,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[51]||(t[51]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(),n("span",{class:"sr-only"},"Read-only ",-1),y("GitHub App",-1)])],8,TC),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,AC)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",OC,u((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(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,PC),[[o,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),N(n("div",IC," Please provide a valid GitHub URL. ",512),[[j,e.anonymize?.sourceUrl?.errors?.github]]),N(n("div",VC," Not accessible. The organization may restrict access. ",512),[[j,e.anonymize?.sourceUrl?.errors?.access]]),N(n("div",qC," Does not exist or is not accessible. ",512),[[j,e.anonymize?.sourceUrl?.errors?.missing]]),N(n("div",MC," Already anonymized. ",512),[[j,e.anonymize?.sourceUrl?.errors?.used]])]),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",$C,[n("div",LC,[n("div",UC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=a=>e.grantGitHubAccess())},[...t[53]||(t[53]=[y("Manage access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",FC,u(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),t[54]||(t[54]=n("div",{class:"repo-access-note"},[n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y(" Anonymized content is public, even from private repositories.")])],-1))])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",BC,[t[55]||(t[55]=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[13]||(t[13]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",zC,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"?(l(),d("div",HC,[n("div",jC,[t[57]||(t[57]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",GC,[N((l(),d("select",WC,[(l(!0),d(G,null,ee(e.branches,(a,c)=>(l(),d("option",{textContent:u(a?.name),value:a?.name},null,8,KC))),256))])),[[o,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",YC,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[14]||(t[14]=a=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[56]||(t[56]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",QC,[t[58]||(t[58]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,JC),[[o,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(n("div",XC," The commit SHA is not valid. ",512),[[j,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(n("div",ZC," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[j,e.anonymize?.commit?.errors?.exists]])])])):f("v-if",!0),N(n("div",xC,[N(n("input",e2,null,512),[[o,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[59]||(t[59]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[60]||(t[60]=n("small",{class:"form-text text-muted"},"Follows the latest version, at most once an hour.",-1))],512),[[j,e.detectedType]])]),N(n("section",t2,[t[79]||(t[79]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),N(n("div",n2,[t[62]||(t[62]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,o2),[[o,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",s2,"anonymous.4open.science/r/"+u(e.repoId),1),N(n("div",i2,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.repoId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.repoId)+" is already used.",513),[[j,e.anonymize?.repoId?.errors?.used]])],512),[[j,e.detectedType==="repo"]]),N(n("div",r2,[t[65]||(t[65]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,a2),[[o,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",l2,[t[63]||(t[63]=y("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/pr/"+u(e.pullRequestId),1),t[64]||(t[64]=y(".",-1))]),N(n("div",d2,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used.",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])],512),[[j,e.detectedType==="pr"]]),N(n("div",u2,[t[68]||(t[68]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,c2),[[o,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",p2,[t[66]||(t[66]=y("Your share link will be ",-1)),n("code",null,"anonymous.4open.science/gist/"+u(e.gistId),1),t[67]||(t[67]=y(".",-1))]),N(n("div",f2,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.gistId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.gistId)+" is already used.",513),[[j,e.anonymize?.gistId?.errors?.used]])],512),[[j,e.detectedType==="gist"]]),n("div",h2,[t[77]||(t[77]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),N(n("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[o,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),t[78]||(t[78]=n("small",{class:"form-text text-muted"},"One term per line.",-1)),n("details",m2,[t[75]||(t[75]=n("summary",null,"Regex & replacement syntax",-1)),t[76]||(t[76]=y()),n("small",v2,[t[69]||(t[69]=y("Regex is supported. Replaced by ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[70]||(t[70]=y(", or use ",-1)),t[71]||(t[71]=n("code",null,"term=>replacement",-1)),t[72]||(t[72]=y(" to pick your own (e.g. ",-1)),t[73]||(t[73]=n("code",null,"Anonymous=>ABC",-1)),t[74]||(t[74]=y(").",-1))])]),N(n("div",g2,"Regex characters detected. Escape them if unintentional.",512),[[j,e.termsRegexWarning]]),N(n("div",y2,"Terms are in an invalid format.",512),[[j,e.anonymize?.terms?.errors?.format]])])],512),[[j,e.detectedType]]),N(n("section",b2,[t[99]||(t[99]=n("h2",{class:"paper-section-eyebrow"},"Display",-1)),N(n("div",null,[n("div",w2,[N(n("input",k2,null,512),[[o,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[80]||(t[80]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),n("div",E2,[N(n("input",C2,null,512),[[o,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[81]||(t[81]=n("label",{class:"form-check-label",for:"image"},"Display images",-1))]),n("div",_2,[N(n("input",S2,null,512),[[o,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[82]||(t[82]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),n("div",N2,[N(n("input",D2,null,512),[[o,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[83]||(t[83]=n("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),n("div",R2,[N(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,T2),[[o,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[84]||(t[84]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(l(),d("small",A2,u(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",O2,u(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[j,e.detectedType==="repo"]]),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",P2,[...t[85]||(t[85]=[y("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),N(n("div",null,[n("div",I2,[N(n("input",V2,null,512),[[o,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[86]||(t[86]=n("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),n("div",q2,[N(n("input",M2,null,512),[[o,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[87]||(t[87]=n("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),n("div",$2,[N(n("input",L2,null,512),[[o,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[88]||(t[88]=n("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),n("div",U2,[N(n("input",F2,null,512),[[o,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[89]||(t[89]=n("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),n("div",B2,[N(n("input",z2,null,512),[[o,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[90]||(t[90]=n("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),n("div",H2,[N(n("input",j2,null,512),[[o,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[91]||(t[91]=n("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[j,e.detectedType==="gist"]]),N(n("div",null,[n("div",G2,[N(n("input",W2,null,512),[[o,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=n("label",{class:"form-check-label",for:"title"},"PR title",-1))]),n("div",K2,[N(n("input",Y2,null,512),[[o,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[93]||(t[93]=n("label",{class:"form-check-label",for:"body"},"PR body",-1))]),n("div",Q2,[N(n("input",J2,null,512),[[o,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[94]||(t[94]=n("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),n("div",X2,[N(n("input",Z2,null,512),[[o,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[95]||(t[95]=n("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),n("div",x2,[N(n("input",e_,null,512),[[o,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[96]||(t[96]=n("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),n("div",t_,[N(n("input",n_,null,512),[[o,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[97]||(t[97]=n("label",{class:"form-check-label",for:"date"},"Dates",-1))]),n("div",o_,[N(n("input",s_,null,512),[[o,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[98]||(t[98]=n("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[j,e.detectedType==="pr"]])],512),[[j,e.detectedType]]),N(n("section",i_,[t[115]||(t[115]=n("h2",{class:"paper-section-eyebrow",id:"hosting-heading"},"Hosting & expiration",-1)),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("p",r_,[e.isUpdate&&e.role!=="owner"?(l(),d("span",a_,"Uses the owner's hosting")):e.hasAuthorHosting()?(l(),d("span",l_,"Your author subscription is active.")):e.conference?(l(),d("span",d_,"Conference hosting is checked on submission.")):e.hostingQuota?.repository?(l(),d("span",u_,u(e.hostingQuota.repository.used)+" of "+u(e.hostingQuota.repository.total)+" active repositories \xB7 Free",1)):f("v-if",!0)])):f("v-if",!0),n("fieldset",c_,[t[105]||(t[105]=n("legend",{class:"sr-only"},"Expiration",-1)),n("label",p_,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode!=="never",onChange:t[15]||(t[15]=a=>e.useDatedHosting()),disabled:e.billingPending},null,40,f_),t[100]||(t[100]=n("span",null,"Expire on a date",-1))]),e.options.expirationMode!=="never"?(l(),d("div",h_,[e.options?.expirationMode!=="never"?(l(),d("div",m_,[t[101]||(t[101]=n("label",{class:"paper-field-label",for:"expirationDate"},"Expires",-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,v_),[[o,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(n("div",g_,"Pick a date in the future.",512),[[j,e.anonymize?.expirationDate?.errors?.min]]),N(n("div",{class:"invalid-feedback"},"Pick a date on or before "+u(e.fmt?.date(e.maxExpirationDate))+".",513),[[j,e.anonymize?.expirationDate?.errors?.max]]),N(n("div",y_,"Enter a valid expiration date.",512),[[j,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])):f("v-if",!0),n("div",b_,[t[103]||(t[103]=n("label",{for:"expiration"},"Then",-1)),N(n("select",{id:"expiration",class:"form-control","onUpdate:modelValue":t[16]||(t[16]=a=>e.options.expirationMode=a)},[...t[102]||(t[102]=[n("option",{value:"remove"},"Remove content",-1),n("option",{value:"redirect"},"Redirect to GitHub",-1)])],512),[[Jo,e.options.expirationMode]])])])):f("v-if",!0),e.detectedType==="repo"?(l(),d("label",w_,[n("input",{type:"radio",name:"expiration-choice",checked:e.options.expirationMode==="never",onChange:t[17]||(t[17]=a=>e.options.expirationMode="never"),disabled:e.billingPending},null,40,k_),n("span",null,[t[104]||(t[104]=y("Never expire",-1)),e.options.expirationMode!=="never"||e.hasAuthorHosting()?(l(),d("small",E_,u(e.hasAuthorHosting()?"Included in your subscription":"Author subscription"),1)):f("v-if",!0)])])):f("v-if",!0)]),e.options.expirationMode==="redirect"?(l(),d("p",C_,"Visitors will be redirected to the original GitHub source on this date, revealing its identity.")):f("v-if",!0),n("div",__,[t[106]||(t[106]=n("label",{class:"paper-field-label",for:"conference"},[y("Conference code "),n("span",{class:"paper-optional"},"(optional)")],-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[o,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(n("small",S_,[n("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,N_),y(" expires "+u(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[j,e.conference_data]]),N(n("div",D_,"The conference is not activated.",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(n("small",R_,"Link to a conference to apply its shared defaults.",512),[[j,!e.conference_data]])]),e.detectedType==="repo"&&e.billing?.enabled?(l(),d("div",T_,[e.taskValidationError?(l(),d("p",A_,u(e.taskValidationError),1)):f("v-if",!0),e.billingError?(l(),d("p",O_,[y(u(e.billingError)+" ",1),n("button",{type:"button",class:"task-text-button",onClick:t[18]||(t[18]=a=>e.loadBilling()),disabled:e.billingBusy},"Reload billing",8,P_)])):f("v-if",!0),e.billingPending?(l(),d("div",I_,[...t[107]||(t[107]=[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?(l(),d("p",V_,u(e.billingNotice),1)):f("v-if",!0),e.hostingNeedsPayment()&&!e.billingPending?(l(),d(G,{key:4},[e.options.expirationMode!=="never"?(l(),d("p",q_,u(e.options.update&&!e.hostingQuotaBlocked&&e.hostingQuota?.repository?.used(l(),d("label",{class:A(["cycle-option",{selected:e.selectedHostingPlan()?.id===a.id}]),key:a.id},[n("input",{type:"radio",name:"hosting-plan",value:a.id,checked:e.selectedHostingPlan()?.id===a.id,onChange:c=>e.hostingPlan=a.id},null,40,L_),n("span",null,u(e.billingPrice(a)),1)],2))),128))]),n("p",null,u(e.selectedHostingPlan()?.repositories)+" repositories, "+u(e.billingBytes(e.selectedHostingPlan()?.storage))+". Coauthors included.",1),n("p",U_,"Renews "+u(e.selectedHostingPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[110]||(t[110]=n("p",{class:"hosting-terms"},"If paid access ends, never-expiring repositories expire after 90 days.",-1))])):(l(),d("p",F_,"New purchases are temporarily unavailable. Your draft is kept.")),e.options.expirationMode!=="never"?(l(),d("details",B_,[t[111]||(t[111]=n("summary",null,"Keep using free hosting",-1)),t[112]||(t[112]=n("p",null,"Remove a repository you no longer need, or use conference hosting. Removing a repository affects its review link.",-1)),t[113]||(t[113]=n("a",{href:"/dashboard"},"Review my repositories",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[19]||(t[19]=a=>e.anonymizeRepo(a)),disabled:e.sourceLoading||e.billingBusy},"Recheck capacity and submit",8,z_)])):f("v-if",!0)],64)):e.options.expirationMode==="never"&&!e.billingPending?(l(),d("p",H_,"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()?(l(),d("details",j_,[t[114]||(t[114]=n("summary",null,"Hosting just this repository?",-1)),(l(!0),d(G,null,ee((e.billing?.plans||[]).filter(a=>a.id==="author_pass"),a=>(l(),d("div",{key:a.id},[n("p",null,u(e.billingPrice(a))+" \xB7 "+u(e.billingBytes(a.storage))+" for 180 days. No renewal. Does not include Never expire.",1),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.hostingSaving||e.sourceLoading||e.billing.checkoutEnabled===!1||e.billingPending,onClick:t[20]||(t[20]=c=>e.checkoutRepository(!0))},"Review repository pass",8,G_)]))),128))])):f("v-if",!0)])):f("v-if",!0)],512),[[j,e.detectedType]]),N(n("section",W_,[t[119]||(t[119]=n("h2",{class:"paper-section-eyebrow"},"Coauthors",-1)),t[120]||(t[120]=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)),N(n("div",K_,[t[116]||(t[116]=n("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),n("div",Y_,[N(n("input",Q_,null,512),[[o,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(n("div",J_,[(l(!0),d(G,null,ee(e.coauthorResults,(a,c)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ce(h=>e.addCoauthor(a,h),["prevent"])},[n("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,Z_),n("span",{textContent:u(a?.username)},null,8,x_)],8,X_))),256))],512),[[j,e.coauthorResults?.length>0]])]),N(n("small",{class:"form-text text-muted",textContent:u(e.coauthorError)},null,8,eS),[[j,e.coauthorError]])],512),[[j,e.role==="owner"||e.role==="admin"]]),n("div",tS,[(l(!0),d(G,null,ee(e.coauthors,(a,c)=>(l(),d("div",nS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,oS)):f("v-if",!0),n("a",{target:"_blank",textContent:u(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,sS),t[118]||(t[118]=n("span",{class:"type-badge type-coauthor"},"Co-author",-1)),N(n("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:h=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[117]||(t[117]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,iS),[[j,e.role==="owner"||e.role==="admin"]])]))),256)),N(n("div",rS," No co-authors yet. ",512),[[j,!e.coauthors||e.coauthors?.length===0]])])],512),[[j,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,aS)):f("v-if",!0),e.draftRestored?(l(),d("div",lS,[t[121]||(t[121]=y("Your unsaved draft was restored. ",-1)),n("button",{type:"button",class:"draft-discard",onClick:t[21]||(t[21]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",dS,[y(u(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),n("button",{type:"button",class:"draft-discard",onClick:t[22]||(t[22]=a=>e.discardDraft())},u(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0)]),N(n("div",uS,[e.detectedType==="repo"?(l(),d(G,{key:0},[e.billingPending?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[23]||(t[23]=a=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,cS)):(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",disabled:e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingLoading||e.hostingNeedsPayment()&&(!e.authorPlans().length||e.billing?.checkoutEnabled===!1),onClick:t[24]||(t[24]=ce(a=>e.submitForm(a,()=>{e.submitRepository(a)}),["prevent"]))},u(e.hostingSaving?"Saving draft\u2026":e.hostingNeedsPayment()?"Continue to checkout":e.isUpdate?"Save changes":"Create anonymous link"),9,pS)),e.hostingNeedsPayment()&&!e.billingPending?(l(),d("p",fS,"Review payment in Stripe, then return to finish.")):f("v-if",!0)],64)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ce(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[122]||(t[122]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize Pull Request ",-1)])],8,hS)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ce(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[123]||(t[123]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update Pull Request ",-1)])],8,mS)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ce(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[124]||(t[124]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize Gist ",-1)])],8,vS)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[28]||(t[28]=ce(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[125]||(t[125]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update Gist ",-1)])],8,gS)):f("v-if",!0)],512),[[j,e.detectedType]])])),[[r,e.viewState]])],8,kC),f(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",bS,[t[126]||(t[126]=n("strong",null,"README.md",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[29]||(t[29]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",wS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",kS,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",ES,[t[127]||(t[127]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",CS,"No README is available to preview. Review the published files before sharing.")):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,_S)):f("v-if",!0)],8,yS)):f("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",NS,[t[128]||(t[128]=n("strong",null,"Gist preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[31]||(t[31]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",DS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",RS,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",TS,[t[129]||(t[129]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[32]||(t[32]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",AS,[n("div",OS,[n("h2",PS,[e.options?.title?(l(),d("span",IS,u(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},u(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,VS)):f("v-if",!0)]),e.options?.origin?(l(),d("small",qS,"Gist ID: "+u(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",MS,"By @"+u(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",$S,[n("ul",LS,[(l(!0),d(G,null,ee(e.previewGistFiles,(a,c)=>(l(),d("li",US,[n("div",FS,[n("strong",{textContent:u(a?.filename)},null,8,BS),a?.language?(l(),d("span",zS,u(a?.language),1)):f("v-if",!0)]),Ee(s,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",HS,[t[132]||(t[132]=n("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),n("ul",jS,[(l(!0),d(G,null,ee(e.details?.gist?.comments,(a,c)=>(l(),d("li",GS,[n("div",WS,[e.options?.username?(l(),d("span",KS,[t[130]||(t[130]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[131]||(t[131]=y(" @",-1)),n("span",{textContent:u(e.anonymizeGistContent(a?.author))},null,8,YS)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,QS)):f("v-if",!0)]),e.options?.body?(l(),d("div",JS,[Ee(i,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):f("v-if",!0)],8,SS)):f("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[n("div",ZS,[t[133]||(t[133]=n("strong",null,"Pull request preview",-1)),n("button",{type:"button",class:"task-text-button preview-expand",onClick:t[33]||(t[33]=a=>e.previewExpanded=!e.previewExpanded)},u(e.previewExpanded?"Restore split view":"Expand preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",xS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",eN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",tN,[t[134]||(t[134]=n("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),n("button",{class:"btn btn-outline-ink",type:"button",onClick:t[34]||(t[34]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",nN,[n("div",oN,[n("h2",sN,[e.options?.title?(l(),d("span",iN,u(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,rN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",aN,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",lN,[Ee(i,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",dN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[35]||(t[35]=a=>e.previewTabKeydown(a)),onClick:t[36]||(t[36]=a=>e.prTabState.active="diff")},[...t[135]||(t[135]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Diff ",-1)])],42,uN)):f("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[37]||(t[37]=a=>e.previewTabKeydown(a)),onClick:t[38]||(t[38]=a=>e.prTabState.active="comments")},[t[136]||(t[136]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,pN)],42,cN)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",fN,"Diff and comments are hidden by your display settings.")):f("v-if",!0),n("div",hN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",mN,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,vN)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",gN,[n("ul",yN,[(l(!0),d(G,null,ee(e.details?.pullRequest?.comments,(a,c)=>(l(),d("li",bN,[n("div",wN,[e.options?.username?(l(),d("span",kN,[t[137]||(t[137]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[138]||(t[138]=y(" @",-1)),n("span",{textContent:u(e.anonymizePrContent(a?.author))},null,8,EN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(a?.updatedDate))},null,8,CN)):f("v-if",!0)]),e.options?.body?(l(),d("div",_N,[Ee(i,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0)],8,XS)):f("v-if",!0)])],512),[[j,e.workspaceOpen||e.isUpdate]])],2)}var SN={class:"container-fluid h-100 anonymize-page"},NN={class:"row h-100 flex-column flex-md-row"},DN={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},RN={class:"form-group"},TN={class:"form-group"},AN={class:"form-check"},ON={class:"form-check-input",type:"checkbox",id:"update",name:"update"},PN={class:"form-group"},IN={class:"form-text text-muted"},VN=["href"],qN={class:"invalid-feedback"},MN={class:"form-text text-muted"},$N={class:"form-group"},LN={id:"idHelp",class:"form-text text-muted"},UN={class:"invalid-feedback"},FN={class:"form-group"},BN={class:"invalid-feedback"},zN={class:"form-group"},HN={class:"form-control",id:"expiration",name:"expiration"},jN={class:"form-group",id:"expiration-date-form"},GN={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},WN={class:"accordion mb-3",id:"options"},KN={class:"card"},YN={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},QN={class:"card-body"},JN={class:"form-group mb-0"},XN={class:"form-check"},ZN={class:"form-check-input",type:"checkbox",id:"link",name:"link"},xN={class:"form-check"},eD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},tD={class:"form-check"},nD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},oD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},iD={class:"form-check"},rD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},aD={class:"form-check"},lD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},dD={class:"form-check"},uD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},cD={class:"form-check"},pD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},fD={class:"form-check"},hD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},mD=["textContent"],vD={class:"anonymize-submit-bar"},gD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},yD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},bD={class:"pr-title mb-1"},wD={key:0},kD=["textContent"],ED={key:0},CD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},_D={class:"nav nav-tabs",id:"myTab",role:"tablist"},SD={key:0,class:"nav-item",role:"presentation"},ND={key:1,class:"nav-item",role:"presentation"},DD=["textContent"],RD={class:"tab-content",id:"pills-tabContent"},TD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},AD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},OD={style:{"overflow-x":"auto"}},PD=["innerHTML"],ID={key:0,class:"pr-comments list-group"},VD={class:"pr-comment list-group-item"},qD={class:"d-flex w-100 justify-content-between flex-wrap"},MD={key:0,class:"mb-1"},$D=["textContent"],LD={class:"mb-1"};function kl(e,t){let s=We("markdown"),i=ye("field"),o=ye("form");return l(),d("div",SN,[n("div",NN,[n("div",DN,[n("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[N((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=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",RN,[t[2]||(t[2]=n("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestUrl=r},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.access]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestUrl)+" is already anonymized ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(n("div",null,[n("div",TN,[n("div",AN,[N(n("input",ON,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},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"})]),y(" Conference ID ")],-1)),f(" Conference "),n("div",PN,[t[5]||(t[5]=n("label",{for:"conference"},[y("Conference ID "),n("span",{class:"text-muted"},"(Optional)")],-1)),N(n("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[i,{state:e.viewState,set:r=>{e.conference=r},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(n("small",IN,[n("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},u(e.conference_data?.name),9,VN),y(" will expire on "+u(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[j,e.conference_data]]),N(n("div",qN," The conference is not activated. ",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(n("small",MN," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[j,!e.conference_data]])]),t[27]||(t[27]=n("div",{class:"paper-section-eyebrow anonymize-section-title"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),y(" Anonymization Options ")],-1)),f(" Pull Request ID "),n("div",$N,[t[6]||(t[6]=n("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[i,{state:e.viewState,set:r=>{e.pullRequestId=r},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",LN,"Id used in the url: https://anonymous.4open.science/r/"+u(e.pullRequestId),1),N(n("div",UN," Repository id can only contain letters and numbers ",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(n("div",{class:"invalid-feedback"},u(e.pullRequestId)+" is already used ",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),n("div",FN,[t[7]||(t[7]=n("label",{for:"terms"},"Terms to anonymize",-1)),N(n("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[i,{state:e.viewState,set:r=>{e.terms=r},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)),N(n("div",BN," Terms are in an invalid format ",512),[[j,e.anonymize?.terms?.errors?.format]])]),n("div",zN,[t[10]||(t[10]=n("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",HN,[...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:r=>{e.options.expirationMode=r},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))]),N(n("div",jN,[t[12]||(t[12]=n("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(n("input",GN,null,512),[[i,{state:e.viewState,set:r=>{e.options.expirationDate=r},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),N(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[j,e.options?.expirationMode=="remove"]]),N(n("small",{class:"form-text text-muted"},"After "+u(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+u(e.pullRequestUrl)+".",513),[[j,e.options?.expirationMode=="redirect"]])],512),[[j,e.options?.expirationMode!="never"]]),n("div",WN,[n("div",KN,[t[25]||(t[25]=pe('

',1)),n("div",YN,[n("div",QN,[n("div",JN,[n("div",XN,[N(n("input",ZN,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},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",xN,[N(n("input",eD,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},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",tD,[N(n("input",nD,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},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",oD,[N(n("input",sD,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",iD,[N(n("input",rD,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",aD,[N(n("input",lD,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",dD,[N(n("input",uD,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},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",cD,[N(n("input",pD,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},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",fD,[N(n("input",hD,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},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),[[j,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,mD)):f("v-if",!0),N(n("div",vD,[e.isUpdate?f("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ce(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ce(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),y(" Update ",-1)])])):f("v-if",!0)],512),[[j,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(l(),d("div",gD,[n("div",yD,[n("h2",bD,[e.options?.title?(l(),d("span",wD,u(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},u(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:u(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,kD)):f("v-if",!0)]),e.options?.origin?(l(),d("small",ED,"Pull Request on "+u(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",CD,[Ee(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",_D,[e.options?.diff?(l(),d("li",SD,[...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?(l(),d("li",ND,[n("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:u(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,DD)],2)])):f("v-if",!0)]),n("div",RD,[n("div",TD,[e.options?.diff?(l(),d("div",AD,[n("pre",OD,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,PD)])])):f("v-if",!0)]),n("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",ID,[(l(!0),d(G,null,ee(e.details?.pullRequest?.comments,(r,a)=>(l(),d("li",VD,[n("div",qD,[e.options?.username?(l(),d("h5",MD," @"+u(e.anonymize(r?.author)),1)):f("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:u(e.fmt?.date(r?.updatedDate))},null,8,$D)):f("v-if",!0)]),n("p",LD,[e.options?.body?(l(),$t(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.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 UD={class:"container paper-page claim-page"},FD={class:"paper-settings-main claim-form"},BD={class:"form-group"},zD={class:"invalid-feedback"},HD={class:"form-group"};function El(e,t){let s=ye("field"),i=ye("form");return l(),d("div",UD,[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",FD,[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)),N((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ce(o=>e.submitForm(o,()=>{e.claim()}),["prevent"]))},[n("div",BD,[t[1]||(t[1]=n("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoUrl=o},value:e.repoUrl,form:"claimForm",options:{}}]]),N(n("div",zD," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[j,e.claimForm?.repoUrl?.errors?.not_found]])]),n("div",HD,[t[2]||(t[2]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[s,{state:e.viewState,set:o=>{e.repoId=o},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=n("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),n("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=n("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[i,e.viewState]])])])}var jD={class:"container page paper-page conference-page"},GD={class:"paper-crumbs"},WD={class:"here"},KD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},YD=["textContent"],QD={key:0,class:"paper-page-lede"},JD=["textContent","href"],XD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},ZD=["textContent"],xD=["href"],eR={class:"paper-meta-rule"},tR=["textContent"],nR=["textContent"],oR={key:0},sR={key:0,class:"conference-payment-status",role:"status"},iR=["disabled"],rR={key:1,role:"alert"},aR={key:2,class:"paper-settings-section","aria-labelledby":"conference-payment-heading"},lR={key:0,role:"status"},dR={key:1,role:"alert"},uR=["disabled"],cR={class:"search-wrap"},pR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},fR={class:"dashboard-filter-controls"},hR={class:"dropdown"},mR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},vR={class:"filter-btn-value"},gR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},yR={class:"form-check dropdown-item"},bR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},wR={class:"form-check dropdown-item"},kR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},ER={class:"form-check dropdown-item"},CR={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},_R={class:"form-check dropdown-item"},SR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},NR={class:"dropdown"},DR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},RR={key:0,class:"filter-btn-value"},TR={key:1,class:"filter-btn-value"},AR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},OR={class:"form-check dropdown-item"},PR=["id"],IR=["for"],VR={class:"dashboard-meta"},qR={class:"dashboard-count"},MR={key:0},$R={key:0},LR={key:1},UR={key:1},FR={key:0,class:"filter-chip"},BR=["onClick","aria-label"],zR={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},HR={class:"cell-anon",role:"cell"},jR={class:"anon-text"},GR=["textContent","href"],WR={class:"anon-sub"},KR={class:"anon-source"},YR=["textContent","href"],QR={key:0},JR=["textContent","href"],XR={key:1},ZR=["href"],xR={class:"cell-status",role:"cell"},eT={class:"status-line"},tT=["textContent"],nT={key:0,class:"status-sub"},oT={class:"cell-views num",role:"cell"},sT=["textContent"],iT={class:"cell-expires",role:"cell"},rT={key:0,class:"expires-never"},aT=["textContent"],lT={key:2,class:"expires-past"},dT={key:0},uT={key:3,class:"empty-dash","aria-label":"Not applicable"},cT={class:"cell-actions",role:"cell"},pT={class:"dropdown"},fT=["aria-label"],hT={class:"dropdown-menu dropdown-menu-right"},mT=["href"],vT=["href"],gT={key:0,class:"paper-table-empty"},yT={key:0},bT={key:1},wT={key:2,class:"paper-table-empty-actions"};function Cl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",jD,[n("div",null,[n("div",GD,[t[4]||(t[4]=n("a",{href:"/dashboard"},"My work",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),t[6]||(t[6]=n("a",{href:"/conferences"},"Conferences",-1)),t[7]||(t[7]=y(" \xA0/\xA0 ",-1)),n("span",WD,u(e.conference?.conferenceID),1)]),n("div",KD,[n("div",null,[n("h1",{class:"paper-page-title",textContent:u(e.conference?.name)},null,8,YD),e.conference?.url?(l(),d("p",QD,[n("a",{target:"_blank",rel:"noopener",textContent:u(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,JD)])):f("v-if",!0)]),n("div",XD,[n("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[n("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),n("span",{textContent:u(e.fmt?.statusLabel(e.conference?.status))},null,8,ZD)],2),n("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[8]||(t[8]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit conference",-1)])],8,xD)])]),n("div",eR,[n("span",null,[t[9]||(t[9]=y("ID ",-1)),n("b",{class:"commit-hash",textContent:u(e.conference?.conferenceID)},null,8,tR)]),n("span",null,[t[10]||(t[10]=y("Review window ",-1)),n("b",null,u(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),n("span",null,[t[11]||(t[11]=y("Repositories ",-1)),n("b",null,u(e.fmt?.number(e.conference?.repositories?.length)),1)]),n("span",null,[t[12]||(t[12]=y("Plan ",-1)),n("b",{textContent:u(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,nR)]),e.conference?.price?(l(),d("span",oR,[t[13]||(t[13]=y("Cost so far ",-1)),n("b",null,u(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):f("v-if",!0)]),e.billingNotice?(l(),d("div",sR,[n("p",null,u(e.billingNotice),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[0]||(t[0]=o=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,iR)])):f("v-if",!0),e.billingError&&e.conference?.status!=="pending_payment"?(l(),d("p",rR,u(e.billingError),1)):f("v-if",!0),e.conference?.status==="pending_payment"?(l(),d("section",aR,[t[14]||(t[14]=n("h2",{id:"conference-payment-heading"},"Activate your review package",-1)),t[15]||(t[15]=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?(l(),d("p",lR,"Loading payment options\u2026")):f("v-if",!0),e.billingError?(l(),d("p",dR,u(e.billingError),1)):f("v-if",!0),(l(!0),d(G,null,ee((e.billing?.plans||[]).filter(o=>o.id==="conference"),o=>(l(),d("div",{key:o.id},[n("p",null,u(e.billingPrice(o))+" for up to "+u(o.repositories)+" repositories and "+u(e.billingBytes(o.storage))+" of source files during the review window. Taxes, if applicable, appear at checkout.",1),n("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=r=>e.checkout("conference",e.conference.conferenceID)),disabled:e.billingBusy||e.billingPending||e.billing?.checkoutEnabled===!1},u(e.billingBusy?"Please wait\u2026":"Pay for review package"),9,uR)]))),128)),t[16]||(t[16]=n("p",null,[n("a",{href:"/profile#settings-billing"},"Manage invoices")],-1))])):f("v-if",!0),t[37]||(t[37]=n("div",{class:"paper-section-eyebrow"},"Repositories",-1)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[2]||(t[2]=ce(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",cR,[N(n("input",pR,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",fR,[n("div",hR,[n("button",mR,[t[17]||(t[17]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",vR,u({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),n("div",gR,[t[22]||(t[22]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",yR,[N(n("input",bR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),n("div",wR,[N(n("input",kR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",ER,[N(n("input",CR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",_R,[N(n("input",SR,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),n("div",NR,[n("button",DR,[t[23]||(t[23]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",RR,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",TR,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",AR,[t[24]||(t[24]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(G,null,ee(e.statusLabels,(o,r,a)=>(l(),d("div",OR,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,PR),[[s,{state:e.viewState,set:c=>{e.filters.status[r]=c},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(o),9,IR)]))),256))])])])],32)),[[i,e.viewState]]),n("div",VR,[n("span",qR,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",MR,[y(u(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",$R,"y")):f("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",LR,"ies")):f("v-if",!0)])):f("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",UR,u(e.fmt?.number(e.filteredRepositories?.length))+" of "+u(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(G,null,ee(e.filters?.status,(o,r,a)=>(l(),d(G,null,[o===!1?(l(),d("span",FR,[y(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:c=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,BR)])):f("v-if",!0)],64))),256))]),n("div",zR,[t[36]||(t[36]=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)),(l(!0),d(G,null,ee(e.filteredRepositories,(o,r)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error"}]),role:"row",key:o?.repoId},[n("div",HR,[t[27]||(t[27]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",jR,[n("a",{class:"repo-name",textContent:u(o?.repoId),href:e.safeUrl("/r/"+o?.repoId+"/")},null,8,GR),n("div",WR,[n("span",KR,[n("a",{target:"_blank",rel:"noopener",textContent:u(o?.source?.fullName),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},null,8,YR),o?.options?.update&&o?.source?.branch?(l(),d("span",QR,[t[25]||(t[25]=y(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,JR)])):f("v-if",!0),o?.source?.commit?(l(),d("span",XR,[t[26]||(t[26]=y(" \xB7 ",-1)),n("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},"@"+u(o?.source?.commit?.substring(0,8)),9,ZR)])):f("v-if",!0)])])])]),n("div",xR,[n("div",eT,[n("span",{class:A(["status-dot","status-"+(o?.status=="error"?"error":o?.status=="ready"?"ready":o?.status=="expired"||o?.status=="removed"?o?.status:"progress")]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(o?.status))},null,8,tT)]),o?.anonymizeDate?(l(),d("div",nT,"anonymized "+u(e.fmt?.humanTime(o?.anonymizeDate)),1)):f("v-if",!0)]),n("div",oT,[t[28]||(t[28]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[29]||(t[29]=y()),n("span",{textContent:u(e.fmt?.number(o?.pageView))},null,8,sT)]),n("div",iT,[t[31]||(t[31]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.status=="ready"&&(o?.options?.expirationMode==="never"||!o?.options?.expirationDate)?(l(),d("span",rT,"Never")):f("v-if",!0),o?.status=="ready"&&o?.options?.expirationMode!=="never"&&o?.options?.expirationDate?(l(),d("span",{key:1,textContent:u(e.fmt?.humanTime(o?.options?.expirationDate))},null,8,aT)):f("v-if",!0),o?.status=="expired"?(l(),d("span",lT,[t[30]||(t[30]=y("Expired",-1)),o?.options?.expirationDate?(l(),d("span",dT,u(e.fmt?.humanTime(o?.options?.expirationDate)),1)):f("v-if",!0)])):f("v-if",!0),o?.status!="ready"&&o?.status!="expired"?(l(),d("span",uT,"\u2014")):f("v-if",!0)]),n("div",cT,[n("div",pT,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+o?.repoId},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,fT),n("div",hT,[n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[33]||(t[33]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View ",-1)])],8,mT),n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[34]||(t[34]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,vT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",gT,[t[35]||(t[35]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(l(),d("span",yT,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",bT,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(l(),d("div",wT,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)])])])}var kT={class:"container page paper-page conferences-page"},ET={class:"row"},CT={class:"w-100"},_T={class:"search-wrap"},ST={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},NT={class:"dashboard-filter-controls"},DT={class:"dropdown"},RT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},TT={class:"filter-btn-value"},AT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},OT={class:"form-check dropdown-item"},PT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},IT={class:"form-check dropdown-item"},VT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},qT={class:"form-check dropdown-item"},MT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},$T={class:"dropdown"},LT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},UT={key:0,class:"filter-btn-value"},FT={key:1,class:"filter-btn-value"},BT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},zT={class:"form-check dropdown-item"},HT=["id"],jT=["for"],GT={class:"dashboard-meta"},WT={class:"dashboard-count"},KT={key:0},YT={key:0},QT={key:1},JT={key:0,class:"filter-chip"},XT=["onClick","aria-label"],ZT={key:0,class:"conference-feedback",role:"alert"},xT={key:1,class:"conference-feedback",role:"status"},eA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},tA={class:"cell-anon",role:"cell"},nA={class:"anon-text"},oA=["textContent","href"],sA={class:"anon-sub"},iA={class:"anon-source"},rA=["textContent"],aA={key:0},lA=["textContent","href"],dA={class:"cell-status",role:"cell"},uA={class:"status-line"},cA=["textContent"],pA={class:"cell-views num",role:"cell"},fA=["textContent"],hA={class:"cell-expires",role:"cell"},mA={key:0},vA={key:1,class:"empty-dash","aria-label":"No review window"},gA={class:"cell-actions",role:"cell"},yA={class:"dropdown"},bA=["disabled","aria-label"],wA={class:"dropdown-menu dropdown-menu-right"},kA=["href"],EA=["href"],CA={key:0},_A=["onClick"],SA={key:0,class:"paper-table-empty"},NA={key:0},DA={key:1},RA={class:"paper-table-empty-actions"},TA={key:1,href:"/conference/new",class:"btn btn-ink"};function _l(e,t){let s=ye("field"),i=ye("form");return l(),d("div",kT,[n("div",ET,[n("div",CT,[t[10]||(t[10]=pe('
My work \xA0/\xA0 Conferences

Your conferences

Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.

New conference
',2)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ce(o=>e.submitForm(o,()=>{o.preventDefault()}),["prevent"]))},[n("div",_T,[N(n("input",ST,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",NT,[n("div",DT,[n("button",RT,[t[3]||(t[3]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",TT,u({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),n("div",AT,[t[7]||(t[7]=n("h6",{class:"dropdown-header"},"Order by",-1)),n("div",OT,[N(n("input",PT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),n("div",IT,[N(n("input",VT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=n("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),n("div",qT,[N(n("input",MT,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[6]||(t[6]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),n("div",$T,[n("button",LT,[t[8]||(t[8]=n("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",UT,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",FT,u((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),n("div",BT,[t[9]||(t[9]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(G,null,ee(e.statusLabels,(o,r,a)=>(l(),d("div",zT,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+r},null,8,HT),[[s,{state:e.viewState,set:c=>{e.filters.status[r]=c},value:e.filters?.status[r],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+r},u(o),9,jT)]))),256))])])])],32)),[[i,e.viewState]]),n("div",GT,[n("span",WT,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",KT,[y(u(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",YT,"s")):f("v-if",!0)])):f("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",QT,u(e.fmt?.number(e.filteredConferences?.length))+" of "+u(e.fmt?.number(e.conferences?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(G,null,ee(e.filters?.status,(o,r,a)=>(l(),d(G,null,[o===!1?(l(),d("span",JT,[y(" Hiding "+u(e.statusLabels[r])+" ",1),n("button",{type:"button",class:"filter-chip-close",onClick:c=>{e.filters.status[r]=!0},"aria-label":"Show "+e.statusLabels[r]+" again"},"\xD7",8,XT)])):f("v-if",!0)],64))),256))])]),e.error?(l(),d("div",ZT,[n("span",null,u(e.error),1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=o=>e.loadConferences())},"Retry")])):f("v-if",!0),e.loading?(l(),d("div",xT,"Loading conferences\u2026")):f("v-if",!0),n("div",eA,[t[24]||(t[24]=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)),(l(!0),d(G,null,ee(e.filteredConferences,(o,r)=>(l(),d("div",{class:A(["paper-table-row row-clickable",{"repo-inactive":o?.status=="expired"||o?.status=="removed"}]),role:"row",key:o?.conferenceID},[n("div",tA,[t[13]||(t[13]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",nA,[n("a",{class:"repo-name",textContent:u(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,oA),n("div",sA,[n("span",iA,[t[12]||(t[12]=y("ID ",-1)),n("span",{class:"commit-hash",textContent:u(o?.conferenceID)},null,8,rA),o?.url?(l(),d("span",aA,[t[11]||(t[11]=y(" \xB7 ",-1)),n("a",{target:"_blank",rel:"noopener",textContent:u(e.fmt?.limitTo(o?.url,60)),href:e.safeUrl(o?.url)},null,8,lA)])):f("v-if",!0)])])])]),n("div",dA,[n("div",uA,[n("span",{class:A(["status-dot","status-"+o?.status]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(o?.status))},null,8,cA)])]),n("div",pA,[t[14]||(t[14]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),t[15]||(t[15]=y()),n("span",{textContent:u(e.fmt?.number(o?.nbRepositories||0))},null,8,fA)]),n("div",hA,[t[16]||(t[16]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),o?.startDate?(l(),d("span",mA,u(e.fmt?.date(o?.startDate,"mediumDate"))+" \u2013 "+u(e.fmt?.date(o?.endDate,"mediumDate")),1)):f("v-if",!0),o?.startDate?f("v-if",!0):(l(),d("span",vA,"\u2014"))]),n("div",gA,[n("div",yA,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:o?.removing,"aria-label":"Actions for "+o?.name},[...t[17]||(t[17]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,bA),n("div",wA,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[18]||(t[18]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View ",-1)])],8,kA),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,EA),o?.status!="removed"?(l(),d("div",CA,[t[21]||(t[21]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(o)},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove ",-1)])],8,_A)])):f("v-if",!0)])])])],2))),128)),!e.loading&&!e.error&&e.filteredConferences?.length==0?(l(),d("div",SA,[t[23]||(t[23]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),e.conferences?.length==0?(l(),d("span",NA,"You have not created a conference yet.")):f("v-if",!0),e.conferences?.length>0?(l(),d("span",DA,"Nothing matches the current filters.")):f("v-if",!0),n("div",RA,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=o=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):f("v-if",!0),e.conferences?.length==0?(l(),d("a",TA,[...t[22]||(t[22]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),y(" New conference",-1)])])):f("v-if",!0)])])):f("v-if",!0)])])])}var AA={class:"container page dashboard-page paper-page"},OA={class:"row"},PA={class:"w-100"},IA={class:"dashboard-heading"},VA=["open"],qA=["aria-expanded"],MA=["stroke-dasharray"],$A={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"},LA={key:0,class:"quota-summary-value"},UA={key:0},FA={class:"quota-panel",id:"dashboard-usage"},BA={class:"quota-panel-heading"},zA={key:1,class:"quota-loading",role:"status"},HA={class:"search-wrap"},jA={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search projects, IDs, or conferences\u2026",autocomplete:"off"},GA=["aria-expanded"],WA={class:"btn-group",role:"group","aria-label":"Type"},KA=["aria-pressed"],YA=["aria-pressed"],QA=["aria-pressed"],JA=["aria-pressed"],XA={class:"dropdown"},ZA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},xA={class:"filter-btn-value"},eO={class:"sr-only"},tO={class:"dropdown-menu","aria-labelledby":"dropdownSort"},nO={class:"form-check dropdown-item"},oO=["onClick","checked","id"],sO=["for"],iO={class:"dropdown"},rO={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},aO={key:0,class:"filter-btn-value"},lO={key:1,class:"filter-btn-value"},dO={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},uO={class:"form-check dropdown-item"},cO=["id"],pO=["for"],fO={key:0,class:"dashboard-meta"},hO={class:"dashboard-view-tabs",role:"group","aria-label":"Project view"},mO=["aria-pressed"],vO=["aria-pressed","aria-label"],gO={class:"dashboard-count"},yO={key:0},bO={key:0},wO={key:1},kO={class:"dashboard-active-filters"},EO=["onClick","aria-label","title"],CO=["aria-busy"],_O={class:"paper-table-head",role:"row"},SO=["aria-sort"],NO=["aria-sort"],DO=["aria-sort"],RO=["aria-sort"],TO={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},AO=["onClick"],OO={class:"cell-anon",role:"cell"},PO=["aria-label","title"],IO={class:"project-type-svg","aria-hidden":"true"},VO=["href"],qO={class:"anon-text"},MO={class:"anon-title"},$O=["title","textContent","href"],LO=["textContent"],UO={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},FO={class:"anon-sub"},BO=["title"],zO=["title"],HO=["title"],jO=["textContent"],GO={class:"dashboard-row-meta",role:"presentation"},WO={class:"cell-status",role:"cell"},KO={class:"status-line"},YO=["textContent"],QO=["textContent","title"],JO=["title"],XO=["href"],ZO=["onClick"],xO={key:4,class:"status-sub status-sub-date"},eP=["aria-label"],tP={class:"cell-expires",role:"cell"},nP={key:0,class:"expires-never"},oP=["textContent"],sP={key:2,class:"expires-past"},iP={key:3,class:"expires-past"},rP={key:4,class:"empty-dash","aria-label":"Not applicable"},aP={class:"cell-actions",role:"cell"},lP=["onClick","disabled","title","aria-label"],dP=["onClick","data-project-actions","aria-controls","aria-expanded"],uP={key:2,class:"dropdown"},cP=["data-project-actions","aria-label"],pP={class:"dropdown-menu dropdown-menu-right"},fP=["onClick","aria-controls","aria-expanded"],hP=["href"],mP=["href"],vP=["onClick","disabled"],gP=["href"],yP=["onClick"],bP=["onClick"],wP=["onClick"],kP={key:5},EP=["onClick"],CP={key:1,class:"project-details-row",role:"row"},_P=["id","onKeydown"],SP={class:"project-details-heading"},NP=["onClick"],DP={class:"project-details-list"},RP={key:0},TP={key:1},AP={key:0},OP={key:2},PP={key:0,class:"project-progress-help"},IP=["href"],VP=["onSubmit"],qP=["for"],MP=["id"],$P={class:"project-name-controls"},LP=["id","aria-describedby","disabled"],UP=["disabled"],FP={key:0,class:"project-name-error",role:"alert"},BP={key:1,role:"status"},zP={key:0,class:"paper-table-empty"},HP={key:0},jP={key:1},GP={class:"paper-table-empty-actions"},WP={key:1,href:"/anonymize",class:"btn btn-ink"},KP={key:0,class:"dashboard-pagination"},YP={key:0,role:"alert"},QP=["disabled"];function Sl(e,t){let s=We("quota-usage"),i=ye("field"),o=ye("form");return l(),d("div",AA,[n("div",OA,[n("div",PA,[n("div",IA,[n("div",null,[t[27]||(t[27]=n("h1",{class:"paper-page-title"},"Projects",-1)),t[28]||(t[28]=n("p",{class:"paper-page-lede"},"Manage your anonymous links.",-1)),n("details",{class:"dashboard-quota",open:e.quotaExpanded,onToggle:t[1]||(t[1]=r=>e.quotaExpanded=r.target.open),onKeydown:t[2]||(t[2]=Rn(ce(r=>e.closeQuota(),["prevent","stop"]),["esc"]))},[n("summary",{"aria-controls":"dashboard-usage","aria-expanded":e.quotaExpanded},[(l(),d("svg",{class:A(["quota-summary-ring",e.quota?"quota-"+e.quota.repository.level:""]),viewBox:"0 0 24 24","aria-hidden":"true"},[t[21]||(t[21]=n("circle",{class:"quota-ring-track",cx:"12",cy:"12",r:"9"},null,-1)),e.quota&&!e.quota.repository.unlimited?(l(),d("circle",{key:0,class:"quota-ring-fill",cx:"12",cy:"12",r:"9",pathLength:"100","stroke-dasharray":e.quota.repository.percent+" 100"},null,8,MA)):f("v-if",!0),e.quota?.repository.unlimited?(l(),d("path",$A)):f("v-if",!0)],2)),t[23]||(t[23]=n("span",{class:"quota-summary-label"},"Usage",-1)),e.quota?(l(),d("span",LA,[y(u(e.fmt.number(e.quota.repository.used)),1),e.quota.repository.unlimited?f("v-if",!0):(l(),d("span",UA," / "+u(e.fmt.number(e.quota.repository.total)),1)),t[22]||(t[22]=y(" repos",-1))])):f("v-if",!0),t[24]||(t[24]=n("svg",{class:"project-type-svg quota-summary-chevron","aria-hidden":"true"},[n("use",{href:"#project-icon-chevron"})],-1))],8,qA),n("div",FA,[n("div",BA,[t[26]||(t[26]=n("h2",null,"Account usage",-1)),n("button",{type:"button",class:"project-close","aria-label":"Close usage",onClick:t[0]||(t[0]=r=>e.closeQuota())},[...t[25]||(t[25]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),e.quota?(l(),$t(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",zA,"Loading usage\u2026"))])],40,VA)]),t[29]||(t[29]=pe('',1))]),f(" Search + filters "),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ce(r=>e.submitForm(r,()=>{r.preventDefault()}),["prevent"]))},[n("div",HA,[N(n("input",jA,null,512),[[i,{state:e.viewState,set:r=>{e.search=r},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[3]||(t[3]=r=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[y("Filters",-1),n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1)])],8,GA),n("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[n("div",WA,[n("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=r=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,KA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=r=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[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,YA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=r=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[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,QA),n("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=r=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[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,JA)]),n("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[n("div",XA,[n("button",ZA,[t[35]||(t[35]=n("span",{class:"filter-btn-label"},"Sort",-1)),n("span",xA,u(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)),n("span",eO,u(e.sortDesc()?"descending":"ascending"),1)]),n("div",tO,[t[36]||(t[36]=n("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(G,null,ee(e.sortFields,(r,a,c)=>(l(),d("div",nO,[n("input",{class:"form-check-input",type:"radio",name:"sort",onClick:h=>e.setSort(a,r.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+c},null,8,oO),n("label",{class:"form-check-label",for:"sort-"+c},u(r?.label),9,sO)]))),256)),t[37]||(t[37]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=r=>e.toggleSortDirection())},u(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),n("div",iO,[n("button",rO,[t[38]||(t[38]=n("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?f("v-if",!0):(l(),d("span",aO,"All")),e.hasHiddenStatus()?(l(),d("span",lO,u(e.hiddenStatusCount())+" hidden",1)):f("v-if",!0)]),n("div",dO,[t[39]||(t[39]=n("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(G,null,ee(e.statusKeyLabels,(r,a,c)=>(l(),d("div",uO,[N(n("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,cO),[[i,{state:e.viewState,set:h=>{e.filters.status[a]=h},value:e.filters?.status[a],form:null,options:{}}]]),n("label",{class:"form-check-label",for:"status-"+a},u(r),9,pO)]))),256))])])],2)],2)],32)),[[o,e.viewState]]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(l(),d("div",fO,[n("div",hO,[n("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=r=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[n("span",{class:"dashboard-view-long"},"All projects",-1),n("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,mO),n("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=r=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=n("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=n("span",null,"attention",-1)),t[43]||(t[43]=y()),n("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},u(e.attentionCount()),3)],8,vO)]),n("span",gO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",yO,[y(u(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",bO,"s")):f("v-if",!0)])):(l(),d("span",wO,u(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+u(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),n("div",kO,[(l(!0),d(G,null,ee(e.filters?.status,(r,a,c)=>(l(),d(G,null,[r===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:h=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[y(u(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))],8,EO)):f("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=r=>e.typeFilter="all"),"aria-label":"Show all project types"},[y(u(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0)])]))]),f(" Table "),n("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[n("div",_O,[n("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=r=>e.setSort("_label"))},[t[47]||(t[47]=y(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,SO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=r=>e.setSort("status"))},[t[49]||(t[49]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,NO),n("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=r=>e.setSort("pageView"))},[t[51]||(t[51]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,DO),n("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[n("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=r=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,RO),t[54]||(t[54]=n("div",{role:"columnheader"},[n("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(G,null,ee([1,2,3,4],(r,a)=>(l(),d(G,null,[e.loading?(l(),d("div",TO,[...t[55]||(t[55]=[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)),(l(!0),d(G,null,ee(e.filteredItems,(r,a)=>(l(),d(G,{key:r?._type+":"+(r?._id||a)},[e.loading?f("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":r?._statusKey=="expired"||r?._statusKey=="removed","repo-error":r?.status=="error","row-clickable":!!r?._viewUrl}]),role:"row",onClick:c=>e.openItem(r,c)},[n("div",OO,[n("span",{class:"project-type-icon",role:"img","aria-label":r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist",title:r?._type==="repo"?"Repository":r?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",IO,[n("use",{href:"#project-type-"+r._type},null,8,VO)]))],8,PO),n("div",qO,[n("div",MO,[r?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:r._label,textContent:u(r?._label),href:e.safeUrl(r?._viewUrl)},null,8,$O)):f("v-if",!0),r?._viewUrl?f("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:u(r?._label)},null,8,LO)),r?.role==="coauthor"?(l(),d("span",UO,"Co-author")):f("v-if",!0)]),n("div",FO,[r?._id?(l(),d("code",{key:0,class:"anonymous-id",title:r._id},u(r._id),9,BO)):f("v-if",!0),r?._type==="repo"&&r?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:r.source.commit},u(r.source.commit.substring(0,8)),9,zO)):f("v-if",!0),r?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:r?.conference},[t[56]||(t[56]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=y()),n("span",{textContent:u(r?.conference)},null,8,jO)],8,HO)):f("v-if",!0)])])]),n("div",GO,[n("div",WO,[n("div",KO,[n("span",{class:A(["status-dot","status-"+r?._statusKey]),"aria-hidden":"true"},null,2),n("span",{class:"status-word",textContent:u(e.fmt?.statusLabel(r?.status))},null,8,YO)]),r?.status=="error"&&r?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:u(e.fmt?.statusMsg(r?.statusMessage)),title:r?.statusMessage},null,8,QO)):f("v-if",!0),r?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(r?.anonymizeDate||r?.lastView)}," Last activity "+u(e.fmt?.humanTime(r?.anonymizeDate||r?.lastView))+" \xB7 may be stuck ",9,JO)):f("v-if",!0),r.status==="error"&&r._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(r._editUrl)},"Fix source",8,XO)):f("v-if",!0),r._stale||r._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ce(c=>e.showProjectDetails(r),["stop"])},u(r._broken?"Review details":"Check progress"),9,ZO)):f("v-if",!0),r?.status!="error"&&!r?._stale&&r?.anonymizeDate?(l(),d("div",xO," anonymized "+u(e.fmt?.humanTime(r?.anonymizeDate)),1)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(r.pageView)+" views"},[t[58]||(t[58]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),n("span",null,u(e.fmt.number(r.pageView)),1)],8,eP),n("div",tP,[t[59]||(t[59]=n("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),r?._expiry?.kind==="never"?(l(),d("span",nP,"Never")):f("v-if",!0),r?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:u(e.fmt?.humanTime(r?._expiry?.date))},null,8,oP)):f("v-if",!0),r?._expiry?.kind==="expired"&&r?._expiry?.date?(l(),d("span",sP,"Expired "+u(e.fmt?.humanTime(r?._expiry?.date)),1)):f("v-if",!0),r?._expiry?.kind==="expired"&&!r?._expiry?.date?(l(),d("span",iP,"Expired")):f("v-if",!0),r?._expiry?.kind==="none"?(l(),d("span",rP,"\u2014")):f("v-if",!0)])]),n("div",aP,[r._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ce(c=>e.copyLink(r),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+r._label,"aria-label":"Copy anonymous link for "+r._label},[...t[60]||(t[60]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-copy"})],-1)])],8,lP)):f("v-if",!0),r._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ce(c=>e.showProjectDetails(r),["stop"]),"data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Details",8,dP)):f("v-if",!0),r?._broken?f("v-if",!0):(l(),d("div",uP,[n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(r._type+":"+r._id),"aria-label":"Actions for "+r?._name},[...t[61]||(t[61]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})],-1)])],8,cP),n("div",pP,[n("button",{type:"button",class:"dropdown-item",onClick:c=>e.showProjectDetails(r),"aria-controls":e.projectDetailsId(r),"aria-expanded":e.selectedProject===r},"Project details & name",8,fP),n("a",{class:"dropdown-item",href:e.safeUrl(r?._viewUrl)}," View ",8,hP),r?._type==="repo"&&r?.options?.page&&r?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+r?.repoId+"/")}," View page ",8,mP)):f("v-if",!0),r?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:c=>e.copyLink(r),disabled:!!e.copyingId}," Copy anonymous link ",8,vP)):f("v-if",!0),n("a",{class:"dropdown-item",href:e.safeUrl(r?._editUrl)}," Edit ",8,gP),r?.status=="ready"||r?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:c=>e.refreshItem(r)}," Force update ",8,yP)):f("v-if",!0),r?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:c=>e.refreshItem(r)}," Enable ",8,bP)):f("v-if",!0),r?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:c=>e.extendItem(r)}," Extend 6 months ",8,wP)):f("v-if",!0),(r?.status=="ready"||r?.status=="expired"||r?.status=="error")&&r?.role!=="coauthor"?(l(),d("div",kP,[t[62]||(t[62]=n("div",{class:"dropdown-divider"},null,-1)),n("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:c=>e.removeItem(r)}," Remove ",8,EP)])):f("v-if",!0)])]))])],10,AO)),!e.loading&&e.selectedProject===r?(l(),d("div",CP,[n("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(r),tabindex:"-1",onKeydown:Rn(ce(c=>e.closeProjectDetails(r),["stop"]),["esc"])},[n("div",SP,[t[64]||(t[64]=n("h2",null,"Project details",-1)),n("button",{type:"button",class:"project-close",onClick:c=>e.closeProjectDetails(r),"aria-label":"Close project details"},[...t[63]||(t[63]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,NP)]),n("dl",DP,[n("div",null,[t[65]||(t[65]=n("dt",null,"Source",-1)),n("dd",null,u(r._source||"Not available"),1)]),n("div",null,[t[66]||(t[66]=n("dt",null,"Anonymous ID",-1)),n("dd",null,[n("code",null,u(r._id||"Missing identifier"),1)])]),r.source?.commit?(l(),d("div",RP,[t[67]||(t[67]=n("dt",null,"Commit",-1)),n("dd",null,[n("code",null,u(r.source.commit),1)])])):f("v-if",!0),r.conference?(l(),d("div",TP,[t[68]||(t[68]=n("dt",null,"Conference",-1)),n("dd",null,u(r.conference),1)])):f("v-if",!0),n("div",null,[t[69]||(t[69]=n("dt",null,"Status",-1)),n("dd",null,[y(u(e.fmt.statusLabel(r.status)),1),r.statusMessage?(l(),d("span",AP," \xB7 "+u(e.fmt.statusMsg(r.statusMessage)),1)):f("v-if",!0)])]),r.anonymizeDate?(l(),d("div",OP,[t[70]||(t[70]=n("dt",null,"Last anonymized",-1)),n("dd",null,u(e.fmt.humanTime(r.anonymizeDate)),1)])):f("v-if",!0)]),r._stale?(l(),d("p",PP,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),r._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(r._editUrl)},u(e.needsAttention(r)?"Check source settings":"Edit anonymization settings"),9,IP)):f("v-if",!0),r._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ce(c=>e.saveProjectName(r),["prevent"])},[n("label",{for:"project-name-"+r._type+"-"+r._id},"Project name",8,qP),n("p",{id:"project-name-help-"+r._type+"-"+r._id},"Only you see this name. Leave it blank to use the default.",8,MP),n("div",$P,[N(n("input",{class:"form-control",type:"text",id:"project-name-"+r._type+"-"+r._id,"aria-describedby":"project-name-help-"+r._type+"-"+r._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=c=>e.projectName=c),disabled:e.nameSaving},null,8,LP),[[co,e.projectName]]),n("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},u(e.nameSaving?"Saving\u2026":"Save name"),9,UP)]),e.nameError?(l(),d("p",FP,u(e.nameError),1)):f("v-if",!0),e.nameMessage?(l(),d("p",BP,u(e.nameMessage),1)):f("v-if",!0)],40,VP)):f("v-if",!0)],40,_P)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",zP,[t[72]||(t[72]=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):(l(),d("span",HP,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",jP,"Nothing matches the current filters.")):f("v-if",!0),n("div",GP,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=r=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(l(),d("a",WP,[...t[71]||(t[71]=[n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})],-1),y(" New anonymization",-1)])]))])])):f("v-if",!0)],8,CO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",KP,[e.dashboardError?(l(),d("p",YP,u(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=r=>e.loadMoreProjects()),disabled:e.loadingMore},u(e.loadingMore?"Loading\u2026":"Load more projects"),9,QP)):f("v-if",!0)])):f("v-if",!0)])}var JP={class:"explorer-page"},XP=["aria-label"],ZP={class:"ui-icon","aria-hidden":"true"},xP=["href"],e3=["textContent"],t3={class:"leftCol-head"},n3={class:"leftCol-search"},o3={class:"tree-search-box"},s3=["href"],i3={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},r3={class:"leftCol-project-header"},a3=["textContent"],l3={class:"project-file-count"},d3={class:"leftCol-body"},u3={key:0,class:"paper-inline-warning",role:"alert"},c3={key:1,class:"paper-inline-warning",role:"alert"},p3={class:"leftCol-foot"},f3=["title"],h3=["title"],m3=["title"],v3={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},g3={class:"explorer-main"},y3={class:"status-bar"},b3={class:"breadcrumb paths","aria-label":"Path"},w3=["textContent"],k3={class:"status-bar-actions"},E3=["href"],C3={class:"d-none d-md-inline"},_3={class:"ui-icon","aria-hidden":"true"},S3=["href"],N3={class:"d-none d-md-inline"},D3=["href"],R3=["href"],T3=["href"],A3=["href"],O3={class:"explorer-content"};function Nl(e,t){let s=We("tree"),i=We("partial-view"),o=ye("field");return l(),d("div",JP,[N(n("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=r=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",ZP,[n("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,xP)])),n("span",{textContent:u(e.sidebarCollapsed?"Files":"Close")},null,8,e3)],8,XP),[[j,e.files?.length]]),N(n("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[n("div",t3,[t[7]||(t[7]=n("span",{class:"leftCol-eyebrow"},"Files",-1)),n("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=r=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])])]),n("div",n3,[n("div",o3,[(l(),d("svg",{class:A(["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,s3)],2)),N(n("input",i3,null,512),[[o,{state:e.viewState,set:r=>{e.fileSearchQuery=r},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),N(n("kbd",{class:"tree-search-kbd"},u(e.isMac?"\u2318":"Ctrl+")+"K",513),[[j,!e.fileSearchQuery]]),N(n("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=r=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[j,e.fileSearchQuery]])])]),n("div",r3,[n("span",{class:"project-name",textContent:u(e.repoId)},null,8,a3),n("span",l3,u(e.fileCounts?.[""]||e.files?.length)+" files",1)]),n("div",d3,[e.options?.truncatedFolders?.length>0?(l(),d("div",u3,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(l(),d("div",c3,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),y(" "+u(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Ee(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"])]),n("div",p3,[n("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},u(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+u(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,f3),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+u(e.fmt?.date(e.options.settingsSavedAt)),9,h3)):f("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+u(e.fmt?.date(e.options.publishedAt)),9,m3)):f("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",v3," Snapshot ready date not recorded ")):f("v-if",!0)])],2),[[j,e.files?.length]]),N(n("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=r=>e.sidebarCollapsed=!0)},null,512),[[j,e.files?.length&&!e.sidebarCollapsed]]),n("div",g3,[n("div",y3,[n("ol",b3,[(l(!0),d(G,null,ee(e.paths,(r,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:u(r)},null,8,w3))),256))]),n("div",k3,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[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,E3)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=r=>e.toggleAllowScripts())},[t[11]||(t[11]=n("i",{class:"fab fa-js"},null,-1)),n("span",C3,u(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=r=>e.toggleSource())},[(l(),d("svg",_3,[n("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,S3)])),n("span",N3,u(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),N(n("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,D3),[[j,e.content!=null]]),N(n("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),n("span",{class:"d-none d-md-inline"}," Download",-1)])],8,R3),[[j,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),n("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,T3)):f("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[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,A3)):f("v-if",!0)])]),n("div",O3,[Ee(i,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var P3={class:"paper-faq"};function Dl(e,t){return l(),d("div",P3,[...t[0]||(t[0]=[pe('
Help

Answers to the questions that come up most.

If something's missing, write to us \u2014 report a bug on GitHub.

',1),n("div",{class:"paper-faq-body"},[n("aside",{class:"paper-faq-toc"},[n("div",{class:"paper-faq-toc-head"},"Contents"),n("nav",null,[n("a",{href:"#faq-general"},"General"),n("a",{href:"#faq-plans"},"Plans and billing"),n("a",{href:"#faq-features"},"Features"),n("a",{href:"#faq-limitations"},"Limitations"),n("a",{href:"#faq-privacy"},"Privacy & Security"),n("a",{href:"#faq-hosting"},"Self-Hosting")])]),n("section",{class:"faq-section","aria-label":"FAQs"},[n("div",null,[f(" General "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),y("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",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),n("div",{id:"whatIs",class:"panel-collapse collapse",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 \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),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 \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),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 2 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,[y(" See "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(" 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,[y(" You can also support development through "),n("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank",rel:"noopener"},"GitHub Sponsors"),y(" or "),n("a",{href:"https://ko-fi.com/tdurieux",target:"_blank",rel:"noopener"},"Ko-fi"),y(". 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:"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 2 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 one year ahead."),n("p",null,"Repositories shared with you as a coauthor 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,[y("Both include 20 owned repositories and 10 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"),y(".")]),n("p",null,[y("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"),y(".")]),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,"The author review pass covers one selected repository for 180 days, with a separate 2 GiB allowance and automatic refresh when enabled. It is a one-time purchase and does not renew automatically."),n("p",null,[y("Enter the anonymized ID of an existing repository you own in "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(". A pass does not unlock Never expire and does not override the repository's chosen expiration date.")])])])]),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 of 100 repositories and 50 GiB for a review window of up to 180 days. The organizer pays once; the package does not renew automatically. A lab organizing a review can use this shared package too."),n("p",null,"The paid 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 monthly or annual author subscription. See the available offer when creating a conference.")])])]),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 coauthor 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. Coauthors 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 coauthor's personal allowance."),n("p",null,"A coauthor's subscription does not increase the owner's allowance. If the owner's available capacity is exhausted, a coauthor'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, choose a paid plan, 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,[y("Never expire is available to monthly and annual author subscribers. If paid access ends, these repositories remain available for a "),n("strong",null,"90-day grace period"),y(", 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,[y("Open "),n("a",{href:"/profile#settings-billing"},"Plans and billing"),y(" and choose "),n("strong",null,"Manage billing and invoices"),y(" 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:"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,[y("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"),y(".")]),n("p",null,[y("Paid access is activated after payment is confirmed. If checkout succeeds but your account has not updated, choose "),n("strong",null,"Refresh payment status"),y(" 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"})]),y("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"),y(" \u2014 displayed with syntax highlighting")]),n("li",null,[n("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),n("li",null,[n("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),n("li",null,[n("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),n("li",null,[n("strong",null,"Jupyter Notebooks"),y(" \u2014 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"),y(": 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"),y(".")]),n("li",null,[n("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),n("li",null,[n("strong",null,"Remove content"),y(" \u2014 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"})]),y("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 & Security "),n("h4",{class:"faq-cat"},[n("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})]),y("Privacy & 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 \u2014 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,[y("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"),y(" 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"})]),y("Self-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,[y(" 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"),y(". ")]),n("p",null," The basic steps are: "),n("ol",null,[n("li",null,"Clone the repository and install dependencies"),n("li",null,[y("Create a "),n("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),n("li",null,[y("Run "),n("code",null,"docker-compose up -d")])])])])])]),n("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[n("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),n("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),n("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var I3={class:"pr-page"},V3={class:"container paper-page pr-page-inner"},q3={class:"pr-header"},M3={class:"pr-title-row"},$3={class:"paper-page-title pr-title"},L3=["textContent"],U3={key:1,class:"text-muted"},F3=["href"],B3={class:"pr-header-meta"},z3={key:0,class:"pr-meta-item"},H3=["textContent"],j3={key:1,class:"pr-meta-item"},G3=["textContent"],W3={key:2,class:"pr-meta-item"},K3=["textContent"],Y3={key:0,class:"paper-tabs",role:"tablist"},Q3=["aria-selected","tabindex"],J3=["textContent"],X3=["aria-selected","tabindex"],Z3=["textContent"],x3={class:"paper-tab-content"},eI={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},tI={class:"pr-comments"},nI={class:"pr-comment"},oI={class:"pr-comment-head"},sI=["textContent"],iI={key:0,class:"pr-comment-date"},rI={key:0,class:"paper-table-empty"},aI={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},lI={class:"pr-comments"},dI={class:"pr-comment"},uI={class:"pr-comment-head"},cI={key:0,class:"pr-comment-author"},pI=["textContent"],fI=["textContent"],hI={key:0,class:"pr-comment-body"},mI={key:0,class:"paper-table-empty"};function Rl(e,t){let s=We("gist-file"),i=We("markdown");return l(),d("div",I3,[n("div",V3,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),n("span",{class:"here"},"Gist")],-1)),n("header",q3,[n("div",M3,[n("h1",$3,[e.details?.description?(l(),d("span",{key:0,textContent:u(e.details?.description)},null,8,L3)):f("v-if",!0),e.details?.description?f("v-if",!0):(l(),d("span",U3,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[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,F3)):f("v-if",!0)]),n("div",B3,[n("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},u(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",z3,[t[5]||(t[5]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=y(" @",-1)),n("span",{textContent:u(e.details?.ownerLogin)},null,8,H3)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",j3,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=y()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,G3)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",W3,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=y(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,K3)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",Y3,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=o=>e.previewTabKeydown(o)),onClick:t[1]||(t[1]=o=>e.tabState.active="files")},[t[11]||(t[11]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-gist"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,J3)],42,Q3)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=o=>e.previewTabKeydown(o)),onClick:t[3]||(t[3]=o=>e.tabState.active="comments")},[t[12]||(t[12]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Z3)],42,X3)):f("v-if",!0)])):f("v-if",!0),n("div",x3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",eI,[n("ul",tI,[(l(!0),d(G,null,ee(e.details?.files,(o,r)=>(l(),d("li",nI,[n("div",oI,[n("strong",{textContent:u(o?.filename)},null,8,sI),o?.language?(l(),d("span",iI,u(o?.language),1)):f("v-if",!0)]),Ee(s,{file:o},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(l(),d("li",rI,[...t[13]||(t[13]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",aI,[n("ul",lI,[(l(!0),d(G,null,ee(e.details?.comments,(o,r)=>(l(),d("li",dI,[n("div",uI,[o?.author?(l(),d("span",cI,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=y(" @",-1)),n("span",{textContent:u(o?.author)},null,8,pI)])):f("v-if",!0),o?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(o?.updatedDate))},null,8,fI)):f("v-if",!0)]),o?.body?(l(),d("div",hI,[Ee(i,{content:o?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",mI,[...t[16]||(t[16]=[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 vI={class:"collapse navbar-collapse",id:"navbarSupportedContent"},gI={class:"navbar-nav mr-auto smooth-scroll"},yI={key:0,class:"nav-item"},bI={key:1,class:"nav-item"},wI={key:2,class:"nav-item"},kI={key:3,class:"nav-item"},EI={class:"nav-item"},CI={key:4,class:"nav-item"},_I={class:"navbar-nav"},SI={key:0,class:"nav-item"},NI={key:1,class:"nav-item"},DI={key:2,class:"nav-item"},RI={key:3,class:"nav-item"},TI={key:4,class:"nav-item dropdown user-chip-wrap"},AI={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},OI=["src"],PI={class:"user-chip-name"},II={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},VI={class:"dropdown-header"},qI=["innerHTML"];function Tl(e,t){return l(),d(G,null,[n("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[14]||(t[14]=pe('Anonymous GitHubSupport',3)),n("div",vI,[n("ul",gI,[e.user?f("v-if",!0):(l(),d("li",yI,[n("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",bI,[n("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[3]||(t[3]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-grid"})],-1),y(" My work ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",wI,[n("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[4]||(t[4]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),y(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",kI,[n("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[5]||(t[5]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1),y(" Conferences ",-1)])],2)])):f("v-if",!0),n("li",EI,[n("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[6]||(t[6]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})],-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",CI,[n("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[7]||(t[7]=[n("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-filter"})],-1),y(" Admin ",-1)])],2)])):f("v-if",!0)]),n("ul",_I,[t[12]||(t[12]=n("li",{class:"nav-item"},[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(` "Report a bug" is about this service. Reviewers who land on an anonymized repository often think it is about the paper, so the - label names the service and the tooltip says who to contact. `),t[13]||(t[13]=n("li",{class:"nav-item d-none d-lg-block"},[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"})]),y("Report a bug ")])],-1)),e.isDarkMode?p("v-if",!0):(l(),d("li",SI,[n("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ue(s=>{e.darkMode(!0)},["prevent"]))},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",NI,[n("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ue(s=>{e.darkMode(!1)},["prevent"]))},[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):p("v-if",!0),e.user?p("v-if",!0):(l(),d("li",DI,[...t[10]||(t[10]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(l(),d("li",RI,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[2]||(t[2]=ue(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):p("v-if",!0),e.user?(l(),d("li",TI,[n("a",AI,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,OI)):p("v-if",!0),n("span",PI,u(e.user?.username),1)]),n("div",II,[n("h6",VI,"Signed in as @"+u(e.user?.username),1),t[11]||(t[11]=pe('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSupport the projectSign out',9))])])):p("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,qI)):p("v-if",!0)],64)}var MI={class:"paper-landing"},$I={class:"paper-hero"},LI={class:"paper-hero-copy"},UI={class:"paper-cta-row"},FI={key:0,href:"/signin",target:"_self",class:"btn-hero"},BI={key:1,href:"/anonymize",class:"btn-hero"},zI={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},HI={class:"paper-stats-grid"},jI={class:"paper-stat-value"},GI={class:"paper-stat-label"},WI=["viewBox"],KI=["x","y","width","height"],YI={key:1,class:"paper-stat-delta"},QI={class:"paper-features paper-wrap","aria-label":"Product features"},JI={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},XI=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],ZI={class:"paper-eyebrow"},xI={class:"paper-feature-title"},e4={class:"paper-feature-more"},t4={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},n4=["href","target"],o4={class:"paper-features-stage"},s4=["id","aria-labelledby"],i4={class:"paper-frame"},r4={class:"paper-frame-bar","aria-hidden":"true"},a4={class:"url"},l4=["src","alt"],d4={class:"paper-footer"},u4={class:"paper-footer-inner"},c4={class:"paper-footer-col"},p4={key:0,href:"/dashboard"},f4={key:1,href:"/conferences"},h4={class:"paper-footer-foot"};function Al(e,t){return l(),d("div",MI,[p(" Hero: copy on the left, the product on the right "),n("section",$I,[n("div",LI,[t[2]||(t[2]=n("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=n("h1",{class:"hero-title"},[y(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=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",UI,[e.user?p("v-if",!0):(l(),d("a",FI,[...t[0]||(t[0]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",BI," Anonymize a repository \u2192 ")):p("v-if",!0),t[1]||(t[1]=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[5]||(t[5]=n("ul",{class:"paper-reassure"},[n("li",null,"Free and open source"),n("li",null,"Read-only: never writes to your repos"),n("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=pe('
A reviewer preview with the author, affiliation, and email replaced by anonymous terms
',1))]),p(" Proof "),t[16]||(t[16]=pe('
Trusted by authors at
ICSEFSEOOPSLA
',1)),p(" Live stats "),n("section",zI,[t[7]||(t[7]=n("div",{class:"paper-stats-meta"},[n("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),n("div",{class:"paper-stats-meta-right"},[n("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),n("div",HI,[(l(!0),d(W,null,Z(e.cards,(s,i)=>(l(),d("div",{class:"paper-stat-card",key:s?.key},[n("div",jI,u(e.fmt?.bigNum(s?.total)),1),n("div",GI,u(s?.label),1),e.history[s?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[s?.key].viewW+" 36"},[(l(!0),d(W,null,Z(e.history[s?.key].bars,(o,r)=>(l(),d("rect",{key:r,class:A({"is-latest":r===e.history[s.key].bars.length-1}),x:o?.x,y:o?.y,width:o?.w,height:o?.h},null,10,KI))),128))],8,WI)):p("v-if",!0),e.history[s?.key].bars?.length>1?(l(),d("div",YI," +"+u(e.fmt?.number(e.history[s?.key].deltaToday))+" today ",1)):p("v-if",!0)]))),128))])]),p(" Before / after "),t[17]||(t[17]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Before \xB7 after"),n("h2",null,[y("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)),t[18]||(t[18]=n("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[n("div",{class:"pane"},[n("div",{class:"pane-header"},[n("span",{class:"pane-label"},"Before \xB7 your repo"),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),n("div",{class:"pane-body"},[n("div",null,[n("span",{class:"tok"},"#"),y(),n("strong",null,"DeepLearnUtils")]),n("div",null,"Developed by Jane Smith at MIT CSAIL."),n("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),n("div",null,"Contact: jane.smith@mit.edu")])]),n("div",{class:"pane"},[n("div",{class:"pane-header"},[n("span",{class:"pane-label"},"After \xB7 anonymous mirror"),n("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"pane-body"},[n("div",null,[n("span",{class:"tok"},"#"),y(),n("strong",null,"DeepLearnUtils")]),n("div",null,[y("Developed by "),n("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),n("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),n("div",null,[y("See "),n("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),n("div",null,[y("Contact: "),n("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),p(" What you get: one screenshot, three tabs "),t[19]||(t[19]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,[y("Anonymize, review, "),n("em",null,"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",QI,[n("div",JI,[(l(!0),d(W,null,Z(e.features,(s,i)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===s?.key}]),key:s?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:o=>e.selectFeature(s.key),onKeydown:o=>e.featureKeydown(o,i),id:"feature-tab-"+s?.key,"aria-controls":"feature-panel-"+s?.key,"aria-selected":e.feature===s?.key,tabindex:e.feature===s?.key?0:-1},[n("span",ZI,u(s?.num)+" \xB7 "+u(s?.eyebrow),1),n("span",xI,[y(u(s?.title)+" ",1),n("em",null,u(s?.accent),1)])],40,XI),n("div",e4,[n("span",t4,[y(u(s?.title)+" ",1),n("em",null,u(s?.accent),1)]),n("p",null,u(s?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(s)),target:e.featureTarget(s)},u(s?.cta)+" \u2192",9,n4)])],2))),128))]),n("div",o4,[(l(!0),d(W,null,Z(e.features,(s,i)=>N((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:s?.key,id:"feature-panel-"+s?.key,"aria-labelledby":"feature-tab-"+s?.key},[n("div",i4,[n("div",r4,[t[8]||(t[8]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",a4,u(s?.url),1)]),n("div",{class:A("paper-crop paper-crop-"+s?.key)},[n("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(s?.img),alt:s?.alt},null,8,l4)],2)])],8,s4)),[[G,e.feature===s?.key]])),128))])]),p(" FAQ teaser "),t[20]||(t[20]=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.

',1)),n("footer",d4,[n("div",u4,[t[12]||(t[12]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[y("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",c4,[t[9]||(t[9]=n("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",p4,"My work")):p("v-if",!0),e.user?(l(),d("a",f4,"Conferences")):p("v-if",!0),t[11]||(t[11]=n("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=pe('',2))]),t[15]||(t[15]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",h4,[n("span",null,"\xA9 "+u(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var m4={class:"paper-empty"},v4={class:"paper-empty-inner"},g4={key:0,class:"paper-eyebrow"},y4={key:1,class:"paper-eyebrow"},b4={key:2,class:"paper-empty-title"},w4=["textContent"];function Ol(e,t){return l(),d("div",m4,[n("div",v4,[e.error?p("v-if",!0):(l(),d("div",g4,"Working")),e.error?(l(),d("div",y4,"Error")):p("v-if",!0),e.error?p("v-if",!0):(l(),d("h1",b4,[...t[0]||(t[0]=[y(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:u(e.fmt.translate(e.error))},null,8,w4)):p("v-if",!0)])])}var k4={class:"container paper-page paper-settings"},E4={class:"paper-crumbs"},C4={class:"here"},_4={class:"paper-page-title"},S4={class:"paper-settings-body"},N4={class:"paper-settings-toc"},D4={href:"#conf-billing"},R4={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},T4={id:"conf-basics",class:"paper-settings-section"},A4={class:"form-group"},O4={class:"invalid-feedback"},P4={class:"invalid-feedback"},I4={class:"form-group"},V4={class:"invalid-feedback"},q4={class:"form-group"},M4={class:"invalid-feedback"},$4={class:"invalid-feedback"},L4={id:"conf-window",class:"paper-settings-section"},U4={class:"form-grid-2"},F4={class:"form-group"},B4={class:"invalid-feedback"},z4={class:"invalid-feedback"},H4={class:"form-group"},j4={class:"invalid-feedback"},G4={class:"invalid-feedback"},W4={id:"conf-rendering",class:"paper-settings-section"},K4={class:"form-check"},Y4={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Q4={class:"form-check"},J4={class:"form-check-input",type:"checkbox",id:"image",name:"image"},X4={class:"form-check"},Z4={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},x4={class:"form-check"},eV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},tV={id:"conf-features",class:"paper-settings-section"},nV={class:"form-check"},oV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},sV={class:"form-check"},iV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},rV={id:"conf-plan",class:"paper-settings-section"},aV={class:"paper-plan-grid"},lV=["disabled","value"],dV=["textContent"],uV={class:"paper-plan-price"},cV={class:"paper-plan-per"},pV=["innerHTML"],fV={key:0,id:"conf-billing",class:"paper-settings-section"},hV={class:"form-group"},mV={class:"form-group"},vV={class:"form-group"},gV={class:"form-group"},yV={class:"form-grid-3"},bV={class:"form-group"},wV={class:"form-group"},kV={class:"form-group"},EV={class:"form-group"},CV={class:"paper-settings-footer"},_V=["textContent"],SV=["textContent"],NV=["disabled"];function Pl(e,t){let s=ye("paper-scrollspy"),i=ye("field"),o=ye("form");return l(),d("div",k4,[n("div",E4,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),n("span",C4,u(e.editionMode?"Edit":"New"),1)]),n("h1",_4,[y(u(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[41]||(t[41]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),n("div",S4,[N((l(),d("aside",N4,[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)),N(n("a",D4,"Billing",512),[[G,e.plan?.pricePerRepo>0]])])])),[[s]]),N((l(),d("form",R4,[n("section",T4,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",A4,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),N(n("div",O4," The name of the conference is invalid. ",512),[[G,e.conference?.name?.errors?.invalid]]),N(n("div",P4," The name of the conference is required. ",512),[[G,e.conference?.name?.errors?.required]])]),n("div",I4,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),N(n("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),N(n("div",V4," The url of the conference is invalid. ",512),[[G,e.conference?.url?.errors?.url]])]),n("div",q4,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),n("code",null,"-"),y(" and "),n("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),N(n("div",{class:"invalid-feedback"}," The conference ID '"+u(e.options?.conferenceID)+"' is already used. ",513),[[G,e.conference?.conferenceID?.errors?.used]]),N(n("div",M4," The conference ID is required. ",512),[[G,e.conference?.conferenceID?.errors?.required]]),N(n("div",$4," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[G,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",L4,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",U4,[n("div",F4,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),N(n("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),N(n("div",B4," Start date is required. ",512),[[G,e.conference?.startDate?.errors?.required]]),N(n("div",z4," Start date must be before end date. ",512),[[G,e.conference?.startDate?.errors?.invalid]])]),n("div",H4,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),N(n("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),N(n("div",j4," End date is required. ",512),[[G,e.conference?.endDate?.errors?.required]]),N(n("div",G4," End date is invalid. ",512),[[G,e.conference?.endDate?.errors?.invalid]])])])]),n("section",W4,[t[25]||(t[25]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",K4,[N(n("input",Y4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",Q4,[N(n("input",J4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",X4,[N(n("input",Z4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",x4,[N(n("input",eV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),n("section",tV,[t[30]||(t[30]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",nV,[N(n("input",oV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",sV,[N(n("input",iV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",rV,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[32]||(t[32]=n("p",{class:"paper-section-copy"},"The review package is prepaid and covers up to 180 days. Pay from the conference page after creating it. Plan and review dates cannot change after creation.",-1)),n("div",aV,[(l(!0),d(W,null,Z(e.plans,(r,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}])},[N(n("input",{type:"radio",disabled:e.editionMode,name:"planPicker",value:r?.id},null,8,lV),[[i,{state:e.viewState,set:c=>{e.options.plan.planID=c},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:u(r?.name)},null,8,dV),n("div",uV,[y(u(r.id==="free_conference"?"Free":"Prepaid package")+" ",1),n("span",cV,u(r.id==="free_conference"?"":"Price on the conference page"),1)]),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,pV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",fV,[t[40]||(t[40]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",hV,[t[33]||(t[33]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",mV,[t[34]||(t[34]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),N(n("input",{type:"email",class:A(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",vV,[t[35]||(t[35]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",gV,[N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",yV,[n("div",bV,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",wV,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",kV,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",EV,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):p("v-if",!0),n("div",CV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,_V)):p("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:u(e.message)},null,8,SV)):p("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ue(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},u(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,NV)])])),[[o,e.viewState]])])])}var DV={key:0},RV=["innerHTML"],TV={key:3},AV=["src"],OV=["src"],PV={key:7},IV={controls:"controls"},VV=["src"],qV={key:8},MV={key:9,class:"file-error container d-flex h-100"},$V={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},LV={class:"paper-error-msg"},UV={key:10,class:"file-error container d-flex h-100"},FV=["textContent"],BV={key:11,class:"file-error container d-flex h-100"},zV={key:12,class:"file-error container d-flex h-100"},HV={key:13,class:"file-error container d-flex h-100"},jV={key:14,class:"file-error container d-flex h-100"},GV={class:"paper-empty-title m-auto"},WV=["href"];function Il(e,t){let s=We("html-doc"),i=We("pdfviewer"),o=We("notebook"),r=ye("code-editor");return l(),d(W,null,[e.type=="text"?N((l(),d("div",DV,null,512)),[[r,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,RV)):p("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),$t(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):p("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",TV,null,512)),[[r,{content:e.content,options:e.aceOption}]]):p("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,AV)):p("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,OV)):p("v-if",!0),e.type=="pdf"?(l(),$t(i,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):p("v-if",!0),e.type=="audio"?(l(),d("div",PV,[n("audio",IV,[n("source",{src:e.safeUrl(e.url)},null,8,VV)])])):p("v-if",!0),e.type=="IPython"?(l(),d("div",qV,[_e(o,{file:e.url,content:e.content},null,8,["file","content"])])):p("v-if",!0),e.type=="rate_limited"?(l(),d("div",MV,[n("div",$V,[t[2]||(t[2]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",LV,[t[0]||(t[0]=y("This repository will be available in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):p("v-if",!0),e.type=="error"?(l(),d("div",UV,[n("h1",{class:"paper-empty-title m-auto",textContent:u(e.fmt.translate("ERRORS."+e.content))},null,8,FV)])):p("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",BV,[...t[3]||(t[3]=[n("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):p("v-if",!0),e.type=="empty"?(l(),d("div",zV,[...t[4]||(t[4]=[n("h1",{class:"paper-empty-title m-auto"},[y("Empty "),n("em",null,"repository"),y(".")],-1)])])):p("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",HV,[...t[5]||(t[5]=[n("h1",{class:"paper-empty-title m-auto"},[y("Empty "),n("em",null,"file"),y(".")],-1)])])):p("v-if",!0),e.type=="binary"?(l(),d("div",jV,[n("h1",GV,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=n("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),n("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,WV),t[9]||(t[9]=y(".",-1))])])):p("v-if",!0)],64)}var KV={class:"container page dashboard-page paper-page"},YV={class:"row"},QV={class:"w-100"},JV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},XV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},ZV={class:"flex-grow-1"},xV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},e5={class:"d-flex flex-wrap",style:{gap:"6px"}},t5={class:"dropdown"},n5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},o5={class:"form-check dropdown-item"},s5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},i5={class:"form-check dropdown-item"},r5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},a5={class:"form-check dropdown-item"},l5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},d5={class:"form-check dropdown-item"},u5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},c5={class:"form-check dropdown-item"},p5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},f5={class:"dropdown"},h5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},m5={class:"form-check dropdown-item"},v5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},g5={class:"form-check dropdown-item"},y5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},b5={class:"form-check dropdown-item"},w5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},k5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},E5={class:"filter-chip"},C5=["onClick"],_5={class:"repo-list w-100"},S5={class:"repo-list-item-content"},N5={class:"repo-list-item-main"},D5={class:"repo-list-item-header"},R5=["textContent","href"],T5=["textContent"],A5=["textContent"],O5={class:"repo-source"},P5=["href"],I5={class:"repo-date"},V5={class:"repo-meta"},q5={key:0,title:"Conference"},M5=["title"],$5=["title"],L5=["title"],U5={key:1},F5={class:"repo-list-item-actions"},B5={class:"dropdown"},z5={class:"dropdown-menu dropdown-menu-right"},H5=["href"],j5=["onClick"],G5=["onClick"],W5=["onClick"],K5=["href"],Y5={key:0,class:"repo-list-empty"};function Vl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",KV,[n("div",YV,[n("div",QV,[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)),p(" Search + filters row "),N((l(),d("form",JV,[n("div",XV,[n("div",ZV,[N(n("input",xV,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",e5,[n("div",t5,[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",n5,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",o5,[N(n("input",s5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",i5,[N(n("input",r5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",a5,[N(n("input",l5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",d5,[N(n("input",u5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",c5,[N(n("input",p5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",f5,[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",h5,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",m5,[N(n("input",v5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",g5,[N(n("input",y5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",b5,[N(n("input",w5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),p(" Active filter chips "),N(n("div",k5,[(l(!0),d(W,null,Z(e.filters?.status,(o,r,a)=>N((l(),d("span",E5,[y(u(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:c=>{e.filters.status[r]=!0}}," \xD7 ",8,C5)],512)),[[G,!o]])),256))],512),[[G,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),p(" Pull request list "),n("ul",_5,[(l(!0),d(W,null,Z(e.filteredPullRequests,(o,r)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",S5,[n("div",N5,[n("div",D5,[n("a",{class:"repo-name",textContent:u(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,R5),n("span",{class:A(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,T5),o?.status=="error"?(l(),d("span",{key:0,textContent:u(": "+o?.statusMessage)},null,8,A5)):p("v-if",!0)],2)]),n("div",O5,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},u(o?.source?.repositoryFullName)+"#"+u(o?.source?.pullRequestId),9,P5)]),n("span",{class:A(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},u(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",I5,"anonymized "+u(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",V5,[o?.conference?(l(),d("span",q5,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):p("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),y(" "+u(e.fmt?.number(o?.options?.terms?.length)),1)],8,M5),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),y(" "+u(e.fmt?.number(o?.pageView)),1)],8,$5),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),y(" "+u(e.fmt?.humanTime(o?.lastView)),1)],8,L5),o?.options?.expirationMode!="never"&&o?.status=="ready"?(l(),d("span",U5,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),y(" Expire: "+u(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):p("v-if",!0)])]),n("div",F5,[n("div",B5,[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",z5,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,H5),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update ",-1)])],8,j5),[[G,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable ",-1)])],8,G5),[[G,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ue(a=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove ",-1)])],8,W5),[[G,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View PR ",-1)])],8,K5)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",Y5,[...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)])])):p("v-if",!0)])])])}var Q5={class:"container paper-page user-settings"},J5={class:"settings-title"},X5={class:"settings-header-actions"},Z5={class:"settings-nav","aria-label":"Settings"},x5=["aria-current","onClick"],eq={class:"settings-row"},tq={class:"form-control",id:"terms",name:"terms",rows:"3",placeholder:`Jane Smith + label names the service and the tooltip says who to contact. `),t[13]||(t[13]=n("li",{class:"nav-item d-none d-lg-block"},[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"})]),y("Report a bug ")])],-1)),e.isDarkMode?f("v-if",!0):(l(),d("li",SI,[n("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ce(s=>{e.darkMode(!0)},["prevent"]))},[...t[8]||(t[8]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",NI,[n("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ce(s=>{e.darkMode(!1)},["prevent"]))},[...t[9]||(t[9]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),e.user?f("v-if",!0):(l(),d("li",DI,[...t[10]||(t[10]=[n("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[n("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?.username&&e.headerCanUpgrade&&!e.headerBillingPending?(l(),d("li",RI,[n("a",{class:"nav-link nav-upgrade",href:"/profile?upgrade=1",onClick:t[2]||(t[2]=ce(s=>e.openHeaderUpgrade(),["prevent"]))},"Upgrade")])):f("v-if",!0),e.user?(l(),d("li",TI,[n("a",AI,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,OI)):f("v-if",!0),n("span",PI,u(e.user?.username),1)]),n("div",II,[n("h6",VI,"Signed in as @"+u(e.user?.username),1),t[11]||(t[11]=pe('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSupport the projectSign out',9))])])):f("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,qI)):f("v-if",!0)],64)}var MI={class:"paper-landing"},$I={class:"paper-hero"},LI={class:"paper-hero-copy"},UI={class:"paper-cta-row"},FI={key:0,href:"/signin",target:"_self",class:"btn-hero"},BI={key:1,href:"/anonymize",class:"btn-hero"},zI={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},HI={class:"paper-stats-grid"},jI={class:"paper-stat-value"},GI={class:"paper-stat-label"},WI=["viewBox"],KI=["x","y","width","height"],YI={key:1,class:"paper-stat-delta"},QI={class:"paper-features paper-wrap","aria-label":"Product features"},JI={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},XI=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],ZI={class:"paper-eyebrow"},xI={class:"paper-feature-title"},e4={class:"paper-feature-more"},t4={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},n4=["href","target"],o4={class:"paper-features-stage"},s4=["id","aria-labelledby"],i4={class:"paper-frame"},r4={class:"paper-frame-bar","aria-hidden":"true"},a4={class:"url"},l4=["src","alt"],d4={class:"paper-footer"},u4={class:"paper-footer-inner"},c4={class:"paper-footer-col"},p4={key:0,href:"/dashboard"},f4={key:1,href:"/conferences"},h4={class:"paper-footer-foot"};function Al(e,t){return l(),d("div",MI,[f(" Hero: copy on the left, the product on the right "),n("section",$I,[n("div",LI,[t[2]||(t[2]=n("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=n("h1",{class:"hero-title"},[y(" Share the code,"),n("br"),n("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=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",UI,[e.user?f("v-if",!0):(l(),d("a",FI,[...t[0]||(t[0]=[n("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",BI," Anonymize a repository \u2192 ")):f("v-if",!0),t[1]||(t[1]=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[5]||(t[5]=n("ul",{class:"paper-reassure"},[n("li",null,"Free and open source"),n("li",null,"Read-only: never writes to your repos"),n("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=pe('
A reviewer preview with the author, affiliation, and email replaced by anonymous terms
',1))]),f(" Proof "),t[16]||(t[16]=pe('
Trusted by authors at
ICSEFSEOOPSLA
',1)),f(" Live stats "),n("section",zI,[t[7]||(t[7]=n("div",{class:"paper-stats-meta"},[n("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),n("div",{class:"paper-stats-meta-right"},[n("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),n("div",HI,[(l(!0),d(G,null,ee(e.cards,(s,i)=>(l(),d("div",{class:"paper-stat-card",key:s?.key},[n("div",jI,u(e.fmt?.bigNum(s?.total)),1),n("div",GI,u(s?.label),1),e.history[s?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[s?.key].viewW+" 36"},[(l(!0),d(G,null,ee(e.history[s?.key].bars,(o,r)=>(l(),d("rect",{key:r,class:A({"is-latest":r===e.history[s.key].bars.length-1}),x:o?.x,y:o?.y,width:o?.w,height:o?.h},null,10,KI))),128))],8,WI)):f("v-if",!0),e.history[s?.key].bars?.length>1?(l(),d("div",YI," +"+u(e.fmt?.number(e.history[s?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))])]),f(" Before / after "),t[17]||(t[17]=n("section",{class:"paper-section-head paper-wrap"},[n("div",null,[n("div",{class:"paper-eyebrow"},"Before \xB7 after"),n("h2",null,[y("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)),t[18]||(t[18]=n("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[n("div",{class:"pane"},[n("div",{class:"pane-header"},[n("span",{class:"pane-label"},"Before \xB7 your repo"),n("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),n("div",{class:"pane-body"},[n("div",null,[n("span",{class:"tok"},"#"),y(),n("strong",null,"DeepLearnUtils")]),n("div",null,"Developed by Jane Smith at MIT CSAIL."),n("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),n("div",null,"Contact: jane.smith@mit.edu")])]),n("div",{class:"pane"},[n("div",{class:"pane-header"},[n("span",{class:"pane-label"},"After \xB7 anonymous mirror"),n("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),n("div",{class:"pane-body"},[n("div",null,[n("span",{class:"tok"},"#"),y(),n("strong",null,"DeepLearnUtils")]),n("div",null,[y("Developed by "),n("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),n("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),n("div",null,[y("See "),n("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),n("div",null,[y("Contact: "),n("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),f(" What you get: one screenshot, three tabs "),t[19]||(t[19]=n("section",{class:"paper-section-head paper-wrap",id:"about"},[n("div",null,[n("div",{class:"paper-eyebrow"},"What you get"),n("h2",null,[y("Anonymize, review, "),n("em",null,"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",QI,[n("div",JI,[(l(!0),d(G,null,ee(e.features,(s,i)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===s?.key}]),key:s?.key},[n("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:o=>e.selectFeature(s.key),onKeydown:o=>e.featureKeydown(o,i),id:"feature-tab-"+s?.key,"aria-controls":"feature-panel-"+s?.key,"aria-selected":e.feature===s?.key,tabindex:e.feature===s?.key?0:-1},[n("span",ZI,u(s?.num)+" \xB7 "+u(s?.eyebrow),1),n("span",xI,[y(u(s?.title)+" ",1),n("em",null,u(s?.accent),1)])],40,XI),n("div",e4,[n("span",t4,[y(u(s?.title)+" ",1),n("em",null,u(s?.accent),1)]),n("p",null,u(s?.text),1),n("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(s)),target:e.featureTarget(s)},u(s?.cta)+" \u2192",9,n4)])],2))),128))]),n("div",o4,[(l(!0),d(G,null,ee(e.features,(s,i)=>N((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:s?.key,id:"feature-panel-"+s?.key,"aria-labelledby":"feature-tab-"+s?.key},[n("div",i4,[n("div",r4,[t[8]||(t[8]=n("span",{class:"dots"},[n("i"),n("i"),n("i")],-1)),n("span",a4,u(s?.url),1)]),n("div",{class:A("paper-crop paper-crop-"+s?.key)},[n("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(s?.img),alt:s?.alt},null,8,l4)],2)])],8,s4)),[[j,e.feature===s?.key]])),128))])]),f(" FAQ teaser "),t[20]||(t[20]=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.

',1)),n("footer",d4,[n("div",u4,[t[12]||(t[12]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[y("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",c4,[t[9]||(t[9]=n("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",p4,"My work")):f("v-if",!0),e.user?(l(),d("a",f4,"Conferences")):f("v-if",!0),t[11]||(t[11]=n("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=pe('',2))]),t[15]||(t[15]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",h4,[n("span",null,"\xA9 "+u(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var m4={class:"paper-empty"},v4={class:"paper-empty-inner"},g4={key:0,class:"paper-eyebrow"},y4={key:1,class:"paper-eyebrow"},b4={key:2,class:"paper-empty-title"},w4=["textContent"];function Ol(e,t){return l(),d("div",m4,[n("div",v4,[e.error?f("v-if",!0):(l(),d("div",g4,"Working")),e.error?(l(),d("div",y4,"Error")):f("v-if",!0),e.error?f("v-if",!0):(l(),d("h1",b4,[...t[0]||(t[0]=[y(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:u(e.fmt.translate(e.error))},null,8,w4)):f("v-if",!0)])])}var k4={class:"container paper-page paper-settings"},E4={class:"paper-crumbs"},C4={class:"here"},_4={class:"paper-page-title"},S4={class:"paper-settings-body"},N4={class:"paper-settings-toc"},D4={href:"#conf-billing"},R4={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},T4={id:"conf-basics",class:"paper-settings-section"},A4={class:"form-group"},O4={class:"invalid-feedback"},P4={class:"invalid-feedback"},I4={class:"form-group"},V4={class:"invalid-feedback"},q4={class:"form-group"},M4={class:"invalid-feedback"},$4={class:"invalid-feedback"},L4={id:"conf-window",class:"paper-settings-section"},U4={class:"form-grid-2"},F4={class:"form-group"},B4={class:"invalid-feedback"},z4={class:"invalid-feedback"},H4={class:"form-group"},j4={class:"invalid-feedback"},G4={class:"invalid-feedback"},W4={id:"conf-rendering",class:"paper-settings-section"},K4={class:"form-check"},Y4={class:"form-check-input",type:"checkbox",id:"link",name:"link"},Q4={class:"form-check"},J4={class:"form-check-input",type:"checkbox",id:"image",name:"image"},X4={class:"form-check"},Z4={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},x4={class:"form-check"},eV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},tV={id:"conf-features",class:"paper-settings-section"},nV={class:"form-check"},oV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},sV={class:"form-check"},iV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},rV={id:"conf-plan",class:"paper-settings-section"},aV={class:"paper-plan-grid"},lV=["disabled","value"],dV=["textContent"],uV={class:"paper-plan-price"},cV={class:"paper-plan-per"},pV=["innerHTML"],fV={key:0,id:"conf-billing",class:"paper-settings-section"},hV={class:"form-group"},mV={class:"form-group"},vV={class:"form-group"},gV={class:"form-group"},yV={class:"form-grid-3"},bV={class:"form-group"},wV={class:"form-group"},kV={class:"form-group"},EV={class:"form-group"},CV={class:"paper-settings-footer"},_V=["textContent"],SV=["textContent"],NV=["disabled"];function Pl(e,t){let s=ye("paper-scrollspy"),i=ye("field"),o=ye("form");return l(),d("div",k4,[n("div",E4,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),n("span",C4,u(e.editionMode?"Edit":"New"),1)]),n("h1",_4,[y(u(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[41]||(t[41]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),n("div",S4,[N((l(),d("aside",N4,[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)),N(n("a",D4,"Billing",512),[[j,e.plan?.pricePerRepo>0]])])])),[[s]]),N((l(),d("form",R4,[n("section",T4,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",A4,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),N(n("div",O4," The name of the conference is invalid. ",512),[[j,e.conference?.name?.errors?.invalid]]),N(n("div",P4," The name of the conference is required. ",512),[[j,e.conference?.name?.errors?.required]])]),n("div",I4,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),N(n("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),N(n("div",V4," The url of the conference is invalid. ",512),[[j,e.conference?.url?.errors?.url]])]),n("div",q4,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),n("code",null,"-"),y(" and "),n("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),N(n("div",{class:"invalid-feedback"}," The conference ID '"+u(e.options?.conferenceID)+"' is already used. ",513),[[j,e.conference?.conferenceID?.errors?.used]]),N(n("div",M4," The conference ID is required. ",512),[[j,e.conference?.conferenceID?.errors?.required]]),N(n("div",$4," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[j,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",L4,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",U4,[n("div",F4,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),N(n("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),N(n("div",B4," Start date is required. ",512),[[j,e.conference?.startDate?.errors?.required]]),N(n("div",z4," Start date must be before end date. ",512),[[j,e.conference?.startDate?.errors?.invalid]])]),n("div",H4,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),N(n("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),N(n("div",j4," End date is required. ",512),[[j,e.conference?.endDate?.errors?.required]]),N(n("div",G4," End date is invalid. ",512),[[j,e.conference?.endDate?.errors?.invalid]])])])]),n("section",W4,[t[25]||(t[25]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",K4,[N(n("input",Y4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",Q4,[N(n("input",J4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",X4,[N(n("input",Z4,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",x4,[N(n("input",eV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),n("section",tV,[t[30]||(t[30]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",nV,[N(n("input",oV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",sV,[N(n("input",iV,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",rV,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[32]||(t[32]=n("p",{class:"paper-section-copy"},"The review package is prepaid and covers up to 180 days. Pay from the conference page after creating it. Plan and review dates cannot change after creation.",-1)),n("div",aV,[(l(!0),d(G,null,ee(e.plans,(r,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}])},[N(n("input",{type:"radio",disabled:e.editionMode,name:"planPicker",value:r?.id},null,8,lV),[[i,{state:e.viewState,set:c=>{e.options.plan.planID=c},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:u(r?.name)},null,8,dV),n("div",uV,[y(u(r.id==="free_conference"?"Free":"Prepaid package")+" ",1),n("span",cV,u(r.id==="free_conference"?"":"Price on the conference page"),1)]),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,pV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",fV,[t[40]||(t[40]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",hV,[t[33]||(t[33]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",mV,[t[34]||(t[34]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),N(n("input",{type:"email",class:A(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",vV,[t[35]||(t[35]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",gV,[N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",yV,[n("div",bV,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",wV,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",kV,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",EV,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),N(n("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",CV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:u(e.error)},null,8,_V)):f("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:u(e.message)},null,8,SV)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ce(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},u(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,NV)])])),[[o,e.viewState]])])])}var DV={key:0},RV=["innerHTML"],TV={key:3},AV=["src"],OV=["src"],PV={key:7},IV={controls:"controls"},VV=["src"],qV={key:8},MV={key:9,class:"file-error container d-flex h-100"},$V={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},LV={class:"paper-error-msg"},UV={key:10,class:"file-error container d-flex h-100"},FV=["textContent"],BV={key:11,class:"file-error container d-flex h-100"},zV={key:12,class:"file-error container d-flex h-100"},HV={key:13,class:"file-error container d-flex h-100"},jV={key:14,class:"file-error container d-flex h-100"},GV={class:"paper-empty-title m-auto"},WV=["href"];function Il(e,t){let s=We("html-doc"),i=We("pdfviewer"),o=We("notebook"),r=ye("code-editor");return l(),d(G,null,[e.type=="text"?N((l(),d("div",DV,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,RV)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),$t(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",TV,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,AV)):f("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,OV)):f("v-if",!0),e.type=="pdf"?(l(),$t(i,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="audio"?(l(),d("div",PV,[n("audio",IV,[n("source",{src:e.safeUrl(e.url)},null,8,VV)])])):f("v-if",!0),e.type=="IPython"?(l(),d("div",qV,[Ee(o,{file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="rate_limited"?(l(),d("div",MV,[n("div",$V,[t[2]||(t[2]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",LV,[t[0]||(t[0]=y("This repository will be available in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"?(l(),d("div",UV,[n("h1",{class:"paper-empty-title m-auto",textContent:u(e.fmt.translate("ERRORS."+e.content))},null,8,FV)])):f("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",BV,[...t[3]||(t[3]=[n("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):f("v-if",!0),e.type=="empty"?(l(),d("div",zV,[...t[4]||(t[4]=[n("h1",{class:"paper-empty-title m-auto"},[y("Empty "),n("em",null,"repository"),y(".")],-1)])])):f("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",HV,[...t[5]||(t[5]=[n("h1",{class:"paper-empty-title m-auto"},[y("Empty "),n("em",null,"file"),y(".")],-1)])])):f("v-if",!0),e.type=="binary"?(l(),d("div",jV,[n("h1",GV,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=n("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),n("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,WV),t[9]||(t[9]=y(".",-1))])])):f("v-if",!0)],64)}var KV={class:"container page dashboard-page paper-page"},YV={class:"row"},QV={class:"w-100"},JV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},XV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},ZV={class:"flex-grow-1"},xV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},e5={class:"d-flex flex-wrap",style:{gap:"6px"}},t5={class:"dropdown"},n5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},o5={class:"form-check dropdown-item"},s5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},i5={class:"form-check dropdown-item"},r5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},a5={class:"form-check dropdown-item"},l5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},d5={class:"form-check dropdown-item"},u5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},c5={class:"form-check dropdown-item"},p5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},f5={class:"dropdown"},h5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},m5={class:"form-check dropdown-item"},v5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},g5={class:"form-check dropdown-item"},y5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},b5={class:"form-check dropdown-item"},w5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},k5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},E5={class:"filter-chip"},C5=["onClick"],_5={class:"repo-list w-100"},S5={class:"repo-list-item-content"},N5={class:"repo-list-item-main"},D5={class:"repo-list-item-header"},R5=["textContent","href"],T5=["textContent"],A5=["textContent"],O5={class:"repo-source"},P5=["href"],I5={class:"repo-date"},V5={class:"repo-meta"},q5={key:0,title:"Conference"},M5=["title"],$5=["title"],L5=["title"],U5={key:1},F5={class:"repo-list-item-actions"},B5={class:"dropdown"},z5={class:"dropdown-menu dropdown-menu-right"},H5=["href"],j5=["onClick"],G5=["onClick"],W5=["onClick"],K5=["href"],Y5={key:0,class:"repo-list-empty"};function Vl(e,t){let s=ye("field"),i=ye("form");return l(),d("div",KV,[n("div",YV,[n("div",QV,[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 "),N((l(),d("form",JV,[n("div",XV,[n("div",ZV,[N(n("input",xV,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",e5,[n("div",t5,[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",n5,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",o5,[N(n("input",s5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",i5,[N(n("input",r5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",a5,[N(n("input",l5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",d5,[N(n("input",u5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",c5,[N(n("input",p5,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",f5,[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",h5,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",m5,[N(n("input",v5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",g5,[N(n("input",y5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",b5,[N(n("input",w5,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),N(n("div",k5,[(l(!0),d(G,null,ee(e.filters?.status,(o,r,a)=>N((l(),d("span",E5,[y(u(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:c=>{e.filters.status[r]=!0}}," \xD7 ",8,C5)],512)),[[j,!o]])),256))],512),[[j,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",_5,[(l(!0),d(G,null,ee(e.filteredPullRequests,(o,r)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",S5,[n("div",N5,[n("div",D5,[n("a",{class:"repo-name",textContent:u(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,R5),n("span",{class:A(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:u(e.fmt?.title(o?.status))},null,8,T5),o?.status=="error"?(l(),d("span",{key:0,textContent:u(": "+o?.statusMessage)},null,8,A5)):f("v-if",!0)],2)]),n("div",O5,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},u(o?.source?.repositoryFullName)+"#"+u(o?.source?.pullRequestId),9,P5)]),n("span",{class:A(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},u(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",I5,"anonymized "+u(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",V5,[o?.conference?(l(),d("span",q5,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),y(" "+u(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),y(" "+u(e.fmt?.number(o?.options?.terms?.length)),1)],8,M5),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),y(" "+u(e.fmt?.number(o?.pageView)),1)],8,$5),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),y(" "+u(e.fmt?.humanTime(o?.lastView)),1)],8,L5),o?.options?.expirationMode!="never"&&o?.status=="ready"?(l(),d("span",U5,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),y(" Expire: "+u(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",F5,[n("div",B5,[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",z5,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit ",-1)])],8,H5),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),y(" Force update ",-1)])],8,j5),[[j,o?.status=="ready"||o?.status=="error"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),y(" Enable ",-1)])],8,G5),[[j,o?.status=="removed"]]),N(n("a",{class:"dropdown-item",href:"#",onClick:ce(a=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),y(" Remove ",-1)])],8,W5),[[j,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" View PR ",-1)])],8,K5)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",Y5,[...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 Q5={class:"container paper-page user-settings"},J5={class:"settings-title"},X5={class:"settings-header-actions"},Z5={class:"settings-nav","aria-label":"Settings"},x5=["aria-current","onClick"],eq={class:"settings-row"},tq={class:"form-control",id:"terms",name:"terms",rows:"3",placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},nq={class:"settings-syntax"},oq={class:"invalid-feedback"},sq={class:"settings-row"},iq={class:"settings-checks"},rq={class:"settings-check"},aq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},lq={class:"settings-check"},dq={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},uq={class:"settings-check"},cq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},pq={class:"settings-check"},fq={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},hq={class:"settings-check"},mq={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},vq={class:"settings-check"},gq={class:"form-check-input",type:"checkbox",id:"page",name:"page"},yq={class:"settings-row"},bq={class:"settings-check"},wq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},kq={class:"settings-row"},Eq={class:"form-control",id:"expiration",name:"expiration"},Cq={class:"settings-help"},_q={class:"settings-save"},Sq={class:"settings-save-status draft-status",role:"status"},Nq={key:0},Dq={key:1},Rq={key:2},Tq=["disabled"],Aq={key:1,class:"settings-save-error",role:"alert"},Oq=["aria-busy"],Pq={key:0,role:"status"},Iq={key:1,class:"settings-notice",role:"alert"},Vq=["disabled"],qq={key:2,class:"settings-notice",role:"status"},Mq={key:3,class:"settings-notice",role:"status"},$q=["disabled"],Lq={class:"settings-row"},Uq={class:"settings-inline"},Fq={key:0,class:"settings-help"},Bq={key:0,class:"settings-help"},zq={id:"settings-quota"},Hq={key:1,role:"status"},jq={key:1,class:"settings-notice"},Gq={key:2,class:"settings-notice"},Wq={key:3,class:"settings-notice"},Kq={key:4,class:"settings-help"},Yq={key:5,class:"settings-plan billing-plan"},Qq={class:"settings-comparison"},Jq={class:"settings-cycles"},Xq=["checked","onChange"],Zq={class:"settings-help"},xq={class:"settings-actions"},e8=["disabled"],t8={key:6,class:"settings-help"},n8={class:"settings-row"},o8={key:0,class:"settings-inline"},s8=["disabled"],i8={key:1,class:"settings-help"},r8=["disabled"],a8={key:4,class:"settings-row"},l8={class:"settings-inline"},d8=["disabled"],u8={key:0,class:"settings-pass"},c8={class:"settings-help"},p8=["disabled"],f8={key:5,class:"settings-row"},h8={class:"settings-help"},m8={id:"settings-account",class:"settings-account-panel"},v8={class:"paper-account-card"},g8=["src"],y8={class:"paper-account-identity"},b8={class:"paper-account-name"},w8={class:"paper-danger-zone"},k8={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},E8=["textContent"],C8=["disabled"],_8={key:1,class:"settings-delete-confirm"},S8={for:"delete-username"},N8={class:"settings-actions"},D8=["disabled"],R8=["disabled"];function ql(e,t){let s=We("quota-usage"),i=ye("field"),o=ye("form");return l(),d("div",Q5,[n("header",J5,[t[16]||(t[16]=n("h1",null,"Settings",-1)),n("div",X5,[n("span",null,"@"+u(e.user?.username),1)])]),n("nav",Z5,[(l(),d(W,null,Z([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:a=>e.settingsTab=r.id},u(r.label),9,x5)),64))]),N(n("div",null,[t[37]||(t[37]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),N((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[1]||(t[1]=ue(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",eq,[t[22]||(t[22]=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,[N(n("textarea",tq,null,512),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",nq,[t[21]||(t[21]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[17]||(t[17]=y("Matches become ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[18]||(t[18]=y(". Use ",-1)),t[19]||(t[19]=n("code",null,"term=>replacement",-1)),t[20]||(t[20]=y(" for a custom replacement. Regex is supported.",-1))])]),N(n("div",oq,"Terms are in an invalid format.",512),[[G,e.defaultsForm?.terms?.errors?.format]])])]),n("section",sq,[t[31]||(t[31]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",iq,[n("label",rq,[N(n("input",aq,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=y("Keep links",-1))]),n("label",lq,[N(n("input",dq,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[24]||(t[24]=y("Render notebooks",-1))]),n("label",uq,[N(n("input",cq,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=y("Show images",-1))]),n("label",pq,[N(n("input",fq,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[26]||(t[26]=y("Show PDFs",-1))]),n("label",hq,[N(n("input",mq,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=y("Show line counts",-1))]),n("label",vq,[N(n("input",gq,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=y("GitHub Pages",-1))])]),t[29]||(t[29]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[30]||(t[30]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",yq,[t[34]||(t[34]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",bq,[N(n("input",wq,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=y("Auto-update from GitHub",-1))]),t[33]||(t[33]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",kq,[t[36]||(t[36]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[N((l(),d("select",Eq,[...t[35]||(t[35]=[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:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",Cq,u(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",_q,[n("div",Sq,[e.draftRestored?(l(),d("span",Nq,"Your unsaved draft was restored.")):e.unsavedChanges?(l(),d("span",Dq,"Unsaved changes"+u(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(l(),d("span",Rq,u(e.message?"Defaults saved":"All changes saved"),1))]),e.draftRestored||e.unsavedChanges?(l(),d("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):p("v-if",!0),n("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},u(e.saving?"Saving\u2026":"Save defaults"),9,Tq),e.error?(l(),d("div",Aq,u(e.error),1)):p("v-if",!0)])],32)),[[o,e.viewState]])],512),[[G,e.settingsTab==="defaults"]]),N(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[60]||(t[60]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(l(),d("p",Pq,"Loading billing\u2026")):p("v-if",!0),e.billingError?(l(),d("div",Iq,[y(u(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,Vq)])):p("v-if",!0),e.billingNotice?(l(),d("p",qq,u(e.billingNotice),1)):p("v-if",!0),e.billingPending?(l(),d("div",Mq,[t[38]||(t[38]=n("strong",null,"Confirming your payment",-1)),t[39]||(t[39]=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[3]||(t[3]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,$q)])):p("v-if",!0),n("section",Lq,[t[53]||(t[53]=n("h2",null,"Current plan",-1)),n("div",null,[n("div",Uq,[n("div",null,[n("strong",null,u(e.profileAuthorGrant()?"Author subscription":e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(l(),d("p",Fq,u(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 Access until ":"Paid access through ")+u(e.billingDate(e.profileAuthorGrant().until)),1)):p("v-if",!0)]),e.billing?.enabled&&!e.profileAuthorGrant()&&!e.billingPending&&!e.showAuthorPlans&&e.profileAuthorPlans().length?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.openProfileUpgrade())},"View Author plan")):p("v-if",!0)]),e.billing?.allowance?(l(),d("p",Bq,u(e.billing.allowance.repositories)+" repositories \xB7 "+u(e.billingBytes(e.billing.allowance.storage)),1)):p("v-if",!0),n("div",zq,[e.quota?(l(),$t(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",Hq,"Loading usage\u2026"))]),t[52]||(t[52]=n("p",{class:"settings-help"},"Coauthored repositories use their owner's allowance. Conference hosting is separate.",-1)),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(l(),d("p",jq,[...t[40]||(t[40]=[y("Your repository allowance is full. ",-1),n("a",{href:"/dashboard"},"Review your repositories",-1),y(" to remove work you no longer need.",-1)])])):p("v-if",!0),e.profilePastSubscription()?(l(),d("p",Gq,[...t[41]||(t[41]=[y("Your previous subscription is no longer active. Never-expiring repositories receive a 90-day grace period after paid access ends. ",-1),n("a",{href:"/dashboard"},"Review repository expiration dates",-1),y(".",-1)])])):p("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(l(),d("p",Wq,"A subscription payment is overdue. Use Manage billing to update your payment details.")):p("v-if",!0),e.profileAuthorGrant()?.cancelAtPeriodEnd?(l(),d("p",Kq,"When paid access ends, never-expiring repositories enter a 90-day grace period. Dated repositories keep their expiration dates.")):p("v-if",!0),e.showAuthorPlans&&!e.profileAuthorGrant()&&!e.billingPending&&e.profileAuthorPlans().length?(l(),d("div",Yq,[t[50]||(t[50]=n("h3",{id:"settings-plan-comparison",tabindex:"-1"},"Compare plans",-1)),n("table",Qq,[t[47]||(t[47]=n("caption",{class:"sr-only"},"Free and Author hosting",-1)),t[48]||(t[48]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Included"),n("th",{scope:"col"},"Free"),n("th",{scope:"col"},"Author")])],-1)),n("tbody",null,[n("tr",null,[t[42]||(t[42]=n("th",{scope:"row"},"Active repositories",-1)),n("td",null,u(e.billing.allowance?.repositories),1),n("td",null,u(e.profileSelectedPlan()?.repositories),1)]),n("tr",null,[t[43]||(t[43]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,u(e.billingBytes(e.billing.allowance?.storage)),1),n("td",null,u(e.billingBytes(e.profileSelectedPlan()?.storage)),1)]),t[44]||(t[44]=n("tr",null,[n("th",{scope:"row"},"Expiration"),n("td",null,"Scheduled"),n("td",null,"Scheduled or never")],-1)),t[45]||(t[45]=n("tr",null,[n("th",{scope:"row"},"Coauthors"),n("td",null,"Included"),n("td",null,"Included")],-1)),t[46]||(t[46]=n("tr",null,[n("th",{scope:"row"},"Reviewer access"),n("td",null,"Free"),n("td",null,"Free")],-1))])]),n("fieldset",Jq,[t[49]||(t[49]=n("legend",{class:"sr-only"},"Billing frequency",-1)),(l(!0),d(W,null,Z(e.profileAuthorPlans(),r=>(l(),d("label",{class:A({selected:e.profileSelectedPlan()?.id===r.id})},[n("input",{type:"radio",name:"profile-plan",checked:e.profileSelectedPlan()?.id===r.id,onChange:a=>e.profilePlan=r.id},null,40,Xq),y(u(e.billingPrice(r)),1)],2))),256))]),n("p",Zq,"Renews "+u(e.profileSelectedPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[51]||(t[51]=n("p",{class:"settings-help"},"If paid access ends, never-expiring repositories expire after a 90-day grace period.",-1)),n("div",xq,[n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[5]||(t[5]=r=>e.checkout(e.profileSelectedPlan().id))},u(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,e8),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[6]||(t[6]=r=>e.showAuthorPlans=!1)},"Keep current plan")])])):p("v-if",!0),e.billing&&(!e.billing.enabled||e.billing.checkoutEnabled===!1)?(l(),d("p",t8,"New purchases are not available. Existing billing can still be managed below.")):p("v-if",!0)])]),n("section",n8,[t[55]||(t[55]=n("h2",null,"Billing",-1)),n("div",null,[e.billing?.portal?(l(),d("div",o8,[t[54]||(t[54]=n("p",{class:"settings-help"},"Invoices, payment details, and renewal.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[7]||(t[7]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing",8,s8)])):(l(),d("p",i8,"No billing account available.")),e.billing?.enabled&&!e.billingPending?(l(),d("button",{key:2,type:"button",class:"settings-text-button",onClick:t[8]||(t[8]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,r8)):p("v-if",!0)])]),e.billing?.enabled?(l(),d("section",a8,[t[58]||(t[58]=n("h2",null,"Repository passes",-1)),n("div",null,[n("div",l8,[t[56]||(t[56]=n("p",{class:"settings-help"},[y("One repository for 180 days."),n("br"),y("No subscription or automatic renewal.")],-1)),e.profilePassPlan()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[9]||(t[9]=r=>e.showRepositoryPass=!e.showRepositoryPass),disabled:e.billingPending},"Review a pass",8,d8)):p("v-if",!0)]),e.showRepositoryPass&&e.profilePassPlan()&&!e.billingPending?(l(),d("div",u8,[t[57]||(t[57]=n("label",{for:"billing-repository"},"Repository ID you own",-1)),N(n("input",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[10]||(t[10]=r=>e.billingRepository=r),placeholder:"Existing anonymized repository ID",autocomplete:"off"},null,512),[[co,e.billingRepository]]),n("p",c8,u(e.billingPrice(e.profilePassPlan()))+" \xB7 "+u(e.billingBytes(e.profilePassPlan().storage))+" \xB7 Never expire is not included.",1),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository.trim()||e.billing.checkoutEnabled===!1,onClick:t[11]||(t[11]=r=>e.checkout("author_pass",e.billingRepository.trim()))},"Continue to checkout",8,p8)])):p("v-if",!0)])])):p("v-if",!0),e.billing?.grants?.length?(l(),d("section",f8,[t[59]||(t[59]=n("h2",null,"Your purchases",-1)),n("div",null,[(l(!0),d(W,null,Z(e.billing.grants,r=>(l(),d("div",{class:"settings-purchase",key:r.scope+r.planId+r.until},[n("strong",null,u(e.profileGrantName(r)),1),n("span",null,u(r.scope),1),n("p",h8,[y(u(r.status),1),r.status!=="revoked"?(l(),d(W,{key:0},[y(" \xB7 Paid access through "+u(e.billingDate(r.until))+u(r.cancelAtPeriodEnd?" \xB7 Renewal cancelled":""),1)],64)):p("v-if",!0)])]))),128))])])):p("v-if",!0),t[61]||(t[61]=n("section",{class:"settings-row"},[n("h2",null,"Conference hosting"),n("div",{class:"settings-inline"},[n("p",{class:"settings-help"},"Shared hosting is managed per conference."),n("a",{href:"/conferences",class:"btn btn-outline-ink"},"My conferences")])],-1))],8,Oq),[[G,e.settingsTab==="billing"]]),N(n("section",m8,[t[69]||(t[69]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",v8,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,g8)):p("v-if",!0),n("div",y8,[n("div",b8,"@"+u(e.user?.username),1),t[62]||(t[62]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[63]||(t[63]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[70]||(t[70]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[y("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",w8,[t[67]||(t[67]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[68]||(t[68]=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?(l(),d("div",k8,[t[64]||(t[64]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[65]||(t[65]=y()),n("span",{textContent:u(e.deleteError)},null,8,E8)])):p("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[12]||(t[12]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[66]||(t[66]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),y(u(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,C8),e.confirmDeleteAccount?(l(),d("div",_8,[n("label",S8,"Type "+u(e.user?.username)+" to confirm",1),N(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[13]||(t[13]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[co,e.deleteUsername]]),n("div",N8,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[14]||(t[14]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},u(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,D8),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[15]||(t[15]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,R8)])])):p("v-if",!0)])],512),[[G,e.settingsTab==="account"]])])}var T8={class:"pr-page"},A8={class:"container paper-page pr-page-inner"},O8={class:"pr-header"},P8={class:"pr-title-row"},I8={class:"paper-page-title pr-title"},V8=["textContent"],q8={key:1,class:"text-muted"},M8=["href"],$8={class:"pr-header-meta"},L8={key:0,class:"pr-meta-item"},U8=["textContent"],F8={key:1,class:"pr-meta-item"},B8=["textContent"],z8={key:2,class:"pr-meta-item"},H8=["textContent"],j8={key:0,class:"pr-body-card"},G8={key:1,class:"paper-tabs",role:"tablist"},W8=["aria-selected","tabindex"],K8=["aria-selected","tabindex"],Y8=["textContent"],Q8={class:"paper-tab-content"},J8={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},X8=["innerHTML"],Z8={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},x8={class:"pr-comments"},eM={class:"pr-comment"},tM={class:"pr-comment-head"},nM={key:0,class:"pr-comment-author"},oM=["textContent"],sM=["textContent"],iM={key:0,class:"pr-comment-body"},rM={key:0,class:"paper-table-empty"};function Ml(e,t){let s=We("markdown");return l(),d("div",T8,[n("div",A8,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",O8,[n("div",P8,[n("h1",I8,[e.details?.title?(l(),d("span",{key:0,textContent:u(e.details?.title)},null,8,V8)):p("v-if",!0),e.details?.title?p("v-if",!0):(l(),d("span",q8,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[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,M8)):p("v-if",!0)]),n("div",$8,[n("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+u(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",L8,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=y()),n("span",{textContent:u(e.details?.baseRepositoryFullName)},null,8,U8)])):p("v-if",!0),e.details?.updatedDate?(l(),d("span",F8,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=y()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,B8)])):p("v-if",!0),e.details?.anonymizeDate?(l(),d("span",z8,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=y(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,H8)])):p("v-if",!0)])]),e.details?.body?(l(),d("section",j8,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),_e(s,{content:e.details?.body},null,8,["content"])])):p("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",G8,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Diff ",-1)])],42,W8)):p("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>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:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Y8)],42,K8)):p("v-if",!0)])):p("v-if",!0),n("div",Q8,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",J8,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,X8)])):p("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",Z8,[n("ul",x8,[(l(!0),d(W,null,Z(e.details?.comments,(i,o)=>(l(),d("li",eM,[n("div",tM,[i?.author?(l(),d("span",nM,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=y(" @",-1)),n("span",{textContent:u(i?.author)},null,8,oM)])):p("v-if",!0),i?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(i?.updatedDate))},null,8,sM)):p("v-if",!0)]),i?.body?(l(),d("div",iM,[_e(s,{content:i?.body},null,8,["content"])])):p("v-if",!0)]))),256)),e.details?.comments?.length?p("v-if",!0):(l(),d("li",rM,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):p("v-if",!0)])])])}var aM={class:"repository-task status-page"},lM={class:"task-lede"},dM={class:"task-columns"},uM={class:"task-preparation","aria-label":"Repository preparation"},cM={key:0,class:"task-ready",role:"status"},pM={key:1},fM={key:2,class:"text-danger",role:"alert"},hM={key:3,class:"paper-section-copy"},mM={key:4,class:"paper-ratelimit-card",role:"status"},vM={class:"paper-error-msg"},gM=["aria-valuenow"],yM={class:"paper-progress-label"},bM=["textContent"],wM={key:0},kM=["textContent"],EM={class:"paper-progress-pct"},CM={key:6,class:"paper-error-card",role:"alert"},_M={key:0,class:"paper-error-msg"},SM={key:1,class:"paper-error-msg"},NM={key:2},DM=["href"],RM={class:"paper-error-actions"},TM=["href"],AM={key:7,class:"task-result"},OM={class:"detail-value"},PM=["href"],IM={key:0,class:"detail-label"},VM={key:1,class:"detail-value"},qM=["href"],MM={key:8,class:"task-actions"},$M=["href"],LM=["href"],UM={class:"task-summary","aria-label":"Repository summary"},FM={class:"task-summary-foot"};function $l(e,t){return l(),d("div",aM,[t[21]||(t[21]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),y(" / Repository")],-1)),t[22]||(t[22]=n("h1",null,"Prepare your anonymous review link",-1)),n("p",lM,u(e.repo?.status==="ready"?"Your repository is ready to share.":"Your settings are saved. Track preparation before sharing the link."),1),t[23]||(t[23]=n("ol",{class:"task-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)),n("div",dM,[n("section",uM,[e.repo?.status==="ready"?(l(),d("div",cM,[...t[1]||(t[1]=[n("strong",null,"Your review link is ready",-1)])])):p("v-if",!0),n("h2",null,u(e.repoId),1),e.repo?.status==="ready"?(l(),d("p",pM,"Share the link with reviewers. They do not need to sign in.")):p("v-if",!0),e.error?(l(),d("p",fM,[t[2]||(t[2]=y("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):p("v-if",!0),e.repo?.status!=="ready"?(l(),d("p",hM,[...t[3]||(t[3]=[y(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),y(" for more information. ",-1)])])):p("v-if",!0),e.rateLimitResetAt?(l(),d("div",mM,[t[6]||(t[6]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",vM,[t[4]||(t[4]=y("Anonymization will resume automatically in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[5]||(t[5]=y(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):p("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:5,class:A(["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:Ve("width: "+e.progress+"%;")},null,4),n("div",yM,[n("span",{textContent:u(e.fmt?.title(e.repo?.status))},null,8,bM),e.repo?.statusMessage?(l(),d("span",wM,[t[7]||(t[7]=y("\xA0\xB7\xA0",-1)),n("span",{textContent:u(e.repo?.statusMessage)},null,8,kM)])):p("v-if",!0),n("span",EM,u(e.progress||0)+"%",1)])],10,gM)):p("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",CM,[t[11]||(t[11]=pe('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",_M,u(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):p("v-if",!0),e.repo?.statusMessage?p("v-if",!0):(l(),d("p",SM,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),e.repo?.statusMessage==="quota_exceeded"?(l(),d("p",NM,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,DM),t[8]||(t[8]=y(", then retry preparation.",-1))])):p("v-if",!0),t[12]||(t[12]=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",RM,[n("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit anonymization",-1)])],8,TM),t[10]||(t[10]=pe(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):p("v-if",!0),e.repo?.status==="ready"?(l(),d("div",AM,[t[13]||(t[13]=n("div",{class:"detail-label"},"Repository",-1)),n("div",OM,[n("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},u(e.reviewUrl),9,PM)]),e.repo?.options?.page?(l(),d("div",IM,"GitHub Page")):p("v-if",!0),e.repo?.options?.page?(l(),d("div",VM,[n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+u(e.repoId)+"/",9,qM)])):p("v-if",!0)])):p("v-if",!0),e.repo?.status=="ready"?(l(),d("div",MM,[n("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[14]||(t[14]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" Go to anonymized repository ",-1)])],8,$M),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" Go to anonymized GitHub page ",-1)])],8,LM)):p("v-if",!0)])):p("v-if",!0)]),n("aside",UM,[n("h3",null,u(e.repoId),1),n("dl",null,[t[16]||(t[16]=n("dt",null,"Source",-1)),n("dd",null,u(e.repo?.source?.fullName?"https://github.com/"+e.repo.source.fullName:"Loading\u2026"),1),t[17]||(t[17]=n("dt",null,"Lifetime",-1)),n("dd",null,u(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[18]||(t[18]=n("dt",null,"Review access",-1)),t[19]||(t[19]=n("dd",null,"Anonymous and free",-1))]),n("div",FM,[n("strong",null,u(e.repo?.status==="ready"?"Ready to share":"Repository preparation"),1),t[20]||(t[20]=n("p",null,"Coauthors do not each need a subscription.",-1))])])])])}var ls={"partials/connections.htm":ul,"partials/signin.htm":cl,"partials/404.htm":pl,"partials/admin/conferences.htm":fl,"partials/admin/errors.htm":hl,"partials/admin/overview.htm":ml,"partials/admin/queues.htm":vl,"partials/admin/repositories.htm":gl,"partials/admin/user.htm":yl,"partials/admin/users.htm":bl,"partials/anonymize.htm":wl,"partials/anonymizePullRequest.htm":kl,"partials/claim.htm":El,"partials/conference.htm":Cl,"partials/conferences.htm":_l,"partials/dashboard.htm":Sl,"partials/explorer.htm":Nl,"partials/faq.htm":Dl,"partials/gist.htm":Rl,"partials/header.htm":Tl,"partials/home.htm":Al,"partials/loading.htm":Ol,"partials/newConference.htm":Pl,"partials/pageView.htm":Il,"partials/pr-dashboard.htm":Vl,"partials/profile.htm":ql,"partials/pullRequest.htm":Ml,"partials/status.htm":$l};var BM={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function Ll(e,t){return l(),d("svg",BM,[...t[0]||(t[0]=[pe('',1)])])}function Ul(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let 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 o=ot(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Fl(e=(...t)=>fetch(...t)){async function t(i,o,r,a={}){let c=new URL(o,window.location.href);for(let[g,k]of Object.entries(a.params||{}))if(k!=null)for(let m of Array.isArray(k)?k:[k])c.searchParams.append(g,typeof m=="object"?JSON.stringify(m):m);let f=new AbortController,v;a.timeout?.then?a.timeout.then(()=>f.abort()):a.timeout&&(v=setTimeout(()=>f.abort(),a.timeout));try{let g={Accept:"application/json, text/plain, */*",...a.headers},k=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);k&&c.origin===window.location.origin&&(g["X-XSRF-TOKEN"]=decodeURIComponent(k[1]));let m;r!==void 0&&(r instanceof FormData?m=r:(g["Content-Type"]||(g["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(r)));let b=await e(c.href,{method:i,headers:g,body:m,credentials:"same-origin",signal:f.signal}),C=await b.text(),E=C;if(a.transformResponse)E=a.transformResponse(C);else if(C&&(/json/i.test(b.headers.get("content-type")||"")||/^[\[{]/.test(C.trim())))try{E=JSON.parse(C)}catch{}let T={data:E,status:b.status,headers:D=>b.headers.get(D)};if(!b.ok)throw T;return T}catch(g){throw g.name==="AbortError"?{status:-1,data:null}:g}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,a)=>t(i.toUpperCase(),o,r,a);return s}var Bl={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var zl=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 ui={};ld(ui,{bigNum:()=>HM,date:()=>e6,diff:()=>YM,filter:()=>ZM,humanFileSize:()=>zM,humanTime:()=>jM,limitTo:()=>XM,number:()=>QM,orderBy:()=>xM,plural:()=>t6,statusLabel:()=>WM,statusMsg:()=>KM,title:()=>GM,uppercase:()=>JM});var zM=e=>window.humanFileSize(e),HM=(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"}})(),jM=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var s=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let f=new Date;return f.setSeconds(f.getSeconds()-t),"on "+f.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var i=[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"],r=0;r1&&(c+="s"),a>=1)return a+" "+c+" "+s}return"0 seconds "+s}})(),GM=(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(" ")}})(),WM=(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)}})(),KM=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var 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 o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),YM=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",a=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+a+"
"),o.lines.length){i.push('');for(let c of o.lines)i.push('");i.push("
'+(c.oldNo||"")+''+(c.newNo||"")+''+(c.kind==="add"?"+":c.kind==="remove"?"-":c.kind==="hunk"?"@":"")+''+t(c.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,a=0,c=0,f=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},g=i.split(` -`);for(let k=0;ke});function QM(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function JM(e){return String(e??"").toUpperCase()}function XM(e,t,s=0){return(e||[]).slice(s,s+t)}function ZM(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function xM(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let a=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let c=r.split(".").reduce((v,g)=>v?.[g],i),f=r.split(".").reduce((v,g)=>v?.[g],o);if(typeof c=="string"&&(c=c.toLowerCase()),typeof f=="string"&&(f=f.toLowerCase()),c!==f)return(c==null?-1:f==null?1:ci[o])}function t6(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var Hl={ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid.",repository_tree_incomplete:"The repository file tree is incomplete. Reduce its size and refresh before downloading.",billing_unavailable:"Payments are not available. Please try again later.",invalid_billing_signature:"The payment notification could not be verified.",billing_webhook_failed:"The payment notification could not be processed.",billing_customer_not_found:"No billing account was found.",subscription_required_for_never_expiration:"Never-expiring repositories require the owner\u2019s active monthly or annual author subscription. Choose a dated expiration or upgrade in Plans and billing.",invalid_billing_expiration:"Choose an expiration date within the next year, or select Never expire with an author subscription.",pending_payment:"Awaiting payment"},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var jl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=tt(null);return Mt(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let c=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&c.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",c.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),i.appendChild(a);let f="";e.baseUrl&&(f=''),a.srcdoc=f+r}He(()=>e.content,o,{immediate:!0}),He(()=>e.baseUrl,o,{immediate:!0}),He(()=>e.allowScripts,o,{immediate:!0})}),()=>we("html-doc",{ref:t})}};var Gl={name:"pdfviewer",props:["src"],setup(e){let t=tt(null);return Mt(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,a=s[0];a.classList.add("pdf-viewer");let c=null,f=[],v=!1,g=null,k=1,m=1,b=0,C=0,E=612/792,T=0,D=null,O=new Map,q=0;function F(_){let h=O.get(_);h&&(h.cancelled=!0,h.task?.cancel?.(),O.delete(_));let w=_.querySelector("canvas");w&&(w.width=0,w.height=0),_.innerHTML="",delete _.dataset.state}let M=document.createElement("div");M.className="pdf-toolbar";let z=document.createElement("div");z.className="pdf-pages",z.tabIndex=0,z.setAttribute("aria-label","PDF pages"),a.appendChild(M),a.appendChild(z);function se(_,h,w){let R=document.createElement("button");return R.type="button",R.className="pdf-toolbar-btn",R.title=h,R.setAttribute("aria-label",h),R.innerHTML='',R.addEventListener("click",w),R}let oe=se("fa-chevron-up","Previous page",function(){$e(m-1)}),S=se("fa-chevron-down","Next page",function(){$e(m+1)}),I=document.createElement("input");I.type="text",I.className="pdf-toolbar-page",I.setAttribute("aria-label","Page number"),I.title="Page number \u2014 type a page and press Enter",I.addEventListener("keydown",function(_){_.key==="Enter"&&($e(parseInt(I.value,10)),I.blur())}),I.addEventListener("blur",function(){I.value=String(m)});let H=document.createElement("span");H.className="pdf-toolbar-count";let K=se("fa-search-minus","Zoom out",function(){ie(o[Math.max(0,le()-1)])}),X=se("fa-search-plus","Zoom in",function(){ie(o[Math.min(o.length-1,le()+1)])}),Y=document.createElement("button");Y.type="button",Y.className="pdf-toolbar-btn pdf-toolbar-zoom",Y.title="Reset zoom to fit the width",Y.setAttribute("aria-label","Reset zoom to fit the width"),Y.addEventListener("click",function(){ie(1)}),M.appendChild(oe),M.appendChild(S);let ee=document.createElement("span");ee.className="pdf-toolbar-group",ee.appendChild(I),ee.appendChild(H),M.appendChild(ee);let ce=document.createElement("span");ce.className="pdf-toolbar-group pdf-toolbar-right",ce.appendChild(K),ce.appendChild(Y),ce.appendChild(X),M.appendChild(ce);function le(){let _=0;for(let h=0;h=_,Y.textContent=Math.round(k*100)+"%",K.disabled=le()===0,X.disabled=le()===o.length-1}function Se(_){let h=f[_-1];h&&(z.scrollTop+=h.getBoundingClientRect().top-z.getBoundingClientRect().top)}function $e(_){if(!c||isNaN(_))return;let h=Math.min(Math.max(1,_),c.numPages);f[h-1]&&(Se(h),m=h,b=h,C=Date.now()+800,re(),Ue())}function Ne(){if(!f.length||Date.now(){}),D=null),g&&(clearTimeout(g),g=null),c&&(c.destroy(),c=null),f=[],m=1,z.innerHTML="",re()}function Ee(){z.innerHTML="";let _=document.createElement("div");_.className="pdf-viewer-error",_.textContent="This PDF could not be displayed.",z.appendChild(_)}function Le(){let _=Math.max(120,z.clientWidth-24);return Math.round(Math.min(_,r)*k)}function qe(_,h,w){let R=window.devicePixelRatio||1,P=_.getViewport({scale:1}),L=parseFloat(h.style.width);if(!L)return;let V=_.getViewport({scale:L/P.width*R}),B=document.createElement("canvas");return B.width=Math.floor(V.width),B.height=Math.floor(V.height),B.style.width=L+"px",B.style.height=Math.floor(V.height/R)+"px",h.innerHTML="",h.appendChild(B),h.style.height=B.style.height,w.task=_.render({canvasContext:B.getContext("2d"),viewport:V}),w.task.promise}function Ue(){if(!c)return;let _=T,h=z.getBoundingClientRect(),w=h.top-i,R=h.top+z.clientHeight+i,P=f.map((V,B)=>({slot:V,i:B,rect:V.getBoundingClientRect()})).filter(V=>V.rect.top<=R&&V.rect.bottom>=w).sort((V,B)=>Math.abs(V.rect.top-h.top)-Math.abs(B.rect.top-h.top)).slice(0,6),L=new Set(P.map(V=>V.slot));for(let V of O.keys())L.has(V)||F(V);for(let{slot:V,i:B}of P){if(V.dataset.state||q>=2)continue;let Q={cancelled:!1,task:null};O.set(V,Q),q++,V.dataset.state="rendering";let J;c.getPage(B+1).then(j=>{if(J=j,!(Q.cancelled||_!==T))return qe(J,V,Q)}).then(()=>{Q.cancelled||_!==T||(V.dataset.state="done",b&&Date.now(){!Q.cancelled&&_===T&&(V.dataset.state="failed")}).finally(()=>{q--,J?.cleanup?.(),c&&Ue()})}}function U(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Ne(),Ue()}))}function ne(){let _=!1;function h(){_||(_=!0,Ue())}window.requestAnimationFrame(h),window.setTimeout(h,50)}function x(){T++,f.forEach(F);let _=Le();f.forEach(function(h){delete h.dataset.state,h.innerHTML="",h.style.width=_+"px",h.style.height=Math.round(_/E)+"px"}),Ue()}function ie(_){if(!c||!f.length||_===k)return;let h=m;k=_,re(),x(),$e(h)}function ge(){c&&(g&&clearTimeout(g),g=setTimeout(function(){g=null,c&&f.length&&x()},250))}function Ce(_){if(ke(),!_)return;let h=T;D=pdfjsLib.getDocument({url:_,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),D.promise.then(function(w){if(h!==T){w.destroy();return}return c=w,c.getPage(1).then(function(R){if(h!==T)return;let P=R.getViewport({scale:1});P.width&&P.height&&(E=P.width/P.height);let L=Le();for(let V=1;V<=c.numPages;V++){let B=document.createElement("div");B.className="pdf-viewer-page",B.style.width=L+"px",B.style.height=Math.round(L/E)+"px",z.appendChild(B),f.push(B)}re(),ne()})}).catch(function(){h===T&&Ee()})}z.addEventListener("scroll",U,{passive:!0}),$(window).on("resize",ge),re(),He(()=>e.src,Ce,{immediate:!0}),ln(function(){z.removeEventListener("scroll",U),$(window).off("resize",ge),ke()})}),()=>we("pdfviewer",{ref:t})}};var o6={key:0,class:"quota-row quota-usage"},s6={class:"quota-header"},i6={class:"quota-label"},r6={class:"project-type-svg","aria-hidden":"true"},a6=["href"],l6={key:0,class:"quota-percent"},d6={key:1,class:"quota-unlimited-tag"},u6={class:"quota-value"},c6={key:0},p6=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],f6={key:1,class:"quota-remaining"},h6={key:2,class:"quota-remaining quota-limit"};function Wl(e,t){return e.quota?(l(),d("div",o6,[(l(),d(W,null,Z([{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:A(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",s6,[n("span",i6,[(l(),d("svg",r6,[n("use",{href:"#"+s.icon},null,8,a6)])),y(u(s.label),1)]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",l6,u(e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(l(),d("span",d6,"Unlimited")):p("v-if",!0)]),n("div",u6,[n("strong",null,u(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("span",c6," / "+u(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?p("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ve({width:e.quota[s.key].percent+"%"})},null,4))],10,p6)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(l(),d("p",h6,u(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):p("v-if",!0)],2)),64))])):p("v-if",!0)}var m6={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:Wl},v6=new Set(fe),Yl={props:["content","terms","options"],setup(e){let t=tt(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return Mt(()=>{s(),He(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>we("markdown",{ref:t})}},g6={props:["file","terms","options"],setup(e){let t=tt(null),s=()=>Ye(()=>t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)));return Mt(s),He(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return we("gist-file",{ref:t},we(Yl,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(i.language||o||"none").toLowerCase();return we("gist-file",{ref:t},we("pre",{class:"line-numbers"},we("code",{class:"language-"+(r[a]||a),key:i.content},i.content||"")))}}},y6={props:["file","content"],setup(e){let t=tt(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(c=>{if(!c.ok)throw Error("Notebook request failed");return c.json()});if(await xt("notebook"),r!==s)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(c=>window.Prism?.highlightElement(c))}catch(a){r===s&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Mt(()=>{o(),He(()=>[e.file,e.content],o)}),ln(()=>{s++,i?.abort()}),()=>we("notebook",{ref:t})}},b6={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return we("loc",t.map(([i,o])=>we("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Ql={Markdown:Yl,GistFile:g6,Notebook:y6,Loc:b6,HtmlDoc:jl,QuotaUsage:m6,Pdfviewer:mr(async()=>(await xt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Gl))},Jl={async mounted(e,{value:t}){e._editorValue=t;try{if(await mi(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Kl(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),Kl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Kl(e,t={}){let s=v6.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 Xl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(a=>a.isIntersecting?s.add(a.target.id):s.delete(a.target.id));let r=t.find(a=>s.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Ye(()=>t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)})),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function w6(e){let t={children:[]},s=new Map([["",t]]);function i(o){if(s.has(o))return s.get(o);let r=o.lastIndexOf("/"),a=i(r<0?"":o.slice(0,r)),c={name:o.slice(r+1),children:[]};return s.set(o,c),a.children.push(c),c}for(let o of e||[]){let r=o.path?`${o.path}/${o.name}`:o.name;o.size==null?i(r):i(o.path||"").children.push({...o})}return t.children}var Zl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ba(),s=tt(null),i=ze(Object.create(null)),o=null,r=ot(()=>w6(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(b=>{m+="/"+b,i[m]=!0})},{immediate:!0});let c=ot(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,b=new Set;return e.searchResults.forEach(C=>{m.add(C.path?`${C.path}/${C.name}`:C.name);let E="";(C.path||"").split("/").filter(Boolean).forEach(T=>{E=E?E+"/"+T:T,b.add(E)})}),{files:m,folders:b}}),f=()=>[...s.value.querySelectorAll("li > a")],v=m=>{s.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(o=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),s.value.focus())};function g(m){let b=f(),C=s.value.querySelector(".tree-focused")||b[0],E=b.indexOf(C);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&v(b[(E+1)%b.length]),m.key==="ArrowUp"&&v(b[(E-1+b.length)%b.length]),!C))return;let T=C.closest("li");m.key==="ArrowRight"&&T.classList.contains("folder")&&(T.classList.contains("open")?v(T.querySelector(":scope > ul > li > a")):C.click()),m.key==="ArrowLeft"&&(T.classList.contains("folder")&&T.classList.contains("open")?C.click():v(T.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&C.click()}function k(m,b=""){let C=[...m].sort((E,T)=>+!!T.children-+!!E.children||E.name.localeCompare(T.name));return we("ul",C.flatMap(E=>{let T=E,D=T.name,O=(b+"/"+D).slice(1);if(c.value&&!c.value.files.has(O)&&!c.value.folders.has(O))return[];for(;T.children?.length===1;)T=T.children[0],D+="/"+T.name;let q=b+"/"+D,F=!!T.children,M=c.value?i[q]!==!1:!!i[q],z=F&&e.page?.options?.truncatedFolders?.includes(q.slice(1)),se=e.page?.fileCounts?.[q.slice(1)]||0,oe=we("span",{class:F?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},F?we("svg",{viewBox:"0 0 14 12",focusable:"false"},we("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),S=we("span",{class:"tree-name"},D),I=K=>{v(K.currentTarget),F&&(K.preventDefault(),i[q]=!M,i[q]&&!T.children.length&&e.page.getFiles(q.slice(1)),Ye(()=>v(f().find(X=>X.dataset.path===o))))},H=we("a",{"data-path":q,href:F?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(q)}`,class:{"tree-focused":o===q},onClick:I},[F?we("span",{class:"tree-toggle"}):b?we("span",{class:"tree-spacer"}):null,oe,S,z?we("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},we("i",{class:"fas fa-exclamation-triangle"})):null,F&&se?we("span",{class:"tree-count"},se):null]);return we("li",{key:q,class:{file:!0,folder:F,open:M,active:a()===q,truncated:z},title:F?"":`Size: ${humanFileSize(T.size||0)}`},[H,F&&M?k(T.children,q):null])}))}return()=>we("tree",{ref:s,tabindex:0,onKeydown:g},e.file?.length?c.value?.files.size===0?we("div",{class:"tree-search-empty"},"No files found"):k(r.value):"Empty repository")}};function ed(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function td(e,t){if(!e[t]){let s=ed();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 nd={beforeMount(e,{value:t}){e._formState=td(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function k6(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function xl(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"?k6(t):t??""),ci(e)}function ci(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]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||!o)}var od={beforeMount(e,{value:t}){var a;let s=t.form&&td(t.state,t.form),i=s&&e.name?s[a=e.name]||(s[a]=ed()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let c=e._field.binding,f=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(f=e.value===""?null:Number(e.value)),e.type==="date"&&(f=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}c.set(f),ci(e),c.change?.()}};e._field.commit=o;let r=c=>{let f=e._field.binding.options?.debounce||0,v=typeof f=="number"?f:f[c.type]??f.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:xl,updated(e,{value:t}){e._field.binding=t,xl(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 sd(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&&ci(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var id=Symbol("session"),E6=/^\/(w|api|github)(\/|$)/;function rd(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Hl);return String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var C6={...ui,translate:rd};function _6(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 S6(e="#app",t={}){!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let s=new Map,i=Fl(t.fetch),o,r;function a(){let v=ct(),g={url(m){return m===void 0?r.currentRoute.value.fullPath:(r.push(m),g)},replace(m){return r.replace(m)},path(){return r.currentRoute.value.path},search(){return r.currentRoute.value.query}},k=new Proxy({},{get(m,b){let C=r.currentRoute.value.params[b];return Array.isArray(C)?C.join("/"):C}});return{http:i,...v,location:g,params:k,window,promises:Bl,html:{trustAsHtml:m=>m},translate:(m,b)=>Promise.resolve(rd(m,b)),quotaService:zl(i)}}function c(v){return{name:v.template,setup(){let g=ri(ut(id),s);v.setup(g,a()),Ul(v.template,g);let k=[];return()=>ls[v.template](g,k)}}}r=Fa({history:t.history||$a(),routes:dl.map(v=>v.redirect?v:{path:v.path,component:c(v),meta:{title:v.title,preserveExplorer:v.preserveExplorer}})});let f=sa({setup(){o=ri(null,s),o.fmt=C6,o.window=window,o.Math=Math,o.sanitize=m=>DOMPurify.sanitize(m??""),o.submitForm=sd,o.safeUrl=_6;let v=a();Ha(o,v.http,v.location,v.timeout),an(id,o),He(()=>o.title,m=>{document.title=m||"Anonymous GitHub"});let g=[],k=m=>{let b=m.target.closest?.("a[href]");if(m.defaultPrevented||m.button!==0||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey||!b||b.hasAttribute("download")||b.target&&b.target!=="_self"||b.dataset.toggle||b.getAttribute("href").startsWith("#"))return;let E=new URL(b.href,window.location.href);E.origin!==window.location.origin||E6.test(E.pathname)||(m.preventDefault(),r.push(E.pathname+E.search+E.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),ln(()=>document.removeEventListener("click",k)),()=>[Ll(o,[]),we("header",{class:"app-header"},ls["partials/header.htm"](o,g)),we("main",{class:"app-view align-items-stretch w-100"},we(si,null,{default:({Component:m,route:b})=>m?we(m,{key:b.meta.preserveExplorer?b.matched[0]?.path:b.path}):null})),we("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},o.toasts.map((m,b)=>we("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:b},[we("div",{class:"toast-header"},[we("strong",{class:"mr-auto"},m.title),we("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>o.removeToast(m)},"\xD7")]),we("div",{class:"toast-body"},m.body)])))]}});for(let[v,g]of Object.entries(Ql))f.component(v,g);return f.component("Tree",Zl),f.component("PartialView",{props:["name","state"],setup(v){let g=[];return()=>ls[v.name](v.state,g)}}),f.directive("field",od),f.directive("form",nd),f.directive("code-editor",Jl),f.directive("paper-scrollspy",Xl),f.use(r),r.beforeEach(async v=>{o?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(v.path)&&await xt("markdown"),/^\/(r|repository)\//.test(v.path)&&await xt("org")}),r.afterEach(v=>{if(!o)return;o.title=v.meta.title,o.emit("routeChange",{title:v.meta.title}),o.emit("routeUpdate",{title:v.meta.title});let g=document.querySelector(".app-view");!v.meta.preserveExplorer&&g&&(g.scrollTop=0)}),f.mount(e),{app:f,router:r,state:o}}document.querySelector("#app")&&(window.anonymousApp=S6());})(); +jane.smith@example.org`},nq={class:"settings-syntax"},oq={class:"invalid-feedback"},sq={class:"settings-row"},iq={class:"settings-checks"},rq={class:"settings-check"},aq={class:"form-check-input",type:"checkbox",id:"link",name:"link"},lq={class:"settings-check"},dq={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},uq={class:"settings-check"},cq={class:"form-check-input",type:"checkbox",id:"image",name:"image"},pq={class:"settings-check"},fq={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},hq={class:"settings-check"},mq={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},vq={class:"settings-check"},gq={class:"form-check-input",type:"checkbox",id:"page",name:"page"},yq={class:"settings-row"},bq={class:"settings-check"},wq={class:"form-check-input",type:"checkbox",id:"update",name:"update"},kq={class:"settings-row"},Eq={class:"form-control",id:"expiration",name:"expiration"},Cq={class:"settings-help"},_q={class:"settings-save"},Sq={class:"settings-save-status draft-status",role:"status"},Nq={key:0},Dq={key:1},Rq={key:2},Tq=["disabled"],Aq={key:1,class:"settings-save-error",role:"alert"},Oq=["aria-busy"],Pq={key:0,role:"status"},Iq={key:1,class:"settings-notice",role:"alert"},Vq=["disabled"],qq={key:2,class:"settings-notice",role:"status"},Mq={key:3,class:"settings-notice",role:"status"},$q=["disabled"],Lq={class:"settings-row"},Uq={class:"settings-inline"},Fq={key:0,class:"settings-help"},Bq={key:0,class:"settings-help"},zq={id:"settings-quota"},Hq={key:1,role:"status"},jq={key:1,class:"settings-notice"},Gq={key:2,class:"settings-notice"},Wq={key:3,class:"settings-notice"},Kq={key:4,class:"settings-help"},Yq={key:5,class:"settings-plan billing-plan"},Qq={class:"settings-comparison"},Jq={class:"settings-cycles"},Xq=["checked","onChange"],Zq={class:"settings-help"},xq={class:"settings-actions"},e8=["disabled"],t8={key:6,class:"settings-help"},n8={class:"settings-row"},o8={key:0,class:"settings-inline"},s8=["disabled"],i8={key:1,class:"settings-help"},r8=["disabled"],a8={key:4,class:"settings-row"},l8={class:"settings-inline"},d8=["disabled"],u8={key:0,class:"settings-pass"},c8={class:"settings-help"},p8=["disabled"],f8={key:5,class:"settings-row"},h8={class:"settings-help"},m8={id:"settings-account",class:"settings-account-panel"},v8={class:"paper-account-card"},g8=["src"],y8={class:"paper-account-identity"},b8={class:"paper-account-name"},w8={class:"paper-danger-zone"},k8={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},E8=["textContent"],C8=["disabled"],_8={key:1,class:"settings-delete-confirm"},S8={for:"delete-username"},N8={class:"settings-actions"},D8=["disabled"],R8=["disabled"];function ql(e,t){let s=We("quota-usage"),i=ye("field"),o=ye("form");return l(),d("div",Q5,[n("header",J5,[t[16]||(t[16]=n("h1",null,"Settings",-1)),n("div",X5,[n("span",null,"@"+u(e.user?.username),1)])]),n("nav",Z5,[(l(),d(G,null,ee([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:a=>e.settingsTab=r.id},u(r.label),9,x5)),64))]),N(n("div",null,[t[37]||(t[37]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),N((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[1]||(t[1]=ce(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",eq,[t[22]||(t[22]=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,[N(n("textarea",tq,null,512),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",nq,[t[21]||(t[21]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[17]||(t[17]=y("Matches become ",-1)),n("code",null,u(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[18]||(t[18]=y(". Use ",-1)),t[19]||(t[19]=n("code",null,"term=>replacement",-1)),t[20]||(t[20]=y(" for a custom replacement. Regex is supported.",-1))])]),N(n("div",oq,"Terms are in an invalid format.",512),[[j,e.defaultsForm?.terms?.errors?.format]])])]),n("section",sq,[t[31]||(t[31]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",iq,[n("label",rq,[N(n("input",aq,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=y("Keep links",-1))]),n("label",lq,[N(n("input",dq,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[24]||(t[24]=y("Render notebooks",-1))]),n("label",uq,[N(n("input",cq,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=y("Show images",-1))]),n("label",pq,[N(n("input",fq,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[26]||(t[26]=y("Show PDFs",-1))]),n("label",hq,[N(n("input",mq,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=y("Show line counts",-1))]),n("label",vq,[N(n("input",gq,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=y("GitHub Pages",-1))])]),t[29]||(t[29]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[30]||(t[30]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",yq,[t[34]||(t[34]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",bq,[N(n("input",wq,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=y("Auto-update from GitHub",-1))]),t[33]||(t[33]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",kq,[t[36]||(t[36]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[N((l(),d("select",Eq,[...t[35]||(t[35]=[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:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",Cq,u(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",_q,[n("div",Sq,[e.draftRestored?(l(),d("span",Nq,"Your unsaved draft was restored.")):e.unsavedChanges?(l(),d("span",Dq,"Unsaved changes"+u(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(l(),d("span",Rq,u(e.message?"Defaults saved":"All changes saved"),1))]),e.draftRestored||e.unsavedChanges?(l(),d("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},u(e.saving?"Saving\u2026":"Save defaults"),9,Tq),e.error?(l(),d("div",Aq,u(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[j,e.settingsTab==="defaults"]]),N(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[60]||(t[60]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(l(),d("p",Pq,"Loading billing\u2026")):f("v-if",!0),e.billingError?(l(),d("div",Iq,[y(u(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[2]||(t[2]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,Vq)])):f("v-if",!0),e.billingNotice?(l(),d("p",qq,u(e.billingNotice),1)):f("v-if",!0),e.billingPending?(l(),d("div",Mq,[t[38]||(t[38]=n("strong",null,"Confirming your payment",-1)),t[39]||(t[39]=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[3]||(t[3]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,$q)])):f("v-if",!0),n("section",Lq,[t[53]||(t[53]=n("h2",null,"Current plan",-1)),n("div",null,[n("div",Uq,[n("div",null,[n("strong",null,u(e.profileAuthorGrant()?"Author subscription":e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(l(),d("p",Fq,u(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 Access until ":"Paid access through ")+u(e.billingDate(e.profileAuthorGrant().until)),1)):f("v-if",!0)]),e.billing?.enabled&&!e.profileAuthorGrant()&&!e.billingPending&&!e.showAuthorPlans&&e.profileAuthorPlans().length?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.openProfileUpgrade())},"View Author plan")):f("v-if",!0)]),e.billing?.allowance?(l(),d("p",Bq,u(e.billing.allowance.repositories)+" repositories \xB7 "+u(e.billingBytes(e.billing.allowance.storage)),1)):f("v-if",!0),n("div",zq,[e.quota?(l(),$t(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(l(),d("p",Hq,"Loading usage\u2026"))]),t[52]||(t[52]=n("p",{class:"settings-help"},"Coauthored repositories use their owner's allowance. Conference hosting is separate.",-1)),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(l(),d("p",jq,[...t[40]||(t[40]=[y("Your repository allowance is full. ",-1),n("a",{href:"/dashboard"},"Review your repositories",-1),y(" to remove work you no longer need.",-1)])])):f("v-if",!0),e.profilePastSubscription()?(l(),d("p",Gq,[...t[41]||(t[41]=[y("Your previous subscription is no longer active. Never-expiring repositories receive a 90-day grace period after paid access ends. ",-1),n("a",{href:"/dashboard"},"Review repository expiration dates",-1),y(".",-1)])])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(l(),d("p",Wq,"A subscription payment is overdue. Use Manage billing to update your payment details.")):f("v-if",!0),e.profileAuthorGrant()?.cancelAtPeriodEnd?(l(),d("p",Kq,"When paid access ends, never-expiring repositories enter a 90-day grace period. Dated repositories keep their expiration dates.")):f("v-if",!0),e.showAuthorPlans&&!e.profileAuthorGrant()&&!e.billingPending&&e.profileAuthorPlans().length?(l(),d("div",Yq,[t[50]||(t[50]=n("h3",{id:"settings-plan-comparison",tabindex:"-1"},"Compare plans",-1)),n("table",Qq,[t[47]||(t[47]=n("caption",{class:"sr-only"},"Free and Author hosting",-1)),t[48]||(t[48]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Included"),n("th",{scope:"col"},"Free"),n("th",{scope:"col"},"Author")])],-1)),n("tbody",null,[n("tr",null,[t[42]||(t[42]=n("th",{scope:"row"},"Active repositories",-1)),n("td",null,u(e.billing.allowance?.repositories),1),n("td",null,u(e.profileSelectedPlan()?.repositories),1)]),n("tr",null,[t[43]||(t[43]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,u(e.billingBytes(e.billing.allowance?.storage)),1),n("td",null,u(e.billingBytes(e.profileSelectedPlan()?.storage)),1)]),t[44]||(t[44]=n("tr",null,[n("th",{scope:"row"},"Expiration"),n("td",null,"Scheduled"),n("td",null,"Scheduled or never")],-1)),t[45]||(t[45]=n("tr",null,[n("th",{scope:"row"},"Coauthors"),n("td",null,"Included"),n("td",null,"Included")],-1)),t[46]||(t[46]=n("tr",null,[n("th",{scope:"row"},"Reviewer access"),n("td",null,"Free"),n("td",null,"Free")],-1))])]),n("fieldset",Jq,[t[49]||(t[49]=n("legend",{class:"sr-only"},"Billing frequency",-1)),(l(!0),d(G,null,ee(e.profileAuthorPlans(),r=>(l(),d("label",{class:A({selected:e.profileSelectedPlan()?.id===r.id})},[n("input",{type:"radio",name:"profile-plan",checked:e.profileSelectedPlan()?.id===r.id,onChange:a=>e.profilePlan=r.id},null,40,Xq),y(u(e.billingPrice(r)),1)],2))),256))]),n("p",Zq,"Renews "+u(e.profileSelectedPlan()?.interval==="year"?"annually":"monthly")+" until cancelled. Tax shown at checkout.",1),t[51]||(t[51]=n("p",{class:"settings-help"},"If paid access ends, never-expiring repositories expire after a 90-day grace period.",-1)),n("div",xq,[n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[5]||(t[5]=r=>e.checkout(e.profileSelectedPlan().id))},u(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,e8),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[6]||(t[6]=r=>e.showAuthorPlans=!1)},"Keep current plan")])])):f("v-if",!0),e.billing&&(!e.billing.enabled||e.billing.checkoutEnabled===!1)?(l(),d("p",t8,"New purchases are not available. Existing billing can still be managed below.")):f("v-if",!0)])]),n("section",n8,[t[55]||(t[55]=n("h2",null,"Billing",-1)),n("div",null,[e.billing?.portal?(l(),d("div",o8,[t[54]||(t[54]=n("p",{class:"settings-help"},"Invoices, payment details, and renewal.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[7]||(t[7]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing",8,s8)])):(l(),d("p",i8,"No billing account available.")),e.billing?.enabled&&!e.billingPending?(l(),d("button",{key:2,type:"button",class:"settings-text-button",onClick:t[8]||(t[8]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,r8)):f("v-if",!0)])]),e.billing?.enabled?(l(),d("section",a8,[t[58]||(t[58]=n("h2",null,"Repository passes",-1)),n("div",null,[n("div",l8,[t[56]||(t[56]=n("p",{class:"settings-help"},[y("One repository for 180 days."),n("br"),y("No subscription or automatic renewal.")],-1)),e.profilePassPlan()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[9]||(t[9]=r=>e.showRepositoryPass=!e.showRepositoryPass),disabled:e.billingPending},"Review a pass",8,d8)):f("v-if",!0)]),e.showRepositoryPass&&e.profilePassPlan()&&!e.billingPending?(l(),d("div",u8,[t[57]||(t[57]=n("label",{for:"billing-repository"},"Repository ID you own",-1)),N(n("input",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[10]||(t[10]=r=>e.billingRepository=r),placeholder:"Existing anonymized repository ID",autocomplete:"off"},null,512),[[co,e.billingRepository]]),n("p",c8,u(e.billingPrice(e.profilePassPlan()))+" \xB7 "+u(e.billingBytes(e.profilePassPlan().storage))+" \xB7 Never expire is not included.",1),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository.trim()||e.billing.checkoutEnabled===!1,onClick:t[11]||(t[11]=r=>e.checkout("author_pass",e.billingRepository.trim()))},"Continue to checkout",8,p8)])):f("v-if",!0)])])):f("v-if",!0),e.billing?.grants?.length?(l(),d("section",f8,[t[59]||(t[59]=n("h2",null,"Your purchases",-1)),n("div",null,[(l(!0),d(G,null,ee(e.billing.grants,r=>(l(),d("div",{class:"settings-purchase",key:r.scope+r.planId+r.until},[n("strong",null,u(e.profileGrantName(r)),1),n("span",null,u(r.scope),1),n("p",h8,[y(u(r.status),1),r.status!=="revoked"?(l(),d(G,{key:0},[y(" \xB7 Paid access through "+u(e.billingDate(r.until))+u(r.cancelAtPeriodEnd?" \xB7 Renewal cancelled":""),1)],64)):f("v-if",!0)])]))),128))])])):f("v-if",!0),t[61]||(t[61]=n("section",{class:"settings-row"},[n("h2",null,"Conference hosting"),n("div",{class:"settings-inline"},[n("p",{class:"settings-help"},"Shared hosting is managed per conference."),n("a",{href:"/conferences",class:"btn btn-outline-ink"},"My conferences")])],-1))],8,Oq),[[j,e.settingsTab==="billing"]]),N(n("section",m8,[t[69]||(t[69]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",v8,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,g8)):f("v-if",!0),n("div",y8,[n("div",b8,"@"+u(e.user?.username),1),t[62]||(t[62]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[63]||(t[63]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),t[70]||(t[70]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[y("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",w8,[t[67]||(t[67]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[68]||(t[68]=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?(l(),d("div",k8,[t[64]||(t[64]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[65]||(t[65]=y()),n("span",{textContent:u(e.deleteError)},null,8,E8)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[12]||(t[12]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[66]||(t[66]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),y(u(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,C8),e.confirmDeleteAccount?(l(),d("div",_8,[n("label",S8,"Type "+u(e.user?.username)+" to confirm",1),N(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[13]||(t[13]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[co,e.deleteUsername]]),n("div",N8,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[14]||(t[14]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},u(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,D8),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[15]||(t[15]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,R8)])])):f("v-if",!0)])],512),[[j,e.settingsTab==="account"]])])}var T8={class:"pr-page"},A8={class:"container paper-page pr-page-inner"},O8={class:"pr-header"},P8={class:"pr-title-row"},I8={class:"paper-page-title pr-title"},V8=["textContent"],q8={key:1,class:"text-muted"},M8=["href"],$8={class:"pr-header-meta"},L8={key:0,class:"pr-meta-item"},U8=["textContent"],F8={key:1,class:"pr-meta-item"},B8=["textContent"],z8={key:2,class:"pr-meta-item"},H8=["textContent"],j8={key:0,class:"pr-body-card"},G8={key:1,class:"paper-tabs",role:"tablist"},W8=["aria-selected","tabindex"],K8=["aria-selected","tabindex"],Y8=["textContent"],Q8={class:"paper-tab-content"},J8={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},X8=["innerHTML"],Z8={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},x8={class:"pr-comments"},eM={class:"pr-comment"},tM={class:"pr-comment-head"},nM={key:0,class:"pr-comment-author"},oM=["textContent"],sM=["textContent"],iM={key:0,class:"pr-comment-body"},rM={key:0,class:"paper-table-empty"};function Ml(e,t){let s=We("markdown");return l(),d("div",T8,[n("div",A8,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",O8,[n("div",P8,[n("h1",I8,[e.details?.title?(l(),d("span",{key:0,textContent:u(e.details?.title)},null,8,V8)):f("v-if",!0),e.details?.title?f("v-if",!0):(l(),d("span",q8,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[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,M8)):f("v-if",!0)]),n("div",$8,[n("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+u(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",L8,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=y()),n("span",{textContent:u(e.details?.baseRepositoryFullName)},null,8,U8)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",F8,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=y()),n("span",{textContent:u(e.fmt?.date(e.details?.updatedDate))},null,8,B8)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",z8,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=y(" Anonymized ",-1)),n("span",{textContent:u(e.fmt?.date(e.details?.anonymizeDate))},null,8,H8)])):f("v-if",!0)])]),e.details?.body?(l(),d("section",j8,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),Ee(s,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",G8,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),y(" Diff ",-1)])],42,W8)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>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:u(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,Y8)],42,K8)):f("v-if",!0)])):f("v-if",!0),n("div",Q8,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",J8,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,X8)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",Z8,[n("ul",x8,[(l(!0),d(G,null,ee(e.details?.comments,(i,o)=>(l(),d("li",eM,[n("div",tM,[i?.author?(l(),d("span",nM,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=y(" @",-1)),n("span",{textContent:u(i?.author)},null,8,oM)])):f("v-if",!0),i?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:u(e.fmt?.date(i?.updatedDate))},null,8,sM)):f("v-if",!0)]),i?.body?(l(),d("div",iM,[Ee(s,{content:i?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",rM,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var aM={class:"repository-task status-page"},lM={class:"task-lede"},dM={class:"task-columns"},uM={class:"task-preparation","aria-label":"Repository preparation"},cM={key:0,class:"task-ready",role:"status"},pM={key:1},fM={key:2,class:"text-danger",role:"alert"},hM={key:3,class:"paper-section-copy"},mM={key:4,class:"paper-ratelimit-card",role:"status"},vM={class:"paper-error-msg"},gM=["aria-valuenow"],yM={class:"paper-progress-label"},bM=["textContent"],wM={key:0},kM=["textContent"],EM={class:"paper-progress-pct"},CM={key:6,class:"paper-error-card",role:"alert"},_M={key:0,class:"paper-error-msg"},SM={key:1,class:"paper-error-msg"},NM={key:2},DM=["href"],RM={class:"paper-error-actions"},TM=["href"],AM={key:7,class:"task-result"},OM={class:"detail-value"},PM=["href"],IM={key:0,class:"detail-label"},VM={key:1,class:"detail-value"},qM=["href"],MM={key:8,class:"task-actions"},$M=["href"],LM=["href"],UM={class:"task-summary","aria-label":"Repository summary"},FM={class:"task-summary-foot"};function $l(e,t){return l(),d("div",aM,[t[21]||(t[21]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),y(" / Repository")],-1)),t[22]||(t[22]=n("h1",null,"Prepare your anonymous review link",-1)),n("p",lM,u(e.repo?.status==="ready"?"Your repository is ready to share.":"Your settings are saved. Track preparation before sharing the link."),1),t[23]||(t[23]=n("ol",{class:"task-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)),n("div",dM,[n("section",uM,[e.repo?.status==="ready"?(l(),d("div",cM,[...t[1]||(t[1]=[n("strong",null,"Your review link is ready",-1)])])):f("v-if",!0),n("h2",null,u(e.repoId),1),e.repo?.status==="ready"?(l(),d("p",pM,"Share the link with reviewers. They do not need to sign in.")):f("v-if",!0),e.error?(l(),d("p",fM,[t[2]||(t[2]=y("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"?(l(),d("p",hM,[...t[3]||(t[3]=[y(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),y(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(l(),d("div",mM,[t[6]||(t[6]=pe('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",vM,[t[4]||(t[4]=y("Anonymization will resume automatically in ",-1)),n("strong",null,u(e.rateLimitCountdown),1),t[5]||(t[5]=y(". 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?(l(),d("div",{key:5,class:A(["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:$e("width: "+e.progress+"%;")},null,4),n("div",yM,[n("span",{textContent:u(e.fmt?.title(e.repo?.status))},null,8,bM),e.repo?.statusMessage?(l(),d("span",wM,[t[7]||(t[7]=y("\xA0\xB7\xA0",-1)),n("span",{textContent:u(e.repo?.statusMessage)},null,8,kM)])):f("v-if",!0),n("span",EM,u(e.progress||0)+"%",1)])],10,gM)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",CM,[t[11]||(t[11]=pe('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",_M,u(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(l(),d("p",SM,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),e.repo?.statusMessage==="quota_exceeded"?(l(),d("p",NM,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,DM),t[8]||(t[8]=y(", then retry preparation.",-1))])):f("v-if",!0),t[12]||(t[12]=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",RM,[n("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),y(" Edit anonymization",-1)])],8,TM),t[10]||(t[10]=pe(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status==="ready"?(l(),d("div",AM,[t[13]||(t[13]=n("div",{class:"detail-label"},"Repository",-1)),n("div",OM,[n("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},u(e.reviewUrl),9,PM)]),e.repo?.options?.page?(l(),d("div",IM,"GitHub Page")):f("v-if",!0),e.repo?.options?.page?(l(),d("div",VM,[n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+u(e.repoId)+"/",9,qM)])):f("v-if",!0)])):f("v-if",!0),e.repo?.status=="ready"?(l(),d("div",MM,[n("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[14]||(t[14]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),y(" Go to anonymized repository ",-1)])],8,$M),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),y(" Go to anonymized GitHub page ",-1)])],8,LM)):f("v-if",!0)])):f("v-if",!0)]),n("aside",UM,[n("h3",null,u(e.repoId),1),n("dl",null,[t[16]||(t[16]=n("dt",null,"Source",-1)),n("dd",null,u(e.repo?.source?.fullName?"https://github.com/"+e.repo.source.fullName:"Loading\u2026"),1),t[17]||(t[17]=n("dt",null,"Lifetime",-1)),n("dd",null,u(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[18]||(t[18]=n("dt",null,"Review access",-1)),t[19]||(t[19]=n("dd",null,"Anonymous and free",-1))]),n("div",FM,[n("strong",null,u(e.repo?.status==="ready"?"Ready to share":"Repository preparation"),1),t[20]||(t[20]=n("p",null,"Coauthors do not each need a subscription.",-1))])])])])}var ls={"partials/connections.htm":ul,"partials/signin.htm":cl,"partials/404.htm":pl,"partials/admin/conferences.htm":fl,"partials/admin/errors.htm":hl,"partials/admin/overview.htm":ml,"partials/admin/queues.htm":vl,"partials/admin/repositories.htm":gl,"partials/admin/user.htm":yl,"partials/admin/users.htm":bl,"partials/anonymize.htm":wl,"partials/anonymizePullRequest.htm":kl,"partials/claim.htm":El,"partials/conference.htm":Cl,"partials/conferences.htm":_l,"partials/dashboard.htm":Sl,"partials/explorer.htm":Nl,"partials/faq.htm":Dl,"partials/gist.htm":Rl,"partials/header.htm":Tl,"partials/home.htm":Al,"partials/loading.htm":Ol,"partials/newConference.htm":Pl,"partials/pageView.htm":Il,"partials/pr-dashboard.htm":Vl,"partials/profile.htm":ql,"partials/pullRequest.htm":Ml,"partials/status.htm":$l};var BM={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function Ll(e,t){return l(),d("svg",BM,[...t[0]||(t[0]=[pe('',1)])])}function Ul(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let 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 o=ot(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Fl(e=(...t)=>fetch(...t)){async function t(i,o,r,a={}){let c=new URL(o,window.location.href);for(let[g,k]of Object.entries(a.params||{}))if(k!=null)for(let m of Array.isArray(k)?k:[k])c.searchParams.append(g,typeof m=="object"?JSON.stringify(m):m);let h=new AbortController,v;a.timeout?.then?a.timeout.then(()=>h.abort()):a.timeout&&(v=setTimeout(()=>h.abort(),a.timeout));try{let g={Accept:"application/json, text/plain, */*",...a.headers},k=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);k&&c.origin===window.location.origin&&(g["X-XSRF-TOKEN"]=decodeURIComponent(k[1]));let m;r!==void 0&&(r instanceof FormData?m=r:(g["Content-Type"]||(g["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(r)));let b=await e(c.href,{method:i,headers:g,body:m,credentials:"same-origin",signal:h.signal}),C=await b.text(),E=C;if(a.transformResponse)E=a.transformResponse(C);else if(C&&(/json/i.test(b.headers.get("content-type")||"")||/^[\[{]/.test(C.trim())))try{E=JSON.parse(C)}catch{}let R={data:E,status:b.status,headers:D=>b.headers.get(D)};if(!b.ok)throw R;return R}catch(g){throw g.name==="AbortError"?{status:-1,data:null}:g}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,a)=>t(i.toUpperCase(),o,r,a);return s}var Bl={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var zl=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 ui={};ld(ui,{bigNum:()=>HM,date:()=>e6,diff:()=>YM,filter:()=>ZM,humanFileSize:()=>zM,humanTime:()=>jM,limitTo:()=>XM,number:()=>QM,orderBy:()=>xM,plural:()=>t6,statusLabel:()=>WM,statusMsg:()=>KM,title:()=>GM,uppercase:()=>JM});var zM=e=>window.humanFileSize(e),HM=(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"}})(),jM=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var s=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let h=new Date;return h.setSeconds(h.getSeconds()-t),"on "+h.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var i=[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"],r=0;r1&&(c+="s"),a>=1)return a+" "+c+" "+s}return"0 seconds "+s}})(),GM=(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(" ")}})(),WM=(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)}})(),KM=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var 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 o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),YM=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",a=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+a+"
"),o.lines.length){i.push('');for(let c of o.lines)i.push('");i.push("
'+(c.oldNo||"")+''+(c.newNo||"")+''+(c.kind==="add"?"+":c.kind==="remove"?"-":c.kind==="hunk"?"@":"")+''+t(c.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,a=0,c=0,h=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},g=i.split(` +`);for(let k=0;ke});function QM(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function JM(e){return String(e??"").toUpperCase()}function XM(e,t,s=0){return(e||[]).slice(s,s+t)}function ZM(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function xM(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let a=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let c=r.split(".").reduce((v,g)=>v?.[g],i),h=r.split(".").reduce((v,g)=>v?.[g],o);if(typeof c=="string"&&(c=c.toLowerCase()),typeof h=="string"&&(h=h.toLowerCase()),c!==h)return(c==null?-1:h==null?1:ci[o])}function t6(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var Hl={ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid.",repository_tree_incomplete:"The repository file tree is incomplete. Reduce its size and refresh before downloading.",billing_environment_mismatch:"The payment event does not match this billing environment.",billing_unavailable:"Payments are not available. Please try again later.",invalid_billing_signature:"The payment notification could not be verified.",billing_webhook_failed:"The payment notification could not be processed.",billing_customer_not_found:"No billing account was found.",subscription_required_for_never_expiration:"Never-expiring repositories require the owner\u2019s active monthly or annual author subscription. Choose a dated expiration or upgrade in Plans and billing.",invalid_billing_expiration:"Choose an expiration date within the next year, or select Never expire with an author subscription.",pending_payment:"Awaiting payment"},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var jl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=tt(null);return Mt(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let c=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&c.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",c.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),i.appendChild(a);let h="";e.baseUrl&&(h=''),a.srcdoc=h+r}He(()=>e.content,o,{immediate:!0}),He(()=>e.baseUrl,o,{immediate:!0}),He(()=>e.allowScripts,o,{immediate:!0})}),()=>we("html-doc",{ref:t})}};var Gl={name:"pdfviewer",props:["src"],setup(e){let t=tt(null);return Mt(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,a=s[0];a.classList.add("pdf-viewer");let c=null,h=[],v=!1,g=null,k=1,m=1,b=0,C=0,E=612/792,R=0,D=null,T=new Map,q=0;function L(W){let p=T.get(W);p&&(p.cancelled=!0,p.task?.cancel?.(),T.delete(W));let w=W.querySelector("canvas");w&&(w.width=0,w.height=0),W.innerHTML="",delete W.dataset.state}let M=document.createElement("div");M.className="pdf-toolbar";let z=document.createElement("div");z.className="pdf-pages",z.tabIndex=0,z.setAttribute("aria-label","PDF pages"),a.appendChild(M),a.appendChild(z);function se(W,p,w){let S=document.createElement("button");return S.type="button",S.className="pdf-toolbar-btn",S.title=p,S.setAttribute("aria-label",p),S.innerHTML='',S.addEventListener("click",w),S}let oe=se("fa-chevron-up","Previous page",function(){Ae(m-1)}),_=se("fa-chevron-down","Next page",function(){Ae(m+1)}),O=document.createElement("input");O.type="text",O.className="pdf-toolbar-page",O.setAttribute("aria-label","Page number"),O.title="Page number \u2014 type a page and press Enter",O.addEventListener("keydown",function(W){W.key==="Enter"&&(Ae(parseInt(O.value,10)),O.blur())}),O.addEventListener("blur",function(){O.value=String(m)});let B=document.createElement("span");B.className="pdf-toolbar-count";let Y=se("fa-search-minus","Zoom out",function(){ie(o[Math.max(0,le()-1)])}),X=se("fa-search-plus","Zoom in",function(){ie(o[Math.min(o.length-1,le()+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(){ie(1)}),M.appendChild(oe),M.appendChild(_);let te=document.createElement("span");te.className="pdf-toolbar-group",te.appendChild(O),te.appendChild(B),M.appendChild(te);let ue=document.createElement("span");ue.className="pdf-toolbar-group pdf-toolbar-right",ue.appendChild(Y),ue.appendChild(K),ue.appendChild(X),M.appendChild(ue);function le(){let W=0;for(let p=0;p=W,K.textContent=Math.round(k*100)+"%",Y.disabled=le()===0,X.disabled=le()===o.length-1}function Ce(W){let p=h[W-1];p&&(z.scrollTop+=p.getBoundingClientRect().top-z.getBoundingClientRect().top)}function Ae(W){if(!c||isNaN(W))return;let p=Math.min(Math.max(1,W),c.numPages);h[p-1]&&(Ce(p),m=p,b=p,C=Date.now()+800,re(),Ve())}function Oe(){if(!h.length||Date.now(){}),D=null),g&&(clearTimeout(g),g=null),c&&(c.destroy(),c=null),h=[],m=1,z.innerHTML="",re()}function Ie(){z.innerHTML="";let W=document.createElement("div");W.className="pdf-viewer-error",W.textContent="This PDF could not be displayed.",z.appendChild(W)}function Se(){let W=Math.max(120,z.clientWidth-24);return Math.round(Math.min(W,r)*k)}function Fe(W,p,w){let S=window.devicePixelRatio||1,P=W.getViewport({scale:1}),V=parseFloat(p.style.width);if(!V)return;let I=W.getViewport({scale:V/P.width*S}),F=document.createElement("canvas");return F.width=Math.floor(I.width),F.height=Math.floor(I.height),F.style.width=V+"px",F.style.height=Math.floor(I.height/S)+"px",p.innerHTML="",p.appendChild(F),p.style.height=F.style.height,w.task=W.render({canvasContext:F.getContext("2d"),viewport:I}),w.task.promise}function Ve(){if(!c)return;let W=R,p=z.getBoundingClientRect(),w=p.top-i,S=p.top+z.clientHeight+i,P=h.map((I,F)=>({slot:I,i:F,rect:I.getBoundingClientRect()})).filter(I=>I.rect.top<=S&&I.rect.bottom>=w).sort((I,F)=>Math.abs(I.rect.top-p.top)-Math.abs(F.rect.top-p.top)).slice(0,6),V=new Set(P.map(I=>I.slot));for(let I of T.keys())V.has(I)||L(I);for(let{slot:I,i:F}of P){if(I.dataset.state||q>=2)continue;let Q={cancelled:!1,task:null};T.set(I,Q),q++,I.dataset.state="rendering";let J;c.getPage(F+1).then(H=>{if(J=H,!(Q.cancelled||W!==R))return Fe(J,I,Q)}).then(()=>{Q.cancelled||W!==R||(I.dataset.state="done",b&&Date.now(){!Q.cancelled&&W===R&&(I.dataset.state="failed")}).finally(()=>{q--,J?.cleanup?.(),c&&Ve()})}}function U(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,Oe(),Ve()}))}function x(){let W=!1;function p(){W||(W=!0,Ve())}window.requestAnimationFrame(p),window.setTimeout(p,50)}function Z(){R++,h.forEach(L);let W=Se();h.forEach(function(p){delete p.dataset.state,p.innerHTML="",p.style.width=W+"px",p.style.height=Math.round(W/E)+"px"}),Ve()}function ie(W){if(!c||!h.length||W===k)return;let p=m;k=W,re(),Z(),Ae(p)}function me(){c&&(g&&clearTimeout(g),g=setTimeout(function(){g=null,c&&h.length&&Z()},250))}function _e(W){if(ke(),!W)return;let p=R;D=pdfjsLib.getDocument({url:W,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),D.promise.then(function(w){if(p!==R){w.destroy();return}return c=w,c.getPage(1).then(function(S){if(p!==R)return;let P=S.getViewport({scale:1});P.width&&P.height&&(E=P.width/P.height);let V=Se();for(let I=1;I<=c.numPages;I++){let F=document.createElement("div");F.className="pdf-viewer-page",F.style.width=V+"px",F.style.height=Math.round(V/E)+"px",z.appendChild(F),h.push(F)}re(),x()})}).catch(function(){p===R&&Ie()})}z.addEventListener("scroll",U,{passive:!0}),$(window).on("resize",me),re(),He(()=>e.src,_e,{immediate:!0}),ln(function(){z.removeEventListener("scroll",U),$(window).off("resize",me),ke()})}),()=>we("pdfviewer",{ref:t})}};var o6={key:0,class:"quota-row quota-usage"},s6={class:"quota-header"},i6={class:"quota-label"},r6={class:"project-type-svg","aria-hidden":"true"},a6=["href"],l6={key:0,class:"quota-percent"},d6={key:1,class:"quota-unlimited-tag"},u6={class:"quota-value"},c6={key:0},p6=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],f6={key:1,class:"quota-remaining"},h6={key:2,class:"quota-remaining quota-limit"};function Wl(e,t){return e.quota?(l(),d("div",o6,[(l(),d(G,null,ee([{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:A(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",s6,[n("span",i6,[(l(),d("svg",r6,[n("use",{href:"#"+s.icon},null,8,a6)])),y(u(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(l(),d("span",l6,u(e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(l(),d("span",d6,"Unlimited")):f("v-if",!0)]),n("div",u6,[n("strong",null,u(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(l(),d("span",c6," / "+u(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(l(),d("div",{key:0,class:A(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:$e({width:e.quota[s.key].percent+"%"})},null,4))],10,p6)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(l(),d("p",h6,u(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 m6={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:Wl},v6=new Set(fe),Yl={props:["content","terms","options"],setup(e){let t=tt(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return Mt(()=>{s(),He(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>we("markdown",{ref:t})}},g6={props:["file","terms","options"],setup(e){let t=tt(null),s=()=>Ye(()=>t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)));return Mt(s),He(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return we("gist-file",{ref:t},we(Yl,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(i.language||o||"none").toLowerCase();return we("gist-file",{ref:t},we("pre",{class:"line-numbers"},we("code",{class:"language-"+(r[a]||a),key:i.content},i.content||"")))}}},y6={props:["file","content"],setup(e){let t=tt(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(c=>{if(!c.ok)throw Error("Notebook request failed");return c.json()});if(await xt("notebook"),r!==s)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(c=>window.Prism?.highlightElement(c))}catch(a){r===s&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return Mt(()=>{o(),He(()=>[e.file,e.content],o)}),ln(()=>{s++,i?.abort()}),()=>we("notebook",{ref:t})}},b6={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return we("loc",t.map(([i,o])=>we("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Ql={Markdown:Yl,GistFile:g6,Notebook:y6,Loc:b6,HtmlDoc:jl,QuotaUsage:m6,Pdfviewer:mr(async()=>(await xt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Gl))},Jl={async mounted(e,{value:t}){e._editorValue=t;try{if(await mi(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),Kl(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),Kl(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function Kl(e,t={}){let s=v6.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 Xl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(a=>a.isIntersecting?s.add(a.target.id):s.delete(a.target.id));let r=t.find(a=>s.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});Ye(()=>t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)})),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function w6(e){let t={children:[]},s=new Map([["",t]]);function i(o){if(s.has(o))return s.get(o);let r=o.lastIndexOf("/"),a=i(r<0?"":o.slice(0,r)),c={name:o.slice(r+1),children:[]};return s.set(o,c),a.children.push(c),c}for(let o of e||[]){let r=o.path?`${o.path}/${o.name}`:o.name;o.size==null?i(r):i(o.path||"").children.push({...o})}return t.children}var Zl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ba(),s=tt(null),i=ze(Object.create(null)),o=null,r=ot(()=>w6(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let m="";a().split("/").filter(Boolean).forEach(b=>{m+="/"+b,i[m]=!0})},{immediate:!0});let c=ot(()=>{if(!e.searchQuery||!e.searchResults)return null;let m=new Set,b=new Set;return e.searchResults.forEach(C=>{m.add(C.path?`${C.path}/${C.name}`:C.name);let E="";(C.path||"").split("/").filter(Boolean).forEach(R=>{E=E?E+"/"+R:R,b.add(E)})}),{files:m,folders:b}}),h=()=>[...s.value.querySelectorAll("li > a")],v=m=>{s.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),m&&(o=m.dataset.path,m.classList.add("tree-focused"),m.scrollIntoView?.({block:"nearest"}),s.value.focus())};function g(m){let b=h(),C=s.value.querySelector(".tree-focused")||b[0],E=b.indexOf(C);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(m.key)||(m.preventDefault(),m.key==="ArrowDown"&&v(b[(E+1)%b.length]),m.key==="ArrowUp"&&v(b[(E-1+b.length)%b.length]),!C))return;let R=C.closest("li");m.key==="ArrowRight"&&R.classList.contains("folder")&&(R.classList.contains("open")?v(R.querySelector(":scope > ul > li > a")):C.click()),m.key==="ArrowLeft"&&(R.classList.contains("folder")&&R.classList.contains("open")?C.click():v(R.parentElement.closest("li.folder")?.querySelector(":scope > a"))),m.key==="Enter"&&C.click()}function k(m,b=""){let C=[...m].sort((E,R)=>+!!R.children-+!!E.children||E.name.localeCompare(R.name));return we("ul",C.flatMap(E=>{let R=E,D=R.name,T=(b+"/"+D).slice(1);if(c.value&&!c.value.files.has(T)&&!c.value.folders.has(T))return[];for(;R.children?.length===1;)R=R.children[0],D+="/"+R.name;let q=b+"/"+D,L=!!R.children,M=c.value?i[q]!==!1:!!i[q],z=L&&e.page?.options?.truncatedFolders?.includes(q.slice(1)),se=e.page?.fileCounts?.[q.slice(1)]||0,oe=we("span",{class:L?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},L?we("svg",{viewBox:"0 0 14 12",focusable:"false"},we("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),_=we("span",{class:"tree-name"},D),O=Y=>{v(Y.currentTarget),L&&(Y.preventDefault(),i[q]=!M,i[q]&&!R.children.length&&e.page.getFiles(q.slice(1)),Ye(()=>v(h().find(X=>X.dataset.path===o))))},B=we("a",{"data-path":q,href:L?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(q)}`,class:{"tree-focused":o===q},onClick:O},[L?we("span",{class:"tree-toggle"}):b?we("span",{class:"tree-spacer"}):null,oe,_,z?we("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},we("i",{class:"fas fa-exclamation-triangle"})):null,L&&se?we("span",{class:"tree-count"},se):null]);return we("li",{key:q,class:{file:!0,folder:L,open:M,active:a()===q,truncated:z},title:L?"":`Size: ${humanFileSize(R.size||0)}`},[B,L&&M?k(R.children,q):null])}))}return()=>we("tree",{ref:s,tabindex:0,onKeydown:g},e.file?.length?c.value?.files.size===0?we("div",{class:"tree-search-empty"},"No files found"):k(r.value):"Empty repository")}};function ed(){return ze({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function td(e,t){if(!e[t]){let s=ed();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 nd={beforeMount(e,{value:t}){e._formState=td(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function k6(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function xl(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"?k6(t):t??""),ci(e)}function ci(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]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||!o)}var od={beforeMount(e,{value:t}){var a;let s=t.form&&td(t.state,t.form),i=s&&e.name?s[a=e.name]||(s[a]=ed()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let c=e._field.binding,h=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(h=e.value===""?null:Number(e.value)),e.type==="date"&&(h=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}c.set(h),ci(e),c.change?.()}};e._field.commit=o;let r=c=>{let h=e._field.binding.options?.debounce||0,v=typeof h=="number"?h:h[c.type]??h.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:xl,updated(e,{value:t}){e._field.binding=t,xl(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 sd(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&&ci(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var id=Symbol("session"),E6=/^\/(w|api|github)(\/|$)/;function rd(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Hl);return String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var C6={...ui,translate:rd};function _6(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 S6(e="#app",t={}){!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let s=new Map,i=Fl(t.fetch),o,r;function a(){let v=ct(),g={url(m){return m===void 0?r.currentRoute.value.fullPath:(r.push(m),g)},replace(m){return r.replace(m)},path(){return r.currentRoute.value.path},search(){return r.currentRoute.value.query}},k=new Proxy({},{get(m,b){let C=r.currentRoute.value.params[b];return Array.isArray(C)?C.join("/"):C}});return{http:i,...v,location:g,params:k,window,promises:Bl,html:{trustAsHtml:m=>m},translate:(m,b)=>Promise.resolve(rd(m,b)),quotaService:zl(i)}}function c(v){return{name:v.template,setup(){let g=ri(ut(id),s);v.setup(g,a()),Ul(v.template,g);let k=[];return()=>ls[v.template](g,k)}}}r=Fa({history:t.history||$a(),routes:dl.map(v=>v.redirect?v:{path:v.path,component:c(v),meta:{title:v.title,preserveExplorer:v.preserveExplorer}})});let h=sa({setup(){o=ri(null,s),o.fmt=C6,o.window=window,o.Math=Math,o.sanitize=m=>DOMPurify.sanitize(m??""),o.submitForm=sd,o.safeUrl=_6;let v=a();Ha(o,v.http,v.location,v.timeout),an(id,o),He(()=>o.title,m=>{document.title=m||"Anonymous GitHub"});let g=[],k=m=>{let b=m.target.closest?.("a[href]");if(m.defaultPrevented||m.button!==0||m.metaKey||m.ctrlKey||m.shiftKey||m.altKey||!b||b.hasAttribute("download")||b.target&&b.target!=="_self"||b.dataset.toggle||b.getAttribute("href").startsWith("#"))return;let E=new URL(b.href,window.location.href);E.origin!==window.location.origin||E6.test(E.pathname)||(m.preventDefault(),r.push(E.pathname+E.search+E.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",k),ln(()=>document.removeEventListener("click",k)),()=>[Ll(o,[]),we("header",{class:"app-header"},ls["partials/header.htm"](o,g)),we("main",{class:"app-view align-items-stretch w-100"},we(si,null,{default:({Component:m,route:b})=>m?we(m,{key:b.meta.preserveExplorer?b.matched[0]?.path:b.path}):null})),we("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},o.toasts.map((m,b)=>we("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:b},[we("div",{class:"toast-header"},[we("strong",{class:"mr-auto"},m.title),we("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>o.removeToast(m)},"\xD7")]),we("div",{class:"toast-body"},m.body)])))]}});for(let[v,g]of Object.entries(Ql))h.component(v,g);return h.component("Tree",Zl),h.component("PartialView",{props:["name","state"],setup(v){let g=[];return()=>ls[v.name](v.state,g)}}),h.directive("field",od),h.directive("form",nd),h.directive("code-editor",Jl),h.directive("paper-scrollspy",Xl),h.use(r),r.beforeEach(async v=>{o?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(v.path)&&await xt("markdown"),/^\/(r|repository)\//.test(v.path)&&await xt("org")}),r.afterEach(v=>{if(!o)return;o.title=v.meta.title,o.emit("routeChange",{title:v.meta.title}),o.emit("routeUpdate",{title:v.meta.title});let g=document.querySelector(".app-view");!v.meta.preserveExplorer&&g&&(g.scrollTop=0)}),h.mount(e),{app:h,router:r,state:o}}document.querySelector("#app")&&(window.anonymousApp=S6());})(); /*! Bundled license information: @vue/shared/dist/shared.esm-bundler.js: diff --git a/src/core/Repository.ts b/src/core/Repository.ts index 97ffced..fee47b1 100644 --- a/src/core/Repository.ts +++ b/src/core/Repository.ts @@ -708,6 +708,20 @@ export default class Repository { logger.info("up to date", { repoId: this._model.repoId }); return; } + // Admit the pinned replacement before changing or deleting the published snapshot. + if (config.BILLING_ENABLED && this.model.billingManaged) { + const candidateModel = new AnonymizedRepositoryModel(this.model.toObject()); + candidateModel.source.commit = newCommit; + const candidate = new Repository(candidateModel); + const files = await candidate.source.getFiles(); + try { + await reserveRepository(String(this.model.owner), this.repoId, + files.reduce((sum, file) => sum + (file.size || 0), 0), this.model.conference); + } catch (error) { + if (!opt?.force && error instanceof Error && error.message === "quota_exceeded") return; + throw error; + } + } this._model.source.commit = newCommit; const commitInfo = await ghRepo.getCommitInfo(newCommit, { accessToken: token, diff --git a/src/core/billing/quotas.ts b/src/core/billing/quotas.ts index b648822..7e463c5 100644 --- a/src/core/billing/quotas.ts +++ b/src/core/billing/quotas.ts @@ -30,8 +30,12 @@ export async function reserveRepository(owner: string, repoId: string, bytes: nu if (!await BillingQuota.exists({ _id: limits.scope })) { const existing = await RepositoryModel.find(limits.scope.startsWith("user:") ? { owner, status: { $nin: ["removed", "expired"] } } : limits.scope.startsWith("conference:") ? { conference, status: { $nin: ["removed", "expired"] } } : { repoId, status: { $nin: ["removed", "expired"] } }) - .select("repoId size").lean(); - try { await BillingQuota.create({ _id: limits.scope, allocations: existing.map(r => ({ repoId: r.repoId, bytes: r.size?.storage || 0, createdAt: new Date() })) }); } + .select("repoId size owner conference").lean(); + const funded = []; + for (const repository of existing) { + if ((await allowance(String(repository.owner), repository.repoId, repository.conference)).scope === limits.scope) funded.push(repository); + } + try { await BillingQuota.create({ _id: limits.scope, allocations: funded.map(r => ({ repoId: r.repoId, bytes: r.size?.storage || 0, createdAt: new Date() })) }); } catch (error) { if ((error as { code?: number }).code !== 11000) throw error; } } // Only confirmed terminal repositories release capacity. Unknown reservations diff --git a/src/server/routes/repository-private.ts b/src/server/routes/repository-private.ts index 5129e99..d939dba 100644 --- a/src/server/routes/repository-private.ts +++ b/src/server/routes/repository-private.ts @@ -625,6 +625,7 @@ router.post( "githubAccess.revision": previousAccessRevision || { $exists: false } }, { $set: { + ...(repo.model.billingNeverExpiresUntil ? { billingNeverExpiresUntil: repo.model.billingNeverExpiresUntil } : {}), settingsSavedAt: new Date(), options: repo.model.options, source: repo.model.source, @@ -632,6 +633,7 @@ router.post( conference: repo.model.conference, anonymizeDate: repo.model.anonymizeDate, }, + ...(!repo.model.billingNeverExpiresUntil ? { $unset: { billingNeverExpiresUntil: 1 } } : {}), } ).exec(); if (!saved.matchedCount) throw appError("connection_changed", 409); diff --git a/test/billing-integration.test.js b/test/billing-integration.test.js index a045123..00ee449 100644 --- a/test/billing-integration.test.js +++ b/test/billing-integration.test.js @@ -43,6 +43,17 @@ async function rejects(promise, message) { await Promise.all([reserveRepository(owner, id, 90), reserveRepository(owner, id, 1)]); expect((await BillingQuota.findById(`user:${owner}`)).allocations[0].bytes).to.equal(90); }); + it("does not seed personal capacity with conference-funded or pass-funded repositories", async () => { + await BillingGrant.create([ + { _id: "conf-grant", owner, scope: "conference:funded", status: "paid", until: future(), planId: "conference" }, + { _id: "pass-grant", owner, scope: "repo:pass", status: "paid", until: future(), planId: "author_pass" }, + ]); + await Repo.create([...["a", "b", "c"].map(repoId => ({ repoId, owner, conference: "funded", status: "ready", size: { storage: 80 } })), + { repoId: "pass", owner, status: "ready", size: { storage: 80 } }]); + await reserveRepository(owner, "personal", 10); + const ledger = await BillingQuota.findById(`user:${owner}`); + expect(ledger.allocations.map(a => a.repoId)).to.deep.equal(["personal"]); + }); it("counts legacy repositories and releases removed repositories", async () => { await Repo.create(["one", "two", "three"].map(repoId => ({ repoId, owner, status: "ready", size: { storage: 10 } }))); await rejects(reserveRepository(owner, "four", 1), "quota_exceeded"); diff --git a/test/repository-activity.test.js b/test/repository-activity.test.js index 75d52d6..d9b6105 100644 --- a/test/repository-activity.test.js +++ b/test/repository-activity.test.js @@ -66,6 +66,27 @@ describe("repository activity dates", () => { expect(saved.source.commit).to.equal("abc123"); expect(saved).not.to.have.property("publishedAt"); }); + for (const mode of ["never", "remove"]) { + it(`persists the billing deadline when settings change to ${mode}`, async () => { + const config = require("../src/config").default; + const expiration = require("../src/core/billing/expiration"); + const quotas = require("../src/core/billing/quotas"); + const repo = repository(); auth(repo); let saved; + const deadline = new Date("2027-06-01"); + repo.model.options.expirationMode = "remove"; + repo.model.billingNeverExpiresUntil = deadline; + stub(config, "BILLING_ENABLED", true); + stub(expiration, "neverExpirationDeadline", async () => deadline); + stub(quotas, "assertConferenceAdmission", async () => {}); + stub(Model, "updateOne", (_filter, update) => ({ exec: async () => { saved = update; return { matchedCount: 1 }; } })); + await handler("repository-private", "/:repoId/", "post")({ body: { + repoId: repo.repoId, fullName: "owner/repo", source: { commit: "abc123", branch: "main" }, + terms: [], options: { expirationMode: mode, expirationDate: "2027-01-01" }, + } }, { json: () => {} }); + if (mode === "never") expect(saved.$set.billingNeverExpiresUntil).to.deep.equal(deadline); + else expect(saved.$unset).to.have.property("billingNeverExpiresUntil", 1); + }); + } it("dates a dashboard expiration extension", async () => { const repo = repository(); auth(repo); let saved; stub(Model, "updateOne", (_filter, update) => ({ exec: async () => { saved = update.$set; } })); diff --git a/test/repository-refresh.test.js b/test/repository-refresh.test.js index 7014877..b0f808c 100644 --- a/test/repository-refresh.test.js +++ b/test/repository-refresh.test.js @@ -72,6 +72,37 @@ describe("repository refresh and restoration", () => { }); } + for (const force of [true, false]) { + it(`preserves the published snapshot when a ${force ? "manual" : "automatic"} refresh exceeds capacity`, async () => { + const config = require("../src/config").default; + const quotas = require("../src/core/billing/quotas"); + const Stream = require("../src/core/source/GitHubStream").default; + const repo = repository("ready"); + repo.model.billingManaged = true; + repo.model.options.update = true; + repo.model.lastView = new Date("2020-01-01"); + stub(config, "BILLING_ENABLED", true); + stub(db, "isConnected", false); + stub(quotas, "allowance", async () => ({ plan: "author_monthly" })); + stub(quotas, "reserveRepository", async (_owner, _id, bytes) => { + expect(bytes).to.equal(999); + throw new Error("quota_exceeded"); + }); + stub(Stream.prototype, "getFiles", async function () { + expect(this.data.commit).to.equal("new-sha"); return [{ size: 999 }]; + }); + repo.getToken = async () => "test-token"; + stub(github, "getRepositoryFromGitHub", async () => ({ fullName: "owner/repo", model: {}, + branches: async () => [{ name: "main", commit: "new-sha" }], + })); + repo.resetSate = async () => { throw new Error("must preserve files"); }; + let error; + try { await repo.updateIfNeeded({ force }); } catch (caught) { error = caught; } + expect(error?.message).to.equal(force ? "quota_exceeded" : undefined); + expect(repo.model.source.commit).to.equal("saved-sha"); + expect(repo.status).to.equal("ready"); + }); + } it("preserves a removed repository and reports a GitHub access failure", async () => { const repo = repository("removed"); const failure = new Error("token_expired"); diff --git a/test/vue-ui.test.js b/test/vue-ui.test.js index 8331f9d..f919012 100644 --- a/test/vue-ui.test.js +++ b/test/vue-ui.test.js @@ -237,11 +237,13 @@ describe("Vue 3 UI", function () { ui = await browser("/anonymize?billingDraft=saved-task&billing=success", { ...repositorySource, "/api/billing/": { ...taskBilling, allowance: { plan: "author_monthly", repositories: 20 } }, "/api/billing/refresh": { ok: true, pending: false }, - "/api/billing/draft/saved-task": { id: "saved-task", path: "/anonymize", values: { sourceUrl: "https://github.com/owner/repo", terms: "Restored Author", repoId: "saved-repo", source: { branch: "main" }, options: { expirationMode: "never" } } }, + "/api/billing/draft/saved-task": { id: "saved-task", path: "/anonymize", values: { sourceUrl: "https://github.com/owner/repo", terms: "Restored Author", repoId: "saved-repo", source: { branch: "main" }, options: { expirationMode: "never", image: false, pdf: false }, conference: "paid-conf" } }, + "/api/conferences/paid-conf": { endDate: "2027-05-01", options: { image: true, pdf: true } }, }); await delay(150); expect(ui.window.document.querySelector("#sourceUrl")._field.binding.state.terms).to.equal("Restored Author"); expect(ui.window.document.querySelector("#sourceUrl")._field.binding.state.repoId).to.equal("saved-repo"); + expect(ui.window.document.querySelector("#sourceUrl")._field.binding.state.options).to.include({ expirationMode: "never", image: false, pdf: false }); expect(ui.app.router.currentRoute.value.query).to.deep.equal({}); expect(ui.window.document.querySelector("#sourceUrl")._field.binding.state.hostingNeedsPayment()).to.equal(false); expect(ui.window.document.querySelector("#repository-hosting").textContent).to.include("subscription is active");