Source request hit rate: {{ cacheRate('source', 'count') }} · Source byte hit rate: {{ cacheRate('source', 'bytes') }} · Decision hit rate: {{ cacheRate('decision', 'count') }}
+
Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.
+
+
+
Cache events for the selected time range and traffic
No cache events in this time range for the selected traffic.
+
Updated {{ sampleAge(cacheReport) }} seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.
+
+
+
diff --git a/public/script/admin.js b/public/script/admin.js
index bfc0566..67a84cd 100644
--- a/public/script/admin.js
+++ b/public/script/admin.js
@@ -1737,6 +1737,48 @@ export const overviewAdminController = function (state, http, location, interval
state.performance = null;
state.performanceMinutes = 15;
state.performanceTab = "routes";
+ state.cacheReport = null;
+ state.cacheError = null;
+ state.cacheMinutes = 60;
+ state.cacheTraffic = "all";
+ var cacheLoading = false;
+ state.loadCache = function () {
+ if (cacheLoading) return;
+ cacheLoading = true;
+ var minutes = state.cacheMinutes;
+ http.get("/api/admin/cache", { params: { minutes: minutes } }).then(function (r) {
+ if (minutes !== state.cacheMinutes) return;
+ state.cacheReport = r.data;
+ state.cacheError = r.data.available ? null : (r.data.reason || "Cache monitoring is unavailable.");
+ }, function () {
+ state.cacheError = "Could not refresh cache monitoring. Displayed values may be stale.";
+ }).finally(function () {
+ cacheLoading = false;
+ if (minutes !== state.cacheMinutes) state.loadCache();
+ });
+ };
+ state.cacheRows = function () {
+ return (state.cacheReport?.rows || []).filter(function (row) {
+ return state.cacheTraffic === "all" || row.traffic === state.cacheTraffic;
+ });
+ };
+ state.cacheRate = function (prefix, field) {
+ var rows = state.cacheRows();
+ var sum = function (name) { return rows.filter(function (r) { return r.name === name; }).reduce(function (n, r) { return n + r[field]; }, 0); };
+ var hits = sum(prefix + "_hit"), misses = sum(prefix + "_miss");
+ return hits + misses ? (100 * hits / (hits + misses)).toFixed(1) + "%" : "No samples";
+ };
+ state.cacheEventName = function (name) { return name.replaceAll("_", " "); };
+ state.cacheP95 = function (row) {
+ var count = 0, bounds = state.cacheReport?.latencyBucketsMs || [];
+ if (!row.count) return "No samples";
+ if (!row.ms) return "Not timed";
+ for (var i = 0; i <= bounds.length; i++) {
+ count += row["b" + i] || 0;
+ if (count >= Math.ceil(row.count * 0.95)) return i < bounds.length ? "≤ " + bounds[i] + " ms" : "> 10 s";
+ }
+ return "No samples";
+ };
state.performanceError = null;
// 18400 ms reads better as 18.4 s once a value passes one second.
state.formatMs = function (ms) {
@@ -1891,6 +1933,7 @@ export const overviewAdminController = function (state, http, location, interval
function load() {
state.loadPerformance();
+ state.loadCache();
http.get("/api/admin/overview").then(function (r) {
r.data.history = computeDailyHistory(r.data.history);
r.data.daily = {
diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js
index da24b0b..664ace1 100644
--- a/public/script/vendor.min.js
+++ b/public/script/vendor.min.js
@@ -1,30 +1,30 @@
-"use strict";(()=>{var kd=Object.defineProperty;var Ed=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})};var pe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var fe={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function br(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let n=new URLSearchParams(t);if([...n.keys()].length!==3||[...n.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let r=n.get("clientId"),s=n.get("intentId"),i=n.get("token");return!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(i||"")?null:{contract:"4open.artifacts/1",clientId:r,intentId:s,token:i}}function wr(e,t){let{http:n,promises:r,window:s}=t,i=t.takeReviewHandoff(),a=i?{clientId:i.clientId,intentId:i.intentId}:null,u,m,k,y,E,h=!0,C,g=r.defer(),b=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(M=>M.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:i?"":"Open a new artifact link from your submission. This link is missing or invalid."});let S=()=>h&&e.user?.username===E;function R(){h=!1,i=u=m=void 0,g.resolve(),s.clearTimeout(C)}e.on("dispose",R),e.on("routeLeave",R),e.watch(()=>e.user?.username,M=>{!E&&M?E=M:E&&M!==E&&(R(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:g.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":m}}),q=M=>M?.status===404?"Artifact linking is not available on this server.":M?.status===401?"Sign in, then open a new artifact link from your submission.":M?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!h||!i||e.busy||e.uncertain||e.saved||!e.user?.username)return;E=e.user.username;let M=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(M)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,u=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(C),y||(y=b());try{let V=(await n.get("/api/review-consent/csrf",{timeout:g.promise})).data;if(!S())return;if(m=V.csrf,e.handoffEnabled=V.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(m||""))throw new Error("invalid_csrf");let z=(await n.post("/api/review-consent/preview",{repositoryId:M,intent:{...i,requestId:y}},T())).data;if(!S())return;if(!z||typeof z.ticket!="string"||!z.ticket||z.ticket.length>8192||typeof z.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(z.policy?.access)||!Number.isSafeInteger(z.policy.version)||!Number.isFinite(Date.parse(z.policy.retainUntil))||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");u=z.ticket,k=b(),e.preview={repositoryName:z.repositoryName,policy:{...z.policy},expiresAt:z.expiresAt},C=s.setTimeout(()=>{h&&(e.expired=!0)},Math.max(0,Date.parse(z.expiresAt)-Date.now()))}catch(V){S()&&(e.error=q(V))}finally{S()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!S()||e.busy||e.saved||!u||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let M=(await n.post("/api/review-consent/confirm",{ticket:u,requestId:k,acceptAccess:!0,acceptRetention:!0},T())).data;if(!S())return;if(M?.requestId!==k||!Number.isFinite(Date.parse(M.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,i=void 0,e.handoffEnabled||(u=void 0)}catch{S()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{S()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!S()||e.busy||!e.saved||!e.handoffEnabled||!u||!a)return;e.busy=!0,e.error="";let M,V=()=>{M?.remove(),s.removeEventListener("securitypolicyviolation",z)},z=ne=>{ne.violatedDirective?.startsWith("form-action")&&(V(),S()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let ne=(await n.post("/api/review-consent/handoff",{ticket:u},T())).data;if(!S())return;let ee=ne?.completion,_=new URL(ne?.callbackUrl);if(!ee||Object.keys(ee).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ee.contract!=="4open.artifacts/1"||ee.clientId!==a.clientId||ee.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(ee.code||"")||!Number.isFinite(Date.parse(ee.expiresAt))||Date.parse(ee.expiresAt)<=Date.now()||Date.parse(ee.expiresAt)>Date.now()+3e5||_.protocol!=="https:"||_.href!==ne.callbackUrl||_.username||_.password||ne.callbackUrl.includes("?")||ne.callbackUrl.includes("#"))throw new Error("invalid_handoff");M=s.document.createElement("form"),M.method="POST",M.action=_.href;let P=s.document.createElement("input");P.type="hidden",P.name="completion",P.value=JSON.stringify(ee),M.appendChild(P),s.document.body.appendChild(M),s.addEventListener("securitypolicyviolation",z),e.on("dispose",V),M.submit()}catch{V(),S()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var yn=new Map,Sd=fe;function oo(e){if(!yn.has(e)){let t=document.createElement("script");t.src=Sd[e];let n=new Promise((r,s)=>{t.onload=r,t.onerror=()=>{yn.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});yn.set(e,n),document.head.appendChild(t)}return yn.get(e)}async function kr(){await oo("editor"),ace.config.set("basePath","/script/external/ace/")}function vo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var Ae={},xt=[],it=()=>{},us=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),je=Object.assign,Vo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Nd=Object.prototype.hasOwnProperty,Ne=(e,t)=>Nd.call(e,t),me=Array.isArray,Bt=e=>qo(e)==="[object Map]",Et=e=>qo(e)==="[object Set]",Er=e=>qo(e)==="[object Date]";var ge=e=>typeof e=="function",Le=e=>typeof e=="string",ft=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",cs=e=>(Re(e)||ge(e))&&ge(e.then)&&ge(e.catch),Nr=Object.prototype.toString,qo=e=>Nr.call(e),ps=e=>qo(e).slice(8,-1),gn=e=>qo(e)==="[object Object]",bn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var wn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Dd=/-\w/g,Ye=wn(e=>e.replace(Dd,t=>t.slice(1).toUpperCase())),Rd=/\B([A-Z])/g,At=wn(e=>e.replace(Rd,"-$1").toLowerCase()),no=wn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mo=wn(e=>e?`on${no(e)}`:""),yt=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ko=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Cr,Uo=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ie(e){if(me(e)){let t={};for(let n=0;nn.startsWith("/*")?"":n).split(Td).forEach(n=>{if(n){let r=n.split(Ad);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Le(e))t=e;else if(me(e))for(let n=0;nCt(n,t))}var Tr=e=>!!(e&&e.__v_isRef===!0),c=e=>Le(e)?e:e==null?"":me(e)||Re(e)&&(e.toString===Nr||!ge(e.toString))?Tr(e)?c(e.value):JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>Tr(t)?Ar(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ds(r,i)+" =>"]=s,n),{})}:Et(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:ft(t)?ds(t):Re(t)&&!me(t)&&!gn(t)?String(t):t,ds=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Md(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Je,zo=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(Fo){let t=Fo;for(Fo=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Lo;){let t=Lo;for(Lo=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ur(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $r(e){let t,n=e.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Ns(r),Ud(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ho)||(e.globalVersion=Ho,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,n=$e,r=_t;$e=e,_t=!0;try{Ur(e);let s=e.fn(e._value);(t.version===0||yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,_t=r,$r(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ud(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var _t=!0,Fr=[];function St(){Fr.push(_t),_t=!1}function Nt(){let e=Fr.pop();_t=e===void 0?!0:e}function Or(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=$e;$e=void 0;try{t()}finally{$e=n}}}var Ho=0,ys=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Bo=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!_t||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new ys($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,zr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Ho++,this.notify(t)}notify(t){_s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ss()}}};function zr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zr(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var gs=new WeakMap,ro=Symbol(""),bs=Symbol(""),jo=Symbol("");function Ze(e,t,n){if(_t&&$e){let r=gs.get(e);r||gs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Bo),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,i){let a=gs.get(e);if(!a){Ho++;return}let u=m=>{m&&m.trigger()};if(_s(),t==="clear")a.forEach(u);else{let m=me(e),k=m&&bn(n);if(m&&n==="length"){let y=Number(r);a.forEach((E,h)=>{(h==="length"||h===jo||!ft(h)&&h>=y)&&u(E)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),k&&u(a.get(jo)),t){case"add":m?k&&u(a.get("length")):(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"delete":m||(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"set":Bt(e)&&u(a.get(ro));break}}Ss()}function Eo(e){let t=De(e);return t===e||(Ze(t,"iterate",jo),at(e))?t:gt(e)?Vt(e)?t.map(n=>Gt(mt(n))):t.map(Gt):t.map(mt)}function Wo(e){return Ze(e=De(e),"iterate",jo),e}function Ot(e,t){return gt(e)?Gt(Vt(e)?mt(t):t):mt(t)}var $d={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>me(t)?Eo(t):t))},entries(){return ms(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(r=>Ot(this,r)),arguments)},find(e,t){return jt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hs(this,"includes",e)},indexOf(...e){return hs(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return hs(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return $o(this,"pop")},push(...e){return $o(this,"push",e)},reduce(e,...t){return Pr(this,"reduce",e,t)},reduceRight(e,...t){return Pr(this,"reduceRight",e,t)},shift(){return $o(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return $o(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return $o(this,"unshift",e)},values(){return ms(this,"values",e=>Ot(this,e))}};function ms(e,t,n){let r=Wo(e),s=r[t],i=s.call(r);if(r!==e&&!at(e)){if(i[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(i));return a.next=()=>Ir(i.next(),n),s!==Hr[t]&&Object.defineProperties(a,{return:{get(){let u=i.return;return typeof u=="function"?u.bind(i):u}},throw:{get(){let u=i.throw;return typeof u=="function"?u.bind(i):u}}}),a}i._next=i.next,i.next=()=>Ir(i._next(),n)}return i}function Ir(e,t){return e.done||(e.value=t(e.value)),e}var Hr=Array.prototype;function jt(e,t,n,r,s,i){let a=Wo(e),u=a!==e&&!at(e),m=a[t];if(m!==Hr[t]){let E=m.apply(e,i);return u?mt(E):E}let k=n;a!==e&&(u?k=function(E,h){return n.call(this,Ot(e,E),h,e)}:n.length>2&&(k=function(E,h){return n.call(this,E,h,e)}));let y=m.call(a,k,r);return u&&s?s(y):y}function Pr(e,t,n,r){let s=Wo(e),i=s!==e&&!at(e),a=n,u=!1;s!==e&&(i?(u=r.length===0,a=function(k,y,E){return u&&(u=!1,k=Ot(e,k)),n.call(this,k,Ot(e,y),E,e)}):n.length>3&&(a=function(k,y,E){return n.call(this,k,y,E,e)}));let m=s[t](a,...r);return u?Ot(e,m):m}function hs(e,t,n){let r=De(e);Ze(r,"iterate",jo);let s=r[t](...n);return(s===-1||s===!1)&&Yo(n[0])?(n[0]=De(n[0]),r[t](...n)):s}function $o(e,t,n=[]){St(),_s();let r=De(e)[t].apply(e,n);return Ss(),Nt(),r}var Ld=vo("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Fd(e){ft(e)||(e=String(e));let t=De(this);return Ze(t,"has",e),t.hasOwnProperty(e)}var Dn=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Jd:Wr:i?Gr:jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=me(t);if(!s){let m;if(a&&(m=$d[n]))return m;if(n==="hasOwnProperty")return Fd}let u=Reflect.get(t,n,Xe(t)?t:r);if((ft(n)?Br.has(n):Ld(n))||(s||Ze(t,"get",n),i))return u;if(Xe(u)){let m=a&&bn(n)?u:u.value;return s&&Re(m)?Tn(m):m}return Re(u)?s?Tn(u):Fe(u):u}},Rn=class extends Dn{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n],a=me(t)&&bn(n);if(!this._isShallow){let k=gt(i);if(!at(r)&&!gt(r)&&(i=De(i),r=De(r)),!a&&Xe(i)&&!Xe(r))return k||(i.value=r),!0}let u=a?Number(n)e,_n=e=>Reflect.getPrototypeOf(e);function jd(e,t,n){return function(...r){let s=this.__v_raw,i=De(s),a=Bt(i),u=e==="entries"||e===Symbol.iterator&&a,m=e==="keys"&&a,k=s[e](...r),y=n?ks:t?Gt:mt;return!t&&Ze(i,"iterate",m?bs:ro),je(Object.create(k),{next(){let{value:E,done:h}=k.next();return h?{value:E,done:h}:{value:u?[y(E[0]),y(E[1])]:y(E),done:h}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Gd(e,t){let n={get(s){let i=this.__v_raw,a=De(i),u=De(s);e||(yt(s,u)&&Ze(a,"get",s),Ze(a,"get",u));let{has:m}=_n(a),k=t?ks:e?Gt:mt;if(m.call(a,s))return k(i.get(s));if(m.call(a,u))return k(i.get(u));i!==a&&i.get(s)},get size(){let s=this.__v_raw;return!e&&Ze(De(s),"iterate",ro),s.size},has(s){let i=this.__v_raw,a=De(i),u=De(s);return e||(yt(s,u)&&Ze(a,"has",s),Ze(a,"has",u)),s===u?i.has(s):i.has(s)||i.has(u)},forEach(s,i){let a=this,u=a.__v_raw,m=De(u),k=t?ks:e?Gt:mt;return!e&&Ze(m,"iterate",ro),u.forEach((y,E)=>s.call(i,k(y),k(E),a))}};return je(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(s){let i=De(this),a=_n(i),u=De(s),m=!t&&!at(s)&&!gt(s)?u:s;return a.has.call(i,m)||yt(s,m)&&a.has.call(i,s)||yt(u,m)&&a.has.call(i,u)||(i.add(m),It(i,"add",m,m)),this},set(s,i){!t&&!at(i)&&!gt(i)&&(i=De(i));let a=De(this),{has:u,get:m}=_n(a),k=u.call(a,s);k||(s=De(s),k=u.call(a,s));let y=m.call(a,s);return a.set(s,i),k?yt(i,y)&&It(a,"set",s,i,y):It(a,"add",s,i),this},delete(s){let i=De(this),{has:a,get:u}=_n(i),m=a.call(i,s);m||(s=De(s),m=a.call(i,s));let k=u?u.call(i,s):void 0,y=i.delete(s);return m&&It(i,"delete",s,void 0,k),y},clear(){let s=De(this),i=s.size!==0,a=void 0,u=s.clear();return i&&It(s,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,e,t)}),n}function Ds(e,t){let n=Gd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?r:Reflect.get(Ne(n,s)&&s in r?n:r,s,i)}var Wd={get:Ds(!1,!1)},Kd={get:Ds(!1,!0)},Yd={get:Ds(!0,!1)};var jr=new WeakMap,Gr=new WeakMap,Wr=new WeakMap,Jd=new WeakMap;function Qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fe(e){return gt(e)?e:Rs(e,!1,zd,Wd,jr)}function Ko(e){return Rs(e,!1,Bd,Kd,Gr)}function Tn(e){return Rs(e,!0,Hd,Yd,Wr)}function Rs(e,t,n,r,s){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=s.get(e);if(i)return i;let a=Qd(ps(e));if(a===0)return e;let u=new Proxy(e,a===2?r:n);return s.set(e,u),u}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Yo(e){return e?!!e.__v_raw:!1}function De(e){let t=e&&e.__v_raw;return t?De(t):e}function Ts(e){return!Ne(e,"__v_skip")&&Object.isExtensible(e)&&kn(e,"__v_skip",!0),e}var mt=e=>Re(e)?Fe(e):e,Gt=e=>Re(e)?Tn(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function xe(e){return Kr(e,!1)}function On(e){return Kr(e,!0)}function Kr(e,t){return Xe(e)?e:new Es(e,t)}var Es=class{constructor(t,n){this.dep=new Bo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:De(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,r=this.__v_isShallow||at(t)||gt(t);t=r?t:De(t),yt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}};function Wt(e){return Xe(e)?e.value:e}var Xd={get:(e,t,n)=>t==="__v_raw"?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function In(e){return Vt(e)?e:new Proxy(e,Xd)}var Cs=class{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ho-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return Mr(this,!0),!0}get value(){let t=this.dep.track();return Lr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Yr(e,t,n=!1){let r,s;return ge(e)?r=e:(r=e.get,s=e.set),new Cs(r,s,n)}var Nn={},An=new WeakMap,so;function Jr(e,t=!1,n=so){if(n){let r=An.get(n);r||An.set(n,r=[]),r.push(e)}}function Qr(e,t,n=Ae){let{immediate:r,deep:s,once:i,scheduler:a,augmentJob:u,call:m}=n,k=V=>{(n.onWarn||Md)("Invalid watch source: ",V,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},y=V=>s?V:at(V)||s===!1||s===0?Pt(V,1):Pt(V),E,h,C,g,b=!1,S=!1;if(Xe(e)?(h=()=>e.value,b=at(e)):Vt(e)?(h=()=>y(e),b=!0):me(e)?(S=!0,b=e.some(V=>Vt(V)||at(V)),h=()=>e.map(V=>{if(Xe(V))return V.value;if(Vt(V))return y(V);if(ge(V))return m?m(V,2):V()})):ge(e)?t?h=m?()=>m(e,2):e:h=()=>{if(C){St();try{C()}finally{Nt()}}let V=so;so=E;try{return m?m(e,3,[g]):e(g)}finally{so=V}}:h=it,t&&s){let V=h,z=s===!0?1/0:s;h=()=>Pt(V(),z)}let R=Vr(),T=()=>{E.stop(),R&&R.active&&Vo(R.effects,E)};if(i&&t){let V=t;t=(...z)=>{try{return V(...z)}finally{T()}}}let q=S?new Array(e.length).fill(Nn):Nn,M=V=>{if(!(!(E.flags&1)||!E.dirty&&!V))if(t){let z=E.run();if(V||s||b||(S?z.some((ne,ee)=>yt(ne,q[ee])):yt(z,q))){let ne=so;St();try{C&&C(),so=E;let ee=[z,q===Nn?void 0:S&&q[0]===Nn?[]:q,g];q=z,m?m(t,3,ee):t(...ee)}finally{so=ne,Nt()}}}else E.run()};return u&&u(M),E=new Co(h),E.scheduler=a?()=>a(M,!1):M,g=V=>Jr(V,!1,E),C=E.onStop=()=>{let V=An.get(E);if(V){if(m)m(V,4);else for(let z of V)z();An.delete(E)}},t?r?M(!0):q=E.run():a?a(M.bind(null,!0),!0):E.run(),T.pause=E.pause.bind(E),T.resume=E.resume.bind(E),T.stop=T,T}function Pt(e,t=1/0,n){if(t<=0||!Re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))Pt(e.value,t,n);else if(me(e))for(let r=0;r{Pt(r,t,n)});else if(gn(e)){for(let r in e)Pt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}function an(e,t,n,r){try{return r?e(...r):e()}catch(s){ln(s,t,n)}}function bt(e,t,n,r){if(ge(e)){let s=an(e,t,n,r);return s&&cs(s)&&s.catch(i=>{ln(i,t,n)}),s}if(me(e)){let s=[];for(let i=0;i>>1,s=st[r],i=tn(s);i=tn(n)?st.push(e):st.splice(ou(t),0,e),e.flags|=1,fi()}}function fi(){qn||(qn=pi.then(yi))}function mi(e){if(!me(e))eo&&e.id===-1?eo.splice(_o+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1);else for(let t=0;t=t))continue;st.splice(r,1),r=e?r-1:Dt,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function vi(e,t,n=0){if(Mt.length){let r=Mt,s=0;if(t){r=[];for(let a=0;atn(a)-tn(u));if(Mt.length=s,eo){for(let a=0;ae.id==null?e.flags&2?-1:1/0:e.id;function yi(e){let t=it;try{for(Dt=0;Dt{r._d&&Ln(-1);let i=Mn(t),a=lo.length,u;try{u=e(...s)}finally{for(let m=lo.length;m>a;m--)Ki();Mn(i),r._d&&Ln(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function N(e,t){if(ht===null)return e;let n=Kn(ht),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&ge(t)?t.call(r&&r.proxy):t}}var ru=Symbol.for("v-scx"),iu=()=>{{let e=dt(ru);return e}};function He(e,t,n){return bi(e,t,n)}function bi(e,t,n=Ae){let{immediate:r,deep:s,flush:i,once:a}=n,u=je({},n),m=t&&r||!t&&i!=="post",k;if(Do){if(i==="sync"){let C=iu();k=C.__watcherHandles||(C.__watcherHandles=[])}else if(!m){let C=()=>{};return C.stop=it,C.resume=it,C.pause=it,C}}let y=et;u.call=(C,g,b)=>bt(C,y,g,b);let E=!1;i==="post"?u.scheduler=C=>{C.i=y,lt(C,y&&y.suspense)}:i!=="sync"&&(E=!0,u.scheduler=(C,g)=>{g?C():zs(C)}),u.augmentJob=C=>{t&&(C.flags|=4),E&&(C.flags|=2,y&&(C.id=y.uid,C.i=y))};let h=Qr(e,t,u);return Do&&(k?k.push(h):m&&h()),h}function au(e,t,n){let r=this.proxy,s=Le(e)?e.includes(".")?wi(r,e):()=>r[e]:e.bind(r,r),i;ge(t)?i=t:(i=t.handler,n=t);let a=cn(this),u=bi(s,i.bind(r),n);return a(),u}function wi(e,t){let n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport;var Os=Symbol("_leaveCb");function du(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Rt){t=r,n=!0;break}}return t}function ki(e){if(!Bn(e))return Hn(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function on(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;on(Hn(n.type)&&ki(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===K&&me(e.children)){let n=Pi(e.children,!1);n&&on(n,t)}}function qs(e){if(e.component)return qs(e.component.subTree);if(e.type===K){let t=me(e.children)&&Pi(e.children,!1);return t?qs(t):void 0}if(e.type!==Rt)return e}function dn(e,t){return ge(e)?je({name:e.name},t,{setup:e}):e}function Hs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var Un=new WeakMap;function Xo(e,t,n,r,s=!1){if(me(e)){e.forEach((b,S)=>Xo(b,t&&(me(t)?t[S]:t),n,r,s));return}if(Zo(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Xo(e,t,n,r.component.subTree);return}let i=r.shapeFlag&4?Kn(r.component):r.el,a=s?null:i,{i:u,r:m}=e,k=t&&t.r,y=u.refs===Ae?u.refs={}:u.refs,E=u.setupState,h=De(E),C=E===Ae?us:b=>Xr(y,b)?!1:Ne(h,b),g=(b,S)=>!(S&&Xr(y,S));if(k!=null&&k!==m){if(Zr(t),Le(k))y[k]=null,C(k)&&(E[k]=null);else if(Xe(k)){let b=t;g(k,b.k)&&(k.value=null),b.k&&(y[b.k]=null)}}if(ge(m))an(m,u,12,[a,y]);else{let b=Le(m),S=Xe(m);if(b||S){let R=()=>{if(e.f){let T=b?C(m)?E[m]:y[m]:g(m)||!e.k?m.value:y[e.k];if(s)me(T)&&Vo(T,i);else if(me(T))T.includes(i)||T.push(i);else if(b)y[m]=[i],C(m)&&(E[m]=y[m]);else{let q=[i];g(m,e.k)&&(m.value=q),e.k&&(y[e.k]=q)}}else b?(y[m]=a,C(m)&&(E[m]=a)):S&&(g(m,e.k)&&(m.value=a),e.k&&(y[e.k]=a))};if(a){let T=()=>{R(),Un.delete(e)};T.id=-1,Un.set(e,T),lt(T,n)}else Zr(e),R()}}}function Zr(e){let t=Un.get(e);t&&(t.flags|=8,Un.delete(e))}var xr=e=>e.nodeType===8;var dU=Uo().requestIdleCallback||(e=>setTimeout(e,1)),uU=Uo().cancelIdleCallback||(e=>clearTimeout(e));function uu(e,t){if(xr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var Zo=e=>!!e.type.__asyncLoader;function Ei(e){ge(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:a,suspensible:u=!0,onError:m}=e,k=null,y,E=0,h=()=>(E++,k=null,C()),C=()=>{let g;return k||(g=k=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),m)return new Promise((S,R)=>{m(b,()=>S(h()),()=>R(b),E+1)});throw b}).then(b=>g!==k&&k?k:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),y=b,b)))};return dn({name:"AsyncComponentWrapper",__asyncLoader:C,__asyncHydrate(g,b,S){let R=g.isConnected,T=!1;(b.bu||(b.bu=[])).push(()=>T=!0);let q=()=>{T||!g.parentNode||R&&!g.isConnected||S()},M=i?()=>{let V=i(q,z=>uu(g,z));V&&(b.bum||(b.bum=[])).push(V)}:q;y?M():C().then(()=>!b.isUnmounted&&M())},get __asyncResolved(){return y},setup(){let g=et;if(Hs(g),y)return()=>Pn(y,g);let b=V=>{k=null,ln(V,g,13,!r)};if(u&&g.suspense||Do)return C().then(V=>()=>Pn(V,g)).catch(V=>(b(V),()=>r?Ce(r,{error:V}):null));let S=xe(!1),R=xe(),T=xe(!!s),q,M;return un(()=>{q!=null&&clearTimeout(q),M!=null&&clearTimeout(M)}),s&&(M=setTimeout(()=>{g.isUnmounted||(T.value=!1)},s)),a!=null&&(q=setTimeout(()=>{if(!g.isUnmounted&&!S.value&&!R.value){let V=new Error(`Async component timed out after ${a}ms.`);b(V),R.value=V}},a)),C().then(()=>{g.isUnmounted||(S.value=!0,g.parent&&Bn(g.parent.vnode)&&g.parent.update())}).catch(V=>{if(g.isUnmounted){k=null;return}b(V),R.value=V}),()=>{if(S.value&&y)return Pn(y,g);if(R.value&&r)return Ce(r,{error:R.value});if(n&&!T.value)return Pn(n,g)}}})}function Pn(e,t){let{ref:n,props:r,children:s,ce:i}=t.vnode,a=Ce(e,r,s);return a.ref=n,a.ce=i,delete t.vnode.ce,a}var Bn=e=>e.type.__isKeepAlive;function Ci(e,t){Si(e,"a",t)}function _i(e,t){Si(e,"da",t)}function Si(e,t,n=et){let r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(jn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bn(s.parent.vnode)&&cu(r,t,n,s),s=s.parent}}function cu(e,t,n,r){let s=jn(t,e,r,!0);un(()=>{Vo(r[t],s)},n)}function jn(e,t,n=et,r=!1){if(n){let s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=cn(n),m=bt(t,n,e,a);return u(),Nt(),m});return r?s.unshift(i):s.push(i),i}}var Yt=e=>(t,n=et)=>{(!Do||e==="sp")&&jn(e,(...r)=>t(...r),n)},pu=Yt("bm"),$t=Yt("m"),Ni=Yt("bu"),Di=Yt("u"),co=Yt("bum"),un=Yt("um"),fu=Yt("sp"),mu=Yt("rtg"),hu=Yt("rtc");function vu(e,t=et){jn("ec",e,t)}var Ri="components",yu="directives";function Ge(e,t){return Ti(Ri,e,!0,t)||e}var gu=Symbol.for("v-ndc");function ve(e){return Ti(yu,e)}function Ti(e,t,n=!0,r=!1){let s=ht||et;if(s){let i=s.type;if(e===Ri){let u=tc(i,!1);if(u&&(u===t||u===Ye(t)||u===no(Ye(t))))return i}let a=ei(s[e]||i[e],t)||ei(s.appContext[e],t);return!a&&r?i:a}}function ei(e,t){return e&&(e[t]||e[Ye(t)]||e[no(Ye(t))])}function oe(e,t,n,r){let s,i=n&&n[r],a=me(e);if(a||Le(e)){let u=a&&Vt(e),m=!1,k=!1;u&&(m=!at(e),k=gt(e),e=Wo(e)),s=new Array(e.length);for(let y=0,E=e.length;yt(u,m,void 0,i&&i[m]));else{let u=Object.keys(e);s=new Array(u.length);for(let m=0,k=u.length;me?Xi(e)?Kn(e):Ms(e.parent):null;var xo=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ms(e.parent),$root:e=>Ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>au.bind(e)});var Is=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ne(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:u,appContext:m}=e;if(t[0]!=="$"){let h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Is(r,t))return a[t]=1,r[t];if(s!==Ae&&Ne(s,t))return a[t]=2,s[t];if(Ne(i,t))return a[t]=3,i[t];if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];Us&&(a[t]=0)}}let k=xo[t],y,E;if(k)return t==="$attrs"&&Ze(e.attrs,"get",""),k(e);if((y=u.__cssModules)&&(y=y[t]))return y;if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];if(E=m.config.globalProperties,Ne(E,t))return E[t]},set({_:e},t,n){let{data:r,setupState:s,ctx:i}=e;return Is(s,t)?(s[t]=n,!0):r!==Ae&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:a}},u){let m;return!!(n[u]||e!==Ae&&u[0]!=="$"&&Ne(e,u)||Is(t,u)||Ne(i,u)||Ne(r,u)||Ne(xo,u)||Ne(s.config.globalProperties,u)||(m=a.__cssModules)&&m[u])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ti(e){return me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}var Us=!0;function wu(e){let t=Bs(e),n=e.proxy,r=e.ctx;Us=!1,t.beforeCreate&&oi(t.beforeCreate,e,"bc");let{data:s,computed:i,methods:a,watch:u,provide:m,inject:k,created:y,beforeMount:E,mounted:h,beforeUpdate:C,updated:g,activated:b,deactivated:S,beforeDestroy:R,beforeUnmount:T,destroyed:q,unmounted:M,render:V,renderTracked:z,renderTriggered:ne,errorCaptured:ee,serverPrefetch:_,expose:P,inheritAttrs:G,components:J,directives:X,filters:W}=t;if(k&&ku(k,r,null),a)for(let de in a){let re=a[de];ge(re)&&(r[de]=re.bind(n))}if(s){let de=s.call(n,n);Re(de)&&(e.data=Fe(de))}if(Us=!0,i)for(let de in i){let re=i[de],_e=ge(re)?re.bind(n,n):ge(re.get)?re.get.bind(n,n):it,qe=!ge(re)&&ge(re.set)?re.set.bind(n):it,Me=tt({get:_e,set:qe});Object.defineProperty(r,de,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Pe=>Me.value=Pe})}if(u)for(let de in u)Ai(u[de],r,n,de);if(m){let de=ge(m)?m.call(n):m;Reflect.ownKeys(de).forEach(re=>{uo(re,de[re])})}y&&oi(y,e,"c");function ce(de,re){me(re)?re.forEach(_e=>de(_e.bind(n))):re&&de(re.bind(n))}if(ce(pu,E),ce($t,h),ce(Ni,C),ce(Di,g),ce(Ci,b),ce(_i,S),ce(vu,ee),ce(hu,z),ce(mu,ne),ce(co,T),ce(un,M),ce(fu,_),me(P))if(P.length){let de=e.exposed||(e.exposed={});P.forEach(re=>{Object.defineProperty(de,re,{get:()=>n[re],set:_e=>n[re]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});V&&e.render===it&&(e.render=V),G!=null&&(e.inheritAttrs=G),J&&(e.components=J),X&&(e.directives=X),_&&Hs(e)}function ku(e,t,n=it){me(e)&&(e=$s(e));for(let r in e){let s=e[r],i;Re(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt(s),Xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function oi(e,t,n){bt(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,r){let s=r.includes(".")?wi(n,r):()=>n[r];if(Le(e)){let i=t[e];ge(i)&&He(s,i)}else if(ge(e))He(s,e.bind(n));else if(Re(e))if(me(e))e.forEach(i=>Ai(i,t,n,r));else{let i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&He(s,i,e)}}function Bs(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),m;return u?m=u:!s.length&&!n&&!r?m=t:(m={},s.length&&s.forEach(k=>$n(m,k,a,!0)),$n(m,t,a)),Re(t)&&i.set(t,m),m}function $n(e,t,n,r=!1){let{mixins:s,extends:i}=t;i&&$n(e,i,n,!0),s&&s.forEach(a=>$n(e,a,n,!0));for(let a in t)if(!(r&&a==="expose")){let u=Eu[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Eu={data:ni,props:si,emits:si,methods:Qo,computed:Qo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Qo,directives:Qo,watch:_u,provide:ni,inject:Cu};function ni(e,t){return t?e?function(){return je(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return Qo($s(e),$s(t))}function $s(e){if(me(e)){let t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Ru(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Ae,s=n,i=t.startsWith("update:"),a=i&&Du(r,t.slice(7));a&&(a.trim&&(s=n.map(y=>Le(y)?y.trim():y)),a.number&&(s=s.map(ko)));let u,m=r[u=Mo(t)]||r[u=Mo(Ye(t))];!m&&i&&(m=r[u=Mo(At(t))]),m&&bt(m,e,6,s);let k=r[u+"Once"];if(k){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(k,e,6,s)}}var Tu=new WeakMap;function Ii(e,t,n=!1){let r=n?Tu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;let i=e.emits,a={},u=!1;if(!ge(e)){let m=k=>{let y=Ii(k,t,!0);y&&(u=!0,je(a,y))};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return!i&&!u?(Re(e)&&r.set(e,null),null):(me(i)?i.forEach(m=>a[m]=null):je(a,i),Re(e)&&r.set(e,a),a)}function Gn(e,t){return!e||!yo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,At(t))||Ne(e,t))}function Ps(e){let{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:a,attrs:u,emit:m,render:k,renderCache:y,props:E,data:h,setupState:C,ctx:g,inheritAttrs:b}=e,S=Mn(e),R,T;try{if(n.shapeFlag&4){let V=s||r,z=V;R=Ut(k.call(z,V,y,E,C,h,g)),T=u}else{let V=t;R=Ut(V.length>1?V(E,{attrs:u,slots:a,emit:m}):V(E,null)),T=t.props?u:Au(u)}}catch(V){lo.length=0,ln(V,e,1),R=Ce(Rt)}let q=R,M;if(T&&b!==!1){let V=Object.keys(T),{shapeFlag:z}=q;V.length&&z&7&&(i&&V.some(go)&&(T=Ou(T,i)),q=No(q,T,!1,!0))}if(n.dirs&&(q=No(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(n.dirs):n.dirs),n.transition){let V=Hn(q.type)&&ki(q)||q;on(V,n.transition)}return R=q,Mn(S),R}function Pi(e,t=!0){let n;for(let r=0;r{let t;for(let n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},Ou=(e,t)=>{let n={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){let{props:r,children:s,component:i}=e,{props:a,children:u,patchFlag:m}=t,k=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&m>=0){if(m&1024)return!0;if(m&16)return r?ri(r,a,k):!!a;if(m&8){let y=t.dynamicProps;for(let E=0;EObject.create(qi),Ui=e=>Object.getPrototypeOf(e)===qi;function Vu(e,t,n,r=!1){let s={},i=Mi();e.propsDefaults=Object.create(null),$i(e,t,s,i);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Ko(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function qu(e,t,n,r){let{props:s,attrs:i,vnode:{patchFlag:a}}=e,u=De(s),[m]=e.propsOptions,k=!1;if((r||a>0)&&!(a&16)){if(a&8){let y=e.vnode.dynamicProps;for(let E=0;E{m=!0;let[h,C]=Li(E,t,!0);je(a,h),C&&u.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(y),e.extends&&y(e.extends),e.mixins&&e.mixins.forEach(y)}if(!i&&!m)return Re(e)&&r.set(e,xt),xt;if(me(i))for(let y=0;ye==="_"||e==="_ctx"||e==="$stable",Gs=e=>me(e)?e.map(Ut):[Ut(e)],Uu=(e,t,n)=>{if(t._n)return t;let r=su((...s)=>Gs(t(...s)),n);return r._c=!1,r},Fi=(e,t,n)=>{let r=e._ctx;for(let s in e){if(js(s))continue;let i=e[s];if(ge(i))t[s]=Uu(s,i,r);else if(i!=null){let a=Gs(i);t[s]=()=>a}}},zi=(e,t)=>{let n=Gs(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(let r in t)(n||!js(r))&&(e[r]=t[r])},$u=(e,t,n)=>{let r=e.slots=Mi();if(e.vnode.shapeFlag&32){let s=t._;s?(Hi(r,t,n),n&&kn(r,"_",s,!0)):Fi(t,r)}else t&&zi(e,t)},Lu=(e,t,n)=>{let{vnode:r,slots:s}=e,i=!0,a=Ae;if(r.shapeFlag&32){let u=t._;u?n&&u===1?i=!1:Hi(s,t,n):(i=!t.$stable,Fi(t,s)),a=t}else t&&(zi(e,t),a={default:1});if(i)for(let u in s)!js(u)&&a[u]==null&&delete s[u]};function Fu(){let e=[]}var lt=ju;function Bi(e){return zu(e)}function zu(e,t){Fu();let n=Uo();n.__VUE__=!0;let{insert:r,remove:s,patchProp:i,createElement:a,createText:u,createComment:m,setText:k,setElementText:y,parentNode:E,nextSibling:h,setScopeId:C=it,insertStaticContent:g}=e,b=(p,v,D,O=null,I=null,U=null,L=void 0,H=null,Y=!!v.dynamicChildren)=>{if(p===v)return;p&&!Jo(p,v)&&(O=Z(p),Se(p,I,U,!0),p=null),v.patchFlag===-2&&(Y=!1,v.dynamicChildren=null),v.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(v.dynamicChildren===xt&&(v.dynamicChildren=[]),v.dynamicChildren.hasOnce=!0);let{type:B,ref:le,shapeFlag:x}=v;switch(B){case Wn:S(p,v,D,O);break;case Rt:R(p,v,D,O);break;case en:p==null&&T(v,D,O,L);break;case K:X(p,v,D,O,I,U,L,H,Y);break;default:x&1?z(p,v,D,O,I,U,L,H,Y):x&6?W(p,v,D,O,I,U,L,H,Y):(x&64||x&128)&&B.process(p,v,D,O,I,U,L,H,Y,te)}le!=null&&I?Xo(le,p&&p.ref,U,v||p,!v):le==null&&p&&p.ref!=null&&Xo(p.ref,null,U,p,!0)},S=(p,v,D,O)=>{if(p==null)r(v.el=u(v.children),D,O);else{let I=v.el=p.el;v.children!==p.children&&k(I,v.children)}},R=(p,v,D,O)=>{p==null?r(v.el=m(v.children||""),D,O):v.el=p.el},T=(p,v,D,O)=>{[p.el,p.anchor]=g(p.children,v,D,O,p.el,p.anchor)},q=(p,v,D,O)=>{if(v.children!==p.children){let I=h(p.anchor);V(p),[v.el,v.anchor]=g(v.children,D,I,O)}else v.el=p.el,v.anchor=p.anchor},M=({el:p,anchor:v},D,O)=>{let I;for(;p&&p!==v;)I=h(p),r(p,D,O),p=I;r(v,D,O)},V=({el:p,anchor:v})=>{let D;for(;p&&p!==v;)D=h(p),s(p),p=D;s(v)},z=(p,v,D,O,I,U,L,H,Y)=>{if(v.type==="svg"?L="svg":v.type==="math"&&(L="mathml"),p==null)ne(v,D,O,I,U,L,H,Y);else{let B=p.el&&p.el._isVueCE?p.el:null;try{B&&B._beginPatch(),P(p,v,I,U,L,H,Y)}finally{B&&B._endPatch()}}},ne=(p,v,D,O,I,U,L,H)=>{let Y,B,{props:le,shapeFlag:x,transition:ae,dirs:he}=p;if(Y=p.el=a(p.type,U,le&&le.is,le),x&8?y(Y,p.children):x&16&&_(p.children,Y,null,O,I,Vs(p,U),L,H),he&&io(p,null,O,"created"),ee(Y,p,p.scopeId,L,O),le){for(let Ve in le)Ve!=="value"&&!bo(Ve)&&i(Y,Ve,null,le[Ve],U,O);"value"in le&&i(Y,"value",null,le.value,U),(B=le.onVnodeBeforeMount)&&qt(B,O,p)}he&&io(p,null,O,"beforeMount");let we=Hu(I,ae);we&&ae.beforeEnter(Y),r(Y,v,D),((B=le&&le.onVnodeMounted)||we||he)&<(()=>{let Oe;B&&qt(B,O,p),we&&ae.enter(Y),he&&io(p,null,O,"mounted")},I)},ee=(p,v,D,O,I)=>{if(D&&C(p,D),O)for(let U=0;U{for(let B=Y;B{let H=v.el=p.el,{patchFlag:Y,dynamicChildren:B,dirs:le}=v;Y|=p.patchFlag&16;let x=p.props||Ae,ae=v.props||Ae,he;if(D&&ao(D,!1),(he=ae.onVnodeBeforeUpdate)&&qt(he,D,v,p),le&&io(v,p,D,"beforeUpdate"),D&&ao(D,!0),B&&(!p.dynamicChildren||p.dynamicChildren.length!==B.length)&&(Y=0,L=!1,B=null),(x.innerHTML&&ae.innerHTML==null||x.textContent&&ae.textContent==null)&&y(H,""),B?G(p.dynamicChildren,B,H,D,O,Vs(v,I),U):L||_e(p,v,H,null,D,O,Vs(v,I),U,!1),Y>0){if(Y&16)J(H,x,ae,D,I);else if(Y&2&&x.class!==ae.class&&i(H,"class",null,ae.class,I),Y&4&&i(H,"style",x.style,ae.style,I),Y&8){let we=v.dynamicProps;for(let Ve=0;Ve{he&&qt(he,D,v,p),le&&io(v,p,D,"updated")},O)},G=(p,v,D,O,I,U,L)=>{for(let H=0;H{if(v!==D){if(v!==Ae)for(let U in v)!bo(U)&&!(U in D)&&i(p,U,v[U],null,I,O);for(let U in D){if(bo(U))continue;let L=D[U],H=v[U];L!==H&&U!=="value"&&i(p,U,H,L,I,O)}"value"in D&&i(p,"value",v.value,D.value,I)}},X=(p,v,D,O,I,U,L,H,Y)=>{let B=v.el=p?p.el:u(""),le=v.anchor=p?p.anchor:u(""),{patchFlag:x,dynamicChildren:ae,slotScopeIds:he}=v;he&&(H=H?H.concat(he):he),p==null?(r(B,D,O),r(le,D,O),_(v.children||[],D,le,I,U,L,H,Y)):x>0&&x&64&&ae&&p.dynamicChildren&&p.dynamicChildren.length===ae.length?(G(p.dynamicChildren,ae,D,I,U,L,H),(v.key!=null||I&&v===I.subTree)&&ji(p,v,!0)):_e(p,v,D,le,I,U,L,H,Y)},W=(p,v,D,O,I,U,L,H,Y)=>{v.slotScopeIds=H,p==null?v.shapeFlag&512?I.ctx.activate(v,D,O,L,Y):se(v,D,O,I,U,L,Y):ce(p,v,Y)},se=(p,v,D,O,I,U,L)=>{let H=p.component=Qu(p,O,I);if(Bn(p)&&(H.ctx.renderer=te),Xu(H,!1,L),H.asyncDep){if(I&&I.registerDep(H,de,L,U),!p.el){let Y=H.subTree=Ce(Rt);R(null,Y,v,D),p.placeholder=Y.el}}else de(H,p,v,D,I,U,L)},ce=(p,v,D)=>{let O=v.component=p.component;if(Iu(p,v,D))if(O.asyncDep&&!O.asyncResolved){v.el=p.el,v.placeholder=p.placeholder,re(O,v,D);return}else O.next=v,O.update();else v.el=p.el,v.placeholder=p.placeholder,O.vnode=v},de=(p,v,D,O,I,U,L)=>{let H=()=>{if(p.isMounted){let{next:x,bu:ae,u:he,parent:we,vnode:Ve}=p;{let ct=Gi(p);if(ct){x&&(x.el=Ve.el,re(p,x,L)),ct.asyncDep.then(()=>{lt(()=>{p.isUnmounted||B()},I)});return}}let Oe=x,We;ao(p,!1),x?(x.el=Ve.el,re(p,x,L)):x=Ve,ae&&wo(ae),(We=x.props&&x.props.onVnodeBeforeUpdate)&&qt(We,we,x,Ve),ao(p,!0);let Ke=Ps(p),kt=p.subTree;p.subTree=Ke,b(kt,Ke,E(kt.el),Z(kt),p,I,U),x.el=Ke.el,Oe===null&&Pu(p,Ke.el),he&<(he,I),(We=x.props&&x.props.onVnodeUpdated)&<(()=>qt(We,we,x,Ve),I)}else{let x,{el:ae,props:he}=v,{bm:we,m:Ve,parent:Oe,root:We,type:Ke}=p,kt=Zo(v);if(ao(p,!1),we&&wo(we),!kt&&(x=he&&he.onVnodeBeforeMount)&&qt(x,Oe,v),ao(p,!0),ae&&Ee){let ct=()=>{p.subTree=Ps(p),Ee(ae,p.subTree,p,I,null)};kt&&Ke.__asyncHydrate?Ke.__asyncHydrate(ae,p,ct):ct()}else{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Ke,p.parent?p.parent.type:void 0);let ct=p.subTree=Ps(p);b(null,ct,D,O,p,I,U),v.el=ct.el}if(Ve&<(Ve,I),!kt&&(x=he&&he.onVnodeMounted)){let ct=v;lt(()=>qt(x,Oe,ct),I)}(v.shapeFlag&256||Oe&&Zo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&p.a&<(p.a,I),p.isMounted=!0,v=D=O=null}};p.scope.on();let Y=p.effect=new Co(H);p.scope.off();let B=p.update=Y.run.bind(Y),le=p.job=Y.runIfDirty.bind(Y);le.i=p,le.id=p.uid,Y.scheduler=()=>zs(le),ao(p,!0),B()},re=(p,v,D)=>{v.component=p;let O=p.vnode.props;p.vnode=v,p.next=null,qu(p,v.props,O,D),Lu(p,v.children,D),St(),hi(p),Nt()},_e=(p,v,D,O,I,U,L,H,Y=!1)=>{let B=p&&p.children,le=p?p.shapeFlag:0,x=v.children,{patchFlag:ae,shapeFlag:he}=v;if(ae>0){if(ae&128){Me(B,x,D,O,I,U,L,H,Y);return}else if(ae&256){qe(B,x,D,O,I,U,L,H,Y);return}}he&8?(le&16&&F(B,I,U),x!==B&&y(D,x)):le&16?he&16?Me(B,x,D,O,I,U,L,H,Y):F(B,I,U,!0):(le&8&&y(D,""),he&16&&_(x,D,O,I,U,L,H,Y))},qe=(p,v,D,O,I,U,L,H,Y)=>{p=p||xt,v=v||xt;let B=p.length,le=v.length,x=Math.min(B,le),ae;for(ae=0;aele?F(p,I,U,!0,!1,x):_(v,D,O,I,U,L,H,Y,x)},Me=(p,v,D,O,I,U,L,H,Y)=>{let B=0,le=v.length,x=p.length-1,ae=le-1;for(;B<=x&&B<=ae;){let he=p[B],we=v[B]=Y?Kt(v[B]):Ut(v[B]);if(Jo(he,we))b(he,we,D,null,I,U,L,H,Y);else break;B++}for(;B<=x&&B<=ae;){let he=p[x],we=v[ae]=Y?Kt(v[ae]):Ut(v[ae]);if(Jo(he,we))b(he,we,D,null,I,U,L,H,Y);else break;x--,ae--}if(B>x){if(B<=ae){let he=ae+1,we=heae)for(;B<=x;)Se(p[B],I,U,!0),B++;else{let he=B,we=B,Ve=new Map;for(B=we;B<=ae;B++){let pt=v[B]=Y?Kt(v[B]):Ut(v[B]);pt.key!=null&&Ve.set(pt.key,B)}let Oe,We=0,Ke=ae-we+1,kt=!1,ct=0,Po=new Array(Ke);for(B=0;B=Ke){Se(pt,I,U,!0);continue}let Tt;if(pt.key!=null)Tt=Ve.get(pt.key);else for(Oe=we;Oe<=ae;Oe++)if(Po[Oe-we]===0&&Jo(pt,v[Oe])){Tt=Oe;break}Tt===void 0?Se(pt,I,U,!0):(Po[Tt-we]=B+1,Tt>=ct?ct=Tt:kt=!0,b(pt,v[Tt],D,null,I,U,L,H,Y),We++)}let vr=kt?Bu(Po):xt;for(Oe=vr.length-1,B=Ke-1;B>=0;B--){let pt=we+B,Tt=v[pt],yr=v[pt+1],gr=pt+1{let{el:U,type:L,transition:H,children:Y,shapeFlag:B}=p;if(B&6){Pe(p.component.subTree,v,D,O);return}if(B&128){p.suspense.move(v,D,O);return}if(B&64){L.move(p,v,D,te);return}if(L===K){r(U,v,D);for(let x=0;xH.enter(U),I));else{let{leave:x,delayLeave:ae,afterLeave:he}=H,we=()=>{p.ctx.isUnmounted?s(U):r(U,v,D)},Ve=()=>{let Oe=U._isLeaving||!!U[Os];U._isLeaving&&U[Os](!0),H.persisted&&!Oe?we():x(U,()=>{we(),he&&he()})};ae?ae(U,we,Ve):Ve()}else r(U,v,D)},Se=(p,v,D,O=!1,I=!1)=>{let{type:U,props:L,ref:H,children:Y,dynamicChildren:B,shapeFlag:le,patchFlag:x,dirs:ae,cacheIndex:he,memo:we}=p;if((x===-2||B&&B.hasOnce)&&(I=!1),H!=null&&(St(),Xo(H,null,D,p,!0),Nt()),he!=null&&(!p.ctx||p.ctx===v)&&(v.renderCache[he]=void 0),le&256){v.ctx.deactivate(p);return}let Ve=le&1&&ae,Oe=!Zo(p),We;if(Oe&&(We=L&&L.onVnodeBeforeUnmount)&&qt(We,v,p),le&6)ke(p.component,D,O);else{if(le&128){p.suspense.unmount(D,O);return}Ve&&io(p,null,v,"beforeUnmount"),le&64?p.type.remove(p,v,D,te,O):B&&!B.hasOnce&&(U!==K||x>0&&x&64)?F(B,v,D,!1,!0):(U===K&&x&384||!I&&le&16)&&F(Y,v,D),O&&ze(p)}let Ke=we!=null&&he==null;(Oe&&(We=L&&L.onVnodeUnmounted)||Ve||Ke)&<(()=>{We&&qt(We,v,p),Ve&&io(p,null,v,"unmounted"),Ke&&(p.el=null)},D)},ze=p=>{let{type:v,el:D,anchor:O,transition:I}=p,U=v===K;if(U&&!I){Ue(D,O);return}if(v===en){V(p),I&&!I.persisted&&I.afterLeave&&I.afterLeave();return}let L=U?qs(p):p,H=()=>{U?E(D)&&Ue(D,O):s(D),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(L&&L.shapeFlag&1&&I&&!I.persisted){let{leave:Y,delayLeave:B}=I,le=L.el,x=()=>Y(le,H);B?B(le,H,x):x()}else H()},Ue=(p,v)=>{let D;for(;p!==v;)D=h(p),s(p),p=D;s(v)},ke=(p,v,D)=>{let{bum:O,scope:I,job:U,subTree:L,um:H,m:Y,a:B}=p;ai(Y),ai(B),O&&wo(O),I.stop(),U?(U.flags|=8,Se(L,p,v,D)):p.vnode.el&&L&&(L.transition=p.vnode.transition,Se(L,p,v,D)),H&<(H,v),lt(()=>{p.isUnmounted=!0},v)},F=(p,v,D,O=!1,I=!1,U=0)=>{for(let L=U;L{if(p.shapeFlag&6)return Z(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();let v=h(p.anchor||p.el),D=v&&v[lu];return D?h(D):v},Q=(p,v,D)=>{let O=p&&v._vnode?void 0:p&&p.component?p.component.uid:Ju();nu(()=>{p==null?v._vnode&&Se(v._vnode,null,null,!0):b(v._vnode||null,p,v,null,null,null,D),v._vnode=p},O)},te={p:b,um:Se,m:Pe,r:ze,mt:se,mc:_,pc:_e,pbc:G,n:Z,o:e},ye,Ee;return t&&([ye,Ee]=t(te)),{render:Q,hydrate:ye,createApp:Nu(Q,ye)}}function Vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){let r=e.children,s=t.children;if(me(r)&&me(s))for(let i=0;i>1,e[n[u]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Gi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gi(t)}function ai(e){if(e)for(let t=0;te.__isSuspense;function ju(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):mi(e)}var K=Symbol.for("v-fgt"),Wn=Symbol.for("v-txt"),Rt=Symbol.for("v-cmt"),en=Symbol.for("v-stc"),lo=[],vt=null;function l(e=!1){lo.push(vt=e?null:[])}function Ki(){lo.pop(),vt=lo[lo.length-1]||null}var nn=1;function Ln(e,t=!1){nn+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Yi(e){return e.dynamicChildren=nn>0?vt||xt:null,Ki(),nn>0&&vt&&vt.push(e),e}function d(e,t,n,r,s,i){return Yi(o(e,t,n,r,s,i,!0))}function Lt(e,t,n,r,s){return Yi(Ce(e,t,n,r,s,!0))}function sn(e){return e?e.__v_isVNode===!0:!1}function Jo(e,t){return e.type===t.type&&e.key===t.key}var Ji=({key:e})=>e??null,Vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Xe(e)||ge(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,r=0,s=null,i=e===K?0:1,a=!1,u=!1){let m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ji(t),ref:t&&Vn(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ht};return u?(Fn(m,n),i&128&&e.normalize(m)):n&&(m.shapeFlag|=Le(n)?8:16),nn>0&&!a&&vt&&(m.patchFlag>0||i&6)&&m.patchFlag!==32&&vt.push(m),m}var Ce=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===gu)&&(e=Rt),sn(e)){let u=No(e,t,!0);return n&&Fn(u,n),nn>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(oc(e)&&(e=e.__vccOpts),t){t=Wu(t);let{class:u,style:m}=t;u&&!Le(u)&&(t.class=A(u)),Re(m)&&(Yo(m)&&!me(m)&&(m=je({},m)),t.style=Ie(m))}let a=Le(e)?1:Wi(e)?128:Hn(e)?64:Re(e)?4:ge(e)?2:0;return o(e,t,n,r,s,a,i,!0)}function Wu(e){return e?Yo(e)||Ui(e)?je({},e):e:null}function No(e,t,n=!1,r=!1){let{props:s,ref:i,patchFlag:a,children:u,transition:m}=e,k=t?Ku(s||{},t):s,y={__v_isVNode:!0,__v_skip:!0,type:e.type,props:k,key:k&&Ji(k),ref:t&&t.ref?n&&i?me(i)?i.concat(Vn(t)):[i,Vn(t)]:Vn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return m&&r&&on(y,m.clone(y)),y}function w(e=" ",t=0){return Ce(Wn,null,e,t)}function ue(e,t){let n=Ce(en,null,e);return n.staticCount=t,n}function f(e="",t=!1){return t?(l(),Lt(Rt,null,e)):Ce(Rt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?Ce(Rt):me(e)?Ce(K,null,e.slice()):sn(e)?Kt(e):Ce(Wn,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function Fn(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){let s=t.default;s&&(s._c&&(s._d=!1),Fn(e,s()),s._c&&(s._d=!0));return}else{n=32;let s=t._;!s&&!Ui(t)?t._ctx=ht:s===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ge(t)){if(r&65){Fn(e,{default:t});return}t={default:t,_ctx:ht},n=32}else t=String(t),r&64?(n=16,t=[w(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ku(...e){let t={};for(let n=0;net||ht,zn,rn;{let e=Uo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};zn=t("__VUE_INSTANCE_SETTERS__",n=>et=n),rn=t("__VUE_SSR_SETTERS__",n=>Do=n)}var cn=e=>{let t=et;return zn(e),e.scope.on(),()=>{e.scope.off(),zn(t)}},li=()=>{et&&et.scope.off(),zn(null)};function Xi(e){return e.vnode.shapeFlag&4}var Do=!1;function Xu(e,t=!1,n=!1){t&&rn(t);let{props:r,children:s}=e.vnode,i=Xi(e);Vu(e,r,i,t),$u(e,s,n||t);let a=i?Zu(e,t):void 0;return t&&rn(!1),a}function Zu(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu);let{setup:r}=n;if(r){St();let s=e.setupContext=r.length>1?ec(e):null,i=cn(e),a=an(r,e,0,[e.props,s]),u=cs(a);if(Nt(),i(),(u||e.sp)&&!Zo(e)&&Hs(e),u){if(a.then(li,li),t)return a.then(m=>{rn(!0);try{di(e,m,t)}finally{rn(!1)}}).catch(m=>{ln(m,e,0)});e.asyncDep=a}else di(e,a,t)}else Zi(e,t)}function di(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=In(t)),Zi(e,n)}var ui,ci;function Zi(e,t,n){let r=e.type;if(!e.render){if(!t&&ui&&!r.render){let s=r.template||Bs(e).template;if(s){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:m}=r,k=je(je({isCustomElement:i,delimiters:u},a),m);r.render=ui(s,k)}}e.render=r.render||it,ci&&ci(e)}{let s=cn(e);St();try{wu(e)}finally{Nt(),s()}}}var xu={get(e,t){return Ze(e,"get",""),e[t]}};function ec(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xu),slots:e.slots,emit:e.emit,expose:t}}function Kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(In(Ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xo)return xo[n](e)},has(t,n){return n in t||n in xo}})):e.proxy}function tc(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oc(e){return ge(e)&&"__vccOpts"in e}var tt=(e,t)=>Yr(e,t,Do);function be(e,t,n){try{Ln(-1);let r=arguments.length;return r===2?Re(t)&&!me(t)?sn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&sn(n)&&(n=[n]),Ce(e,t,n))}finally{Ln(1)}}var nc="3.5.44";var Qs,xi=typeof window<"u"&&window.trustedTypes;if(xi)try{Qs=xi.createPolicy("vue",{createHTML:e=>e})}catch{}var ca=Qs?e=>Qs.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",rc="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,ea=Jt&&Jt.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let s=t==="svg"?Jt.createElementNS(sc,e):t==="mathml"?Jt.createElementNS(rc,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){let a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ea.innerHTML=ca(r==="svg"?``:r==="mathml"?``:e);let u=ea.content;if(r==="svg"||r==="mathml"){let m=u.firstChild;for(;m.firstChild;)u.appendChild(m.firstChild);u.removeChild(m)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};var ac=Symbol("_vtc");function lc(e,t,n){let r=e[ac];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var Qn=Symbol("_vod"),pa=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:n}){e[Qn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),pn(e,!0),r.enter(e)):r.leave(e,()=>{pn(e,!1)}):pn(e,t))},beforeUnmount(e,{value:t}){pn(e,t)}};function pn(e,t){e.style.display=t?e[Qn]:"none",e[pa]=!t}var dc=Symbol("");var uc=/(?:^|;)\s*display\s*:/;function cc(e,t,n){let r=e.style,s=Le(n),i=!1;if(n&&!s){if(t)if(Le(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&fn(r,u,"")}else for(let a in t)n[a]==null&&fn(r,a,"");for(let a in n){a==="display"&&(i=!0);let u=n[a];u!=null?fc(e,a,!Le(t)&&t?t[a]:void 0,u)||fn(r,a,u):fn(r,a,"")}}else if(s){if(t!==n){let a=r[dc];a&&(n+=";"+a),r.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");Qn in e&&((!s||t!==n)&&(e[Qn]=i?r.display:""),e[pa]&&(r.display="none"))}var Yn=/\s*!important$/;function fn(e,t,n){if(me(n))n.forEach(r=>fn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Yn.test(n)?e.setProperty(t,n.replace(Yn,""),"important"):e.setProperty(t,n);else{let r=pc(e,t);Yn.test(n)?e.setProperty(At(r),n.replace(Yn,""),"important"):e[r]=n}}var ta=["Webkit","Moz","ms"],Ks={};function pc(e,t){let n=Ks[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Ks[t]=r;r=no(r);for(let s=0;sYs||(bc.then(()=>Ys=0),Ys=Date.now());function kc(e,t){let n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;let s=n.value;if(me(s)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=s.slice(),u=[r];for(let m=0;me.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ec=(e,t,n,r,s,i)=>{let a=s==="svg";t==="class"?lc(e,r,a):t==="style"?cc(e,n,r):yo(t)?go(t)||hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,r,a))?(sa(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&na(e,t,r,a,i,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?sa(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),na(e,t,r,a))};function Cc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ia(t)&&Le(n)?!1:t in e}function _c(e,t){let n=e._def.props;if(!n)return!1;let r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}var Ro=e=>{let t=e.props["onUpdate:modelValue"]||!1;return me(t)?n=>wo(t,n):t};function Sc(e){e.target.composing=!0}function aa(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Ft=Symbol("_assign"),Jn=Symbol("_initialValue");function Js(e,t,n){return t&&(e=e.trim()),n&&(e=ko(e)),e}var zt={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Jn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Jn]=e.defaultValue.replace(/\r\n?/g,`
-`))),e[Ft]=Ro(s);let i=r||s.props&&s.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Ft](Js(e.value,n,i))}),(n||i)&&to(e,"change",()=>{e.value=Js(e.value,n,i)}),t||(to(e,"compositionstart",Sc),to(e,"compositionend",aa),to(e,"change",aa))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let s=t??"",i=e[Jn];delete e[Jn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ft](Js(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},a){if(e[Ft]=Ro(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?ko(e.value):e.value,m=t??"";if(u===m)return;let k=e.getRootNode();(k instanceof Document||k instanceof ShadowRoot)&&k.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===m)||(e.value=m)}},Xs={deep:!0,created(e,t,n){e[Ft]=Ro(n),to(e,"change",()=>{let r=e._modelValue,s=mn(e),i=e.checked,a=e[Ft];if(me(r)){let u=Cn(r,s),m=u!==-1;if(i&&!m)a(r.concat(s));else if(!i&&m){let k=[...r];k.splice(u,1),a(k)}}else if(Et(r)){let u=new Set(r);i?u.add(s):u.delete(s),a(u)}else a(fa(e,i))})},mounted:la,beforeUpdate(e,t,n){e[Ft]=Ro(n),la(e,t,n)}};function la(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(me(t))s=Cn(t,r.props.value)>-1;else if(Et(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,fa(e,!0))}e.checked!==s&&(e.checked=s)}var Xn={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,to(e,"change",()=>{let s=Array.prototype.filter.call(e.options,m=>m.selected).map(m=>n?ko(mn(m)):mn(m)),i=e.multiple,a=i?Et(e._modelValue)?new Set(s):s:s[0],u=e._pendingValue=[i,i?me(a)?s.slice():s:a];try{e[Ft](a)}finally{ot(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[Ft]=Ro(r)},mounted(e,{value:t}){da(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ft]=Ro(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Nc(t,n[1],n[0]))&&da(e,t)}};function Nc(e,t,n){if(!n)return Ct(e,t);if(me(e))return Ct(e,t);if(Et(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function da(e,t){let n=e.multiple,r=me(t);if(!(n&&!r&&!Et(t))){for(let s=0,i=e.options.length;sString(k)===String(u)):a.selected=Cn(t,u)>-1}else a.selected=t.has(u);else if(Ct(mn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mn(e){return"_value"in e?e._value:e.value}function fa(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Dc=["ctrl","shift","alt","meta"],Rc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Dc.some(n=>e[`${n}Key`]&&!t.includes(n))},ie=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let a=0;a{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;let i=At(s.key);if(t.some(a=>a===i||Tc[a]===i))return e(s)}))},Ac=je({patchProp:Ec},ic),ua;function Oc(){return ua||(ua=Bi(Ac))}var ma=((...e)=>{let t=Oc().createApp(...e),{mount:n}=t;return t.mount=r=>{let s=Pc(r);if(!s)return;let i=t._component;!ge(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=n(s,!1,Ic(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Ic(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pc(e){return Le(e)?document.querySelector(e):e}var mo=typeof document<"u";function va(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&va(e.default)}var Te=Object.assign;function Zn(e,t){let n={};for(let r in t){let s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}var Oo=()=>{},wt=Array.isArray;function er(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ya=/#/g,qc=/&/g,Mc=/\//g,Uc=/=/g,$c=/\?/g,ga=/\+/g,Lc=/%5B/g,Fc=/%5D/g,ba=/%5E/g,zc=/%60/g,wa=/%7B/g,Hc=/%7C/g,ka=/%7D/g,Bc=/%20/g;function tr(e){return e==null?"":encodeURI(""+e).replace(Hc,"|").replace(Lc,"[").replace(Fc,"]")}function Ea(e){return tr(e).replace(wa,"{").replace(ka,"}").replace(ba,"^")}function Zs(e){return tr(e).replace(ga,"%2B").replace(Bc,"+").replace(ya,"%23").replace(qc,"%26").replace(zc,"`").replace(wa,"{").replace(ka,"}").replace(ba,"^")}function jc(e){return Zs(e).replace(Uc,"%3D")}function Gc(e){return tr(e).replace(ya,"%23").replace($c,"%3F")}function Ca(e){return Gc(e).replace(Mc,"%2F")}function Ao(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Wc=/\/$/,Kc=e=>e.replace(Wc,"");function xn(e,t,n="/"){let r,s={},i="",a="",u=t.indexOf("#"),m=t.indexOf("?");return m=u>=0&&m>u?-1:m,m>=0&&(r=t.slice(0,m),i=t.slice(m,u>0?u:t.length),s=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Jc(r??t,n),{fullPath:r+i+a,path:r,query:s,hash:Ao(a)}}function _a(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){let r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&po(t.matched[r],n.matched[s])&&nr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yc(e[n],t[n]))return!1;return!0}function Yc(e,t){return wt(e)?ha(e,t):wt(t)?ha(t,e):e?.valueOf()===t?.valueOf()}function ha(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},es=(function(e){return e.pop="pop",e.push="push",e})({}),ts=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Na(e){if(!e)if(mo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kc(e)}var Qc=/^[^#]+#/;function Da(e,t){return e.replace(Qc,"#")+t}function Xc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var hn=()=>({left:window.scrollX,top:window.scrollY});function Ra(e){let t;if("el"in e){let n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Xc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}var xs=new Map;function Ta(e,t){xs.set(e,t)}function Aa(e){let t=xs.get(e);return xs.delete(e),t}function Zc(e){return typeof e=="string"||e&&typeof e=="object"}function rr(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Oa=Symbol("");var zU={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
+"use strict";(()=>{var kd=Object.defineProperty;var Ed=(e,t)=>{for(var n in t)kd(e,n,{get:t[n],enumerable:!0})};var pe=["abap","abc","actionscript","ada","alda","apache_conf","apex","applescript","aql","asciidoc","asl","assembly_x86","autohotkey","batchfile","c9search","c_cpp","cirru","clojure","cobol","coffee","coldfusion","crystal","csharp","csound_document","csound_orchestra","csound_score","csp","css","curly","d","dart","diff","django","dockerfile","dot","drools","edifact","eiffel","ejs","elixir","elm","erlang","forth","fortran","fsharp","fsl","ftl","gcode","gherkin","gitignore","glsl","gobstones","golang","graphqlschema","groovy","haml","handlebars","haskell","haskell_cabal","haxe","hjson","html","html_elixir","html_ruby","ini","io","jack","jade","java","javascript","json","json5","jsoniq","jsp","jssm","jsx","julia","kotlin","latex","less","liquid","lisp","livescript","logiql","logtalk","lsl","lua","luapage","lucene","makefile","markdown","mask","matlab","maze","mediawiki","mel","mixal","mushcode","mysql","nginx","nim","nix","nsis","nunjucks","objectivec","ocaml","pascal","perl","perl6","pgsql","php","php_laravel_blade","pig","plain_text","powershell","praat","prisma","prolog","properties","protobuf","puppet","python","qml","r","razor","rdoc","red","redshift","rhtml","rst","ruby","rust","sass","scad","scala","scheme","scss","sh","sjs","slim","smarty","snippets","soy_template","space","sparql","sql","sqlserver","stylus","svg","swift","tcl","terraform","tex","text","textile","toml","tsx","turtle","twig","typescript","vala","vbscript","velocity","verilog","vhdl","visualforce","wollok","xml","xquery","yaml","zeek"];var fe={markdown:"/script/markdown.6c8dfb7b1d.min.js",org:"/script/org.f61f262915.min.js",notebook:"/script/notebook.c3144c18ae.min.js",editor:"/script/editor.4f142d3adc.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js"};function br(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let n=new URLSearchParams(t);if([...n.keys()].length!==3||[...n.keys()].some(a=>!["clientId","intentId","token"].includes(a)))return null;let r=n.get("clientId"),s=n.get("intentId"),i=n.get("token");return!/^[a-f0-9]{32}$/.test(r||"")||!/^[a-f0-9]{32}$/.test(s||"")||!/^[a-f0-9]{64}$/.test(i||"")?null:{contract:"4open.artifacts/1",clientId:r,intentId:s,token:i}}function wr(e,t){let{http:n,promises:r,window:s}=t,i=t.takeReviewHandoff(),a=i?{clientId:i.clientId,intentId:i.intentId}:null,u,m,w,g,k,h=!0,E,S=r.defer(),v=()=>[...s.crypto.getRandomValues(new Uint8Array(16))].map(M=>M.toString(16).padStart(2,"0")).join("");Object.assign(e,{repositoryId:"",handoffEnabled:!1,busy:!1,preview:null,acceptAccess:!1,acceptRetention:!1,uncertain:!1,saved:!1,expired:!1,error:i?"":"Open a new artifact link from your submission. This link is missing or invalid."});let _=()=>h&&e.user?.username===k;function N(){h=!1,i=u=m=void 0,S.resolve(),s.clearTimeout(E)}e.on("dispose",N),e.on("routeLeave",N),e.watch(()=>e.user?.username,M=>{!k&&M?k=M:k&&M!==k&&(N(),e.preview=null,e.repositoryId="",e.busy=!1,e.saved=!1,e.handoffEnabled=!1,e.error="Your account changed. Open a new artifact link from your submission.")});let T=()=>({timeout:S.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":m}}),V=M=>M?.status===404?"Artifact linking is not available on this server.":M?.status===401?"Sign in, then open a new artifact link from your submission.":M?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!h||!i||e.busy||e.uncertain||e.saved||!e.user?.username)return;k=e.user.username;let M=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(M)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,u=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,s.clearTimeout(E),g||(g=v());try{let q=(await n.get("/api/review-consent/csrf",{timeout:S.promise})).data;if(!_())return;if(m=q.csrf,e.handoffEnabled=q.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(m||""))throw new Error("invalid_csrf");let z=(await n.post("/api/review-consent/preview",{repositoryId:M,intent:{...i,requestId:g}},T())).data;if(!_())return;if(!z||typeof z.ticket!="string"||!z.ticket||z.ticket.length>8192||typeof z.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(z.policy?.access)||!Number.isSafeInteger(z.policy.version)||!Number.isFinite(Date.parse(z.policy.retainUntil))||!Number.isFinite(Date.parse(z.expiresAt))||Date.parse(z.expiresAt)<=Date.now()||Date.parse(z.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");u=z.ticket,w=v(),e.preview={repositoryName:z.repositoryName,policy:{...z.policy},expiresAt:z.expiresAt},E=s.setTimeout(()=>{h&&(e.expired=!0)},Math.max(0,Date.parse(z.expiresAt)-Date.now()))}catch(q){_()&&(e.error=V(q))}finally{_()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!_()||e.busy||e.saved||!u||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let M=(await n.post("/api/review-consent/confirm",{ticket:u,requestId:w,acceptAccess:!0,acceptRetention:!0},T())).data;if(!_())return;if(M?.requestId!==w||!Number.isFinite(Date.parse(M.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,i=void 0,e.handoffEnabled||(u=void 0)}catch{_()&&(e.uncertain=!0,e.error="The confirmation was not verified. Retry with the same approval, or return to your submission to check its status.")}finally{_()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!_()||e.busy||!e.saved||!e.handoffEnabled||!u||!a)return;e.busy=!0,e.error="";let M,q=()=>{M?.remove(),s.removeEventListener("securitypolicyviolation",z)},z=ne=>{ne.violatedDirective?.startsWith("form-action")&&(q(),_()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let ne=(await n.post("/api/review-consent/handoff",{ticket:u},T())).data;if(!_())return;let ee=ne?.completion,C=new URL(ne?.callbackUrl);if(!ee||Object.keys(ee).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||ee.contract!=="4open.artifacts/1"||ee.clientId!==a.clientId||ee.intentId!==a.intentId||!/^[a-f0-9]{64}$/.test(ee.code||"")||!Number.isFinite(Date.parse(ee.expiresAt))||Date.parse(ee.expiresAt)<=Date.now()||Date.parse(ee.expiresAt)>Date.now()+3e5||C.protocol!=="https:"||C.href!==ne.callbackUrl||C.username||C.password||ne.callbackUrl.includes("?")||ne.callbackUrl.includes("#"))throw new Error("invalid_handoff");M=s.document.createElement("form"),M.method="POST",M.action=C.href;let P=s.document.createElement("input");P.type="hidden",P.name="completion",P.value=JSON.stringify(ee),M.appendChild(P),s.document.body.appendChild(M),s.addEventListener("securitypolicyviolation",z),e.on("dispose",q),M.submit()}catch{q(),_()&&(e.busy=!1,e.error="The return to review could not be prepared. Retry from this page, or return to your submission to check its status.")}}}var gn=new Map,Sd=fe;function oo(e){if(!gn.has(e)){let t=document.createElement("script");t.src=Sd[e];let n=new Promise((r,s)=>{t.onload=r,t.onerror=()=>{gn.delete(e),t.remove(),s(new Error(`Unable to load ${e}. Please retry.`))}});gn.set(e,n),document.head.appendChild(t)}return gn.get(e)}async function kr(){await oo("editor"),ace.config.set("basePath","/script/external/ace/")}function vo(e){let t=Object.create(null);for(let n of e.split(","))t[n]=1;return n=>n in t}var Ae={},xt=[],it=()=>{},us=()=>!1,yo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),go=e=>e.startsWith("onUpdate:"),je=Object.assign,qo=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},Nd=Object.prototype.hasOwnProperty,Ne=(e,t)=>Nd.call(e,t),me=Array.isArray,Bt=e=>Mo(e)==="[object Map]",Et=e=>Mo(e)==="[object Set]",Er=e=>Mo(e)==="[object Date]";var ge=e=>typeof e=="function",Le=e=>typeof e=="string",ft=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",cs=e=>(De(e)||ge(e))&&ge(e.then)&&ge(e.catch),Nr=Object.prototype.toString,Mo=e=>Nr.call(e),ps=e=>Mo(e).slice(8,-1),bn=e=>Mo(e)==="[object Object]",wn=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bo=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var kn=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Rd=/-\w/g,Ye=kn(e=>e.replace(Rd,t=>t.slice(1).toUpperCase())),Dd=/\B([A-Z])/g,At=kn(e=>e.replace(Dd,"-$1").toLowerCase()),no=kn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=kn(e=>e?`on${no(e)}`:""),yt=(e,t)=>!Object.is(e,t),wo=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ko=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Cr,$o=()=>Cr||(Cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ie(e){if(me(e)){let t={};for(let n=0;nn.startsWith("/*")?"":n).split(Td).forEach(n=>{if(n){let r=n.split(Ad);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function A(e){let t="";if(Le(e))t=e;else if(me(e))for(let n=0;nCt(n,t))}var Tr=e=>!!(e&&e.__v_isRef===!0),c=e=>Le(e)?e:e==null?"":me(e)||De(e)&&(e.toString===Nr||!ge(e.toString))?Tr(e)?c(e.value):JSON.stringify(e,Ar,2):String(e),Ar=(e,t)=>Tr(t)?Ar(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[ds(r,i)+" =>"]=s,n),{})}:Et(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:ft(t)?ds(t):De(t)&&!me(t)&&!bn(t)?String(t):t,ds=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Md(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Je,Ho=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Je&&(Je.active?(this.parent=Je,this.index=(Je.scopes||(Je.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){let r=this.scopes.slice();for(t=0,n=r.length;t0&&--this._on===0){if(Je===this)Je=this.prevScope;else{let t=Je;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(zo){let t=zo;for(zo=void 0;t;){let n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Fo;){let t=Fo;for(Fo=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ur(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $r(e){let t,n=e.depsTail,r=n;for(;r;){let s=r.prevDep;r.version===-1?(r===n&&(n=s),Ns(r),Ud(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Lr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Lr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bo)||(e.globalVersion=Bo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;let t=e.dep,n=$e,r=_t;$e=e,_t=!0;try{Ur(e);let s=e.fn(e._value);(t.version===0||yt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{$e=n,_t=r,$r(e),e.flags&=-3}}function Ns(e,t=!1){let{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ns(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ud(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var _t=!0,Fr=[];function St(){Fr.push(_t),_t=!1}function Nt(){let e=Fr.pop();_t=e===void 0?!0:e}function Or(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let n=$e;$e=void 0;try{t()}finally{$e=n}}}var Bo=0,ys=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},jo=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!_t||$e===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==$e)n=this.activeLink=new ys($e,this),$e.deps?(n.prevDep=$e.depsTail,$e.depsTail.nextDep=n,$e.depsTail=n):$e.deps=$e.depsTail=n,zr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){let r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=$e.depsTail,n.nextDep=void 0,$e.depsTail.nextDep=n,$e.depsTail=n,$e.deps===n&&($e.deps=r)}return n}trigger(t){this.version++,Bo++,this.notify(t)}notify(t){_s();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ss()}}};function zr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)zr(r)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var gs=new WeakMap,ro=Symbol(""),bs=Symbol(""),Go=Symbol("");function Ze(e,t,n){if(_t&&$e){let r=gs.get(e);r||gs.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new jo),s.map=r,s.key=n),s.track()}}function It(e,t,n,r,s,i){let a=gs.get(e);if(!a){Bo++;return}let u=m=>{m&&m.trigger()};if(_s(),t==="clear")a.forEach(u);else{let m=me(e),w=m&&wn(n);if(m&&n==="length"){let g=Number(r);a.forEach((k,h)=>{(h==="length"||h===Go||!ft(h)&&h>=g)&&u(k)})}else switch((n!==void 0||a.has(void 0))&&u(a.get(n)),w&&u(a.get(Go)),t){case"add":m?w&&u(a.get("length")):(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"delete":m||(u(a.get(ro)),Bt(e)&&u(a.get(bs)));break;case"set":Bt(e)&&u(a.get(ro));break}}Ss()}function Eo(e){let t=Re(e);return t===e||(Ze(t,"iterate",Go),at(e))?t:gt(e)?Vt(e)?t.map(n=>Gt(mt(n))):t.map(Gt):t.map(mt)}function Ko(e){return Ze(e=Re(e),"iterate",Go),e}function Ot(e,t){return gt(e)?Gt(Vt(e)?mt(t):t):mt(t)}var $d={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,e=>Ot(this,e))},concat(...e){return Eo(this).concat(...e.map(t=>me(t)?Eo(t):t))},entries(){return ms(this,"entries",e=>(e[1]=Ot(this,e[1]),e))},every(e,t){return jt(this,"every",e,t,void 0,arguments)},filter(e,t){return jt(this,"filter",e,t,n=>n.map(r=>Ot(this,r)),arguments)},find(e,t){return jt(this,"find",e,t,n=>Ot(this,n),arguments)},findIndex(e,t){return jt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return jt(this,"findLast",e,t,n=>Ot(this,n),arguments)},findLastIndex(e,t){return jt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return jt(this,"forEach",e,t,void 0,arguments)},includes(...e){return hs(this,"includes",e)},indexOf(...e){return hs(this,"indexOf",e)},join(e){return Eo(this).join(e)},lastIndexOf(...e){return hs(this,"lastIndexOf",e)},map(e,t){return jt(this,"map",e,t,void 0,arguments)},pop(){return Lo(this,"pop")},push(...e){return Lo(this,"push",e)},reduce(e,...t){return Pr(this,"reduce",e,t)},reduceRight(e,...t){return Pr(this,"reduceRight",e,t)},shift(){return Lo(this,"shift")},some(e,t){return jt(this,"some",e,t,void 0,arguments)},splice(...e){return Lo(this,"splice",e)},toReversed(){return Eo(this).toReversed()},toSorted(e){return Eo(this).toSorted(e)},toSpliced(...e){return Eo(this).toSpliced(...e)},unshift(...e){return Lo(this,"unshift",e)},values(){return ms(this,"values",e=>Ot(this,e))}};function ms(e,t,n){let r=Ko(e),s=r[t],i=s.call(r);if(r!==e&&!at(e)){if(i[Symbol.toStringTag]==="Array Iterator"){let a=Object.create(Object.getPrototypeOf(i));return a.next=()=>Ir(i.next(),n),s!==Hr[t]&&Object.defineProperties(a,{return:{get(){let u=i.return;return typeof u=="function"?u.bind(i):u}},throw:{get(){let u=i.throw;return typeof u=="function"?u.bind(i):u}}}),a}i._next=i.next,i.next=()=>Ir(i._next(),n)}return i}function Ir(e,t){return e.done||(e.value=t(e.value)),e}var Hr=Array.prototype;function jt(e,t,n,r,s,i){let a=Ko(e),u=a!==e&&!at(e),m=a[t];if(m!==Hr[t]){let k=m.apply(e,i);return u?mt(k):k}let w=n;a!==e&&(u?w=function(k,h){return n.call(this,Ot(e,k),h,e)}:n.length>2&&(w=function(k,h){return n.call(this,k,h,e)}));let g=m.call(a,w,r);return u&&s?s(g):g}function Pr(e,t,n,r){let s=Ko(e),i=s!==e&&!at(e),a=n,u=!1;s!==e&&(i?(u=r.length===0,a=function(w,g,k){return u&&(u=!1,w=Ot(e,w)),n.call(this,w,Ot(e,g),k,e)}):n.length>3&&(a=function(w,g,k){return n.call(this,w,g,k,e)}));let m=s[t](a,...r);return u?Ot(e,m):m}function hs(e,t,n){let r=Re(e);Ze(r,"iterate",Go);let s=r[t](...n);return(s===-1||s===!1)&&Jo(n[0])?(n[0]=Re(n[0]),r[t](...n)):s}function Lo(e,t,n=[]){St(),_s();let r=Re(e)[t].apply(e,n);return Ss(),Nt(),r}var Ld=vo("__proto__,__v_isRef,__isVue"),Br=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function Fd(e){ft(e)||(e=String(e));let t=Re(this);return Ze(t,"has",e),t.hasOwnProperty(e)}var Dn=class{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;let s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Jd:Wr:i?Gr:jr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=me(t);if(!s){let m;if(a&&(m=$d[n]))return m;if(n==="hasOwnProperty")return Fd}let u=Reflect.get(t,n,Xe(t)?t:r);if((ft(n)?Br.has(n):Ld(n))||(s||Ze(t,"get",n),i))return u;if(Xe(u)){let m=a&&wn(n)?u:u.value;return s&&De(m)?An(m):m}return De(u)?s?An(u):Fe(u):u}},Tn=class extends Dn{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n],a=me(t)&&wn(n);if(!this._isShallow){let w=gt(i);if(!at(r)&&!gt(r)&&(i=Re(i),r=Re(r)),!a&&Xe(i)&&!Xe(r))return w||(i.value=r),!0}let u=a?Number(n)e,Sn=e=>Reflect.getPrototypeOf(e);function jd(e,t,n){return function(...r){let s=this.__v_raw,i=Re(s),a=Bt(i),u=e==="entries"||e===Symbol.iterator&&a,m=e==="keys"&&a,w=s[e](...r),g=n?ks:t?Gt:mt;return!t&&Ze(i,"iterate",m?bs:ro),je(Object.create(w),{next(){let{value:k,done:h}=w.next();return h?{value:k,done:h}:{value:u?[g(k[0]),g(k[1])]:g(k),done:h}}})}}function Nn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Gd(e,t){let n={get(s){let i=this.__v_raw,a=Re(i),u=Re(s);e||(yt(s,u)&&Ze(a,"get",s),Ze(a,"get",u));let{has:m}=Sn(a),w=t?ks:e?Gt:mt;if(m.call(a,s))return w(i.get(s));if(m.call(a,u))return w(i.get(u));i!==a&&i.get(s)},get size(){let s=this.__v_raw;return!e&&Ze(Re(s),"iterate",ro),s.size},has(s){let i=this.__v_raw,a=Re(i),u=Re(s);return e||(yt(s,u)&&Ze(a,"has",s),Ze(a,"has",u)),s===u?i.has(s):i.has(s)||i.has(u)},forEach(s,i){let a=this,u=a.__v_raw,m=Re(u),w=t?ks:e?Gt:mt;return!e&&Ze(m,"iterate",ro),u.forEach((g,k)=>s.call(i,w(g),w(k),a))}};return je(n,e?{add:Nn("add"),set:Nn("set"),delete:Nn("delete"),clear:Nn("clear")}:{add(s){let i=Re(this),a=Sn(i),u=Re(s),m=!t&&!at(s)&&!gt(s)?u:s;return a.has.call(i,m)||yt(s,m)&&a.has.call(i,s)||yt(u,m)&&a.has.call(i,u)||(i.add(m),It(i,"add",m,m)),this},set(s,i){!t&&!at(i)&&!gt(i)&&(i=Re(i));let a=Re(this),{has:u,get:m}=Sn(a),w=u.call(a,s);w||(s=Re(s),w=u.call(a,s));let g=m.call(a,s);return a.set(s,i),w?yt(i,g)&&It(a,"set",s,i,g):It(a,"add",s,i),this},delete(s){let i=Re(this),{has:a,get:u}=Sn(i),m=a.call(i,s);m||(s=Re(s),m=a.call(i,s));let w=u?u.call(i,s):void 0,g=i.delete(s);return m&&It(i,"delete",s,void 0,w),g},clear(){let s=Re(this),i=s.size!==0,a=void 0,u=s.clear();return i&&It(s,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jd(s,e,t)}),n}function Rs(e,t){let n=Gd(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_isShallow"?t:s==="__v_raw"?r:Reflect.get(Ne(n,s)&&s in r?n:r,s,i)}var Wd={get:Rs(!1,!1)},Kd={get:Rs(!1,!0)},Yd={get:Rs(!0,!1)};var jr=new WeakMap,Gr=new WeakMap,Wr=new WeakMap,Jd=new WeakMap;function Qd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fe(e){return gt(e)?e:Ds(e,!1,zd,Wd,jr)}function Yo(e){return Ds(e,!1,Bd,Kd,Gr)}function An(e){return Ds(e,!0,Hd,Yd,Wr)}function Ds(e,t,n,r,s){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=s.get(e);if(i)return i;let a=Qd(ps(e));if(a===0)return e;let u=new Proxy(e,a===2?r:n);return s.set(e,u),u}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function at(e){return!!(e&&e.__v_isShallow)}function Jo(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!Ne(e,"__v_skip")&&Object.isExtensible(e)&&En(e,"__v_skip",!0),e}var mt=e=>De(e)?Fe(e):e,Gt=e=>De(e)?An(e):e;function Xe(e){return e?e.__v_isRef===!0:!1}function xe(e){return Kr(e,!1)}function In(e){return Kr(e,!0)}function Kr(e,t){return Xe(e)?e:new Es(e,t)}var Es=class{constructor(t,n){this.dep=new jo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:mt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){let n=this._rawValue,r=this.__v_isShallow||at(t)||gt(t);t=r?t:Re(t),yt(t,n)&&(this._rawValue=t,this._value=r?t:mt(t),this.dep.trigger())}};function Wt(e){return Xe(e)?e.value:e}var Xd={get:(e,t,n)=>t==="__v_raw"?e:Wt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let s=e[t];return Xe(s)&&!Xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Pn(e){return Vt(e)?e:new Proxy(e,Xd)}var Cs=class{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new jo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Bo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return Mr(this,!0),!0}get value(){let t=this.dep.track();return Lr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Yr(e,t,n=!1){let r,s;return ge(e)?r=e:(r=e.get,s=e.set),new Cs(r,s,n)}var Rn={},On=new WeakMap,so;function Jr(e,t=!1,n=so){if(n){let r=On.get(n);r||On.set(n,r=[]),r.push(e)}}function Qr(e,t,n=Ae){let{immediate:r,deep:s,once:i,scheduler:a,augmentJob:u,call:m}=n,w=q=>{(n.onWarn||Md)("Invalid watch source: ",q,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=q=>s?q:at(q)||s===!1||s===0?Pt(q,1):Pt(q),k,h,E,S,v=!1,_=!1;if(Xe(e)?(h=()=>e.value,v=at(e)):Vt(e)?(h=()=>g(e),v=!0):me(e)?(_=!0,v=e.some(q=>Vt(q)||at(q)),h=()=>e.map(q=>{if(Xe(q))return q.value;if(Vt(q))return g(q);if(ge(q))return m?m(q,2):q()})):ge(e)?t?h=m?()=>m(e,2):e:h=()=>{if(E){St();try{E()}finally{Nt()}}let q=so;so=k;try{return m?m(e,3,[S]):e(S)}finally{so=q}}:h=it,t&&s){let q=h,z=s===!0?1/0:s;h=()=>Pt(q(),z)}let N=Vr(),T=()=>{k.stop(),N&&N.active&&qo(N.effects,k)};if(i&&t){let q=t;t=(...z)=>{try{return q(...z)}finally{T()}}}let V=_?new Array(e.length).fill(Rn):Rn,M=q=>{if(!(!(k.flags&1)||!k.dirty&&!q))if(t){let z=k.run();if(q||s||v||(_?z.some((ne,ee)=>yt(ne,V[ee])):yt(z,V))){let ne=so;St();try{E&&E(),so=k;let ee=[z,V===Rn?void 0:_&&V[0]===Rn?[]:V,S];V=z,m?m(t,3,ee):t(...ee)}finally{so=ne,Nt()}}}else k.run()};return u&&u(M),k=new Co(h),k.scheduler=a?()=>a(M,!1):M,S=q=>Jr(q,!1,k),E=k.onStop=()=>{let q=On.get(k);if(q){if(m)m(q,4);else for(let z of q)z();On.delete(k)}},t?r?M(!0):V=k.run():a?a(M.bind(null,!0),!0):k.run(),T.pause=k.pause.bind(k),T.resume=k.resume.bind(k),T.stop=T,T}function Pt(e,t=1/0,n){if(t<=0||!De(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Xe(e))Pt(e.value,t,n);else if(me(e))for(let r=0;r{Pt(r,t,n)});else if(bn(e)){for(let r in e)Pt(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}function ln(e,t,n,r){try{return r?e(...r):e()}catch(s){dn(s,t,n)}}function bt(e,t,n,r){if(ge(e)){let s=ln(e,t,n,r);return s&&cs(s)&&s.catch(i=>{dn(i,t,n)}),s}if(me(e)){let s=[];for(let i=0;i>>1,s=st[r],i=on(s);i=on(n)?st.push(e):st.splice(ou(t),0,e),e.flags|=1,fi()}}function fi(){Mn||(Mn=pi.then(yi))}function mi(e){if(!me(e))eo&&e.id===-1?eo.splice(_o+1,0,e):e.flags&1||(Mt.push(e),e.flags|=1);else for(let t=0;t=t))continue;st.splice(r,1),r=e?r-1:Rt,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function vi(e,t,n=0){if(Mt.length){let r=Mt,s=0;if(t){r=[];for(let a=0;aon(a)-on(u));if(Mt.length=s,eo){for(let a=0;ae.id==null?e.flags&2?-1:1/0:e.id;function yi(e){let t=it;try{for(Rt=0;Rt{r._d&&Fn(-1);let i=Un(t),a=lo.length,u;try{u=e(...s)}finally{for(let m=lo.length;m>a;m--)Ki();Un(i),r._d&&Fn(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function R(e,t){if(ht===null)return e;let n=Yn(ht),r=e.dirs||(e.dirs=[]);for(let s=0;s1)return n&&ge(t)?t.call(r&&r.proxy):t}}var ru=Symbol.for("v-scx"),iu=()=>{{let e=dt(ru);return e}};function He(e,t,n){return bi(e,t,n)}function bi(e,t,n=Ae){let{immediate:r,deep:s,flush:i,once:a}=n,u=je({},n),m=t&&r||!t&&i!=="post",w;if(Ro){if(i==="sync"){let E=iu();w=E.__watcherHandles||(E.__watcherHandles=[])}else if(!m){let E=()=>{};return E.stop=it,E.resume=it,E.pause=it,E}}let g=et;u.call=(E,S,v)=>bt(E,g,S,v);let k=!1;i==="post"?u.scheduler=E=>{E.i=g,lt(E,g&&g.suspense)}:i!=="sync"&&(k=!0,u.scheduler=(E,S)=>{S?E():zs(E)}),u.augmentJob=E=>{t&&(E.flags|=4),k&&(E.flags|=2,g&&(E.id=g.uid,E.i=g))};let h=Qr(e,t,u);return Ro&&(w?w.push(h):m&&h()),h}function au(e,t,n){let r=this.proxy,s=Le(e)?e.includes(".")?wi(r,e):()=>r[e]:e.bind(r,r),i;ge(t)?i=t:(i=t.handler,n=t);let a=pn(this),u=bi(s,i.bind(r),n);return a(),u}function wi(e,t){let n=t.split(".");return()=>{let r=e;for(let s=0;se.__isTeleport;var Os=Symbol("_leaveCb");function du(e){let t=e[0];if(e.length>1){let n=!1;for(let r of e)if(r.type!==Dt){t=r,n=!0;break}}return t}function ki(e){if(!jn(e))return Bn(e.type)&&e.children?du(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ge(n.default))return n.default()}}function nn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;nn(Bn(n.type)&&ki(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===W&&me(e.children)){let n=Pi(e.children,!1);n&&nn(n,t)}}function qs(e){if(e.component)return qs(e.component.subTree);if(e.type===W){let t=me(e.children)&&Pi(e.children,!1);return t?qs(t):void 0}if(e.type!==Dt)return e}function un(e,t){return ge(e)?je({name:e.name},t,{setup:e}):e}function Hs(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Xr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var $n=new WeakMap;function Zo(e,t,n,r,s=!1){if(me(e)){e.forEach((v,_)=>Zo(v,t&&(me(t)?t[_]:t),n,r,s));return}if(xo(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Zo(e,t,n,r.component.subTree);return}let i=r.shapeFlag&4?Yn(r.component):r.el,a=s?null:i,{i:u,r:m}=e,w=t&&t.r,g=u.refs===Ae?u.refs={}:u.refs,k=u.setupState,h=Re(k),E=k===Ae?us:v=>Xr(g,v)?!1:Ne(h,v),S=(v,_)=>!(_&&Xr(g,_));if(w!=null&&w!==m){if(Zr(t),Le(w))g[w]=null,E(w)&&(k[w]=null);else if(Xe(w)){let v=t;S(w,v.k)&&(w.value=null),v.k&&(g[v.k]=null)}}if(ge(m))ln(m,u,12,[a,g]);else{let v=Le(m),_=Xe(m);if(v||_){let N=()=>{if(e.f){let T=v?E(m)?k[m]:g[m]:S(m)||!e.k?m.value:g[e.k];if(s)me(T)&&qo(T,i);else if(me(T))T.includes(i)||T.push(i);else if(v)g[m]=[i],E(m)&&(k[m]=g[m]);else{let V=[i];S(m,e.k)&&(m.value=V),e.k&&(g[e.k]=V)}}else v?(g[m]=a,E(m)&&(k[m]=a)):_&&(S(m,e.k)&&(m.value=a),e.k&&(g[e.k]=a))};if(a){let T=()=>{N(),$n.delete(e)};T.id=-1,$n.set(e,T),lt(T,n)}else Zr(e),N()}}}function Zr(e){let t=$n.get(e);t&&(t.flags|=8,$n.delete(e))}var xr=e=>e.nodeType===8;var NU=$o().requestIdleCallback||(e=>setTimeout(e,1)),RU=$o().cancelIdleCallback||(e=>clearTimeout(e));function uu(e,t){if(xr(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(xr(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}var xo=e=>!!e.type.__asyncLoader;function Ei(e){ge(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:a,suspensible:u=!0,onError:m}=e,w=null,g,k=0,h=()=>(k++,w=null,E()),E=()=>{let S;return w||(S=w=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),m)return new Promise((_,N)=>{m(v,()=>_(h()),()=>N(v),k+1)});throw v}).then(v=>S!==w&&w?w:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),g=v,v)))};return un({name:"AsyncComponentWrapper",__asyncLoader:E,__asyncHydrate(S,v,_){let N=S.isConnected,T=!1;(v.bu||(v.bu=[])).push(()=>T=!0);let V=()=>{T||!S.parentNode||N&&!S.isConnected||_()},M=i?()=>{let q=i(V,z=>uu(S,z));q&&(v.bum||(v.bum=[])).push(q)}:V;g?M():E().then(()=>!v.isUnmounted&&M())},get __asyncResolved(){return g},setup(){let S=et;if(Hs(S),g)return()=>Vn(g,S);let v=q=>{w=null,dn(q,S,13,!r)};if(u&&S.suspense||Ro)return E().then(q=>()=>Vn(q,S)).catch(q=>(v(q),()=>r?Ce(r,{error:q}):null));let _=xe(!1),N=xe(),T=xe(!!s),V,M;return cn(()=>{V!=null&&clearTimeout(V),M!=null&&clearTimeout(M)}),s&&(M=setTimeout(()=>{S.isUnmounted||(T.value=!1)},s)),a!=null&&(V=setTimeout(()=>{if(!S.isUnmounted&&!_.value&&!N.value){let q=new Error(`Async component timed out after ${a}ms.`);v(q),N.value=q}},a)),E().then(()=>{S.isUnmounted||(_.value=!0,S.parent&&jn(S.parent.vnode)&&S.parent.update())}).catch(q=>{if(S.isUnmounted){w=null;return}v(q),N.value=q}),()=>{if(_.value&&g)return Vn(g,S);if(N.value&&r)return Ce(r,{error:N.value});if(n&&!T.value)return Vn(n,S)}}})}function Vn(e,t){let{ref:n,props:r,children:s,ce:i}=t.vnode,a=Ce(e,r,s);return a.ref=n,a.ce=i,delete t.vnode.ce,a}var jn=e=>e.type.__isKeepAlive;function Ci(e,t){Si(e,"a",t)}function _i(e,t){Si(e,"da",t)}function Si(e,t,n=et){let r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)jn(s.parent.vnode)&&cu(r,t,n,s),s=s.parent}}function cu(e,t,n,r){let s=Gn(t,e,r,!0);cn(()=>{qo(r[t],s)},n)}function Gn(e,t,n=et,r=!1){if(n){let s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=pn(n),m=bt(t,n,e,a);return u(),Nt(),m});return r?s.unshift(i):s.push(i),i}}var Yt=e=>(t,n=et)=>{(!Ro||e==="sp")&&Gn(e,(...r)=>t(...r),n)},pu=Yt("bm"),$t=Yt("m"),Ni=Yt("bu"),Ri=Yt("u"),co=Yt("bum"),cn=Yt("um"),fu=Yt("sp"),mu=Yt("rtg"),hu=Yt("rtc");function vu(e,t=et){Gn("ec",e,t)}var Di="components",yu="directives";function Ge(e,t){return Ti(Di,e,!0,t)||e}var gu=Symbol.for("v-ndc");function ve(e){return Ti(yu,e)}function Ti(e,t,n=!0,r=!1){let s=ht||et;if(s){let i=s.type;if(e===Di){let u=tc(i,!1);if(u&&(u===t||u===Ye(t)||u===no(Ye(t))))return i}let a=ei(s[e]||i[e],t)||ei(s.appContext[e],t);return!a&&r?i:a}}function ei(e,t){return e&&(e[t]||e[Ye(t)]||e[no(Ye(t))])}function oe(e,t,n,r){let s,i=n&&n[r],a=me(e);if(a||Le(e)){let u=a&&Vt(e),m=!1,w=!1;u&&(m=!at(e),w=gt(e),e=Ko(e)),s=new Array(e.length);for(let g=0,k=e.length;gt(u,m,void 0,i&&i[m]));else{let u=Object.keys(e);s=new Array(u.length);for(let m=0,w=u.length;me?Xi(e)?Yn(e):Ms(e.parent):null;var en=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ms(e.parent),$root:e=>Ms(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bs(e),$forceUpdate:e=>e.f||(e.f=()=>{zs(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>au.bind(e)});var Is=(e,t)=>e!==Ae&&!e.__isScriptSetup&&Ne(e,t),bu={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:n,setupState:r,data:s,props:i,accessCache:a,type:u,appContext:m}=e;if(t[0]!=="$"){let h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Is(r,t))return a[t]=1,r[t];if(s!==Ae&&Ne(s,t))return a[t]=2,s[t];if(Ne(i,t))return a[t]=3,i[t];if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];Us&&(a[t]=0)}}let w=en[t],g,k;if(w)return t==="$attrs"&&Ze(e.attrs,"get",""),w(e);if((g=u.__cssModules)&&(g=g[t]))return g;if(n!==Ae&&Ne(n,t))return a[t]=4,n[t];if(k=m.config.globalProperties,Ne(k,t))return k[t]},set({_:e},t,n){let{data:r,setupState:s,ctx:i}=e;return Is(s,t)?(s[t]=n,!0):r!==Ae&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:a}},u){let m;return!!(n[u]||e!==Ae&&u[0]!=="$"&&Ne(e,u)||Is(t,u)||Ne(i,u)||Ne(r,u)||Ne(en,u)||Ne(s.config.globalProperties,u)||(m=a.__cssModules)&&m[u])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ti(e){return me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}var Us=!0;function wu(e){let t=Bs(e),n=e.proxy,r=e.ctx;Us=!1,t.beforeCreate&&oi(t.beforeCreate,e,"bc");let{data:s,computed:i,methods:a,watch:u,provide:m,inject:w,created:g,beforeMount:k,mounted:h,beforeUpdate:E,updated:S,activated:v,deactivated:_,beforeDestroy:N,beforeUnmount:T,destroyed:V,unmounted:M,render:q,renderTracked:z,renderTriggered:ne,errorCaptured:ee,serverPrefetch:C,expose:P,inheritAttrs:G,components:J,directives:X,filters:K}=t;if(w&&ku(w,r,null),a)for(let ue in a){let re=a[ue];ge(re)&&(r[ue]=re.bind(n))}if(s){let ue=s.call(n,n);De(ue)&&(e.data=Fe(ue))}if(Us=!0,i)for(let ue in i){let re=i[ue],_e=ge(re)?re.bind(n,n):ge(re.get)?re.get.bind(n,n):it,qe=!ge(re)&&ge(re.set)?re.set.bind(n):it,Me=tt({get:_e,set:qe});Object.defineProperty(r,ue,{enumerable:!0,configurable:!0,get:()=>Me.value,set:Pe=>Me.value=Pe})}if(u)for(let ue in u)Ai(u[ue],r,n,ue);if(m){let ue=ge(m)?m.call(n):m;Reflect.ownKeys(ue).forEach(re=>{uo(re,ue[re])})}g&&oi(g,e,"c");function ce(ue,re){me(re)?re.forEach(_e=>ue(_e.bind(n))):re&&ue(re.bind(n))}if(ce(pu,k),ce($t,h),ce(Ni,E),ce(Ri,S),ce(Ci,v),ce(_i,_),ce(vu,ee),ce(hu,z),ce(mu,ne),ce(co,T),ce(cn,M),ce(fu,C),me(P))if(P.length){let ue=e.exposed||(e.exposed={});P.forEach(re=>{Object.defineProperty(ue,re,{get:()=>n[re],set:_e=>n[re]=_e,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===it&&(e.render=q),G!=null&&(e.inheritAttrs=G),J&&(e.components=J),X&&(e.directives=X),C&&Hs(e)}function ku(e,t,n=it){me(e)&&(e=$s(e));for(let r in e){let s=e[r],i;De(s)?"default"in s?i=dt(s.from||r,s.default,!0):i=dt(s.from||r):i=dt(s),Xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function oi(e,t,n){bt(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ai(e,t,n,r){let s=r.includes(".")?wi(n,r):()=>n[r];if(Le(e)){let i=t[e];ge(i)&&He(s,i)}else if(ge(e))He(s,e.bind(n));else if(De(e))if(me(e))e.forEach(i=>Ai(i,t,n,r));else{let i=ge(e.handler)?e.handler.bind(n):t[e.handler];ge(i)&&He(s,i,e)}}function Bs(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),m;return u?m=u:!s.length&&!n&&!r?m=t:(m={},s.length&&s.forEach(w=>Ln(m,w,a,!0)),Ln(m,t,a)),De(t)&&i.set(t,m),m}function Ln(e,t,n,r=!1){let{mixins:s,extends:i}=t;i&&Ln(e,i,n,!0),s&&s.forEach(a=>Ln(e,a,n,!0));for(let a in t)if(!(r&&a==="expose")){let u=Eu[a]||n&&n[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Eu={data:ni,props:si,emits:si,methods:Xo,computed:Xo,beforeCreate:nt,created:nt,beforeMount:nt,mounted:nt,beforeUpdate:nt,updated:nt,beforeDestroy:nt,beforeUnmount:nt,destroyed:nt,unmounted:nt,activated:nt,deactivated:nt,errorCaptured:nt,serverPrefetch:nt,components:Xo,directives:Xo,watch:_u,provide:ni,inject:Cu};function ni(e,t){return t?e?function(){return je(ge(e)?e.call(this,this):e,ge(t)?t.call(this,this):t)}:t:e}function Cu(e,t){return Xo($s(e),$s(t))}function $s(e){if(me(e)){let t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Du(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||Ae,s=n,i=t.startsWith("update:"),a=i&&Ru(r,t.slice(7));a&&(a.trim&&(s=n.map(g=>Le(g)?g.trim():g)),a.number&&(s=s.map(ko)));let u,m=r[u=Uo(t)]||r[u=Uo(Ye(t))];!m&&i&&(m=r[u=Uo(At(t))]),m&&bt(m,e,6,s);let w=r[u+"Once"];if(w){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,bt(w,e,6,s)}}var Tu=new WeakMap;function Ii(e,t,n=!1){let r=n?Tu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;let i=e.emits,a={},u=!1;if(!ge(e)){let m=w=>{let g=Ii(w,t,!0);g&&(u=!0,je(a,g))};!n&&t.mixins.length&&t.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}return!i&&!u?(De(e)&&r.set(e,null),null):(me(i)?i.forEach(m=>a[m]=null):je(a,i),De(e)&&r.set(e,a),a)}function Wn(e,t){return!e||!yo(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,At(t))||Ne(e,t))}function Ps(e){let{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:a,attrs:u,emit:m,render:w,renderCache:g,props:k,data:h,setupState:E,ctx:S,inheritAttrs:v}=e,_=Un(e),N,T;try{if(n.shapeFlag&4){let q=s||r,z=q;N=Ut(w.call(z,q,g,k,E,h,S)),T=u}else{let q=t;N=Ut(q.length>1?q(k,{attrs:u,slots:a,emit:m}):q(k,null)),T=t.props?u:Au(u)}}catch(q){lo.length=0,dn(q,e,1),N=Ce(Dt)}let V=N,M;if(T&&v!==!1){let q=Object.keys(T),{shapeFlag:z}=V;q.length&&z&7&&(i&&q.some(go)&&(T=Ou(T,i)),V=No(V,T,!1,!0))}if(n.dirs&&(V=No(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){let q=Bn(V.type)&&ki(V)||V;nn(q,n.transition)}return N=V,Un(_),N}function Pi(e,t=!0){let n;for(let r=0;r{let t;for(let n in e)(n==="class"||n==="style"||yo(n))&&((t||(t={}))[n]=e[n]);return t},Ou=(e,t)=>{let n={};for(let r in e)(!go(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Iu(e,t,n){let{props:r,children:s,component:i}=e,{props:a,children:u,patchFlag:m}=t,w=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&m>=0){if(m&1024)return!0;if(m&16)return r?ri(r,a,w):!!a;if(m&8){let g=t.dynamicProps;for(let k=0;kObject.create(qi),Ui=e=>Object.getPrototypeOf(e)===qi;function Vu(e,t,n,r=!1){let s={},i=Mi();e.propsDefaults=Object.create(null),$i(e,t,s,i);for(let a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Yo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function qu(e,t,n,r){let{props:s,attrs:i,vnode:{patchFlag:a}}=e,u=Re(s),[m]=e.propsOptions,w=!1;if((r||a>0)&&!(a&16)){if(a&8){let g=e.vnode.dynamicProps;for(let k=0;k{m=!0;let[h,E]=Li(k,t,!0);je(a,h),E&&u.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!i&&!m)return De(e)&&r.set(e,xt),xt;if(me(i))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Gs=e=>me(e)?e.map(Ut):[Ut(e)],Uu=(e,t,n)=>{if(t._n)return t;let r=su((...s)=>Gs(t(...s)),n);return r._c=!1,r},Fi=(e,t,n)=>{let r=e._ctx;for(let s in e){if(js(s))continue;let i=e[s];if(ge(i))t[s]=Uu(s,i,r);else if(i!=null){let a=Gs(i);t[s]=()=>a}}},zi=(e,t)=>{let n=Gs(t);e.slots.default=()=>n},Hi=(e,t,n)=>{for(let r in t)(n||!js(r))&&(e[r]=t[r])},$u=(e,t,n)=>{let r=e.slots=Mi();if(e.vnode.shapeFlag&32){let s=t._;s?(Hi(r,t,n),n&&En(r,"_",s,!0)):Fi(t,r)}else t&&zi(e,t)},Lu=(e,t,n)=>{let{vnode:r,slots:s}=e,i=!0,a=Ae;if(r.shapeFlag&32){let u=t._;u?n&&u===1?i=!1:Hi(s,t,n):(i=!t.$stable,Fi(t,s)),a=t}else t&&(zi(e,t),a={default:1});if(i)for(let u in s)!js(u)&&a[u]==null&&delete s[u]};function Fu(){let e=[]}var lt=ju;function Bi(e){return zu(e)}function zu(e,t){Fu();let n=$o();n.__VUE__=!0;let{insert:r,remove:s,patchProp:i,createElement:a,createText:u,createComment:m,setText:w,setElementText:g,parentNode:k,nextSibling:h,setScopeId:E=it,insertStaticContent:S}=e,v=(p,y,D,O=null,I=null,U=null,L=void 0,H=null,Y=!!y.dynamicChildren)=>{if(p===y)return;p&&!Qo(p,y)&&(O=Z(p),Se(p,I,U,!0),p=null),y.patchFlag===-2&&(Y=!1,y.dynamicChildren=null),y.dynamicChildren&&p&&p.dynamicChildren&&p.dynamicChildren.hasOnce&&(y.dynamicChildren===xt&&(y.dynamicChildren=[]),y.dynamicChildren.hasOnce=!0);let{type:B,ref:le,shapeFlag:x}=y;switch(B){case Kn:_(p,y,D,O);break;case Dt:N(p,y,D,O);break;case tn:p==null&&T(y,D,O,L);break;case W:X(p,y,D,O,I,U,L,H,Y);break;default:x&1?z(p,y,D,O,I,U,L,H,Y):x&6?K(p,y,D,O,I,U,L,H,Y):(x&64||x&128)&&B.process(p,y,D,O,I,U,L,H,Y,te)}le!=null&&I?Zo(le,p&&p.ref,U,y||p,!y):le==null&&p&&p.ref!=null&&Zo(p.ref,null,U,p,!0)},_=(p,y,D,O)=>{if(p==null)r(y.el=u(y.children),D,O);else{let I=y.el=p.el;y.children!==p.children&&w(I,y.children)}},N=(p,y,D,O)=>{p==null?r(y.el=m(y.children||""),D,O):y.el=p.el},T=(p,y,D,O)=>{[p.el,p.anchor]=S(p.children,y,D,O,p.el,p.anchor)},V=(p,y,D,O)=>{if(y.children!==p.children){let I=h(p.anchor);q(p),[y.el,y.anchor]=S(y.children,D,I,O)}else y.el=p.el,y.anchor=p.anchor},M=({el:p,anchor:y},D,O)=>{let I;for(;p&&p!==y;)I=h(p),r(p,D,O),p=I;r(y,D,O)},q=({el:p,anchor:y})=>{let D;for(;p&&p!==y;)D=h(p),s(p),p=D;s(y)},z=(p,y,D,O,I,U,L,H,Y)=>{if(y.type==="svg"?L="svg":y.type==="math"&&(L="mathml"),p==null)ne(y,D,O,I,U,L,H,Y);else{let B=p.el&&p.el._isVueCE?p.el:null;try{B&&B._beginPatch(),P(p,y,I,U,L,H,Y)}finally{B&&B._endPatch()}}},ne=(p,y,D,O,I,U,L,H)=>{let Y,B,{props:le,shapeFlag:x,transition:ae,dirs:he}=p;if(Y=p.el=a(p.type,U,le&&le.is,le),x&8?g(Y,p.children):x&16&&C(p.children,Y,null,O,I,Vs(p,U),L,H),he&&io(p,null,O,"created"),ee(Y,p,p.scopeId,L,O),le){for(let Ve in le)Ve!=="value"&&!bo(Ve)&&i(Y,Ve,null,le[Ve],U,O);"value"in le&&i(Y,"value",null,le.value,U),(B=le.onVnodeBeforeMount)&&qt(B,O,p)}he&&io(p,null,O,"beforeMount");let we=Hu(I,ae);we&&ae.beforeEnter(Y),r(Y,y,D),((B=le&&le.onVnodeMounted)||we||he)&<(()=>{let Oe;B&&qt(B,O,p),we&&ae.enter(Y),he&&io(p,null,O,"mounted")},I)},ee=(p,y,D,O,I)=>{if(D&&E(p,D),O)for(let U=0;U{for(let B=Y;B{let H=y.el=p.el,{patchFlag:Y,dynamicChildren:B,dirs:le}=y;Y|=p.patchFlag&16;let x=p.props||Ae,ae=y.props||Ae,he;if(D&&ao(D,!1),(he=ae.onVnodeBeforeUpdate)&&qt(he,D,y,p),le&&io(y,p,D,"beforeUpdate"),D&&ao(D,!0),B&&(!p.dynamicChildren||p.dynamicChildren.length!==B.length)&&(Y=0,L=!1,B=null),(x.innerHTML&&ae.innerHTML==null||x.textContent&&ae.textContent==null)&&g(H,""),B?G(p.dynamicChildren,B,H,D,O,Vs(y,I),U):L||_e(p,y,H,null,D,O,Vs(y,I),U,!1),Y>0){if(Y&16)J(H,x,ae,D,I);else if(Y&2&&x.class!==ae.class&&i(H,"class",null,ae.class,I),Y&4&&i(H,"style",x.style,ae.style,I),Y&8){let we=y.dynamicProps;for(let Ve=0;Ve{he&&qt(he,D,y,p),le&&io(y,p,D,"updated")},O)},G=(p,y,D,O,I,U,L)=>{for(let H=0;H{if(y!==D){if(y!==Ae)for(let U in y)!bo(U)&&!(U in D)&&i(p,U,y[U],null,I,O);for(let U in D){if(bo(U))continue;let L=D[U],H=y[U];L!==H&&U!=="value"&&i(p,U,H,L,I,O)}"value"in D&&i(p,"value",y.value,D.value,I)}},X=(p,y,D,O,I,U,L,H,Y)=>{let B=y.el=p?p.el:u(""),le=y.anchor=p?p.anchor:u(""),{patchFlag:x,dynamicChildren:ae,slotScopeIds:he}=y;he&&(H=H?H.concat(he):he),p==null?(r(B,D,O),r(le,D,O),C(y.children||[],D,le,I,U,L,H,Y)):x>0&&x&64&&ae&&p.dynamicChildren&&p.dynamicChildren.length===ae.length?(G(p.dynamicChildren,ae,D,I,U,L,H),(y.key!=null||I&&y===I.subTree)&&ji(p,y,!0)):_e(p,y,D,le,I,U,L,H,Y)},K=(p,y,D,O,I,U,L,H,Y)=>{y.slotScopeIds=H,p==null?y.shapeFlag&512?I.ctx.activate(y,D,O,L,Y):se(y,D,O,I,U,L,Y):ce(p,y,Y)},se=(p,y,D,O,I,U,L)=>{let H=p.component=Qu(p,O,I);if(jn(p)&&(H.ctx.renderer=te),Xu(H,!1,L),H.asyncDep){if(I&&I.registerDep(H,ue,L,U),!p.el){let Y=H.subTree=Ce(Dt);N(null,Y,y,D),p.placeholder=Y.el}}else ue(H,p,y,D,I,U,L)},ce=(p,y,D)=>{let O=y.component=p.component;if(Iu(p,y,D))if(O.asyncDep&&!O.asyncResolved){y.el=p.el,y.placeholder=p.placeholder,re(O,y,D);return}else O.next=y,O.update();else y.el=p.el,y.placeholder=p.placeholder,O.vnode=y},ue=(p,y,D,O,I,U,L)=>{let H=()=>{if(p.isMounted){let{next:x,bu:ae,u:he,parent:we,vnode:Ve}=p;{let ct=Gi(p);if(ct){x&&(x.el=Ve.el,re(p,x,L)),ct.asyncDep.then(()=>{lt(()=>{p.isUnmounted||B()},I)});return}}let Oe=x,We;ao(p,!1),x?(x.el=Ve.el,re(p,x,L)):x=Ve,ae&&wo(ae),(We=x.props&&x.props.onVnodeBeforeUpdate)&&qt(We,we,x,Ve),ao(p,!0);let Ke=Ps(p),kt=p.subTree;p.subTree=Ke,v(kt,Ke,k(kt.el),Z(kt),p,I,U),x.el=Ke.el,Oe===null&&Pu(p,Ke.el),he&<(he,I),(We=x.props&&x.props.onVnodeUpdated)&<(()=>qt(We,we,x,Ve),I)}else{let x,{el:ae,props:he}=y,{bm:we,m:Ve,parent:Oe,root:We,type:Ke}=p,kt=xo(y);if(ao(p,!1),we&&wo(we),!kt&&(x=he&&he.onVnodeBeforeMount)&&qt(x,Oe,y),ao(p,!0),ae&&Ee){let ct=()=>{p.subTree=Ps(p),Ee(ae,p.subTree,p,I,null)};kt&&Ke.__asyncHydrate?Ke.__asyncHydrate(ae,p,ct):ct()}else{We.ce&&We.ce._hasShadowRoot()&&We.ce._injectChildStyle(Ke,p.parent?p.parent.type:void 0);let ct=p.subTree=Ps(p);v(null,ct,D,O,p,I,U),y.el=ct.el}if(Ve&<(Ve,I),!kt&&(x=he&&he.onVnodeMounted)){let ct=y;lt(()=>qt(x,Oe,ct),I)}(y.shapeFlag&256||Oe&&xo(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&p.a&<(p.a,I),p.isMounted=!0,y=D=O=null}};p.scope.on();let Y=p.effect=new Co(H);p.scope.off();let B=p.update=Y.run.bind(Y),le=p.job=Y.runIfDirty.bind(Y);le.i=p,le.id=p.uid,Y.scheduler=()=>zs(le),ao(p,!0),B()},re=(p,y,D)=>{y.component=p;let O=p.vnode.props;p.vnode=y,p.next=null,qu(p,y.props,O,D),Lu(p,y.children,D),St(),hi(p),Nt()},_e=(p,y,D,O,I,U,L,H,Y=!1)=>{let B=p&&p.children,le=p?p.shapeFlag:0,x=y.children,{patchFlag:ae,shapeFlag:he}=y;if(ae>0){if(ae&128){Me(B,x,D,O,I,U,L,H,Y);return}else if(ae&256){qe(B,x,D,O,I,U,L,H,Y);return}}he&8?(le&16&&F(B,I,U),x!==B&&g(D,x)):le&16?he&16?Me(B,x,D,O,I,U,L,H,Y):F(B,I,U,!0):(le&8&&g(D,""),he&16&&C(x,D,O,I,U,L,H,Y))},qe=(p,y,D,O,I,U,L,H,Y)=>{p=p||xt,y=y||xt;let B=p.length,le=y.length,x=Math.min(B,le),ae;for(ae=0;aele?F(p,I,U,!0,!1,x):C(y,D,O,I,U,L,H,Y,x)},Me=(p,y,D,O,I,U,L,H,Y)=>{let B=0,le=y.length,x=p.length-1,ae=le-1;for(;B<=x&&B<=ae;){let he=p[B],we=y[B]=Y?Kt(y[B]):Ut(y[B]);if(Qo(he,we))v(he,we,D,null,I,U,L,H,Y);else break;B++}for(;B<=x&&B<=ae;){let he=p[x],we=y[ae]=Y?Kt(y[ae]):Ut(y[ae]);if(Qo(he,we))v(he,we,D,null,I,U,L,H,Y);else break;x--,ae--}if(B>x){if(B<=ae){let he=ae+1,we=heae)for(;B<=x;)Se(p[B],I,U,!0),B++;else{let he=B,we=B,Ve=new Map;for(B=we;B<=ae;B++){let pt=y[B]=Y?Kt(y[B]):Ut(y[B]);pt.key!=null&&Ve.set(pt.key,B)}let Oe,We=0,Ke=ae-we+1,kt=!1,ct=0,Vo=new Array(Ke);for(B=0;B=Ke){Se(pt,I,U,!0);continue}let Tt;if(pt.key!=null)Tt=Ve.get(pt.key);else for(Oe=we;Oe<=ae;Oe++)if(Vo[Oe-we]===0&&Qo(pt,y[Oe])){Tt=Oe;break}Tt===void 0?Se(pt,I,U,!0):(Vo[Tt-we]=B+1,Tt>=ct?ct=Tt:kt=!0,v(pt,y[Tt],D,null,I,U,L,H,Y),We++)}let vr=kt?Bu(Vo):xt;for(Oe=vr.length-1,B=Ke-1;B>=0;B--){let pt=we+B,Tt=y[pt],yr=y[pt+1],gr=pt+1{let{el:U,type:L,transition:H,children:Y,shapeFlag:B}=p;if(B&6){Pe(p.component.subTree,y,D,O);return}if(B&128){p.suspense.move(y,D,O);return}if(B&64){L.move(p,y,D,te);return}if(L===W){r(U,y,D);for(let x=0;xH.enter(U),I));else{let{leave:x,delayLeave:ae,afterLeave:he}=H,we=()=>{p.ctx.isUnmounted?s(U):r(U,y,D)},Ve=()=>{let Oe=U._isLeaving||!!U[Os];U._isLeaving&&U[Os](!0),H.persisted&&!Oe?we():x(U,()=>{we(),he&&he()})};ae?ae(U,we,Ve):Ve()}else r(U,y,D)},Se=(p,y,D,O=!1,I=!1)=>{let{type:U,props:L,ref:H,children:Y,dynamicChildren:B,shapeFlag:le,patchFlag:x,dirs:ae,cacheIndex:he,memo:we}=p;if((x===-2||B&&B.hasOnce)&&(I=!1),H!=null&&(St(),Zo(H,null,D,p,!0),Nt()),he!=null&&(!p.ctx||p.ctx===y)&&(y.renderCache[he]=void 0),le&256){y.ctx.deactivate(p);return}let Ve=le&1&&ae,Oe=!xo(p),We;if(Oe&&(We=L&&L.onVnodeBeforeUnmount)&&qt(We,y,p),le&6)ke(p.component,D,O);else{if(le&128){p.suspense.unmount(D,O);return}Ve&&io(p,null,y,"beforeUnmount"),le&64?p.type.remove(p,y,D,te,O):B&&!B.hasOnce&&(U!==W||x>0&&x&64)?F(B,y,D,!1,!0):(U===W&&x&384||!I&&le&16)&&F(Y,y,D),O&&ze(p)}let Ke=we!=null&&he==null;(Oe&&(We=L&&L.onVnodeUnmounted)||Ve||Ke)&<(()=>{We&&qt(We,y,p),Ve&&io(p,null,y,"unmounted"),Ke&&(p.el=null)},D)},ze=p=>{let{type:y,el:D,anchor:O,transition:I}=p,U=y===W;if(U&&!I){Ue(D,O);return}if(y===tn){q(p),I&&!I.persisted&&I.afterLeave&&I.afterLeave();return}let L=U?qs(p):p,H=()=>{U?k(D)&&Ue(D,O):s(D),I&&!I.persisted&&I.afterLeave&&I.afterLeave()};if(L&&L.shapeFlag&1&&I&&!I.persisted){let{leave:Y,delayLeave:B}=I,le=L.el,x=()=>Y(le,H);B?B(le,H,x):x()}else H()},Ue=(p,y)=>{let D;for(;p!==y;)D=h(p),s(p),p=D;s(y)},ke=(p,y,D)=>{let{bum:O,scope:I,job:U,subTree:L,um:H,m:Y,a:B}=p;ai(Y),ai(B),O&&wo(O),I.stop(),U?(U.flags|=8,Se(L,p,y,D)):p.vnode.el&&L&&(L.transition=p.vnode.transition,Se(L,p,y,D)),H&<(H,y),lt(()=>{p.isUnmounted=!0},y)},F=(p,y,D,O=!1,I=!1,U=0)=>{for(let L=U;L{if(p.shapeFlag&6)return Z(p.component.subTree);if(p.shapeFlag&128)return p.suspense.next();let y=h(p.anchor||p.el),D=y&&y[lu];return D?h(D):y},Q=(p,y,D)=>{let O=p&&y._vnode?void 0:p&&p.component?p.component.uid:Ju();nu(()=>{p==null?y._vnode&&Se(y._vnode,null,null,!0):v(y._vnode||null,p,y,null,null,null,D),y._vnode=p},O)},te={p:v,um:Se,m:Pe,r:ze,mt:se,mc:C,pc:_e,pbc:G,n:Z,o:e},ye,Ee;return t&&([ye,Ee]=t(te)),{render:Q,hydrate:ye,createApp:Nu(Q,ye)}}function Vs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ao({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Hu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ji(e,t,n=!1){let r=e.children,s=t.children;if(me(r)&&me(s))for(let i=0;i>1,e[n[u]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function Gi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gi(t)}function ai(e){if(e)for(let t=0;te.__isSuspense;function ju(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):mi(e)}var W=Symbol.for("v-fgt"),Kn=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),tn=Symbol.for("v-stc"),lo=[],vt=null;function l(e=!1){lo.push(vt=e?null:[])}function Ki(){lo.pop(),vt=lo[lo.length-1]||null}var sn=1;function Fn(e,t=!1){sn+=e,e<0&&vt&&t&&(vt.hasOnce=!0)}function Yi(e){return e.dynamicChildren=sn>0?vt||xt:null,Ki(),sn>0&&vt&&vt.push(e),e}function d(e,t,n,r,s,i){return Yi(o(e,t,n,r,s,i,!0))}function Lt(e,t,n,r,s){return Yi(Ce(e,t,n,r,s,!0))}function rn(e){return e?e.__v_isVNode===!0:!1}function Qo(e,t){return e.type===t.type&&e.key===t.key}var Ji=({key:e})=>e??null,qn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Xe(e)||ge(e)?{i:ht,r:e,k:t,f:!!n}:e:null);function o(e,t=null,n=null,r=0,s=null,i=e===W?0:1,a=!1,u=!1){let m={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ji(t),ref:t&&qn(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ht};return u?(zn(m,n),i&128&&e.normalize(m)):n&&(m.shapeFlag|=Le(n)?8:16),sn>0&&!a&&vt&&(m.patchFlag>0||i&6)&&m.patchFlag!==32&&vt.push(m),m}var Ce=Gu;function Gu(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===gu)&&(e=Dt),rn(e)){let u=No(e,t,!0);return n&&zn(u,n),sn>0&&!i&&vt&&(u.shapeFlag&6?vt[vt.indexOf(e)]=u:vt.push(u)),u.patchFlag=-2,u}if(oc(e)&&(e=e.__vccOpts),t){t=Wu(t);let{class:u,style:m}=t;u&&!Le(u)&&(t.class=A(u)),De(m)&&(Jo(m)&&!me(m)&&(m=je({},m)),t.style=Ie(m))}let a=Le(e)?1:Wi(e)?128:Bn(e)?64:De(e)?4:ge(e)?2:0;return o(e,t,n,r,s,a,i,!0)}function Wu(e){return e?Jo(e)||Ui(e)?je({},e):e:null}function No(e,t,n=!1,r=!1){let{props:s,ref:i,patchFlag:a,children:u,transition:m}=e,w=t?Ku(s||{},t):s,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:w,key:w&&Ji(w),ref:t&&t.ref?n&&i?me(i)?i.concat(qn(t)):[i,qn(t)]:qn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==W?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:m,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&No(e.ssContent),ssFallback:e.ssFallback&&No(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return m&&r&&nn(g,m.clone(g)),g}function b(e=" ",t=0){return Ce(Kn,null,e,t)}function de(e,t){let n=Ce(tn,null,e);return n.staticCount=t,n}function f(e="",t=!1){return t?(l(),Lt(Dt,null,e)):Ce(Dt,null,e)}function Ut(e){return e==null||typeof e=="boolean"?Ce(Dt):me(e)?Ce(W,null,e.slice()):rn(e)?Kt(e):Ce(Kn,null,String(e))}function Kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:No(e)}function zn(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){let s=t.default;s&&(s._c&&(s._d=!1),zn(e,s()),s._c&&(s._d=!0));return}else{n=32;let s=t._;!s&&!Ui(t)?t._ctx=ht:s===3&&ht&&(ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ge(t)){if(r&65){zn(e,{default:t});return}t={default:t,_ctx:ht},n=32}else t=String(t),r&64?(n=16,t=[b(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ku(...e){let t={};for(let n=0;net||ht,Hn,an;{let e=$o(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};Hn=t("__VUE_INSTANCE_SETTERS__",n=>et=n),an=t("__VUE_SSR_SETTERS__",n=>Ro=n)}var pn=e=>{let t=et;return Hn(e),e.scope.on(),()=>{e.scope.off(),Hn(t)}},li=()=>{et&&et.scope.off(),Hn(null)};function Xi(e){return e.vnode.shapeFlag&4}var Ro=!1;function Xu(e,t=!1,n=!1){t&&an(t);let{props:r,children:s}=e.vnode,i=Xi(e);Vu(e,r,i,t),$u(e,s,n||t);let a=i?Zu(e,t):void 0;return t&&an(!1),a}function Zu(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bu);let{setup:r}=n;if(r){St();let s=e.setupContext=r.length>1?ec(e):null,i=pn(e),a=ln(r,e,0,[e.props,s]),u=cs(a);if(Nt(),i(),(u||e.sp)&&!xo(e)&&Hs(e),u){if(a.then(li,li),t)return a.then(m=>{an(!0);try{di(e,m,t)}finally{an(!1)}}).catch(m=>{dn(m,e,0)});e.asyncDep=a}else di(e,a,t)}else Zi(e,t)}function di(e,t,n){ge(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=Pn(t)),Zi(e,n)}var ui,ci;function Zi(e,t,n){let r=e.type;if(!e.render){if(!t&&ui&&!r.render){let s=r.template||Bs(e).template;if(s){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:m}=r,w=je(je({isCustomElement:i,delimiters:u},a),m);r.render=ui(s,w)}}e.render=r.render||it,ci&&ci(e)}{let s=pn(e);St();try{wu(e)}finally{Nt(),s()}}}var xu={get(e,t){return Ze(e,"get",""),e[t]}};function ec(e){let t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xu),slots:e.slots,emit:e.emit,expose:t}}function Yn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pn(Ts(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in en)return en[n](e)},has(t,n){return n in t||n in en}})):e.proxy}function tc(e,t=!0){return ge(e)?e.displayName||e.name:e.name||t&&e.__name}function oc(e){return ge(e)&&"__vccOpts"in e}var tt=(e,t)=>Yr(e,t,Ro);function be(e,t,n){try{Fn(-1);let r=arguments.length;return r===2?De(t)&&!me(t)?rn(t)?Ce(e,null,[t]):Ce(e,t):Ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&rn(n)&&(n=[n]),Ce(e,t,n))}finally{Fn(1)}}var nc="3.5.44";var Qs,xi=typeof window<"u"&&window.trustedTypes;if(xi)try{Qs=xi.createPolicy("vue",{createHTML:e=>e})}catch{}var ca=Qs?e=>Qs.createHTML(e):e=>e,sc="http://www.w3.org/2000/svg",rc="http://www.w3.org/1998/Math/MathML",Jt=typeof document<"u"?document:null,ea=Jt&&Jt.createElement("template"),ic={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let s=t==="svg"?Jt.createElementNS(sc,e):t==="mathml"?Jt.createElementNS(rc,e):n?Jt.createElement(e,{is:n}):Jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Jt.createTextNode(e),createComment:e=>Jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){let a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{ea.innerHTML=ca(r==="svg"?``:r==="mathml"?``:e);let u=ea.content;if(r==="svg"||r==="mathml"){let m=u.firstChild;for(;m.firstChild;)u.appendChild(m.firstChild);u.removeChild(m)}t.insertBefore(u,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};var ac=Symbol("_vtc");function lc(e,t,n){let r=e[ac];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}var Xn=Symbol("_vod"),pa=Symbol("_vsh"),j={name:"show",beforeMount(e,{value:t},{transition:n}){e[Xn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):fn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),fn(e,!0),r.enter(e)):r.leave(e,()=>{fn(e,!1)}):fn(e,t))},beforeUnmount(e,{value:t}){fn(e,t)}};function fn(e,t){e.style.display=t?e[Xn]:"none",e[pa]=!t}var dc=Symbol("");var uc=/(?:^|;)\s*display\s*:/;function cc(e,t,n){let r=e.style,s=Le(n),i=!1;if(n&&!s){if(t)if(Le(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();n[u]==null&&mn(r,u,"")}else for(let a in t)n[a]==null&&mn(r,a,"");for(let a in n){a==="display"&&(i=!0);let u=n[a];u!=null?fc(e,a,!Le(t)&&t?t[a]:void 0,u)||mn(r,a,u):mn(r,a,"")}}else if(s){if(t!==n){let a=r[dc];a&&(n+=";"+a),r.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");Xn in e&&((!s||t!==n)&&(e[Xn]=i?r.display:""),e[pa]&&(r.display="none"))}var Jn=/\s*!important$/;function mn(e,t,n){if(me(n))n.forEach(r=>mn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Jn.test(n)?e.setProperty(t,n.replace(Jn,""),"important"):e.setProperty(t,n);else{let r=pc(e,t);Jn.test(n)?e.setProperty(At(r),n.replace(Jn,""),"important"):e[r]=n}}var ta=["Webkit","Moz","ms"],Ks={};function pc(e,t){let n=Ks[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return Ks[t]=r;r=no(r);for(let s=0;sYs||(bc.then(()=>Ys=0),Ys=Date.now());function kc(e,t){let n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;let s=n.value;if(me(s)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=s.slice(),u=[r];for(let m=0;me.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ec=(e,t,n,r,s,i)=>{let a=s==="svg";t==="class"?lc(e,r,a):t==="style"?cc(e,n,r):yo(t)?go(t)||hc(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Cc(e,t,r,a))?(sa(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&na(e,t,r,a,i,t!=="value")):e._isVueCE&&(_c(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?sa(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),na(e,t,r,a))};function Cc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&ia(t)&&ge(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return ia(t)&&Le(n)?!1:t in e}function _c(e,t){let n=e._def.props;if(!n)return!1;let r=Ye(t);return Array.isArray(n)?n.some(s=>Ye(s)===r):Object.keys(n).some(s=>Ye(s)===r)}var Do=e=>{let t=e.props["onUpdate:modelValue"]||!1;return me(t)?n=>wo(t,n):t};function Sc(e){e.target.composing=!0}function aa(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var Ft=Symbol("_assign"),Qn=Symbol("_initialValue");function Js(e,t,n){return t&&(e=e.trim()),n&&(e=ko(e)),e}var zt={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[Qn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Qn]=e.defaultValue.replace(/\r\n?/g,`
+`))),e[Ft]=Do(s);let i=r||s.props&&s.props.type==="number";to(e,t?"change":"input",a=>{a.target.composing||e[Ft](Js(e.value,n,i))}),(n||i)&&to(e,"change",()=>{e.value=Js(e.value,n,i)}),t||(to(e,"compositionstart",Sc),to(e,"compositionend",aa),to(e,"change",aa))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let s=t??"",i=e[Qn];delete e[Qn],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ft](Js(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},a){if(e[Ft]=Do(a),e.composing)return;let u=(i||e.type==="number")&&!/^0\d/.test(e.value)?ko(e.value):e.value,m=t??"";if(u===m)return;let w=e.getRootNode();(w instanceof Document||w instanceof ShadowRoot)&&w.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===m)||(e.value=m)}},Xs={deep:!0,created(e,t,n){e[Ft]=Do(n),to(e,"change",()=>{let r=e._modelValue,s=hn(e),i=e.checked,a=e[Ft];if(me(r)){let u=_n(r,s),m=u!==-1;if(i&&!m)a(r.concat(s));else if(!i&&m){let w=[...r];w.splice(u,1),a(w)}}else if(Et(r)){let u=new Set(r);i?u.add(s):u.delete(s),a(u)}else a(fa(e,i))})},mounted:la,beforeUpdate(e,t,n){e[Ft]=Do(n),la(e,t,n)}};function la(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(me(t))s=_n(t,r.props.value)>-1;else if(Et(t))s=t.has(r.props.value);else{if(t===n)return;s=Ct(t,fa(e,!0))}e.checked!==s&&(e.checked=s)}var To={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,to(e,"change",()=>{let s=Array.prototype.filter.call(e.options,m=>m.selected).map(m=>n?ko(hn(m)):hn(m)),i=e.multiple,a=i?Et(e._modelValue)?new Set(s):s:s[0],u=e._pendingValue=[i,i?me(a)?s.slice():s:a];try{e[Ft](a)}finally{ot(()=>{e._pendingValue===u&&(e._pendingValue=void 0)})}}),e[Ft]=Do(r)},mounted(e,{value:t}){da(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ft]=Do(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Nc(t,n[1],n[0]))&&da(e,t)}};function Nc(e,t,n){if(!n)return Ct(e,t);if(me(e))return Ct(e,t);if(Et(e)){if(e.size!==t.length)return!1;for(let r of t)if(!e.has(r))return!1;return!0}return!1}function da(e,t){let n=e.multiple,r=me(t);if(!(n&&!r&&!Et(t))){for(let s=0,i=e.options.length;sString(w)===String(u)):a.selected=_n(t,u)>-1}else a.selected=t.has(u);else if(Ct(hn(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function hn(e){return"_value"in e?e._value:e.value}function fa(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}var Rc=["ctrl","shift","alt","meta"],Dc={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)=>Rc.some(n=>e[`${n}Key`]&&!t.includes(n))},ie=(e,t)=>{if(!e)return e;let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let a=0;a{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;let i=At(s.key);if(t.some(a=>a===i||Tc[a]===i))return e(s)}))},Ac=je({patchProp:Ec},ic),ua;function Oc(){return ua||(ua=Bi(Ac))}var ma=((...e)=>{let t=Oc().createApp(...e),{mount:n}=t;return t.mount=r=>{let s=Pc(r);if(!s)return;let i=t._component;!ge(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");let a=n(s,!1,Ic(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Ic(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pc(e){return Le(e)?document.querySelector(e):e}var mo=typeof document<"u";function va(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&va(e.default)}var Te=Object.assign;function Zn(e,t){let n={};for(let r in t){let s=t[r];n[r]=wt(s)?s.map(e):e(s)}return n}var Io=()=>{},wt=Array.isArray;function er(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var ya=/#/g,qc=/&/g,Mc=/\//g,Uc=/=/g,$c=/\?/g,ga=/\+/g,Lc=/%5B/g,Fc=/%5D/g,ba=/%5E/g,zc=/%60/g,wa=/%7B/g,Hc=/%7C/g,ka=/%7D/g,Bc=/%20/g;function tr(e){return e==null?"":encodeURI(""+e).replace(Hc,"|").replace(Lc,"[").replace(Fc,"]")}function Ea(e){return tr(e).replace(wa,"{").replace(ka,"}").replace(ba,"^")}function Zs(e){return tr(e).replace(ga,"%2B").replace(Bc,"+").replace(ya,"%23").replace(qc,"%26").replace(zc,"`").replace(wa,"{").replace(ka,"}").replace(ba,"^")}function jc(e){return Zs(e).replace(Uc,"%3D")}function Gc(e){return tr(e).replace(ya,"%23").replace($c,"%3F")}function Ca(e){return Gc(e).replace(Mc,"%2F")}function Oo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Wc=/\/$/,Kc=e=>e.replace(Wc,"");function xn(e,t,n="/"){let r,s={},i="",a="",u=t.indexOf("#"),m=t.indexOf("?");return m=u>=0&&m>u?-1:m,m>=0&&(r=t.slice(0,m),i=t.slice(m,u>0?u:t.length),s=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Jc(r??t,n),{fullPath:r+i+a,path:r,query:s,hash:Oo(a)}}function _a(e,t){let n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Sa(e,t,n){let r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&po(t.matched[r],n.matched[s])&&nr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function nr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yc(e[n],t[n]))return!1;return!0}function Yc(e,t){return wt(e)?ha(e,t):wt(t)?ha(t,e):e?.valueOf()===t?.valueOf()}function ha(e,t){return wt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;let n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,a,u;for(a=0;a1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Xt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},es=(function(e){return e.pop="pop",e.push="push",e})({}),ts=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Na(e){if(!e)if(mo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kc(e)}var Qc=/^[^#]+#/;function Ra(e,t){return e.replace(Qc,"#")+t}function Xc(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var vn=()=>({left:window.scrollX,top:window.scrollY});function Da(e){let t;if("el"in e){let n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Xc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sr(e,t){return(history.state?history.state.position-t:-1)+e}var xs=new Map;function Ta(e,t){xs.set(e,t)}function Aa(e){let t=xs.get(e);return xs.delete(e),t}function Zc(e){return typeof e=="string"||e&&typeof e=="object"}function rr(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Oa=Symbol("");var s$={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for
${JSON.stringify(e)}${t?`
while being at
-`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ep(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Te(new Error,{type:e,[Oa]:!0},t)}function Ht(e,t){return e instanceof Error&&Oa in e&&(t==null||!!(e.type&t))}var xc=["params","query","hash"];function ep(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of xc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ia(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Zs(s)):[r&&Zs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Pa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Va=Symbol(""),ar=Symbol(""),os=Symbol(""),ns=Symbol(""),ss=Symbol("");function Io(){let e=[];function t(r){return e.push(r),()=>{let s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,m)=>{let k=h=>{h===!1?m(fo(Be.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?m(h):Zc(h)?m(fo(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(a&&r.enterCallbacks[s]===a&&typeof h=="function"&&a.push(h),u())},y=i(()=>e.call(r&&r.instances[s],t,n,k)),E=Promise.resolve(y);e.length<3&&(E=E.then(k)),E.catch(h=>m(h))})}function rs(e,t,n,r,s=i=>i()){let i=[];for(let a of e)for(let u in a.components){let m=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(va(m)){let k=(m.__vccOpts||m)[t];k&&i.push(Qt(k,n,r,a,u,s))}else{let k=m();i.push(()=>k.then(y=>{if(!y)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let E=Vc(y)?y.default:y;a.mods[u]=y,a.components[u]=E;let h=(E.__vccOpts||E)[t];return h&&Qt(h,n,r,a,u,s)()}))}}return i}function qa(e,t){let n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(k,u))?r.push(u):n.push(u));let m=e.matched[a];m&&(t.matched.find(k=>po(k,m))||s.push(m))}return[n,r,s]}var tp=()=>location.protocol+"//"+location.host;function Wa(e,t){let{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(a);return u[0]!=="/"&&(u="/"+u),or(u,"")}return or(n,e)+r+s}function op(e,t,n,r){let s=[],i=[],a=null,u=({state:h})=>{let C=Wa(e,location),g=n.value,b=t.value,S=0;if(h){if(n.value=C,t.value=h,a&&a===g){a=null;return}S=b?h.position-b.position:0}else r(C);s.forEach(R=>{R(n.value,g,{delta:S,type:es.pop,direction:S?S>0?ts.forward:ts.back:ts.unknown})})};function m(){a=n.value}function k(h){s.push(h);let C=()=>{let g=s.indexOf(h);g>-1&&s.splice(g,1)};return i.push(C),C}function y(){if(document.visibilityState==="hidden"){let{history:h}=window;if(!h.state)return;h.replaceState(Te({},h.state,{scroll:hn()}),"")}}function E(){for(let h of i)h();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",y),document.removeEventListener("visibilitychange",y)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",y),document.addEventListener("visibilitychange",y),{pauseListeners:m,listen:k,destroy:E}}function Ma(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?hn():null}}function np(e){let{history:t,location:n}=window,r={value:Wa(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(m,k,y){let E=e.indexOf("#"),h=E>-1?(n.host&&document.querySelector("base")?e:e.slice(E))+m:tp()+e+m;try{t[y?"replaceState":"pushState"](k,"",h),s.value=k}catch(C){console.error(C),n[y?"replace":"assign"](h)}}function a(m,k){i(m,Te({},t.state,Ma(s.value.back,m,s.value.forward,!0),k,{position:s.value.position}),!0),r.value=m}function u(m,k){let y=Te({},s.value,t.state,{forward:m,scroll:hn()});i(y.current,y,!0),i(m,Te({},Ma(r.value,m,null),{position:y.position+1},k),!1),r.value=m}return{location:r,state:s,push:u,replace:a}}function Ka(e){e=Na(e);let t=np(e),n=op(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Te({location:"",base:e,go:r,createHref:Da.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}var ho=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Qe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Qe||{}),sp={type:ho.Static,value:""},rp=/[a-zA-Z0-9_]/;function ip(e){if(!e)return[[]];if(e==="/")return[[sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${k}": ${C}`)}let n=Qe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,m,k="",y="";function E(){k&&(n===Qe.Static?i.push({type:ho.Static,value:k}):n===Qe.Param||n===Qe.ParamRegExp||n===Qe.ParamRegExpEnd?(i.length>1&&(m==="*"||m==="+")&&t(`A repeatable param (${k}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:k,regexp:y,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):t("Invalid state to consume buffer"),k="")}function h(){k+=m}for(;ut.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Ya(e,t){let n=0,r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}var cp={strict:!1,end:!0,sensitive:!1};function pp(e,t,n){let r=dp(ip(e.path),n),s=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fp(e,t){let n=[],r=new Map;t=er(cp,t);function s(E){return r.get(E)}function i(E,h,C){let g=!C,b=Fa(E);b.aliasOf=C&&C.record;let S=er(t,E),R=[b];if("alias"in E){let M=typeof E.alias=="string"?[E.alias]:E.alias;for(let V of M)R.push(Fa(Te({},b,{components:C?C.record.components:b.components,path:V,aliasOf:C?C.record:b})))}let T,q;for(let M of R){let{path:V}=M;if(h&&V[0]!=="/"){let z=h.record.path,ne=z[z.length-1]==="/"?"":"/";M.path=h.record.path+(V&&ne+V)}if(T=pp(M,h,S),C?C.alias.push(T):(q=q||T,q!==T&&q.alias.push(T),g&&E.name&&!za(T)&&a(E.name)),Ja(T)&&m(T),b.children){let z=b.children;for(let ne=0;ne{a(q)}:Oo}function a(E){if(rr(E)){let h=r.get(E);h&&(r.delete(E),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{let h=n.indexOf(E);h>-1&&(n.splice(h,1),E.record.name&&r.delete(E.record.name),E.children.forEach(a),E.alias.forEach(a))}}function u(){return n}function m(E){let h=vp(E,n);n.splice(h,0,E),E.record.name&&!za(E)&&r.set(E.record.name,E)}function k(E,h){let C,g={},b,S;if("name"in E&&E.name){if(C=r.get(E.name),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:E});S=C.record.name,g=Te(La(h.params,C.keys.filter(q=>!q.optional).concat(C.parent?C.parent.keys.filter(q=>q.optional):[]).map(q=>q.name)),E.params&&La(E.params,C.keys.map(q=>q.name))),b=C.stringify(g)}else if(E.path!=null)b=E.path,C=n.find(q=>q.re.test(b)),C&&(g=C.parse(b),S=C.record.name);else{if(C=h.name?r.get(h.name):n.find(q=>q.re.test(h.path)),!C)throw fo(Be.MATCHER_NOT_FOUND,{location:E,currentLocation:h});S=C.record.name,g=Te({},h.params,E.params),b=C.stringify(g)}let R=[],T=C;for(;T;)R.unshift(T.record),T=T.parent;return{name:S,path:b,params:g,matched:R,meta:hp(R)}}e.forEach(E=>i(E));function y(){n.length=0,r.clear()}return{addRoute:i,resolve:k,removeRoute:a,clearRoutes:y,getRoutes:u,getRecordMatcher:s}}function La(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mp(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hp(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function vp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ya(e,t[i])<0?r=i:n=i+1}let s=yp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function yp(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ya(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ha(e){let t=dt(os),n=dt(ns),r=!1,s=null,i=tt(()=>{let y=Wt(e.to);return t.resolve(y)}),a=tt(()=>{let{matched:y}=i.value,{length:E}=y,h=y[E-1],C=n.matched;if(!h||!C.length)return-1;let g=C.findIndex(po.bind(null,h));if(g>-1)return g;let b=Ba(y[E-2]);return E>1&&Ba(h)===b&&C[C.length-1].path!==b?C.findIndex(po.bind(null,y[E-2])):g}),u=tt(()=>a.value>-1&&Ep(n.params,i.value.params)),m=tt(()=>a.value>-1&&a.value===n.matched.length-1&&nr(n.params,i.value.params));function k(y={}){if(kp(y)){let E=t[Wt(e.replace)?"replace":"push"](Wt(e.to)).catch(Oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>E),E}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:m,navigate:k}}function gp(e){return e.length===1?e[0]:e}var bp=dn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ha,setup(e,{slots:t}){let n=Fe(Ha(e)),{options:r}=dt(os),s=tt(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&gp(t.default(n));return e.custom?i:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),wp=bp;function kp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ep(e,t){for(let n in t){let r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!wt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function Ba(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ja=(e,t,n)=>e??t??n,Cp=dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=dt(ss),s=tt(()=>e.route||r.value),i=dt(ar,0),a=tt(()=>{let k=Wt(i),{matched:y}=s.value,E;for(;(E=y[k])&&!E.components;)k++;return k}),u=tt(()=>s.value.matched[a.value]);uo(ar,tt(()=>a.value+1)),uo(Va,u),uo(ss,s);let m=xe();return He(()=>[m.value,u.value,e.name],([k,y,E],[h,C,g])=>{y&&(y.instances[E]=k,C&&C!==y&&k&&k===h&&(y.leaveGuards.size||(y.leaveGuards=C.leaveGuards),y.updateGuards.size||(y.updateGuards=C.updateGuards))),k&&y&&(!C||!po(y,C)||!h)&&(y.enterCallbacks[E]||[]).forEach(b=>b(k))},{flush:"post"}),()=>{let k=s.value,y=e.name,E=u.value,h=E&&E.components[y];if(!h)return Ga(n.default,{Component:h,route:k});let C=E.props[y],g=C?C===!0?k.params:typeof C=="function"?C(k):C:null,S=be(h,Te({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(E.instances[y]=null)},ref:m}));return Ga(n.default,{Component:S,route:k})||S}}});function Ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var lr=Cp;function Qa(e){let t=fp(e.routes,e),n=e.parseQuery||Ia,r=e.stringifyQuery||ir,s=e.history,i=Io(),a=Io(),u=Io(),m=On(Xt),k=Xt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let y=Zn.bind(null,F=>""+F),E=Zn.bind(null,Ca),h=Zn.bind(null,Ao);function C(F,Z){let Q,te;return rr(F)?(Q=t.getRecordMatcher(F),te=Z):te=F,t.addRoute(te,Q)}function g(F){let Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function b(){return t.getRoutes().map(F=>F.record)}function S(F){return!!t.getRecordMatcher(F)}function R(F,Z){if(Z=Te({},Z||m.value),typeof F=="string"){let v=xn(n,F,Z.path),D=t.resolve({path:v.path},Z),O=s.createHref(v.fullPath);return Te(v,D,{params:h(D.params),hash:Ao(v.hash),redirectedFrom:void 0,href:O})}let Q;if(F.path!=null)Q=Te({},F,{path:xn(n,F.path,Z.path).path});else{let v=Te({},F.params);for(let D in v)v[D]==null&&delete v[D];Q=Te({},F,{params:E(v)}),Z.params=E(Z.params)}let te=t.resolve(Q,Z),ye=F.hash||"";te.params=y(h(te.params));let Ee=_a(r,Te({},F,{hash:Ea(ye),path:te.path})),p=s.createHref(Ee);return Te({fullPath:Ee,hash:ye,query:r===ir?Pa(F.query):F.query||{}},te,{redirectedFrom:void 0,href:p})}function T(F){return typeof F=="string"?xn(n,F,m.value.path):Te({},F)}function q(F,Z){if(k!==F)return fo(Be.NAVIGATION_CANCELLED,{from:Z,to:F})}function M(F){return ne(F)}function V(F){return M(Te(T(F),{replace:!0}))}function z(F,Z){let Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){let{redirect:te}=Q,ye=typeof te=="function"?te(F,Z):te;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=T(ye):{path:ye},ye.params={}),Te({query:F.query,hash:F.hash,params:ye.path!=null?{}:F.params},ye)}}function ne(F,Z){let Q=k=R(F),te=m.value,ye=F.state,Ee=F.force,p=F.replace===!0,v=z(Q,te);if(v)return ne(Te(T(v),{state:typeof v=="object"?Te({},ye,v.state):ye,force:Ee,replace:p}),Z||Q);let D=Q;D.redirectedFrom=Z;let O;return!Ee&&Sa(r,te,Q)&&(O=fo(Be.NAVIGATION_DUPLICATED,{to:D,from:te}),Me(te,te,!0,!1)),(O?Promise.resolve(O):P(D,te)).catch(I=>Ht(I)?Ht(I,Be.NAVIGATION_GUARD_REDIRECT)?I:qe(I):re(I,D,te)).then(I=>{if(I){if(Ht(I,Be.NAVIGATION_GUARD_REDIRECT))return ne(Te({replace:p},T(I.to),{state:typeof I.to=="object"?Te({},ye,I.to.state):ye,force:Ee}),Z||D)}else I=J(D,te,!0,p,ye);return G(D,te,I),I})}function ee(F,Z){let Q=q(F,Z);return Q?Promise.reject(Q):Promise.resolve()}function _(F){let Z=ze.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function P(F,Z){let Q,[te,ye,Ee]=qa(F,Z);Q=rs(te.reverse(),"beforeRouteLeave",F,Z);for(let v of te)v.leaveGuards.forEach(D=>{Q.push(Qt(D,F,Z))});let p=ee.bind(null,F,Z);return Q.push(p),ke(Q).then(()=>{Q=[];for(let v of i.list())Q.push(Qt(v,F,Z));return Q.push(p),ke(Q)}).then(()=>{Q=rs(ye,"beforeRouteUpdate",F,Z);for(let v of ye)v.updateGuards.forEach(D=>{Q.push(Qt(D,F,Z))});return Q.push(p),ke(Q)}).then(()=>{Q=[];for(let v of Ee)if(v.beforeEnter)if(wt(v.beforeEnter))for(let D of v.beforeEnter)Q.push(Qt(D,F,Z));else Q.push(Qt(v.beforeEnter,F,Z));return Q.push(p),ke(Q)}).then(()=>(F.matched.forEach(v=>v.enterCallbacks={}),Q=rs(Ee,"beforeRouteEnter",F,Z,_),Q.push(p),ke(Q))).then(()=>{Q=[];for(let v of a.list())Q.push(Qt(v,F,Z));return Q.push(p),ke(Q)}).catch(v=>Ht(v,Be.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function G(F,Z,Q){u.list().forEach(te=>_(()=>te(F,Z,Q)))}function J(F,Z,Q,te,ye){let Ee=q(F,Z);if(Ee)return Ee;let p=Z===Xt,v=mo?history.state:{};Q&&(te||p?s.replace(F.fullPath,Te({scroll:p&&v&&v.scroll},ye)):s.push(F.fullPath,ye)),m.value=F,Me(F,Z,Q,p),qe()}let X;function W(){X||(X=s.listen((F,Z,Q)=>{if(!Ue.listening)return;let te=R(F),ye=z(te,Ue.currentRoute.value);if(ye){ne(Te(ye,{replace:!0,force:!0}),te).catch(Oo);return}k=te;let Ee=m.value;mo&&Ta(sr(Ee.fullPath,Q.delta),hn()),P(te,Ee).catch(p=>Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?p:Ht(p,Be.NAVIGATION_GUARD_REDIRECT)?(ne(Te(T(p.to),{force:!0}),te).then(v=>{Ht(v,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===es.pop&&s.go(-1,!1)}).catch(Oo),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(p,te,Ee))).then(p=>{p=p||J(te,Ee,!1),p&&(Q.delta&&!Ht(p,Be.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===es.pop&&Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),G(te,Ee,p)}).catch(Oo)}))}let se=Io(),ce=Io(),de;function re(F,Z,Q){qe(F);let te=ce.list();return te.length?te.forEach(ye=>ye(F,Z,Q)):console.error(F),Promise.reject(F)}function _e(){return de&&m.value!==Xt?Promise.resolve():new Promise((F,Z)=>{se.add([F,Z])})}function qe(F){return de||(de=!F,W(),se.list().forEach(([Z,Q])=>F?Q(F):Z()),se.reset()),F}function Me(F,Z,Q,te){let{scrollBehavior:ye}=e;if(!mo||!ye)return Promise.resolve();let Ee=!Q&&Aa(sr(F.fullPath,0))||(te||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>ye(F,Z,Ee)).then(p=>p&&Ra(p)).catch(p=>re(p,F,Z))}let Pe=F=>s.go(F),Se,ze=new Set,Ue={currentRoute:m,listening:!0,addRoute:C,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:b,resolve:R,options:e,push:M,replace:V,go:Pe,back:()=>Pe(-1),forward:()=>Pe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ce.add,isReady:_e,install(F){F.component("RouterLink",wp),F.component("RouterView",lr),F.config.globalProperties.$router=Ue,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Wt(m)}),mo&&!Se&&m.value===Xt&&(Se=!0,M(s.location).catch(te=>{}));let Z={};for(let te in Xt)Object.defineProperty(Z,te,{get:()=>m.value[te],enumerable:!0});F.provide(os,Ue),F.provide(ns,Ko(Z)),F.provide(ss,m);let Q=F.unmount;ze.add(F),F.unmount=function(){ze.delete(F),ze.size<1&&(k=Xt,X&&X(),X=null,m.value=Xt,Se=!1,de=!1),Q()}}};function ke(F){return F.reduce((Z,Q)=>Z.then(()=>_(Q)),Promise.resolve())}return Ue}function Xa(e){return dt(ns)}function Za(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function dr(e=null,t=new Map){let n=Fe({}),r=[],s=!1,i=new Proxy(n,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(n,"parent",{value:e,configurable:!0}),Object.defineProperty(n,"viewState",{get:()=>i}),i.watch=(a,u,m=!1,k=!0)=>{let y=typeof a=="function"?()=>a(i):()=>Za(i,a),E=He(y,u,{deep:m,flush:"post"});return r.push(E),k&&ot(()=>{s||u(y(),y())}),E},i.watchGroup=(a,u,m=!0)=>i.watch(()=>a.map(k=>Za(i,k)),u,!0,m),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let m=()=>t.get(a)?.delete(u);return r.push(m),m},i.emit=(a,...u)=>{for(let m of[...t.get(a)||[]])m({},...u)},i.dispose=()=>{s=!0,r.splice(0).reverse().forEach(a=>a())},Go(i.dispose),i}function ut(){let e=new Set,t=new Set,n=!1,r=(i,a=0)=>{if(n)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let s=(i,a)=>{if(n)return;let u=setInterval(i,a);return t.add(u),u};return s.cancel=i=>{clearInterval(i),t.delete(i)},Go(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Zt(){let e=new Set;return Go(()=>{e.forEach(t=>t()),e.clear()}),(t,n,r,s)=>{t.addEventListener(n,r,s);let i=()=>{t.removeEventListener(n,r,s),e.delete(i)};return e.add(i),i}}function ur(e,t,n){let r,s=!1,i="form-draft:"+n,a=()=>Object.fromEntries(t.map(h=>[h,e[h]])),u=()=>JSON.stringify(a()),m=h=>{for(let C of t)Object.prototype.hasOwnProperty.call(h,C)&&(e[C]=h[C]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},k=()=>{try{window.sessionStorage.removeItem(i)}catch{}},y=(h=!1)=>{if(r!==void 0){if(h&&document.querySelectorAll("input, select, textarea").forEach(C=>{C._field?.binding.state===e&&C._field.timer&&C._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){k();return}try{window.sessionStorage.setItem(i,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:a()})),e.draftSaved=!0}catch{}}},E=()=>y(!0);return e.on("routeLeave",E),window.addEventListener("beforeunload",E),e.on("dispose",()=>window.removeEventListener("beforeunload",E)),{restore(){r=u();let h;try{h=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let C=h&&h.account===(e.user?.username||null)&&Date.now()-h.savedAt<30*6e4&&h.values;return C&&(m(h.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>y(),!0)),e.unsavedChanges=u()!==r,!!C},checkpoint(){return JSON.parse(u())},accept(h){r=JSON.stringify(h),e.draftRestored=!1,y()},discard(){document.querySelectorAll("input, select, textarea").forEach(h=>{h._field?.binding.state!==e||!h._field.timer||(clearTimeout(h._field.timer),h._field.timer=null,h.value=h._field.binding.value??"")}),r!==void 0&&m(JSON.parse(r)),e.draftRestored=!1,y()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,k()}}}var vn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"The repository owner needs to renew their GitHub connection before this content can be loaded.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};function cr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(vn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var is="XXXX",Sp=e=>{is=e||"XXXX"},xa=(e=is)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},el=(e,t=is)=>{let n=xa(t);if(!n||!e||!e.textContent.includes(t))return;let r=e.ownerDocument,s=r.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(;s.nextNode();)i.push(s.currentNode);for(let a of i){let u=a.nodeValue,m=a.parentElement;if(!u.includes(t)||!m||m.closest("script, style, mark.redaction, .mermaid"))continue;let k=m.closest('code[class*="language-"]');if(k&&!k.contains(e))continue;let y=r.createDocumentFragment(),E=0;for(let h of u.matchAll(n)){y.append(u.slice(E,h.index));let C=r.createElement("mark");C.className="redaction",C.title="Redacted by Anonymous GitHub",C.textContent=h[0],y.append(C),E=h.index+h[0].length}y.append(u.slice(E)),a.replaceWith(y)}},tl=(e,t=is)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString(""+e+"","text/html");return el(n.body,t),n.body.innerHTML};async function ol(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let n=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),n?.focus()}}function Np(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],n=t.indexOf(e.currentTarget),r=e.key==="Home"?0:e.key==="End"?t.length-1:(n+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[r]?.focus(),t[r]?.click()}var nl=function(e,t,n,r){e.previewTabKeydown=Np,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(y){let E=e.toasts.indexOf(y);E!==-1&&e.toasts.splice(E,1)},e.addToast=function(y){return e.toasts.push(y),r(function(){e.removeToast(y)},8e3),y};let s=/^\/(r|repository|pr|gist)\//;e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path()),e.darkMode=function(y){localStorage.setItem("darkMode",y),e.isDarkMode=y;let E="/css/prism-okaidia.css",h="/css/prism.css";if(y){$("body").addClass("dark-mode");let g=document.createElement("link");g.href=E,g.rel="stylesheet",document.head.append(g),$(`link[href='${h}']`).remove()}else{$("body").removeClass("dark-mode");let g=document.createElement("link");g.href=h,g.rel="stylesheet",document.head.append(g),$(`link[href='${E}']`).remove()}let C=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");C&&(C.style.backgroundColor=y?"#34312C":"#1A1815",C.style.color="#FAF9F6"),e.emit("dark-mode",y)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let i;e.respondToEmailPrompt=async y=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let E=await t.post("/github/connections/email",{action:y,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});y==="save"&&(e.user.notificationEmail=E.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(E){e.emailPromptError=E.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function a(){t.get("/api/user").then(y=>{y&&(e.user=y.data),e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(i=document.activeElement,e.emailPromptOpen=!0,r(()=>{let E=document.getElementById("email-prompt");E?.showModal?E.showModal():E?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null})}a();function u(){t.get("/api/options").then(y=>{y&&(e.site_options=y.data),Sp(y?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}u();function m(){t.get("/api/message").then(y=>{y&&(e.generalMessage=y.data)},()=>{e.generalMessage=null})}m();function k(y,E){E&&(e.title=E.title),e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path())}e.on("routeChange",k),e.on("routeUpdate",k)},sl=function(e,t){let n=Zt(),r=ut(),s=()=>{let i=window.location.hash.slice(1),a=document.getElementById(i);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let u=document.getElementById(a.getAttribute("aria-labelledby"));u?.setAttribute("tabindex","-1"),u?.focus({preventScroll:!0}),u?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>r.timeout(s,0)),n(window,"hashchange",s),r.timeout(s,0)},rl=function(e,t,n,r,s){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let i="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let k=await t.get("/github/connections/email");e.accountEmail=k.data.notificationEmail||"",i=k.data.csrf,e.emailCSRFReady=!!i}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!i)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let k=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":i}});e.accountEmail=k.data.notificationEmail,e.user&&(e.user.notificationEmail=k.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(k=>{e.quota=k},console.error);let a=ur(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function u(){t.get("/api/user/default").then(k=>{let y=k.data||{};y.terms&&(e.terms=y.terms.join(`
-`)),e.options=Object.assign({},e.options,y.options),a.restore()})}u();let m=null;e.saveDefault=k=>{if(k&&k.preventDefault&&k.preventDefault(),e.saving)return;let y=a.checkpoint(),E={terms:e.terms.split(`
-`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",E).then(()=>{a.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",m&&r.cancel(m),m=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let C=h&&h.data&&h.data.error,g="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+C),n("ERRORS.unknown_error")]).then(([b,S])=>{e.error=C&&b!==S?b:g},()=>{e.error=g})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},il=function(e,t,n){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{n.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},al=function(e,t,n,r,s){e.user&&!e.user.status&&n.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&n.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/signin":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,m){let k={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(k===void 0)return;u.preventDefault();let y=e.features.length,E=k==="first"?0:k==="last"?y-1:(m+k+y)%y;e.feature=e.features[E].key,s(()=>{let h=r.document.getElementById("feature-tab-"+e.feature);h&&h.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let m={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return m;let k=new Array(u.length-1);for(let b=1;b=2){let b=k[y-2];b&&(m.pctChange=(m.deltaToday-b)/b*100)}return m.pctAbs=Math.round(Math.abs(m.pctChange)),m.isUp=m.pctChange>=0,m}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let m=u.data||[];e.history={repositories:a(m.map(k=>k.nbRepositories||0)),users:a(m.map(k=>k.nbUsers||0)),pageViews:a(m.map(k=>k.nbPageViews||0)),pullRequests:a(m.map(k=>k.nbPullRequests||0))}})},ll=function(e,t,n,r,s,i){let a=ut();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,ot(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Zt()(document,"click",_=>{e.quotaExpanded&&!_.target.closest?.(".dashboard-quota")&&(e.quotaExpanded=!1)}),e.filtersExpanded=!1,e.projectView="all",e.selectedProject=null,e.projectName="",e.nameSaving=!1,e.nameError="",e.nameMessage="",e.needsAttention=_=>_.status==="error"||_._broken||m(_.status)==="progress"&&_._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=_=>{e.projectView=_,_==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=_=>"project-details-"+encodeURIComponent(_._type+":"+(_._id||_._source||"unknown")),e.showProjectDetails=async _=>{e.selectedProject=_,e.projectName=_.projectName||"",e.nameError="",e.nameMessage="",await ot();let P=document.getElementById(e.projectDetailsId(_));P?.focus(),P?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=_=>{e.selectedProject=null,ot(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(_._type+":"+_._id)}"]`)?.focus())},e.saveProjectName=async _=>{if(e.nameSaving||!_._id)return;let P=e.projectName.trim();if(P.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:_._type,id:_._id,name:P});_.projectName=G.data.name,_._label=_.projectName||_._fallbackLabel,e.selectedProject===_&&(e.nameMessage=P?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await M(),e.selectedProject===_&&(e.selectedProject=e.items.find(J=>J._type===_._type&&J._id===_._id)||null))}catch{e.selectedProject===_&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async _=>{if(!_._viewUrl||e.copyingId)return;let P=new URL(_._viewUrl,s.location.origin).href;e.copyingId=_._type+":"+_._id;try{await ol(P),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:P})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function m(_){return _==="ready"||_==="error"?_:_==="expired"||_==="expiring"?"expired":_==="removed"||_==="removing"?"removed":(u.indexOf(_)>-1,"progress")}let k=7200*1e3,y="dashboard.filterPrefs",E={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},h=loadFilterPrefs(y)||{};e.typeFilter=h.typeFilter||E.typeFilter,e.filters={status:Object.assign({},E.filters.status,h.filters&&h.filters.status||{})},e.orderBy=h.orderBy||E.orderBy;let C={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=C,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let _=C[e.sortField()];return _?_.label:"Custom"},e.isSortedBy=_=>e.sortField()===_,e.setSort=(_,P)=>{typeof P!="boolean"&&(P=e.isSortedBy(_)?!e.sortDesc():!!(C[_]&&C[_].defaultDesc)),e.orderBy=(P?"-":"")+_},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(y,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(_=>{e.quota=_},console.error);function g(_,P,G,J,X,W){_.pageView||(_.pageView=0),_.lastView||(_.lastView=""),_.options=_.options||{},_.options.terms=(_.options.terms||[]).filter(ce=>ce),_._id=P||"",_._source=J,_._broken=!P,_._name=P||J||"(unnamed)",_._fallbackLabel=_._type==="gist"?"Gist "+(P||J||"without an ID"):J||G||_._name,_._label=_.projectName||_._fallbackLabel,_._editUrl=P?X:null,_._viewUrl=P?W:null,_._broken&&(_.status="error",_.statusMessage="incomplete_record"),_._statusKey=m(_.status);let se=_.anonymizeDate||_.lastView;return _._stale=_._statusKey==="progress"&&!!se&&Date.now()-new Date(se).getTime()>k,_.status==="expired"||_.status==="expiring"?_._expiry={kind:"expired",date:_.options.expirationDate}:_.status!=="ready"?_._expiry={kind:"none"}:_.options.expirationMode==="never"||!_.options.expirationDate?_._expiry={kind:"never"}:_._expiry={kind:"date",date:_.options.expirationDate},_}function b(_){return t.get(_).then(P=>P.data||[],P=>(console.error(P),[]))}function S(){return e.loading=!0,r.all([b("/api/user/anonymized_repositories"),b("/api/user/anonymized_pull_requests"),b("/api/user/anonymized_gists")]).then(_=>{let P=_[0],G=_[1],J=_[2],X=[];P.forEach(W=>{W._type="repo";let se=W.source||{};X.push(g(W,W.repoId,W.repoId,se.fullName,"/anonymize/"+W.repoId,"/r/"+W.repoId+"/"))}),G.forEach(W=>{W._type="pr";let se=W.source||{};X.push(g(W,W.pullRequestId,W.pullRequestId,se.repositoryFullName?se.repositoryFullName+"#"+se.pullRequestId:void 0,"/pull-request-anonymize/"+W.pullRequestId,"/pr/"+W.pullRequestId+"/"))}),J.forEach(W=>{W._type="gist";let se=W.source||{};X.push(g(W,W.gistId,W.gistId,se.gistId,"/gist-anonymize/"+W.gistId,"/gist/"+W.gistId+"/"))}),e.items=X,e.loading=!1})}let R=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function q(_){let P=_.source||{};return _._type==="repo"?g(_,_.repoId,_.repoId,P.fullName,"/anonymize/"+_.repoId,"/r/"+_.repoId+"/"):_._type==="pr"?g(_,_.pullRequestId,_.pullRequestId,P.repositoryFullName?P.repositoryFullName+"#"+P.pullRequestId:void 0,"/pull-request-anonymize/"+_.pullRequestId,"/pr/"+_.pullRequestId+"/"):g(_,_.gistId,_.gistId,P.gistId,"/gist-anonymize/"+_.gistId,"/gist/"+_.gistId+"/")}function M(_=!1){if(T)return S();let P=++R;return e.loading=!_,e.loadingMore=_,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:_?e.dashboardCursor:void 0}}).then(G=>{if(P===R){if(!Array.isArray(G.data?.items))return T=!0,S();e.items=(_?e.items:[]).concat(G.data.items.map(q)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data}},G=>{if(P===R){if(G.status===404)return T=!0,S();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{P===R&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>M(!0);let V;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(V&&a.timeout.cancel(V),V=a.timeout(()=>M(),150))},!1),e.watch("filters",()=>{T||M()},!0,!1),e.on("dispose",()=>{R++}),M(),e.openItem=(_,P)=>{if(!_._viewUrl)return;let G=P&&P.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(s.location.href=_._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(_=>e.filters.status[_]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(_=>e.filters.status[_]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.hiddenStatusCount()>1,e.clearFilters=()=>{e.projectView="all",e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(_=>{e.filters.status[_]=!0})};function z(_,P,G,J){t.get("/api/repo/"+_).then(async X=>{let W=J!==void 0&&J!==X.data.status;for(let se of e.items)if(se._type==="repo"&&se.repoId==_){W=W||se.status!==X.data.status;let ce=e.needsAttention(se);se.status=X.data.status,se.statusMessage=X.data.statusMessage,se._statusKey=m(se.status),se._statusKey!=="progress"&&(se._stale=!1);let de=e.needsAttention(se);e.dashboardTotals&&ce!==de&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(de?1:-1)));break}if(W&&!T){e.dashboardCursor=null;let se=e.selectedProject;await M(),se&&e.selectedProject===se&&(e.selectedProject=e.items.find(ce=>ce._type===se._type&&ce._id===se._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){P(X.data);return}a.timeout(()=>z(_,P,G,X.data.status),2500)},G)}let ne=_=>_==="repo"?"repository":_==="gist"?"gist":"pull request",ee=_=>_==="repo"?"/api/repo":_==="gist"?"/api/gist":"/api/pr";e.removeItem=_=>{let P=ne(_._type);if(confirm(`Are you sure that you want to remove the ${P} ${_._id}?`)){let G=Fe({title:`Removing ${_._id}...`,date:new Date,body:`The ${P} ${_._id} is going to be removed.`});e.addToast(G);let J=`${ee(_._type)}/${_._id}`;t.delete(J).then(()=>{_._type==="repo"?z(_._id,()=>{G.title=`${_._id} is removed.`,G.body=`The ${P} ${_._id} is removed.`},void 0,_.status):(G.title=`${_._id} is removed.`,G.body=`The ${P} ${_._id} is removed.`,M())},X=>{G.title=`Error during the removal of ${_._id}.`,G.body=X.body,M()})}},e.refreshItem=_=>{let P=ne(_._type),G=Fe({title:`Refreshing ${_._id}...`,date:new Date,body:`The ${P} ${_._id} is going to be refreshed.`});e.addToast(G);let J=W=>{G.title=`Error during the refresh of ${_._id}.`,G.body=W.data?.error||W.body||"The refresh could not be completed. Please try again.",M()},X=`${ee(_._type)}/${_._id}/refresh`;t.post(X).then(()=>{_._type==="repo"?z(_._id,W=>{if(W.status!=="ready"){J({body:W.statusMessage||`The repository is ${W.status}.`});return}G.title=`${_._id} is refreshed.`,G.body=`The ${P} ${_._id} is refreshed.`},J,_.status):(G.title=`${_._id} is refreshed.`,G.body=`The ${P} ${_._id} is refreshed.`,M())},J)},e.extendItem=_=>{let P=ne(_._type),G=Fe({title:`Extending ${_._id}...`,date:new Date,body:`The expiration of ${P} ${_._id} is going to be extended by 6 months.`});e.addToast(G);let J=`${ee(_._type)}/${_._id}/extend`;t.post(J).then(()=>{_._type==="repo"?z(_._id,()=>{G.title=`${_._id} is extended.`,G.body=`The expiration of ${P} ${_._id} is extended by 6 months.`},void 0,_.status):(G.title=`${_._id} is extended.`,G.body=`The expiration of ${P} ${_._id} is extended by 6 months.`,M())},X=>{G.title=`Error during the extension of ${_._id}.`,G.body=X.data&&X.data.error||X.body,M()})},e.itemFilter=_=>{if(e.projectView==="attention"&&!e.needsAttention(_)||e.typeFilter!=="all"&&_._type!==e.typeFilter||e.filters.status[_._statusKey]===!1)return!1;let P=e.search.trim().toLowerCase();return!!(P.length==0||_._label&&String(_._label).toLowerCase().indexOf(P)>-1||_._source&&String(_._source).toLowerCase().indexOf(P)>-1||_._id&&String(_._id).toLowerCase().indexOf(P)>-1||_.conference&&String(_.conference).toLowerCase().indexOf(P)>-1)}};var dl=function(e,t,n){let r=ut();e.repoId=n.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let s=null;e.copyShareUrl=async()=>{try{await ol(e.shareUrl),e.copied=!0,s&&r.timeout.cancel(s),s=r.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var i=null;let a=null,u=!1;function m(y){e.rateLimitResetAt=y,i&&r.interval.cancel(i);function E(){var h=Math.max(0,Math.ceil((y-Date.now())/1e3));if(h<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var C=Math.floor(h/60),g=h%60;e.rateLimitCountdown=C>0?C+"m "+g+"s":g+"s"}}E(),i=r.interval(E,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function k(y){if(!y)return y;var E=y.match(/^rate_limited:(\d+)$/);return E?(m(parseInt(E[1],10)),null):(e.rateLimitResetAt=0,y)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(y=>{if(!u){e.repo=y.data,y.data.rateLimitResetAt?m(y.data.rateLimitResetAt):e.repo.statusMessage=k(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var E=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(E=!1),E&&(a=r.timeout(e.getStatus,2e3))}},y=>{e.error=y.data.error})},e.getStatus()},as=function(e,t,n,r,s,i,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let u=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!u?.matches,u?.addEventListener&&Zt()(u,"change",p=>{e.mobileWorkspace=p.matches}),e.selectMobilePane=p=>{e.mobilePane=p};let m=0,k=!1,y=new Set,E=(p,v=!1)=>!k&&p.generation===m&&p.url===e.sourceUrl.trim()&&p.connection===e.githubConnection&&(!v||p.branch===e.source.branch),h=()=>{let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return y.add(p),e.sourceLoading=!0,p},C=p=>{y.delete(p),k||(e.sourceLoading=[...y].some(v=>E(v)))};e.on("dispose",()=>{k=!0,m++});let g=null,b=p=>p.gistId&&!p.repo?"gist:"+p.gistId.toLowerCase():(p.owner+"/"+p.repo).toLowerCase()+(p.pullRequestId?"/pull/"+p.pullRequestId:""),S=ur(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{S.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(m++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let R=()=>{let p={};for(let v of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])p[v]=e[v];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:p}))};e.connectGistApp=()=>{R(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(s.path())},e.connectGistOAuth=()=>{R(),window.location.href="/github/login?returnTo="+encodeURIComponent(s.path())},e.grantGitHubAccess=()=>{R();let p=s.path(),v=P(e.sourceUrl)||"",D=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=D+"?returnTo="+encodeURIComponent(p)+"&repository="+encodeURIComponent(v)+"&install=1"},e.chooseGitHubConnection=async p=>{e.githubConnection=p,e.readme="",e.sourceUrl&&await J()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function T(){let p=new Date;return p.setMonth(p.getMonth()+6),p}e.options.expirationDate=T();function q(p){let v=p.getFullYear(),D=String(p.getMonth()+1).padStart(2,"0"),O=String(p.getDate()).padStart(2,"0");return`${v}-${D}-${O}`}e.minExpirationDate=q(new Date);let M=new Date;M.setFullYear(M.getFullYear()+1),e.maxExpirationDate=q(M),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1,e.previousConfigurations=[],e.previousConfigurationId="";let V,z=p=>String(p||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function ne(){if(e.isUpdate||r.repoId||r.pullRequestId||r.gistId)return;let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection};try{V||(V=t.get("/api/user/anonymized_repositories").then(O=>O.data));let v=await V;if(!E(p))return;let D=z(P(p.url));e.previousConfigurations=v.filter(O=>O.repoId&&O.options&&z(O.source?.fullName)===D).sort((O,I)=>(Date.parse(I.anonymizeDate)||0)-(Date.parse(O.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{V=void 0}}e.existingConfigurationUrl=()=>{let p=e.previousConfigurations.find(v=>v.repoId===e.previousConfigurationId);return p?"/anonymize/"+encodeURIComponent(p.repoId):null};function ee(p){t.get("/api/user/default").then(v=>{let D=v.data;D.terms&&(e.defaultTerms=D.terms.join(`
-`)),e.options=Object.assign({},e.options,D.options),e.options.expirationDate=D.options&&D.options.expirationDate?new Date(D.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),p&&p()})}function _(p,v,D){e.anonymize&&e.anonymize[p]&&e.anonymize[p].setValidity(v,D)}function P(p){try{let v=parseGithubUrl(p);if(v&&v.owner&&v.repo)return v.owner+"/"+v.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!r.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||P(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let p=h();try{let v=await t.get("/github/connections");if(e.githubConnections=v.data,!v.data.appEnabled)return;let D=await t.post("/github/connections/migrate",{type:"repository",id:r.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":v.data.csrf}});if(!E(p))return;e.error=null,D.data.fullName&&(e._originalFullName=D.data.fullName,e.source.fullName=D.data.fullName,e.sourceUrl="https://github.com/"+D.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{E(p)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,C(p)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await W()}catch{}}};function G(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:P(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function J(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function X(){let p;try{p=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!p||p.path!==s.path()||Date.now()-p.savedAt>=30*6e4)return S.restore()?(e.sourceUrl&&await J(),!0):!1;S.restore();for(let v of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(p.draft,v)&&(e[v]=p.draft[v]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await J(),sessionStorage.removeItem("github-access-draft"),!0}ee(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(X,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async p=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(p.data.status),e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.fullName,e._originalFullName=p.data.source.fullName,e.terms=p.data.options.terms.filter(v=>v).join(`
-`),e.source=p.data.source,e.role=p.data.role||"owner",e.coauthors=p.data.coauthors||[],e._originalBranch=p.data.source.branch,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,e.repositoryID=p.data.source.repositoryID,e._originalRepositoryID=p.data.source.repositoryID,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X()&&(await Promise.all([W(),se()]),_e())},()=>{s.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async p=>{if(e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.repositoryFullName+"/pull/"+p.data.source.pullRequestId,e.terms=p.data.options.terms.filter(v=>v).join(`
-`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X())try{await qe()}catch{}},()=>{s.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async p=>{e.sourceUrl="https://gist.github.com/"+p.data.source.gistId,e.terms=p.data.options.terms.filter(v=>v).join(`
-`),e.source=p.data.source,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),g=b(parseGithubUrl(e.sourceUrl)),!await X()&&await ze()},()=>{s.url("/404")}))}),t.get("/github/connections").then(p=>{e.githubConnections=p.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&p.data.appEnabled&&p.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&J())}).catch(()=>{}),e.urlSelected=async(p=!1)=>{let v=++m;e.previousConfigurations=[],e.previousConfigurationId="";let D;try{D=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",_("sourceUrl","github",!1);return}let O=b(D),I=p||g===O;g=O,e.sourceUrlError="",_("sourceUrl","github",!0);let U=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,U&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!I&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],I||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),Se.cancel(),F.cancel(),Me.clear(),Ue.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=I;try{D.gistId&&!D.repo?(e.detectedType="gist",e.source={gistId:D.gistId},await ze()):D.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:D.owner+"/"+D.repo,pullRequestId:D.pullRequestId},await qe()):(e.detectedType="repo",ne(),await Promise.all([W(),se()]),_e())}catch{}finally{v===m&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let p=e.branches.filter(D=>D.name==e.source.branch)[0];if(!p)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=p.commit),e.readme=p.readme,await se(),_e()}),e.getBranches=async p=>{let v=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${v.owner}/${v.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0||e.reconnectingSource?"1":"0",repositoryID:G()}});if(!E(D))return;e.branches=O.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let I=e.branches.filter(U=>U.name==e.source.branch);I.length>0&&(!(!e.reconnectingSource&&!p&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=I[0].commit),e.readme=I[0].readme,await se(p))}catch(O){if(!E(D))return;e.branches=[],e.sourceUnreachable=O&&(O.status===404||O.data&&O.data.error==="repo_not_found");let I=O&&O.data&&O.data.error||(O&&O.status===404?"repo_not_found":"unknown_error");i("ERRORS."+I).then(U=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:U}),e.error=U},console.error),typeof _=="function"&&_("sourceUrl","missing",!1)}finally{C(D)}};async function W(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te();let D=await t.get(`/api/repo/${p.owner}/${p.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:G(),force:"1"}});if(!E(v))return;e.details=D.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(D){if(!E(v))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}async function se(p){if(e.readme&&!p)return e.readme;let v=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${v.owner}/${v.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0?"1":"0",branch:e.source.branch,repositoryID:G()}});E(D,!0)&&(e.readme=O.data)}catch{E(D,!0)&&(e.readme="")}finally{C(D)}}function ce(){let p={terms:e.terms?e.terms.split(`
-`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(p.branchName=e.source.branch);try{let v=parseGithubUrl(e.sourceUrl);p.repoName=`${v.owner}/${v.repo}`}catch{}return p}function de(p,v,D){let O=null,I=0,U=()=>{if(e.detectedType!==p)return;O&&a.cancel(O);let L=++I;e.previewStatus="loading",O=a(()=>{O=null;let H=v();if(!H){e.previewStatus="idle";return}t.post("/api/anonymize-preview",H).then(Y=>{L===I&&(D(Y.data,H),e.previewStatus="ready")}).catch(()=>{L===I&&(e.previewStatus="error")})},200)};return U.cancel=()=>{I++,O&&a.cancel(O),O=null},e.on("dispose",U.cancel),U}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()};let re=de("repo",()=>e.readme?{content:e.readme,options:ce()}:null,p=>{if(typeof p?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=p.content;let v="";try{let O=parseGithubUrl(e.sourceUrl),I=e.source.branch||e.details&&e.details.defaultBranch||"main";v=`https://github.com/${O.owner}/${O.repo}/raw/${I}/`}catch{}let D=renderMD(e.anonymize_readme,v);e.html_readme=D,a(Prism.highlightAll,150)});function _e(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function qe(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te();let D=await t.get(`/api/pr/${p.owner}/${p.repo}/${p.pullRequestId}`,{params:{connection:e.githubConnection}});if(!E(v))return;e.details=D.data,e.pullRequestId||(e.pullRequestId=p.repo+"-PR"+p.pullRequestId+"-"+generateRandomId(4))}catch(D){if(!E(v))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}let Me=Fe(new Map);function Pe(){let p=new Set,v=e.details&&e.details.pullRequest;if(!v)return p;typeof v.title=="string"&&p.add(v.title),typeof v.body=="string"&&p.add(v.body),typeof v.diff=="string"&&p.add(v.diff);let D=v.comments||[];for(let O of D)typeof O.author=="string"&&p.add(O.author),typeof O.body=="string"&&p.add(O.body);return p}let Se=de("pr",()=>{let p=Pe(),v=Array.from(p);return v.length===0?null:{contents:v,options:ce()}},(p,v)=>{if(!Array.isArray(p?.contents)||p.contents.length!==v.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=v.contents,O=new Map;for(let I=0;IMe.set(U,I))});e.anonymizePrContent=function(p){return p&&(Me.has(p)?Me.get(p):"")};async function ze(){let p=parseGithubUrl(e.sourceUrl),v=h();try{te(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let D=await t.get(`/api/gist/source/${p.gistId}`);if(!E(v))return;e.details=D.data,e.gistId||(e.gistId="gist-"+p.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(D){if(!E(v))return;if(D.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,_("sourceUrl","missing",!1);return}if(D.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,_("sourceUrl","missing",!1);return}throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),_("sourceUrl","missing",!1),D}finally{C(v)}}let Ue=Fe(new Map);function ke(){let p=new Set,v=e.details&&e.details.gist;if(!v)return p;typeof v.description=="string"&&p.add(v.description),typeof v.ownerLogin=="string"&&p.add(v.ownerLogin);let D=v.files||[];for(let I of D)typeof I.filename=="string"&&p.add(I.filename),typeof I.content=="string"&&p.add(I.content);let O=v.comments||[];for(let I of O)typeof I.author=="string"&&p.add(I.author),typeof I.body=="string"&&p.add(I.body);return p}let F=de("gist",()=>{let p=ke(),v=Array.from(p);return v.length===0?null:{contents:v,options:ce()}},(p,v)=>{if(!Array.isArray(p?.contents)||p.contents.length!==v.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=v.contents,O=new Map;for(let I=0;IUe.set(U,I)),Z()});e.anonymizeGistContent=function(p){return p&&(Ue.has(p)?Ue.get(p):"")},e.previewGistFiles=[];function Z(){let p=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=p.map(v=>({filename:e.anonymizeGistContent(v.filename),content:e.anonymizeGistContent(v.content),language:v.language}))}e.watch("details.gist.files",Z,!0),e.watch("terms",Z);function Q(){let p=e.conference;if(e.conference_data=null,!p)return;let v=e.isUpdate&&p===e._originalConference;t.get("/api/conferences/"+p).then(D=>{e.conference===p&&(e.conference_data=D.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!v&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===p&&(e.conference_data=null)})}function te(){_("repoId","used",!0),_("repoId","format",!0),_("pullRequestId","used",!0),_("pullRequestId","format",!0),_("gistId","used",!0),_("gistId","format",!0),_("sourceUrl","used",!0),_("sourceUrl","missing",!0),_("sourceUrl","access",!0),_("sourceUrl","github",!0),_("commit","exists",!0),_("conference","activated",!0),_("terms","format",!0),e.termsRegexWarning=!1}function ye(){let p=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||p&&p.invalid?(p&&p.setDirty&&p.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ee(p){let v=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(p){case"repoId_already_used":_(v,"used",!1);break;case"invalid_repoId":_(v,"format",!1);break;case"options_not_provided":_(v,"format",!1);break;case"repo_already_anonymized":_("sourceUrl","used",!1);break;case"invalid_terms_format":_("terms","format",!1);break;case"repo_not_found":_("sourceUrl","missing",!1);break;case"repo_not_accessible":_("sourceUrl","access",!1);break;case"commit_not_found":_("commit","exists",!1);break;case"conf_not_activated":_("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let p=(e.coauthorSearch||"").trim();if(e.coauthorError="",p.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:p}}).then(v=>{let D=new Set((e.coauthors||[]).map(O=>(O.username||"").toLowerCase()));e.coauthorResults=(v.data||[]).filter(O=>!D.has((O.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(p,v)=>{v&&v.preventDefault(),!(!p||!p.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:p.username}).then(D=>{e.coauthors=D.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},D=>{let O=D&&D.data&&D.data.error||"unknown_error";e.coauthorError=O})},e.removeCoauthor=p=>{!p||!p.username||confirm("Remove co-author "+p.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(p.username)).then(v=>{e.coauthors=v.data||[]},v=>{let D=v&&v.data&&v.data.error||"unknown_error";e.coauthorError=D})},e.anonymizeRepo=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={repoId:e.repoId,terms:e.terms.trim().split(`
-`).filter(U=>U),connection:e.githubConnection,fullName:`${D.owner}/${D.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(O.options.pageSource=e.details.pageSource),te();let I=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/status/"+e.repoId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.anonymizeGist=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={gistId:e.gistId,terms:e.terms.trim().split(`
-`).filter(U=>U),source:{gistId:D.gistId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/gist/"+e.gistId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.anonymizePullRequest=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let v=p.currentTarget||p.target.closest?.("button")||p.target;v.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
-`).filter(U=>U),source:{repositoryFullName:`${D.owner}/${D.repo}`,pullRequestId:D.pullRequestId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{S.clear(),window.location.href="/pr/"+e.pullRequestId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{v.disabled=!1})},e.watch("conference",()=>{Q()}),e.watch("terms",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.image",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.link",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()},!0)},pr=function(e,t,n,r,s,i){let a=ut();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",P=>el(P.element)),window.Prism.redactionHook=!0);let u=Zt();e.on("dark-mode",(P,G)=>{e.aceOption&&(G?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let m=0,k=!1;e.on("dispose",()=>{k=!0,m++,y&&y.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(P){if((P.metaKey||P.ctrlKey)&&P.key==="k"){P.preventDefault();var G=document.querySelector(".tree-search-input");G&&(G.focus(),G.select())}});var y=null;e.onFileSearchChange=function(){y&&(y.resolve(),y=null);let P=e.fileSearchQuery;if(!P||P.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let G=i.defer();y=G,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(P)}`,{timeout:G.promise}).then(function(J){if(!(k||y!==G)){y=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(F){X[(F.path||"")+"/"+F.name]=!0});for(var W=[],se={},ce=0;ce0&&e.files.push.apply(e.files,W);for(var Se=[],ze=0;ze0&&e.files.push.apply(e.files,Se),e.fileSearchResults=J.data}},function(){!k&&y===G&&(y=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let E={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],C=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],g=["wav","mp3","ogg","wma","flac","aac","m4a"],b=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(P,G){if(e.repoId!=r.repoId)return _();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(J=>J&&J.trim().length>0),ee();for(let J=0;J0?e.paths.slice(0,J).join("/"):"";e.files.some(se=>se.path===X)||e.getFiles(X)}}});function S(){if(e.paths[0]!="")return;let P=["readme.md","readme.txt","readme.org","readme.1st","readme"],G={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(G[X.name.toLowerCase()]=X.name);let J=null;for(let X of P)if(G[X]){J=X;break}if(!J&&Object.keys(G).length>0&&(J=Object.keys(G)[0]),J){let X=n.url();X[X.length-1]!="/"&&(X+="/"),n.url(X+encodePathForUrl(G[J]))}}e.fileCounts=null,e.getFiles=function(P){let G=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(P)}&v=${e.options.lastUpdateDate}`).then(function(J){if(k||G!==e.repoId)return[];let X=P||"";return e.files=e.files.filter(W=>W.path!==X),e.files.push(...J.data),J.data},function(J){if(k||G!==e.repoId)return[];e.type="error",e.content=cr(J),e.files=[]})};function R(){let P=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(G){k||P!==e.repoId||(e.fileCounts=G.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(P=>P.name==e.paths[e.paths.length-1]&&P.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var q=null;e.on("dispose",function(){q&&a.interval.cancel(q)});function M(P){if(k)return;let G=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(J=>{if(!(k||G!==e.repoId)){if(e.options=J.data,e.options.url){window.location=e.options.url;return}P&&P(J.data)}},J=>{if(!(k||G!==e.repoId)){var X=J.data||{};if(X.error==="rate_limited"&&X.resetAt){let se=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,q&&(a.interval.cancel(q),q=null),M(P);else{var de=Math.floor(ce/60),re=ce%60;e.rateLimitCountdown=de>0?de+"m "+re+"s":re+"s"}};var W=se;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,q&&a.interval.cancel(q),se(),q=a.interval(se,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){M(P)},3e3)):(e.type="error",e.content=cr(J))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function V(P){return E[P]?E[P]:P}function z(P){return P=="pdf"?"pdf":P=="html"||P=="htm"?"html-doc":P=="md"?"md":P=="org"?"org":P=="ipynb"?"IPython":h.indexOf(P)>-1?"text":C.indexOf(P)>-1?"image":b.indexOf(P)>-1?"media":g.indexOf(P)>-1?"audio":"code"}function ne(P,G){let J=m;if(!P){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let W=G&&G.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(P)}?v=`+W,{transformResponse:se=>se}).then(se=>{if(!(k||J!==m)){if(e.type=X,e.content=se.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(se.data,n.url()+"/../"),e.type="html"),e.type=="org"){let de=contentAbs2Relative(se.data);var ce=new Org.Parser().parse(de).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&se.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},se=>{k||J!==m||(e.type="error",e.content=cr(se))})}function ee(){m++,e.content="",e.file=T();let P="0";e.file&&e.file.sha&&(P=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${P}`;let G=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${G?encodePathForUrl(G):""}`,e.showSource=!1,e.allowScripts=!1;let J=e.filePath.toLowerCase(),X=J.lastIndexOf(".");if(X>-1&&(J=J.substring(X+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:V(J),onLoad:function(W){let se=ace.require("ace/range").Range,ce=null;function de(ke,F){ce!==null&&(W.session.removeMarker(ce),ce=null),ke!=null&&(ce=W.session.addMarker(new se(ke,0,F,1),"highlighted-line","fullLine"))}function re(ke){let F=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!F){de(null);return}let Z=parseInt(F[1])-1,Q=F[2]?parseInt(F[2])-1:Z;de(Z,Q),ke&&a.timeout(()=>{W.scrollToLine(Z,!0,!0,function(){})},100)}re(!0);let _e=null;W.on("guttermousedown",function(ke){let F=ke.getDocumentPosition().row,Z=ke.domEvent&&ke.domEvent.shiftKey,Q=F,te=F;Z&&_e!==null?(Q=Math.min(_e,F),te=Math.max(_e,F)):_e=F;let ye=Q===te?`#L${Q+1}`:`#L${Q+1}-L${te+1}`,Ee=window.location.pathname+window.location.search+ye;window.history.replaceState(null,"",Ee),de(Q,te),ke.stop()});let qe=u(window,"hashchange",()=>re(!1));W.setFontSize(e.aceOption.fontSize),W.setReadOnly(e.aceOption.readOnly),W.setKeyboardHandler(e.aceOption.keyBinding),W.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),W.setOption("displayIndentGuides",!0),W.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(W.renderer.$cursorLayer.element.style.display="none"),W.setHighlightGutterLine(e.aceOption.highlightGutterLine),W.setShowInvisibles(e.aceOption.showInvisibles),W.setDisplayIndentGuides(e.aceOption.showIndentGuides),W.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),W.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),W.session.setUseSoftTabs(e.aceOption.useSoftTab),W.session.setTabSize(e.aceOption.tabSize);let Me=window.matchMedia("(max-width: 991px)"),Pe=()=>W.session.setUseWrapMode(e.aceOption.useWrapMode&&Me.matches);Pe(),Me.addEventListener?.("change",Pe),W.setBehavioursEnabled(e.aceOption.enableBehaviours),W.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let Se=[],ze=()=>{Se.forEach(Z=>W.session.removeMarker(Z)),Se=[];let ke=xa();if(!ke)return;W.session.getDocument().getAllLines().forEach((Z,Q)=>{for(let te of Z.matchAll(ke))Se.push(W.session.addMarker(new se(Q,te.index,Q,te.index+te[0].length),"ace_redaction","text"))})};ze(),W.session.on("change",()=>a.timeout(ze,0));let Ue=e.on("site-options",ze);return()=>{qe(),Ue(),Me.removeEventListener?.("change",Pe)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(J),e.type=="pdf"){e.content="pdf";return}ne(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>_();function _(){m++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let P=e.repoId;M(function(G){R();var J=i.resolve();for(let X=0;X0?e.paths.slice(0,X).join("/"):"";J=J.then(function(){return e.getFiles(W)}).then(function(){if(e.type==="error")return i.reject("error")})}J.then(function(){k||P!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(S(),ee()))})})}_()},ul=function(e,t,n,r,s){async function i(m){t.get(`/api/pr/${e.pullRequestId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(m){t.get(`/api/pr/${e.pullRequestId}/content`).then(k=>{e.details=k.data,e.tabState={active:k.data.diff?"diff":"comments"},m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(m=>{a()})}u()},cl=function(e,t,n,r,s){async function i(m){t.get(`/api/gist/${e.gistId}/options`).then(k=>{if(e.options=k.data,e.options.url){window.location=e.options.url;return}m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}async function a(m){t.get(`/api/gist/${e.gistId}/content`).then(k=>{e.details=k.data;let y=k.data&&k.data.files&&k.data.files.length;e.tabState={active:y?"files":"comments"},m&&m(k.data)},k=>{e.type="error",e.content=k.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},pl=function(e,t,n){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let r="conferences.filterPrefs",s={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},s.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||s.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let u=Fe({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(u),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{u.title=`${a.name} is removed.`,u.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{u.title="Unable to remove conference",u.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let u=e.search.trim().toLowerCase();return!!(!u||(a.name||"").toLowerCase().includes(u)||(a.conferenceID||"").toLowerCase().includes(u))}},fr=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function s(){t.get("/api/conferences/"+r.conferenceId).then(y=>{e.options={...e.options,...y.data,billing:y.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,s());function i(){t.get("/api/conferences/plans").then(y=>{e.plans=y.data,e.plan=e.plans.filter(E=>E.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={billing:{},startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(y=>y.id==e.options.plan.planID)[0]});function m(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function k(y){switch(y){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){if(e.saving)return;e.saving=!0,e.error="";let y=JSON.parse(JSON.stringify(e.options)),E=Fe({title:`Creating ${y.name}...`,date:new Date,body:`The conference ${y.conferenceID} is in creation.`});e.editionMode&&(E.title=`Updating ${y.name}...`,E.body=`The conference '${y.conferenceID}' is updating.`),e.addToast(E),m(),t.post("/api/conferences/"+(e.editionMode?y.conferenceID:""),y).then(()=>{e.editionMode?(E.title=`${y.name} updated`,E.body=`The conference '${y.conferenceID}' is updated.`):(E.title=`${y.name} created`,E.body=`The conference '${y.conferenceID}' is created.`),n.url("/conference/"+y.conferenceID)},h=>{k(h.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(E)}).finally(()=>{e.saving=!1})}},fl=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>{if(e.filters.status[i.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(i.source?.fullName||"").toLowerCase().includes(a)||(i.repoId||"").toLowerCase().includes(a))};function s(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}s()},ml=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let n=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=n.data.notificationEmail,e.user&&(e.user.notificationEmail=n.data.notificationEmail),e.emailSaved=!0}catch(n){e.connectionError=n.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(n=>{e.connections=n.data,e.notificationEmail=n.data.notificationEmail||""}).catch(n=>{e.connectionError=n.data?.error||"Unable to load connections."}),e.changeConnection=async(n,r,s)=>{e.busy=!0,e.connectionError="";try{let i=await t.post("/github/connections/migrate",{type:n.type,id:n.id,connection:r,preview:s},{headers:{"X-CSRF-Token":e.connections.csrf}});s?n.eligible=i.data.eligible:await e.loadConnections()}catch(i){e.connectionError=i.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(n){e.connectionError=n.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},hl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var vl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=g=>{if(g.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){g.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=g=>{g==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[g]="",e.query.page=1},e.chips=[];let a=()=>{let g=[];e.query.owner&&g.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&g.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=g};e.showStatusMessage=g=>{let b=g.statusMessage||"(no message)";window.prompt(`Status message for ${g.repoId} (${g.status}):`,b)},e.fetchGithubInfo=g=>{let b=window.open("","_blank");b&&b.document.write("
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",Wp,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Kp,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=n=>e.loadConnections())},"Try again",8,Yp)):f("v-if",!0),e.connections?(l(),d("div",Jp,[e.connections.emailNotificationsEnabled?(l(),d("section",Qp,[t[6]||(t[6]=o("h2",null,"Email alerts",-1)),t[7]||(t[7]=o("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),o("form",{onSubmit:t[2]||(t[2]=ie(n=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=o("label",{for:"notification-email"},"Email address",-1)),N(o("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=n=>e.notificationEmail=n),disabled:e.busy},null,8,Xp),[[zt,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Zp),e.emailSaved?(l(),d("p",xp,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),o("div",ef,[e.connections.appEnabled?(l(),d("section",tf,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",of,[t[8]||(t[8]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",nf,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),o("div",sf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",rf,[...t[9]||(t[9]=[w("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[15]||(t[15]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",af,[(l(!0),d(K,null,oe(e.connections.installations,n=>(l(),d("li",{key:n.id},[o("div",null,[o("strong",null,c(n.account),1),n.suspended?(l(),d("span",lf," \xB7 Suspended")):f("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+n.id},[t[10]||(t[10]=w("Manage access ",-1)),o("span",uf,"for "+c(n.account),1),t[11]||(t[11]=w(" \u2192",-1))],8,df)]))),128))])):f("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[3]||(t[3]=n=>e.loadConnections())},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Refresh access",-1)])],8,cf)])):f("v-if",!0),o("section",null,[t[18]||(t[18]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",pf,[t[16]||(t[16]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[19]||(t[19]=o("p",null,"For existing OAuth anonymizations.",-1)),t[20]||(t[20]=o("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",ff,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(l(),d("div",mf,[e.connections.gistCount?(l(),d("p",hf,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[17]||(t[17]=o("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(n=>n.connection==="oauth"),onClick:t[4]||(t[4]=n=>e.disconnectOAuth())},"Revoke OAuth access",8,vf)):f("v-if",!0)])):f("v-if",!0)])]),o("section",yf,[o("div",gf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",bf,c(e.connections.resources?.length||0)+" resources",1)]),t[23]||(t[23]=o("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(l(),d("div",wf,[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(K,null,oe(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",kf,[o("strong",null,c(n.name||n.id),1),o("small",null,c(n.type)+" \xB7 "+c(n.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":n.connection==="oauth"}])},c(n.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Ef,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,Cf),n.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!1)},c(n.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,_f)):f("v-if",!0),n.eligible===!1?(l(),d("span",Sf,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&n.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(n,"oauth",!1)},"Use OAuth",8,Nf)):f("v-if",!0)]))),128)),t[24]||(t[24]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Df={class:"container paper-page auth-page"},Rf={class:"auth-layout"},Tf={class:"auth-options"},Af={key:0},Of={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},If={key:1},Pf={key:1},Vf={key:2,class:"auth-legacy"},qf={key:3,role:"status"};function Nl(e,t){return l(),d("div",Df,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),w(" Anonymous GitHub")],-1)),o("div",Rf,[t[4]||(t[4]=ue('
Your research, ready for review
Your code. Your identity, protected.Sign in to GitHub
Sign in to create and manage your anonymizations.
',1)),o("div",Tf,[e.accountRecovery?(l(),d("section",Af,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",Of,"Verify with previous GitHub connection")):(l(),d("p",If,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Pf,[...t[2]||(t[2]=[ue('
Read-only access
Continue with GitHub
Connect through the GitHub App with read-only repository access.
You choose which repositories to share
No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Vf,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[w("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",qf,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])])}var Mf={class:"paper-empty"};function Dl(e,t){return l(),d("div",Mf,[...t[0]||(t[0]=[ue('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',1)),o("a",$y,[t[40]||(t[40]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Ly,c(e.data?.queues?.download?.active),1),o("span",Fy,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",zy,[t[41]||(t[41]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",Hy,c(e.data?.queues?.remove?.active),1),o("span",By,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",jy,[t[42]||(t[42]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Gy,c(e.data?.queues?.cache?.active),1),o("span",Wy,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Ky,[o("div",Yy,[t[45]||(t[45]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Jy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",Qy,[o("div",Xy,[t[47]||(t[47]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Zy,[t[46]||(t[46]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",xy,c(e.data?.system?.nodeVersion),1)]),o("span",eg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",tg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",og,[t[48]||(t[48]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",ng,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(l(),d("span",sg,"idle"))])]),o("div",rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ig,[t[49]||(t[49]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",ag,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(l(),d("span",lg,"idle"))])]),o("div",dg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ug,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",cg,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(l(),d("span",pg,"idle"))])]),o("div",fg,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",mg,[t[51]||(t[51]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",hg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):f("v-if",!0),o("section",vg,[o("div",yg,[t[54]||(t[54]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",gg,[t[53]||(t[53]=o("label",{for:"performance-window"},"Time range",-1)),N(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=n=>e.performanceMinutes=n),onChange:t[1]||(t[1]=n=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[52]||(t[52]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[Xn,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",bg,[t[55]||(t[55]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",wg,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(l(),d("div",kg,[o("div",Eg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[3]||(t[3]=n=>e.performanceTab="routes"),onKeydown:t[4]||(t[4]=n=>e.previewTabKeydown(n))},"Routes",42,Cg),o("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[5]||(t[5]=n=>e.performanceTab="processes"),onKeydown:t[6]||(t[6]=n=>e.previewTabKeydown(n))},"Processes",42,_g),o("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[7]||(t[7]=n=>e.performanceTab="stages"),onKeydown:t[8]||(t[8]=n=>e.previewTabKeydown(n))},"Work stages",42,Sg)]),N(o("div",Ng,[e.performance.routes?.length?(l(),d("div",Dg,[o("table",Rg,[t[56]||(t[56]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[57]||(t[57]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(K,null,oe(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Tg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Ag,c(e.fmt.number(n.count)),1),o("td",Og,c(e.formatMs(n.avgMs)),1),o("td",Ig,c(e.firstByteBound(n)),1),o("td",Pg,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Vg,c(e.latencyBound(n,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":n.aborted>0}])},c(e.fmt.number(n.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":n.errors>0}])},c(e.fmt.number(n.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":n.slow>0}])},c(e.fmt.number(n.slow)),3)]))),128))])])])):(l(),d("p",qg,"No recorded requests in this time range yet."))],512),[[j,e.performanceTab==="routes"]]),N(o("div",Mg,[t[61]||(t[61]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",$g,[o("table",Lg,[t[59]||(t[59]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[60]||(t[60]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(K,null,oe(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",Fg,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",zg,[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" Needs attention",-1)])])):f("v-if",!0)]),o("td",Hg,[w(c(e.humanBytes(n.memory.rss))+" / "+c(e.humanBytes(n.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(n))),1)]),o("td",Bg,c(n.cpuPercent.toFixed(1))+"%",1),o("td",jg,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",Gg,c(n.activeRequests),1),o("td",Wg,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",Kg,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",Yg,c(e.sampleAge(n))+" s",1),o("td",Jg,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",Ug,"No recent process samples. Monitoring coverage is incomplete."))],512),[[j,e.performanceTab==="processes"]]),N(o("div",Qg,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",Xg,[o("table",Zg,[t[62]||(t[62]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[63]||(t[63]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(K,null,oe(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",xg,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",eb,c(e.fmt.number(n.count)),1),o("td",tb,c(e.formatMs(n.avgMs)),1),o("td",ob,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",sb,"No recorded work stages or cache results in this time range yet."))],512),[[j,e.performanceTab==="stages"]]),t[64]||(t[64]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)])])}var rb={class:"container paper-page admin-page"},ib={class:"q-header"},ab={class:"q-header-actions"},lb={class:"q-range-btns"},db={class:"q-cards"},ub=["aria-pressed","onKeydown","onClick"],cb={class:"q-card-head"},pb=["textContent"],fb=["textContent"],mb={class:"q-card-sub"},hb={key:0,class:"q-card-bar"},vb={key:0,class:"q-detail"},yb={class:"q-throughput"},gb={class:"q-section-label"},bb={class:"q-section-right"},wb={class:"q-stats-panel"},kb={class:"q-section-label"},Eb={class:"q-stats-grid"},Cb={class:"q-stat"},_b=["textContent"],Sb={class:"q-stat"},Nb=["textContent"],Db={class:"q-stat"},Rb=["textContent"],Tb={class:"q-stat"},Ab=["textContent"],Ob={class:"q-stat"},Ib=["textContent"],Pb={class:"q-stat"},Vb=["textContent"],qb={class:"q-stats-actions"},Mb=["disabled"],Ub={class:"q-jobs"},$b={class:"q-jobs-header"},Lb={class:"q-section-label"},Fb={class:"q-state-filters"},zb={class:"q-state-toggle"},Hb={type:"checkbox"},Bb={class:"q-search-row"},jb={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Gb={class:"q-auto-refresh"},Wb={type:"checkbox"},Kb={key:0,class:"q-table"},Yb=["onClick"],Jb={class:"q-cell-state"},Qb=["textContent"],Xb=["textContent"],Zb={class:"q-cell-id"},xb=["textContent","href"],e1={class:"q-cell-payload"},t1=["textContent"],o1={key:0,class:"q-payload-detail"},n1=["textContent"],s1=["textContent"],r1={class:"q-cell-progress"},i1={key:0,class:"q-progress-wrap"},a1=["textContent"],l1={class:"q-cell-actions"},d1=["onClick"],u1=["onClick"],c1={key:0,class:"q-detail-row"},p1={colspan:"7"},f1={class:"q-job-detail"},m1={class:"q-job-detail-grid"},h1={class:"q-job-detail-item"},v1={class:"q-job-detail-value"},y1=["textContent","href"],g1={class:"q-job-detail-item"},b1={class:"q-job-detail-value"},w1=["textContent"],k1={key:0,class:"q-job-detail-item"},E1=["textContent"],C1={key:1,class:"q-job-detail-item"},_1=["textContent"],S1={key:2,class:"q-job-detail-item"},N1={class:"q-job-detail-value"},D1={key:3,class:"q-job-detail-item"},R1=["textContent"],T1={key:4,class:"q-job-detail-item"},A1=["textContent"],O1={key:5,class:"q-job-detail-item"},I1=["textContent"],P1={key:6,class:"q-job-detail-item"},V1=["textContent"],q1={key:7,class:"q-job-detail-item"},M1=["textContent"],U1={key:0,class:"q-job-detail-error"},$1=["textContent"],L1={key:1},F1=["textContent"],z1={class:"q-job-detail-actions"},H1=["onClick"],B1=["onClick"],j1=["href"],G1={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},W1={key:0},K1={key:1};function Ol(e,t){let n=ve("field");return l(),d("div",rb,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[w("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",ib,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",ab,[o("div",lb,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=ue('',1)),f(" Queue overview cards "),o("div",db,[(l(!0),d(K,null,oe(e.queueList,(r,s)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[To(ie(i=>e.selectQueue(r.key),["prevent"]),["enter"]),To(ie(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",cb,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,pb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,fb),o("div",mb,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",hb,[o("div",{class:"q-card-bar-fill",style:Ie({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,ub))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",vb,[o("div",yb,[o("div",gb,[w(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",bb,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=w(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=w(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),w(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",wb,[o("div",kb,c(e.selectedQueue)+" \xB7 stats",1),o("div",Eb,[o("div",Cb,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,_b)]),o("div",Sb,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,Nb)]),o("div",Db,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Rb)]),o("div",Tb,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Ab)]),o("div",Ob,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Ib)]),o("div",Pb,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Vb)])]),o("div",qb,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Mb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):f("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),w(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),o("div",Ub,[o("div",$b,[o("div",Lb,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",Fb,[(l(!0),d(K,null,oe(e.allStates,(r,s)=>(l(),d("label",zb,[N(o("input",Hb,null,512),[[n,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",Bb,[N(o("input",jb,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",Gb,[N(o("input",Wb,null,512),[[n,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=w(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",Kb,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(K,null,oe(e.filteredJobs(),(r,s)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",Jb,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,Qb),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,Xb)):f("v-if",!0)]),o("td",Zb,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,xb)]),o("td",e1,[o("span",{textContent:c(r?.name||"anonymize")},null,8,t1),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",o1," \xB7 "+c(r?.data?.repoId),1)):f("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,n1),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,s1),o("td",r1,[e.jobProgressPct(r)!==null?(l(),d("div",i1,[o("div",{class:"q-progress-bar",style:Ie({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,a1)])):f("v-if",!0)]),o("td",l1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,d1)):f("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,u1)])],10,Yb),e.expanded[r?.id]?(l(),d("tr",c1,[o("td",p1,[o("div",f1,[o("div",m1,[o("div",h1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",v1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,y1)])]),o("div",g1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",b1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,w1)])]),r?.data?.repoId?(l(),d("div",k1,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,E1)])):f("v-if",!0),r?.timestamp?(l(),d("div",C1,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,_1)])):f("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",S1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",N1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):f("v-if",!0),r?.processedOn?(l(),d("div",D1,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,R1)])):f("v-if",!0),r?.finishedOn?(l(),d("div",T1,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,A1)])):f("v-if",!0),r?.attemptsMade?(l(),d("div",O1,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,I1)])):f("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",P1,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,V1)])):f("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",q1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,M1)])):f("v-if",!0)]),r?.failedReason?(l(),d("div",U1,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,$1)])):f("v-if",!0),r?.stacktrace?.length?(l(),d("div",L1,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(K,null,oe(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,F1)]))),128))])):f("v-if",!0),o("div",z1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Retry",-1)])],8,H1)):f("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,B1),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),w(" View repo",-1)])],8,j1)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(l(),d("div",G1,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(l(),d("span",W1,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",K1,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var Y1={class:"container paper-page admin-page"},J1={class:"admin-summary"},Q1={class:"summary-total"},X1={class:"summary-meta"},Z1=["aria-pressed"],x1={class:"count"},ew=["aria-pressed"],tw={class:"count"},ow=["aria-pressed"],nw={class:"count"},sw=["aria-pressed"],rw={class:"count"},iw=["aria-pressed"],aw={class:"count"},lw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},dw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},uw={class:"admin-filter-row"},cw={class:"search-wrap"},pw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},fw={key:0,class:"admin-search-hint"},mw={class:"admin-filter-inline"},hw={type:"text",class:"form-control form-control-sm",placeholder:"username"},vw={class:"admin-filter-inline"},yw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},gw={class:"admin-filter-inline","aria-label":"Pagination"},bw=["disabled"],ww={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},kw=["disabled"],Ew={key:0,class:"admin-filter-row"},Cw={class:"admin-active-chips"},_w={class:"key"},Sw=["onClick"],Nw={key:1,class:"bulk-bar"},Dw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Rw={class:"paper-table-head",role:"row"},Tw={role:"columnheader",style:{width:"28px"}},Aw=["checked"],Ow={role:"columnheader"},Iw={role:"columnheader"},Pw={role:"columnheader",class:"num"},Vw={role:"columnheader"},qw={role:"cell",style:{width:"28px"}},Mw={type:"checkbox","aria-label":"Select repository"},Uw={class:"cell-anon",role:"cell"},$w={class:"anon-text"},Lw=["textContent","href"],Fw={class:"anon-sub"},zw=["textContent","href"],Hw={key:0},Bw=["textContent","href"],jw={key:1},Gw=["textContent","href"],Ww={key:2},Kw={class:"cell-status",role:"cell"},Yw={class:"status-line"},Jw=["textContent"],Qw=["textContent","title"],Xw={class:"cell-views num",role:"cell"},Zw=["textContent"],xw={class:"cell-expires",role:"cell"},ek=["textContent"],tk={class:"cell-actions",role:"cell"},ok={class:"dropdown"},nk={class:"dropdown-menu dropdown-menu-right"},sk=["href"],rk=["href"],ik=["href"],ak=["onClick"],lk=["onClick"],dk=["onClick"],uk=["onClick"],ck=["onClick"],pk=["onClick"],fk={key:0,class:"paper-table-empty"},mk={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},hk={style:{"font-size":"12px",color:"var(--ink-muted)"}},vk={key:0,class:"pagination-compact"},yk=["disabled"],gk=["max"],bk=["disabled"],wk={class:"admin-filter-inline"},kk={class:"form-control form-control-sm"};function Il(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Y1,[t[69]||(t[69]=ue('
Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",J1,[o("span",Q1,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",X1,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=w("Ready ",-1)),o("span",x1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,Z1),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=w("Preparing ",-1)),o("span",tw,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,ew),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=w("Errored ",-1)),o("span",nw,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,ow),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=w("Expired ",-1)),o("span",rw,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,sw),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=w("Removed ",-1)),o("span",aw,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,iw)]),e.fetchError?(l(),d("div",lw,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",dw,[f(" Row 1: search + scoped inputs + headline actions "),o("div",uw,[o("div",cw,[N(o("input",pw,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",fw,"/"))]),o("span",mw,[t[24]||(t[24]=o("label",null,"Owner",-1)),N(o("input",hw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",vw,[t[25]||(t[25]=o("label",null,"Conference",-1)),N(o("input",yw,null,512),[[n,{state:e.viewState,set:s=>{e.query.conference=s},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),w(" Export",-1)])]),o("span",gw,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,bw),o("span",ww,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,kw)])]),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Ew,[o("div",Cw,[(l(!0),d(K,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",_w,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(s.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,Sw)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Nw,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=w(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=s=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=s=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",Dw,[o("div",Rw,[o("div",Tw,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Aw)]),o("div",Ow,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=s=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=w("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Iw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=s=>e.sortBy("status"))},[t[37]||(t[37]=w("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Pw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=s=>e.sortBy("pageView"))},[t[39]||(t[39]=w("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Vw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=s=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=w("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",qw,[N(o("input",Mw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",Uw,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",$w,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,Lw),o("div",Fw,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,zw),s?.options?.update?(l(),d("span",Hw,[t[43]||(t[43]=w("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,Bw)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",jw,[t[44]||(t[44]=w("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,Gw)])),s?.conference?(l(),d("span",Ww,[t[45]||(t[45]=w("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",Kw,[o("span",Yw,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,Jw)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,Qw)):f("v-if",!0)]),o("div",Xw,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=w()),o("span",{textContent:c(e.fmt?.number(s?.pageView||0))},null,8,Zw)]),o("div",xw,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=w()),o("span",{textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,ek)]),o("div",tk,[o("div",ok,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",nk,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit",-1)])],8,sk),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View repo",-1)])],8,rk),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),w(" View page",-1)])],8,ik)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),w(" Live GitHub info",-1)])],8,ak),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update",-1)])],8,lk),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Enable",-1)])],8,dk),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" View status message",-1)])],8,uk),[[j,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])],8,ck),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,pk),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",fk,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)]),o("div",mk,[o("span",hk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",vk,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),w(" Previous ",-1)])],8,yk),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,gk),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[w(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,bk)])):f("v-if",!0),o("span",wk,[t[68]||(t[68]=o("label",null,"Per page",-1)),N((l(),d("select",kk,[...t[67]||(t[67]=[ue('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Ek={class:"container paper-page admin-page"},Ck={class:"paper-crumbs"},_k={class:"here"},Sk={class:"paper-page-title"},Nk={key:0,class:"user-detail-card"},Dk={class:"user-header"},Rk=["src"],Tk={class:"status-dot-wrap"},Ak=["textContent"],Ok={key:0,class:"type-badge type-repo"},Ik={class:"user-actions",style:{"margin-top":"4px"}},Pk={class:"user-detail-grid"},Vk={class:"detail-value"},qk={class:"detail-value"},Mk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},Uk={key:1,class:"detail-value text-muted"},$k={class:"detail-value"},Lk=["href"],Fk={class:"detail-value"},zk={class:"detail-value"},Hk={key:0},Bk={key:1,class:"text-muted"},jk={class:"detail-value"},Gk={key:0,style:{"margin-top":"20px"}},Wk={class:"paper-table w-100",style:{"margin-top":"10px"}},Kk={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},Yk={class:"cell-anon",role:"cell"},Jk={class:"anon-text"},Qk=["textContent"],Xk={class:"cell-expires",role:"cell"},Zk={key:1,class:"admin-section-header"},xk={class:"section-count"},e0={key:2,class:"user-detail-card"},t0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},o0={key:0,class:"alert alert-warning",role:"alert"},n0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},s0={key:1,class:"paper-table w-100"},r0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},i0=["textContent"],a0=["textContent"],l0={role:"cell"},d0={key:0},u0={key:1,class:"text-muted"},c0={role:"cell"},p0=["onClick"],f0={key:2,class:"paper-table-empty"},m0={class:"admin-section-header"},h0={class:"section-count"},v0={class:"admin-summary"},y0={class:"summary-total"},g0=["aria-pressed"],b0={class:"count"},w0=["aria-pressed"],k0={class:"count"},E0=["aria-pressed"],C0={class:"count"},_0=["aria-pressed"],S0={class:"count"},N0=["aria-pressed"],D0={class:"count"},R0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},T0={class:"admin-filter-row"},A0={class:"search-wrap"},O0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},I0={key:3,class:"bulk-bar"},P0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},V0={class:"paper-table-head",role:"row"},q0={role:"columnheader",style:{width:"28px"}},M0=["checked"],U0={role:"columnheader"},$0={role:"columnheader"},L0={role:"columnheader",class:"num"},F0={role:"columnheader"},z0={role:"cell",style:{width:"28px"}},H0={type:"checkbox","aria-label":"Select repository"},B0={class:"cell-anon",role:"cell"},j0={class:"anon-text"},G0=["textContent","href"],W0={class:"anon-sub"},K0=["textContent","href"],Y0={key:0},J0=["textContent","href"],Q0={key:1},X0=["textContent","href"],Z0={key:2},x0={class:"cell-status",role:"cell"},eE={class:"status-line"},tE=["textContent"],oE=["textContent","title"],nE=["textContent"],sE=["textContent"],rE={class:"cell-actions",role:"cell"},iE={class:"dropdown"},aE={class:"dropdown-menu dropdown-menu-right"},lE=["href"],dE=["href"],uE=["href"],cE=["onClick"],pE=["onClick"],fE=["onClick"],mE=["onClick"],hE=["onClick"],vE=["onClick"],yE={key:0,class:"paper-table-empty"};function Pl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Ek,[o("div",Ck,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=w(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=w(" \xA0/\xA0 ",-1)),o("span",_k,c(e.userInfo?.username||"Profile"),1)]),o("h1",Sk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=ue('',1)),e.userInfo?(l(),d("div",Nk,[o("div",Dk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Rk)):f("v-if",!0),o("div",null,[o("h2",null,[w(c(e.userInfo?.username)+" ",1),o("span",Tk,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Ak)]),e.userInfo?.isAdmin?(l(),d("span",Ok,"Admin")):f("v-if",!0)]),o("div",Ik,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=s=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),w(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=s=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),w(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=s=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),w(" Remove admin",-1)])])):f("v-if",!0)])])]),o("div",Pk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Vk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",qk,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",Mk,c(e.userInfo?.accessTokens?.github),1)):f("v-if",!0),e.userInfo?.accessTokens?.github?f("v-if",!0):(l(),d("div",Uk,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",$k,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),w(" "+c(e.userInfo?.username),1)],8,Lk)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",Fk,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",zk,[e.userInfo?.accessTokenDates?.github?(l(),d("span",Hk,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(l(),d("span",Bk,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",jk,[w(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=s=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=s=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",Gk,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",Wk,[(l(!0),d(K,null,oe(e.userInfo?.repositories,(s,i)=>(l(),d("div",Kk,[o("div",Yk,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",Jk,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,Qk)])]),o("div",Xk,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),w(" "+c(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Zk,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),w(" API tokens")],-1)),o("span",xk,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",e0,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[w("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer "),w(" to authenticate without GitHub OAuth (useful for development).")],-1)),N((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ie(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[N(o("input",t0,null,512),[[n,{state:e.viewState,set:s=>{e.tokenForm.name=s},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),w(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",o0,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",n0,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(l(),d("div",s0,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(K,null,oe(e.tokens,(s,i)=>(l(),d("div",r0,[o("div",{role:"cell",textContent:c(s?.name)},null,8,i0),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,a0),o("div",l0,[s?.lastUsedAt?(l(),d("span",d0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):f("v-if",!0),s?.lastUsedAt?f("v-if",!0):(l(),d("span",u0,"never"))]),o("div",c0,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(s)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,p0)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(l(),d("div",f0,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),o("div",m0,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),w(" Anonymized repositories")],-1)),o("span",h0,c(e.repositories?.length),1)]),o("div",v0,[o("span",y0,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=s=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=w("Ready ",-1)),o("span",b0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,g0),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=s=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=w("Preparing ",-1)),o("span",k0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,w0),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=s=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=w("Errored ",-1)),o("span",C0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,E0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=s=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=w("Expired ",-1)),o("span",S0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,_0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=s=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=w("Removed ",-1)),o("span",D0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,N0)]),N((l(),d("form",R0,[o("div",T0,[o("div",A0,[N(o("input",O0,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=s=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),w(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",I0,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=w(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=s=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=s=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",P0,[o("div",V0,[o("div",q0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,M0)]),o("div",U0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=s=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=w("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",$0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=s=>e.sortBy("status"))},[t[63]||(t[63]=w("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",L0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=s=>e.sortBy("pageView"))},[t[65]||(t[65]=w("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",F0,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=s=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=w("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",z0,[N(o("input",H0,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",B0,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",j0,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,G0),o("div",W0,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,K0),s?.options?.update?(l(),d("span",Y0,[t[69]||(t[69]=w("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,J0)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",Q0,[t[70]||(t[70]=w("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,X0)])),s?.conference?(l(),d("span",Z0,[t[71]||(t[71]=w("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",x0,[o("span",eE,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,tE)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,oE)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,nE),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,sE),o("div",rE,[o("div",iE,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",aE,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit",-1)])],8,lE),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View repo",-1)])],8,dE),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),w(" View page",-1)])],8,uE)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),w(" Live GitHub info",-1)])],8,cE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update",-1)])],8,pE),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Enable",-1)])],8,fE),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),w(" View status message",-1)])],8,mE),[[j,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),w(" Remove cache",-1)])],8,hE),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove",-1)])],8,vE),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",yE,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var gE={class:"container paper-page admin-page"},bE={class:"admin-summary"},wE={class:"summary-total"},kE=["aria-pressed"],EE={class:"count"},CE=["aria-pressed"],_E={class:"count"},SE=["aria-pressed"],NE={class:"count"},DE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},RE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},TE={class:"admin-filter-row"},AE={class:"search-wrap"},OE={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},IE={key:0,class:"admin-search-hint"},PE={class:"admin-filter-inline"},VE={class:"form-control form-control-sm"},qE={class:"admin-filter-inline","aria-label":"Pagination"},ME=["disabled"],UE={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$E=["disabled"],LE={key:0,class:"admin-filter-row"},FE={class:"admin-active-chips"},zE={class:"key"},HE=["onClick"],BE={key:1,class:"bulk-bar"},jE={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},GE={class:"paper-table-head admin-users-row",role:"row"},WE={role:"columnheader",style:{width:"28px"}},KE=["checked"],YE={role:"columnheader"},JE={role:"columnheader"},QE={role:"cell",style:{width:"28px"}},XE={type:"checkbox","aria-label":"Select user"},ZE={class:"cell-anon",role:"cell"},xE=["src"],eC={class:"anon-text"},tC=["textContent","href"],oC={class:"anon-sub"},nC={key:0},sC=["href"],rC={key:1},iC={class:"cell-views num",role:"cell"},aC=["textContent","href"],lC={class:"cell-status",role:"cell"},dC=["textContent"],uC={class:"cell-status",role:"cell"},cC={key:0,class:"type-badge type-repo"},pC={key:1,class:"empty-dash"},fC={class:"cell-actions",role:"cell"},mC={class:"dropdown"},hC={class:"dropdown-menu dropdown-menu-right"},vC=["href"],yC=["href"],gC=["onClick"],bC=["onClick"],wC={key:0,class:"paper-table-empty"},kC={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},EC={style:{"font-size":"12px",color:"var(--ink-muted)"}},CC={key:0,class:"pagination-compact"},_C=["disabled"],SC=["max"],NC=["disabled"],DC={class:"admin-filter-inline"},RC={class:"form-control form-control-sm"};function Vl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",gE,[t[46]||(t[46]=ue('
Admin \xA0/\xA0 Users
Users
',3)),o("div",bE,[o("span",wE,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=s=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=w("Active ",-1)),o("span",EE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,kE),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=s=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=w("Banned ",-1)),o("span",_E,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,CE),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=s=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=w("Removed ",-1)),o("span",NE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,SE)]),e.fetchError?(l(),d("div",DE,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fetchError),1)])):f("v-if",!0),N((l(),d("form",RE,[o("div",TE,[o("div",AE,[N(o("input",OE,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",IE,"/"))]),o("span",PE,[t[18]||(t[18]=o("label",null,"Role",-1)),N((l(),d("select",VE,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.role=s},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),w(" Export",-1)])]),o("span",qE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,ME),o("span",UE,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$E)])]),e.chips?.length?(l(),d("div",LE,[o("div",FE,[(l(!0),d(K,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",zE,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,HE)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",BE,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=w(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=s=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),w(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),o("div",jE,[o("div",GE,[o("div",WE,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,KE)]),o("div",YE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=s=>e.sortBy("username"))},[t[27]||(t[27]=w("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",JE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=s=>e.sortBy("status"))},[t[29]||(t[29]=w("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(K,null,oe(e.filteredUsers,(s,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[s?.username]}]),role:"row"},[o("div",QE,[N(o("input",XE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",ZE,[s?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(s?.photo)},null,8,xE)):f("v-if",!0),o("div",eC,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,tC),o("div",oC,[s?.emails?.[0]?.email?(l(),d("span",nC,c(s?.emails?.[0]?.email)+" \xB7 ",1)):f("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+s?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),w(" "+c(s?.username),1)],8,sC),s?.dateOfEntry?(l(),d("span",rC,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):f("v-if",!0)])])]),o("div",iC,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(s?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+s?.username)},null,8,aC)]),o("div",lC,[o("span",{class:A(["status-dot",{"status-ready":s?.status=="active","status-removed":s?.status=="removed"||s?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,dC)]),o("div",uC,[s?.isAdmin?(l(),d("span",cC,"Admin")):f("v-if",!0),s?.isAdmin?f("v-if",!0):(l(),d("span",pC,"\u2014"))]),o("div",fC,[o("div",mC,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",hC,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+s?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View details",-1)])],8,vC),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+s?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),w(" View repositories",-1)])],8,yC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),N(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.banUser(s),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),w(" Ban",-1)])],8,gC),[[j,s?.status=="active"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.activateUser(s),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Activate",-1)])],8,bC),[[j,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",wC,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),o("div",kC,[o("span",EC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",CC,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),w(" Previous",-1)])],8,_C),N(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,SC),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[w("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,NC)])):f("v-if",!0),o("span",DC,[t[45]||(t[45]=o("label",null,"Per page",-1)),N((l(),d("select",RC,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var TC={class:"anonymize-landing"},AC={class:"anonymize-landing-inner"},OC={class:"form-group mt-4 mb-2"},IC={class:"source-url-label-row"},PC={key:0,class:"repo-access","aria-label":"GitHub access"},VC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},qC=["aria-pressed","disabled"],MC=["aria-pressed","disabled"],UC={key:1,class:"connection-badge"},$C={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},LC={key:0,class:"draft-status",role:"status"},FC={key:1,class:"text-danger",role:"alert"},zC={key:2,class:"repo-access-details","aria-label":"GitHub access"},HC={class:"repo-access-main"},BC={class:"repo-access-controls"},jC={key:1,class:"connection-link",href:"/connections"},GC={class:"repo-access-note"},WC={key:0},KC={class:"anonymize-workspace"},YC={class:"anonymize-topbar"},JC={class:"anonymize-topbar-inner"},QC={class:"paper-crumbs"},XC={class:"here"},ZC={class:"anonymize-topbar-head"},xC={class:"paper-page-title anonymize-topbar-title"},e2={key:0},t2={key:1},o2={key:0,class:"alert alert-info",role:"status"},n2={key:1,class:"alert alert-info",role:"status"},s2={key:1},r2={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},i2=["aria-selected","tabindex"],a2=["aria-selected","tabindex"],l2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},d2={class:"anonymize-split"},u2=["role","aria-labelledby"],c2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},p2={class:"paper-settings-section"},f2={class:"form-group"},m2={class:"source-url-label-row"},h2={key:0,class:"repo-access","aria-label":"GitHub access"},v2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},y2=["aria-pressed","disabled"],g2=["aria-pressed","disabled"],b2={key:1,class:"connection-badge"},w2=["disabled"],k2={class:"invalid-feedback"},E2={class:"invalid-feedback"},C2={class:"invalid-feedback"},_2={class:"invalid-feedback"},S2={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},N2={key:0,class:"form-group"},D2=["value"],R2={key:1},T2={class:"repo-access-controls"},A2=["href"],O2={key:1,class:"repo-access-details","aria-label":"GitHub access"},I2={class:"repo-access-main"},P2={class:"repo-access-controls"},V2={key:1,class:"connection-link",href:"/connections"},q2={class:"repo-access-note"},M2={key:0},U2={key:2,class:"repo-access-details"},$2=["disabled"],L2={key:0,role:"status"},F2={key:3,class:"repo-access-details"},z2={key:0,role:"status"},H2={key:4,class:"form-grid-2"},B2={class:"form-group"},j2={class:"input-group"},G2={class:"form-control",id:"branch",name:"branch"},W2=["textContent","value"],K2={class:"input-group-append"},Y2={class:"form-group"},J2=["disabled"],Q2={class:"invalid-feedback"},X2={class:"invalid-feedback"},Z2={class:"form-check"},x2={class:"form-check-input",type:"checkbox",id:"update",name:"update"},e_={class:"paper-settings-section"},t_={class:"form-group"},o_=["disabled"],n_={class:"form-text text-muted"},s_={class:"invalid-feedback"},r_={class:"form-group"},i_=["disabled"],a_={class:"form-text text-muted"},l_={class:"invalid-feedback"},d_={class:"form-group"},u_=["disabled"],c_={class:"form-text text-muted"},p_={class:"invalid-feedback"},f_={class:"form-group"},m_={class:"form-text text-muted"},h_=["href"],v_={class:"invalid-feedback"},y_={class:"form-text text-muted"},g_={class:"paper-settings-section"},b_={class:"form-group"},w_={class:"form-text text-muted"},k_={class:"warning-feedback"},E_={class:"invalid-feedback"},C_={class:"paper-settings-section"},__={class:"form-check"},S_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},N_={class:"form-check"},D_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},R_={class:"form-check"},T_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},A_={class:"form-check"},O_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},I_={class:"form-check"},P_=["disabled"],V_={key:0,class:"form-text text-muted"},q_={key:1,class:"form-text text-muted"},M_={class:"form-check"},U_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},$_={class:"form-check"},L_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},F_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},j_={class:"form-check"},G_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},Y_={class:"form-check"},J_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},Q_={class:"form-check"},X_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},Z_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},eS={class:"form-check"},tS={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},oS={class:"form-check"},nS={class:"form-check-input",type:"checkbox",id:"username",name:"username"},sS={class:"form-check"},rS={class:"form-check-input",type:"checkbox",id:"date",name:"date"},iS={class:"form-check"},aS={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},lS={class:"paper-settings-section"},dS={class:"form-grid-2"},uS={class:"form-group"},cS={class:"form-control",id:"expiration",name:"expiration"},pS={class:"form-group"},fS=["min","max"],mS={class:"invalid-feedback"},hS={class:"invalid-feedback"},vS={class:"paper-settings-section"},yS={class:"form-group"},gS={style:{position:"relative"}},bS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},wS={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},kS=["onClick"],ES=["src"],CS=["textContent"],_S=["textContent"],SS={class:"coauthor-list"},NS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},DS=["src"],RS=["textContent","href"],TS=["onClick"],AS={class:"form-text text-muted"},OS=["textContent"],IS={key:1,class:"draft-status",role:"status"},PS={key:2,class:"draft-status"},VS={key:3,class:"anonymize-review-note"},qS={class:"anonymize-submit-bar"},MS=["disabled"],US=["disabled"],$S=["disabled"],LS=["disabled"],FS=["disabled"],zS=["disabled"],HS=["role","aria-labelledby"],BS={class:"anonymize-preview-head"},jS={class:"anonymize-preview-sub"},GS={key:0,class:"anonymize-preview-status",role:"status"},WS={key:1,class:"anonymize-preview-status",role:"status"},KS={key:2,class:"anonymize-preview-status",role:"alert"},YS={key:3,class:"anonymize-preview-status"},JS=["innerHTML"],QS=["role","aria-labelledby"],XS={class:"anonymize-preview-head"},ZS={class:"anonymize-preview-sub"},xS={key:0,class:"anonymize-preview-status",role:"status"},eN={key:1,class:"anonymize-preview-status",role:"status"},tN={key:2,class:"anonymize-preview-status",role:"alert"},oN={key:3,class:"anonymize-preview-body"},nN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},sN={class:"pr-title mb-1"},rN={key:0},iN=["textContent"],aN={key:0},lN={key:1},dN={key:2},uN={class:"pr-comments mt-3"},cN={class:"pr-comment"},pN={class:"pr-comment-head"},fN=["textContent"],mN={key:0,class:"pr-comment-date"},hN={key:3},vN={class:"pr-comments"},yN={class:"pr-comment"},gN={class:"pr-comment-head"},bN={key:0,class:"pr-comment-author"},wN=["textContent"],kN=["textContent"],EN={key:0,class:"pr-comment-body"},CN=["role","aria-labelledby"],_N={class:"anonymize-preview-head"},SN={class:"anonymize-preview-sub"},NN={key:0,class:"anonymize-preview-status",role:"status"},DN={key:1,class:"anonymize-preview-status",role:"status"},RN={key:2,class:"anonymize-preview-status",role:"alert"},TN={key:3,class:"anonymize-preview-body"},AN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},ON={class:"pr-title mb-1"},IN={key:0},PN=["textContent"],VN={key:0},qN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},MN={key:2,class:"paper-tabs",role:"tablist"},UN=["aria-selected","tabindex"],$N=["aria-selected","tabindex"],LN=["textContent"],FN={key:3,class:"anonymize-preview-status"},zN={class:"paper-tab-content"},HN={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},BN=["innerHTML"],jN={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},GN={class:"pr-comments"},WN={class:"pr-comment"},KN={class:"pr-comment-head"},YN={key:0,class:"pr-comment-author"},JN=["textContent"],QN=["textContent"],XN={key:0,class:"pr-comment-body"};function ql(e,t){let n=Ge("gist-file"),r=Ge("markdown"),s=ve("field"),i=ve("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),N(o("div",TC,[o("div",AC,[t[40]||(t[40]=o("div",{class:"paper-crumbs"},[w("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[41]||(t[41]=o("h1",{class:"paper-page-title"},[w("New "),o("em",null,"anonymization")],-1)),t[42]||(t[42]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",OC,[o("div",IC,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",PC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",VC,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(),o("span",{class:"sr-only"},"Read-only ",-1),w("GitHub App",-1)])],8,qC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,MC)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",UC,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),N(o("input",$C,null,512),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",LC,[t[37]||(t[37]=w("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):f("v-if",!0),e.sourceUrlError?(l(),d("p",FC,c(e.sourceUrlError),1)):f("v-if",!0),t[43]||(t[43]=o("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",zC,[o("div",HC,[o("div",BC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[38]||(t[38]=[w("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",jC,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",GC,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",WC,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[39]||(t[39]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0)])],512),[[j,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),N(o("div",KC,[o("header",YC,[o("div",JC,[o("div",QC,[t[44]||(t[44]=o("a",{href:"/dashboard"},"My work",-1)),t[45]||(t[45]=w(" \xA0/\xA0 ",-1)),o("span",XC,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",ZC,[o("h1",xC,[e.isUpdate?f("v-if",!0):(l(),d("span",e2,[...t[46]||(t[46]=[w("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",t2,[...t[47]||(t[47]=[w("Edit ",-1),o("em",null,"anonymization",-1)])])):f("v-if",!0)]),N(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[j,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",o2,[t[48]||(t[48]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",n2,[t[49]||(t[49]=o("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[50]||(t[50]=o("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",s2,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),o("nav",r2,[o("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,i2),o("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,a2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",l2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):f("v-if",!0),o("div",d2,[f(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[N((l(),d("form",c2,[o("section",p2,[t[65]||(t[65]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",f2,[o("div",m2,[t[52]||(t[52]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",h2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",v2,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[51]||(t[51]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(),o("span",{class:"sr-only"},"Read-only ",-1),w("GitHub App",-1)])],8,y2),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,g2)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",b2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,w2),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),N(o("div",k2," Please provide a valid GitHub URL. ",512),[[j,e.anonymize?.sourceUrl?.errors?.github]]),N(o("div",E2," Not accessible. The organization may restrict access. ",512),[[j,e.anonymize?.sourceUrl?.errors?.access]]),N(o("div",C2," Does not exist or is not accessible. ",512),[[j,e.anonymize?.sourceUrl?.errors?.missing]]),N(o("div",_2," Already anonymized. ",512),[[j,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(l(),d("aside",S2,[t[54]||(t[54]=o("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(l(),d("div",N2,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),N(o("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=a=>e.previousConfigurationId=a)},[(l(!0),d(K,null,oe(e.previousConfigurations,a=>(l(),d("option",{key:a.repoId,value:a.repoId},c(a.repoId),9,D2))),128))],512),[[Xn,e.previousConfigurationId]])])):(l(),d("p",R2,c(e.previousConfigurationId),1)),t[55]||(t[55]=o("p",null,"You can review and update its settings before saving.",-1)),o("div",T2,[o("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,A2),o("button",{type:"button",class:"btn btn-link",onClick:t[13]||(t[13]=a=>e.previousConfigurations=[])},"Create a separate anonymization")])])):f("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",O2,[o("div",I2,[o("div",P2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},[...t[56]||(t[56]=[w("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",V2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",q2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",M2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[57]||(t[57]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",U2,[t[58]||(t[58]=o("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[15]||(t[15]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,$2),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",L2,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",F2,[t[59]||(t[59]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[17]||(t[17]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",z2,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])):f("v-if",!0),e.detectedType==="repo"?(l(),d("div",H2,[o("div",B2,[t[61]||(t[61]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",j2,[N((l(),d("select",G2,[(l(!0),d(K,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,W2))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",K2,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[18]||(t[18]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",Y2,[t[62]||(t[62]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,J2),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),N(o("div",Q2," The commit SHA is not valid. ",512),[[j,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),N(o("div",X2," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[j,e.anonymize?.commit?.errors?.exists]])])])):f("v-if",!0),N(o("div",Z2,[N(o("input",x2,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[63]||(t[63]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[64]||(t[64]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[j,e.detectedType]])]),N(o("section",e_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),N(o("div",t_,[t[68]||(t[68]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,o_),[[s,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",n_,[t[66]||(t[66]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[67]||(t[67]=w(".",-1))]),N(o("div",s_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.repoId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[j,e.anonymize?.repoId?.errors?.used]])],512),[[j,e.detectedType==="repo"]]),N(o("div",r_,[t[71]||(t[71]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,i_),[[s,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",a_,[t[69]||(t[69]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[70]||(t[70]=w(".",-1))]),N(o("div",l_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])],512),[[j,e.detectedType==="pr"]]),N(o("div",d_,[t[74]||(t[74]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,u_),[[s,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",c_,[t[72]||(t[72]=w("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[73]||(t[73]=w(".",-1))]),N(o("div",p_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.gistId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[j,e.anonymize?.gistId?.errors?.used]])],512),[[j,e.detectedType==="gist"]]),o("div",f_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"conference"},[w("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[s,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",m_,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,h_),w(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[j,e.conference_data]]),N(o("div",v_,"The conference is not activated.",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(o("small",y_,"Link to a conference to apply its shared defaults.",512),[[j,!e.conference_data]])])],512),[[j,e.detectedType]]),N(o("section",g_,[t[84]||(t[84]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",b_,[t[83]||(t[83]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",w_,[t[77]||(t[77]=w("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[78]||(t[78]=w(", or use ",-1)),t[79]||(t[79]=o("code",null,"term=>replacement",-1)),t[80]||(t[80]=w(" to pick your own (e.g. ",-1)),t[81]||(t[81]=o("code",null,"Anonymous=>ABC",-1)),t[82]||(t[82]=w(").",-1))]),N(o("div",k_,"Regex characters detected. Escape them if unintentional.",512),[[j,e.termsRegexWarning]]),N(o("div",E_,"Terms are in an invalid format.",512),[[j,e.anonymize?.terms?.errors?.format]])])],512),[[j,e.detectedType]]),N(o("section",C_,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),N(o("div",null,[o("div",__,[N(o("input",S_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",N_,[N(o("input",D_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[87]||(t[87]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",R_,[N(o("input",T_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[89]||(t[89]=o("small",{class:"form-text text-muted"},[w("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",A_,[N(o("input",O_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",I_,[N(o("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,P_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(l(),d("small",V_,c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",q_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[j,e.detectedType==="repo"]]),N(o("div",null,[o("div",M_,[N(o("input",U_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",$_,[N(o("input",L_,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",F_,[N(o("input",z_,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",H_,[N(o("input",B_,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",j_,[N(o("input",G_,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",W_,[N(o("input",K_,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[97]||(t[97]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[j,e.detectedType==="gist"]]),N(o("div",null,[o("div",Y_,[N(o("input",J_,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[98]||(t[98]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",Q_,[N(o("input",X_,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[99]||(t[99]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",Z_,[N(o("input",x_,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[100]||(t[100]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",eS,[N(o("input",tS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[101]||(t[101]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",oS,[N(o("input",nS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[102]||(t[102]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",sS,[N(o("input",rS,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[103]||(t[103]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",iS,[N(o("input",aS,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[104]||(t[104]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[j,e.detectedType==="pr"]])],512),[[j,e.detectedType]]),N(o("section",lS,[t[109]||(t[109]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",dS,[o("div",uS,[t[107]||(t[107]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),N((l(),d("select",cS,[...t[106]||(t[106]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",pS,[t[108]||(t[108]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,fS),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),N(o("div",mS,"Pick a date in the future.",512),[[j,e.anonymize?.expirationDate?.errors?.min]]),N(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[j,e.anonymize?.expirationDate?.errors?.max]]),N(o("div",hS,"Enter a valid expiration date.",512),[[j,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[j,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[j,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[j,e.detectedType]]),N(o("section",vS,[t[113]||(t[113]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[114]||(t[114]=o("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),N(o("div",yS,[t[110]||(t[110]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",gS,[N(o("input",bS,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),N(o("div",wS,[(l(!0),d(K,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ie(m=>e.addCoauthor(a,m),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,ES),o("span",{textContent:c(a?.username)},null,8,CS)],8,kS))),256))],512),[[j,e.coauthorResults?.length>0]])]),N(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,_S),[[j,e.coauthorError]])],512),[[j,e.role==="owner"||e.role==="admin"]]),o("div",SS,[(l(!0),d(K,null,oe(e.coauthors,(a,u)=>(l(),d("div",NS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,DS)):f("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,RS),t[112]||(t[112]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),N(o("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:m=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[111]||(t[111]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,TS),[[j,e.role==="owner"||e.role==="admin"]])]))),256)),N(o("div",AS," No co-authors yet. ",512),[[j,!e.coauthors||e.coauthors?.length===0]])])],512),[[j,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,OS)):f("v-if",!0),e.draftRestored?(l(),d("div",IS,[t[115]||(t[115]=w("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[19]||(t[19]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",PS,[w(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[20]||(t[20]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",VS,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[21]||(t[21]=a=>e.selectMobilePane("preview"))},[...t[116]||(t[116]=[w("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),N(o("div",qS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[117]||(t[117]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Repository ",-1)])],8,MS)):f("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[118]||(t[118]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Repository ",-1)])],8,US)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[24]||(t[24]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[119]||(t[119]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Pull Request ",-1)])],8,$S)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[120]||(t[120]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Pull Request ",-1)])],8,LS)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[121]||(t[121]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize Gist ",-1)])],8,FS)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[122]||(t[122]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update Gist ",-1)])],8,zS)):f("v-if",!0)],512),[[j,e.detectedType]])])),[[i,e.viewState]])],8,u2),f(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",BS,[t[123]||(t[123]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",jS,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",GS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",WS,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",KS,[t[124]||(t[124]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[28]||(t[28]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",YS,"No README is available to preview. Review the published files before sharing.")):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",{key:4,class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,JS)):f("v-if",!0)],8,HS)):f("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",XS,[t[125]||(t[125]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",ZS,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",xS,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",eN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",tN,[t[126]||(t[126]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[29]||(t[29]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",oN,[o("div",nN,[o("h2",sN,[e.options?.title?(l(),d("span",rN,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,iN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",aN,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",lN,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",dN,[o("ul",uN,[(l(!0),d(K,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",cN,[o("div",pN,[o("strong",{textContent:c(a?.filename)},null,8,fN),a?.language?(l(),d("span",mN,c(a?.language),1)):f("v-if",!0)]),Ce(n,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",hN,[t[129]||(t[129]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",vN,[(l(!0),d(K,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",yN,[o("div",gN,[e.options?.username?(l(),d("span",bN,[t[127]||(t[127]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[128]||(t[128]=w(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,wN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,kN)):f("v-if",!0)]),e.options?.body?(l(),d("div",EN,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):f("v-if",!0)],8,QS)):f("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",_N,[t[130]||(t[130]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",SN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",NN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",DN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",RN,[t[131]||(t[131]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",TN,[o("div",AN,[o("h2",ON,[e.options?.title?(l(),d("span",IN,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,PN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",VN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",qN,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",MN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[31]||(t[31]=a=>e.previewTabKeydown(a)),onClick:t[32]||(t[32]=a=>e.prTabState.active="diff")},[...t[132]||(t[132]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),w(" Diff ",-1)])],42,UN)):f("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[33]||(t[33]=a=>e.previewTabKeydown(a)),onClick:t[34]||(t[34]=a=>e.prTabState.active="comments")},[t[133]||(t[133]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,LN)],42,$N)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",FN,"Diff and comments are hidden by your display settings.")):f("v-if",!0),o("div",zN,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",HN,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,BN)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",jN,[o("ul",GN,[(l(!0),d(K,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",WN,[o("div",KN,[e.options?.username?(l(),d("span",YN,[t[134]||(t[134]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[135]||(t[135]=w(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,JN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,QN)):f("v-if",!0)]),e.options?.body?(l(),d("div",XN,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0)],8,CN)):f("v-if",!0)])],512),[[j,e.workspaceOpen||e.isUpdate]])],2)}var ZN={class:"container-fluid h-100 anonymize-page"},xN={class:"row h-100 flex-column flex-md-row"},eD={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},tD={class:"form-group"},oD={class:"form-group"},nD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"update",name:"update"},rD={class:"form-group"},iD={class:"form-text text-muted"},aD=["href"],lD={class:"invalid-feedback"},dD={class:"form-text text-muted"},uD={class:"form-group"},cD={id:"idHelp",class:"form-text text-muted"},pD={class:"invalid-feedback"},fD={class:"form-group"},mD={class:"invalid-feedback"},hD={class:"form-group"},vD={class:"form-control",id:"expiration",name:"expiration"},yD={class:"form-group",id:"expiration-date-form"},gD={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},bD={class:"accordion mb-3",id:"options"},wD={class:"card"},kD={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},ED={class:"card-body"},CD={class:"form-group mb-0"},_D={class:"form-check"},SD={class:"form-check-input",type:"checkbox",id:"link",name:"link"},ND={class:"form-check"},DD={class:"form-check-input",type:"checkbox",id:"image",name:"image"},RD={class:"form-check"},TD={class:"form-check-input",type:"checkbox",id:"date",name:"date"},AD={class:"form-check"},OD={class:"form-check-input",type:"checkbox",id:"username",name:"username"},ID={class:"form-check"},PD={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},VD={class:"form-check"},qD={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},MD={class:"form-check"},UD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},$D={class:"form-check"},LD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},FD={class:"form-check"},zD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},HD=["textContent"],BD={class:"anonymize-submit-bar"},jD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},GD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},WD={class:"pr-title mb-1"},KD={key:0},YD=["textContent"],JD={key:0},QD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},XD={class:"nav nav-tabs",id:"myTab",role:"tablist"},ZD={key:0,class:"nav-item",role:"presentation"},xD={key:1,class:"nav-item",role:"presentation"},eR=["textContent"],tR={class:"tab-content",id:"pills-tabContent"},oR={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},nR={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},sR={style:{"overflow-x":"auto"}},rR=["innerHTML"],iR={key:0,class:"pr-comments list-group"},aR={class:"pr-comment list-group-item"},lR={class:"d-flex w-100 justify-content-between flex-wrap"},dR={key:0,class:"mb-1"},uR=["textContent"],cR={class:"mb-1"};function Ml(e,t){let n=Ge("markdown"),r=ve("field"),s=ve("form");return l(),d("div",ZN,[o("div",xN,[o("div",eD,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[N((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=ue('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),f(" pullRequestUrl "),o("div",tD,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.access]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.missing]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.used]])]),N(o("div",null,[o("div",oD,[o("div",nD,[N(o("input",sD,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),w(" Conference ID ")],-1)),f(" Conference "),o("div",rD,[t[5]||(t[5]=o("label",{for:"conference"},[w("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),N(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),N(o("small",iD,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,aD),w(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[j,e.conference_data]]),N(o("div",lD," The conference is not activated. ",512),[[j,e.anonymize?.conference?.errors?.activated]]),N(o("small",dD," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[j,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),w(" Anonymization Options ")],-1)),f(" Pull Request ID "),o("div",uD,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",cD,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),N(o("div",pD," Repository id can only contain letters and numbers ",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),N(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),o("div",fD,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),N(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),N(o("div",mD," Terms are in an invalid format ",512),[[j,e.anonymize?.terms?.errors?.format]])]),o("div",hD,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),N((l(),d("select",vD,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),N(o("div",yD,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),N(o("input",gD,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[j,e.options?.expirationMode=="remove"]]),N(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[j,e.options?.expirationMode=="redirect"]])],512),[[j,e.options?.expirationMode!="never"]]),o("div",bD,[o("div",wD,[t[25]||(t[25]=ue('
',1)),o("div",kD,[o("div",ED,[o("div",CD,[o("div",_D,[N(o("input",SD,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",ND,[N(o("input",DD,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",RD,[N(o("input",TD,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",AD,[N(o("input",OD,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",ID,[N(o("input",PD,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",VD,[N(o("input",qD,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",MD,[N(o("input",UD,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",$D,[N(o("input",LD,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",FD,[N(o("input",zD,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[j,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,HD)):f("v-if",!0),N(o("div",BD,[e.isUpdate?f("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ie(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),w(" Update ",-1)])])):f("v-if",!0)],512),[[j,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",jD,[o("div",GD,[o("h2",WD,[e.options?.title?(l(),d("span",KD,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,YD)):f("v-if",!0)]),e.options?.origin?(l(),d("small",JD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",QD,[Ce(n,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),o("ul",XD,[e.options?.diff?(l(),d("li",ZD,[...t[31]||(t[31]=[o("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(l(),d("li",xD,[o("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,eR)],2)])):f("v-if",!0)]),o("div",tR,[o("div",oR,[e.options?.diff?(l(),d("div",nR,[o("pre",sR,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,rR)])])):f("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",iR,[(l(!0),d(K,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",aR,[o("div",lR,[e.options?.username?(l(),d("h5",dR," @"+c(e.anonymize(i?.author)),1)):f("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,uR)):f("v-if",!0)]),o("p",cR,[e.options?.body?(l(),Lt(n,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var pR={class:"container paper-page claim-page"},fR={class:"paper-settings-main claim-form"},mR={class:"form-group"},hR={class:"invalid-feedback"},vR={class:"form-group"};function Ul(e,t){let n=ve("field"),r=ve("form");return l(),d("div",pR,[t[6]||(t[6]=ue('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",fR,[t[5]||(t[5]=o("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),N((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",mR,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),N(o("div",hR," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[j,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",vR,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[w("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/"),w(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var yR={class:"container page paper-page conference-page"},gR={class:"paper-crumbs"},bR={class:"here"},wR={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},kR=["textContent"],ER={key:0,class:"paper-page-lede"},CR=["textContent","href"],_R={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},SR=["textContent"],NR=["href"],DR={class:"paper-meta-rule"},RR=["textContent"],TR=["textContent"],AR={key:0},OR={class:"search-wrap"},IR={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},PR={class:"dashboard-filter-controls"},VR={class:"dropdown"},qR={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},MR={class:"filter-btn-value"},UR={class:"dropdown-menu","aria-labelledby":"dropdownSort"},$R={class:"form-check dropdown-item"},LR={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},FR={class:"form-check dropdown-item"},zR={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},HR={class:"form-check dropdown-item"},BR={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},jR={class:"form-check dropdown-item"},GR={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},WR={class:"dropdown"},KR={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},YR={key:0,class:"filter-btn-value"},JR={key:1,class:"filter-btn-value"},QR={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},XR={class:"form-check dropdown-item"},ZR=["id"],xR=["for"],eT={class:"dashboard-meta"},tT={class:"dashboard-count"},oT={key:0},nT={key:0},sT={key:1},rT={key:1},iT={key:0,class:"filter-chip"},aT=["onClick","aria-label"],lT={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},dT={class:"cell-anon",role:"cell"},uT={class:"anon-text"},cT=["textContent","href"],pT={class:"anon-sub"},fT={class:"anon-source"},mT=["textContent","href"],hT={key:0},vT=["textContent","href"],yT={key:1},gT=["href"],bT={class:"cell-status",role:"cell"},wT={class:"status-line"},kT=["textContent"],ET={key:0,class:"status-sub"},CT={class:"cell-views num",role:"cell"},_T=["textContent"],ST={class:"cell-expires",role:"cell"},NT={key:0,class:"expires-never"},DT=["textContent"],RT={key:2,class:"expires-past"},TT={key:0},AT={key:3,class:"empty-dash","aria-label":"Not applicable"},OT={class:"cell-actions",role:"cell"},IT={class:"dropdown"},PT=["aria-label"],VT={class:"dropdown-menu dropdown-menu-right"},qT=["href"],MT=["href"],UT={key:0,class:"paper-table-empty"},$T={key:0},LT={key:1},FT={key:2,class:"paper-table-empty-actions"};function $l(e,t){let n=ve("field"),r=ve("form");return l(),d("div",yR,[o("div",null,[o("div",gR,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=w(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=w(" \xA0/\xA0 ",-1)),o("span",bR,c(e.conference?.conferenceID),1)]),o("div",wR,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,kR),e.conference?.url?(l(),d("p",ER,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,CR)])):f("v-if",!0)]),o("div",_R,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,SR)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit conference",-1)])],8,NR)])]),o("div",DR,[o("span",null,[t[7]||(t[7]=w("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,RR)]),o("span",null,[t[8]||(t[8]=w("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=w("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=w("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,TR)]),e.conference?.price?(l(),d("span",AR,[t[11]||(t[11]=w("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):f("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",OR,[N(o("input",IR,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",PR,[o("div",VR,[o("button",qR,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",MR,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",UR,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",$R,[N(o("input",LR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",FR,[N(o("input",zR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",HR,[N(o("input",BR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",jR,[N(o("input",GR,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",WR,[o("button",KR,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",YR,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",JR,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",QR,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(K,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",XR,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,ZR),[[n,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(s),9,xR)]))),256))])])])],32)),[[r,e.viewState]]),o("div",eT,[o("span",tT,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",oT,[w(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",nT,"y")):f("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",sT,"ies")):f("v-if",!0)])):f("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",rT,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(K,null,oe(e.filters?.status,(s,i,a)=>(l(),d(K,null,[s===!1?(l(),d("span",iT,[w(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,aT)])):f("v-if",!0)],64))),256))]),o("div",lT,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(K,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error"}]),role:"row",key:s?.repoId},[o("div",dT,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",uT,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,cT),o("div",pT,[o("span",fT,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,mT),s?.options?.update&&s?.source?.branch?(l(),d("span",hT,[t[20]||(t[20]=w(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,vT)])):f("v-if",!0),s?.source?.commit?(l(),d("span",yT,[t[21]||(t[21]=w(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},"@"+c(s?.source?.commit?.substring(0,8)),9,gT)])):f("v-if",!0)])])])]),o("div",bT,[o("div",wT,[o("span",{class:A(["status-dot","status-"+(s?.status=="error"?"error":s?.status=="ready"?"ready":s?.status=="expired"||s?.status=="removed"?s?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,kT)]),s?.anonymizeDate?(l(),d("div",ET,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):f("v-if",!0)]),o("div",CT,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=w()),o("span",{textContent:c(e.fmt?.number(s?.pageView))},null,8,_T)]),o("div",ST,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.status=="ready"&&(s?.options?.expirationMode==="never"||!s?.options?.expirationDate)?(l(),d("span",NT,"Never")):f("v-if",!0),s?.status=="ready"&&s?.options?.expirationMode!=="never"&&s?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(s?.options?.expirationDate))},null,8,DT)):f("v-if",!0),s?.status=="expired"?(l(),d("span",RT,[t[25]||(t[25]=w("Expired",-1)),s?.options?.expirationDate?(l(),d("span",TT,c(e.fmt?.humanTime(s?.options?.expirationDate)),1)):f("v-if",!0)])):f("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",AT,"\u2014")):f("v-if",!0)]),o("div",OT,[o("div",IT,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+s?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,PT),o("div",VT,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View ",-1)])],8,qT),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit ",-1)])],8,MT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",UT,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(l(),d("span",$T,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",LT,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(l(),d("div",FT,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)])])])}var zT={class:"container page paper-page conferences-page"},HT={class:"row"},BT={class:"w-100"},jT={class:"search-wrap"},GT={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},WT={class:"dashboard-filter-controls"},KT={class:"dropdown"},YT={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},JT={class:"filter-btn-value"},QT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},XT={class:"form-check dropdown-item"},ZT={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},xT={class:"form-check dropdown-item"},eA={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},tA={class:"form-check dropdown-item"},oA={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},nA={class:"dropdown"},sA={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},rA={key:0,class:"filter-btn-value"},iA={key:1,class:"filter-btn-value"},aA={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},lA={class:"form-check dropdown-item"},dA=["id"],uA=["for"],cA={class:"dashboard-meta"},pA={class:"dashboard-count"},fA={key:0},mA={key:0},hA={key:1},vA={key:0,class:"filter-chip"},yA=["onClick","aria-label"],gA={key:0,class:"conference-feedback",role:"alert"},bA={key:1,class:"conference-feedback",role:"status"},wA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},kA={class:"cell-anon",role:"cell"},EA={class:"anon-text"},CA=["textContent","href"],_A={class:"anon-sub"},SA={class:"anon-source"},NA=["textContent"],DA={key:0},RA=["textContent","href"],TA={class:"cell-status",role:"cell"},AA={class:"status-line"},OA=["textContent"],IA={class:"cell-views num",role:"cell"},PA=["textContent"],VA={class:"cell-expires",role:"cell"},qA={key:0},MA={key:1,class:"empty-dash","aria-label":"No review window"},UA={class:"cell-actions",role:"cell"},$A={class:"dropdown"},LA=["disabled","aria-label"],FA={class:"dropdown-menu dropdown-menu-right"},zA=["href"],HA=["href"],BA={key:0},jA=["onClick"],GA={key:0,class:"paper-table-empty"},WA={key:0},KA={key:1},YA={class:"paper-table-empty-actions"},JA={key:1,href:"/conference/new",class:"btn btn-ink"};function Ll(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zT,[o("div",HT,[o("div",BT,[t[10]||(t[10]=ue('
',1))]),f(" Search + filters "),N((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ie(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",dO,[N(o("input",uO,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[w("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,cO),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",pO,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,fO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,mO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,hO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,vO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",yO,[o("button",gO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",bO,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",wO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",kO,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(K,null,oe(e.sortFields,(i,a,u)=>(l(),d("div",EO,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:m=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,CO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,_O)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",SO,[o("button",NO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?f("v-if",!0):(l(),d("span",DO,"All")),e.hasHiddenStatus()?(l(),d("span",RO,c(e.hiddenStatusCount())+" hidden",1)):f("v-if",!0)]),o("div",TO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(K,null,oe(e.statusKeyLabels,(i,a,u)=>(l(),d("div",AO,[N(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,OO),[[r,{state:e.viewState,set:m=>{e.filters.status[a]=m},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,IO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(l(),d("div",PO,[o("div",VO,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,qO),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=w()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,MO)]),o("span",UO,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",$O,[w(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",LO,"s")):f("v-if",!0)])):(l(),d("span",FO,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",zO,[(l(!0),d(K,null,oe(e.filters?.status,(i,a,u)=>(l(),d(K,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:m=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[w(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,HO)):f("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[w(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0)])]))]),f(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",jO,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=w(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,GO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=w(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,WO),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=w(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,KO),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=w(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,YO),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(K,null,oe([1,2,3,4],(i,a)=>(l(),d(K,null,[e.loading?(l(),d("div",JO,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(l(!0),d(K,null,oe(e.filteredItems,(i,a)=>(l(),d(K,{key:i?._type+":"+(i?._id||a)},[e.loading?f("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",XO,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",xO,[o("use",{href:"#project-type-"+i._type},null,8,eI)]))],8,ZO),o("div",tI,[o("div",oI,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,nI)):f("v-if",!0),i?._viewUrl?f("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,sI)),i?.role==="coauthor"?(l(),d("span",rI,"Co-author")):f("v-if",!0)]),o("div",iI,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,aI)):f("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,lI)):f("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=w()),o("span",{textContent:c(i?.conference)},null,8,uI)],8,dI)):f("v-if",!0)])])]),o("div",cI,[o("div",pI,[o("div",fI,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,mI)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,hI)):f("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,vI)):f("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,yI)):f("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ie(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,gI)):f("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",bI," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,wI),o("div",kI,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",EI,"Never")):f("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,CI)):f("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",_I,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):f("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",SI,"Expired")):f("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",NI,"\u2014")):f("v-if",!0)])]),o("div",DI,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ie(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,RI)):f("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ie(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,TI)):f("v-if",!0),i?._broken?f("v-if",!0):(l(),d("div",AI,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,OI),o("div",II,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,PI),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,VI),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,qI)):f("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,MI)):f("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,UI),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,$I)):f("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,LI)):f("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,FI)):f("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",zI,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,HI)])):f("v-if",!0)])]))])],10,QO)),!e.loading&&e.selectedProject===i?(l(),d("div",BI,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:To(ie(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",GI,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,WI)]),o("dl",KI,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",YI,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):f("v-if",!0),i.conference?(l(),d("div",JI,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):f("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[w(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",QI," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):f("v-if",!0)])]),i.anonymizeDate?(l(),d("div",XI,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):f("v-if",!0)]),i._stale?(l(),d("p",ZI,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,xI)):f("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ie(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,t4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,o4),o("div",n4,[N(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,s4),[[zt,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,r4)]),e.nameError?(l(),d("p",i4,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(l(),d("p",a4,c(e.nameMessage),1)):f("v-if",!0)],40,e4)):f("v-if",!0)],40,jI)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",l4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(l(),d("span",d4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",u4,"Nothing matches the current filters.")):f("v-if",!0),o("div",c4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(l(),d("a",p4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),w(" New anonymization",-1)])]))])])):f("v-if",!0)],8,BO)]),e.dashboardCursor||e.dashboardError?(l(),d("div",f4,[e.dashboardError?(l(),d("p",m4,c(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,h4)):f("v-if",!0)])):f("v-if",!0)])}var v4={class:"explorer-page"},y4=["aria-label"],g4={class:"ui-icon","aria-hidden":"true"},b4=["href"],w4=["textContent"],k4={class:"leftCol-head"},E4={class:"leftCol-search"},C4={class:"tree-search-box"},_4=["href"],S4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},N4={class:"leftCol-project-header"},D4=["textContent","title"],R4={class:"project-file-count"},T4=["title"],A4={class:"leftCol-body"},O4={key:0,class:"paper-inline-warning",role:"alert"},I4={key:1,class:"paper-inline-warning",role:"alert"},P4={class:"leftCol-foot"},V4=["title"],q4=["title"],M4=["title"],U4={key:2,class:"last-update",title:"Older repositories have no recorded publication date. The source commit date does not establish when files became available here."},$4={class:"explorer-main"},L4={class:"status-bar"},F4={class:"breadcrumb paths","aria-label":"Path"},z4=["textContent"],H4={class:"status-bar-actions"},B4=["href"],j4={class:"d-none d-md-inline"},G4={class:"ui-icon","aria-hidden":"true"},W4=["href"],K4={class:"d-none d-md-inline"},Y4=["href"],J4=["href"],Q4=["href"],X4=["href"],Z4={class:"explorer-content"};function zl(e,t){let n=Ge("tree"),r=Ge("partial-view"),s=ve("field");return l(),d("div",v4,[N(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",g4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,b4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,w4)],8,y4),[[j,e.files?.length]]),N(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",k4,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",E4,[o("div",C4,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,_4)],2)),N(o("input",S4,null,512),[[s,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),N(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[j,!e.fileSearchQuery]]),N(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[j,e.fileSearchQuery]])])]),o("div",N4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,D4),o("span",R4,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),w(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,T4)):f("v-if",!0)]),o("div",A4,[e.options?.truncatedFolders?.length>0?(l(),d("div",O4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(l(),d("div",I4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),w(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Ce(n,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",P4,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,V4),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,q4)):f("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,M4)):f("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",U4," Snapshot ready date not recorded ")):f("v-if",!0)])],2),[[j,e.files?.length]]),N(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[j,e.files?.length&&!e.sidebarCollapsed]]),o("div",$4,[N(o("div",L4,[o("ol",F4,[(l(!0),d(K,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,z4))),256))]),o("div",H4,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,B4)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",j4,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",G4,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,W4)])),o("span",K4,c(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,Y4),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),N(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,J4),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,Q4)):f("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,X4)):f("v-if",!0)])],512),[[j,e.type!="error"||e.files?.length]]),o("div",Z4,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var x4={class:"paper-faq"};function Hl(e,t){return l(),d("div",x4,[...t[0]||(t[0]=[ue('
',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[f(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),w("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[w(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),w(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),w(', or by clicking the "Support me" button on the site. ')])])])])]),f(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),w("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),w(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),w(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),w(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),w(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),w(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),w(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),w(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),w(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
-anonymous_github`)])])])])]),f(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),w("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),w("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[w("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),w(" page.")]),o("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),w("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[w(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),w(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[w("Create a "),o("code",null,".env"),w(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[w("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[w(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),w(" and we'll be happy to help. ")])])])])],-1)])])}var e3={class:"pr-page"},t3={class:"container paper-page pr-page-inner"},o3={class:"pr-header"},n3={class:"pr-title-row"},s3={class:"paper-page-title pr-title"},r3=["textContent"],i3={key:1,class:"text-muted"},a3=["href"],l3={class:"pr-header-meta"},d3={key:0,class:"pr-meta-item"},u3=["textContent"],c3={key:1,class:"pr-meta-item"},p3=["textContent"],f3={key:2,class:"pr-meta-item"},m3=["textContent"],h3={key:0,class:"paper-tabs",role:"tablist"},v3=["aria-selected","tabindex"],y3=["textContent"],g3=["aria-selected","tabindex"],b3=["textContent"],w3={class:"paper-tab-content"},k3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},E3={class:"pr-comments"},C3={class:"pr-comment"},_3={class:"pr-comment-head"},S3=["textContent"],N3={key:0,class:"pr-comment-date"},D3={key:0,class:"paper-table-empty"},R3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},T3={class:"pr-comments"},A3={class:"pr-comment"},O3={class:"pr-comment-head"},I3={key:0,class:"pr-comment-author"},P3=["textContent"],V3=["textContent"],q3={key:0,class:"pr-comment-body"},M3={key:0,class:"paper-table-empty"};function Bl(e,t){let n=Ge("gist-file"),r=Ge("markdown");return l(),d("div",e3,[o("div",t3,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),w(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",o3,[o("div",n3,[o("h1",s3,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,r3)):f("v-if",!0),e.details?.description?f("v-if",!0):(l(),d("span",i3,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,a3)):f("v-if",!0)]),o("div",l3,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",d3,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=w(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,u3)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",c3,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=w()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,p3)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",f3,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=w(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,m3)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",h3,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=s=>e.previewTabKeydown(s)),onClick:t[1]||(t[1]=s=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,y3)],42,v3)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=s=>e.previewTabKeydown(s)),onClick:t[3]||(t[3]=s=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,b3)],42,g3)):f("v-if",!0)])):f("v-if",!0),o("div",w3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",k3,[o("ul",E3,[(l(!0),d(K,null,oe(e.details?.files,(s,i)=>(l(),d("li",C3,[o("div",_3,[o("strong",{textContent:c(s?.filename)},null,8,S3),s?.language?(l(),d("span",N3,c(s?.language),1)):f("v-if",!0)]),Ce(n,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(l(),d("li",D3,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",R3,[o("ul",T3,[(l(!0),d(K,null,oe(e.details?.comments,(s,i)=>(l(),d("li",A3,[o("div",O3,[s?.author?(l(),d("span",I3,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=w(" @",-1)),o("span",{textContent:c(s?.author)},null,8,P3)])):f("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,V3)):f("v-if",!0)]),s?.body?(l(),d("div",q3,[Ce(r,{content:s?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",M3,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var U3={class:"collapse navbar-collapse",id:"navbarSupportedContent"},$3={class:"navbar-nav mr-auto smooth-scroll"},L3={key:0,class:"nav-item"},F3={key:1,class:"nav-item"},z3={key:2,class:"nav-item"},H3={key:3,class:"nav-item"},B3={class:"nav-item"},j3={key:4,class:"nav-item"},G3={class:"navbar-nav"},W3={key:0,class:"nav-item"},K3={key:1,class:"nav-item"},Y3={key:2,class:"nav-item"},J3={key:3,class:"nav-item"},Q3={key:4,class:"nav-item dropdown user-chip-wrap"},X3={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},Z3=["src"],x3={class:"user-chip-name"},eP={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},tP={class:"dropdown-header"},oP=["innerHTML"],nP=["disabled"],sP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},rP={class:"email-prompt-actions"},iP=["disabled"],aP=["disabled"],lP=["disabled"];function jl(e,t){return l(),d(K,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=ue('Anonymous GitHubSupport',3)),o("div",U3,[o("ul",$3,[e.user?f("v-if",!0):(l(),d("li",L3,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",F3,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[7]||(t[7]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),w(" My work ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",z3,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[8]||(t[8]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),w(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",H3,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[9]||(t[9]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),w(" Conferences ",-1)])],2)])):f("v-if",!0),o("li",B3,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[10]||(t[10]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),w("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",j3,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[11]||(t[11]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),w(" Admin ",-1)])],2)])):f("v-if",!0)]),o("ul",G3,[e.user||!e.isReviewerRoute?(l(),d("li",W3,[...t[12]||(t[12]=[o("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):f("v-if",!0),f(` "Report a bug" is about this service. Reviewers who land on an
+`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${ep(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function fo(e,t){return Te(new Error,{type:e,[Oa]:!0},t)}function Ht(e,t){return e instanceof Error&&Oa in e&&(t==null||!!(e.type&t))}var xc=["params","query","hash"];function ep(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let n of xc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ia(e){let t={};if(e===""||e==="?")return t;let n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rs&&Zs(s)):[r&&Zs(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function Pa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=wt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}var Va=Symbol(""),ar=Symbol(""),os=Symbol(""),ns=Symbol(""),ss=Symbol("");function Po(){let e=[];function t(r){return e.push(r),()=>{let s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Qt(e,t,n,r,s,i=a=>a()){let a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((u,m)=>{let w=h=>{h===!1?m(fo(Be.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?m(h):Zc(h)?m(fo(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(a&&r.enterCallbacks[s]===a&&typeof h=="function"&&a.push(h),u())},g=i(()=>e.call(r&&r.instances[s],t,n,w)),k=Promise.resolve(g);e.length<3&&(k=k.then(w)),k.catch(h=>m(h))})}function rs(e,t,n,r,s=i=>i()){let i=[];for(let a of e)for(let u in a.components){let m=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(va(m)){let w=(m.__vccOpts||m)[t];w&&i.push(Qt(w,n,r,a,u,s))}else{let w=m();i.push(()=>w.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let k=Vc(g)?g.default:g;a.mods[u]=g,a.components[u]=k;let h=(k.__vccOpts||k)[t];return h&&Qt(h,n,r,a,u,s)()}))}}return i}function qa(e,t){let n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;apo(w,u))?r.push(u):n.push(u));let m=e.matched[a];m&&(t.matched.find(w=>po(w,m))||s.push(m))}return[n,r,s]}var tp=()=>location.protocol+"//"+location.host;function Wa(e,t){let{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(a);return u[0]!=="/"&&(u="/"+u),or(u,"")}return or(n,e)+r+s}function op(e,t,n,r){let s=[],i=[],a=null,u=({state:h})=>{let E=Wa(e,location),S=n.value,v=t.value,_=0;if(h){if(n.value=E,t.value=h,a&&a===S){a=null;return}_=v?h.position-v.position:0}else r(E);s.forEach(N=>{N(n.value,S,{delta:_,type:es.pop,direction:_?_>0?ts.forward:ts.back:ts.unknown})})};function m(){a=n.value}function w(h){s.push(h);let E=()=>{let S=s.indexOf(h);S>-1&&s.splice(S,1)};return i.push(E),E}function g(){if(document.visibilityState==="hidden"){let{history:h}=window;if(!h.state)return;h.replaceState(Te({},h.state,{scroll:vn()}),"")}}function k(){for(let h of i)h();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:m,listen:w,destroy:k}}function Ma(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?vn():null}}function np(e){let{history:t,location:n}=window,r={value:Wa(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(m,w,g){let k=e.indexOf("#"),h=k>-1?(n.host&&document.querySelector("base")?e:e.slice(k))+m:tp()+e+m;try{t[g?"replaceState":"pushState"](w,"",h),s.value=w}catch(E){console.error(E),n[g?"replace":"assign"](h)}}function a(m,w){i(m,Te({},t.state,Ma(s.value.back,m,s.value.forward,!0),w,{position:s.value.position}),!0),r.value=m}function u(m,w){let g=Te({},s.value,t.state,{forward:m,scroll:vn()});i(g.current,g,!0),i(m,Te({},Ma(r.value,m,null),{position:g.position+1},w),!1),r.value=m}return{location:r,state:s,push:u,replace:a}}function Ka(e){e=Na(e);let t=np(e),n=op(e,t.state,t.location,t.replace);function r(i,a=!0){a||n.pauseListeners(),history.go(i)}let s=Te({location:"",base:e,go:r,createHref:Ra.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}var ho=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Qe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Qe||{}),sp={type:ho.Static,value:""},rp=/[a-zA-Z0-9_]/;function ip(e){if(!e)return[[]];if(e==="/")return[[sp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(E){throw new Error(`ERR (${n})/"${w}": ${E}`)}let n=Qe.Static,r=n,s=[],i;function a(){i&&s.push(i),i=[]}let u=0,m,w="",g="";function k(){w&&(n===Qe.Static?i.push({type:ho.Static,value:w}):n===Qe.Param||n===Qe.ParamRegExp||n===Qe.ParamRegExpEnd?(i.length>1&&(m==="*"||m==="+")&&t(`A repeatable param (${w}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ho.Param,value:w,regexp:g,repeatable:m==="*"||m==="+",optional:m==="*"||m==="?"})):t("Invalid state to consume buffer"),w="")}function h(){w+=m}for(;ut.length?t.length===1&&t[0]===rt.Static+rt.Segment?1:-1:0}function Ya(e,t){let n=0,r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}var cp={strict:!1,end:!0,sensitive:!1};function pp(e,t,n){let r=dp(ip(e.path),n),s=Te(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fp(e,t){let n=[],r=new Map;t=er(cp,t);function s(k){return r.get(k)}function i(k,h,E){let S=!E,v=Fa(k);v.aliasOf=E&&E.record;let _=er(t,k),N=[v];if("alias"in k){let M=typeof k.alias=="string"?[k.alias]:k.alias;for(let q of M)N.push(Fa(Te({},v,{components:E?E.record.components:v.components,path:q,aliasOf:E?E.record:v})))}let T,V;for(let M of N){let{path:q}=M;if(h&&q[0]!=="/"){let z=h.record.path,ne=z[z.length-1]==="/"?"":"/";M.path=h.record.path+(q&&ne+q)}if(T=pp(M,h,_),E?E.alias.push(T):(V=V||T,V!==T&&V.alias.push(T),S&&k.name&&!za(T)&&a(k.name)),Ja(T)&&m(T),v.children){let z=v.children;for(let ne=0;ne{a(V)}:Io}function a(k){if(rr(k)){let h=r.get(k);h&&(r.delete(k),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{let h=n.indexOf(k);h>-1&&(n.splice(h,1),k.record.name&&r.delete(k.record.name),k.children.forEach(a),k.alias.forEach(a))}}function u(){return n}function m(k){let h=vp(k,n);n.splice(h,0,k),k.record.name&&!za(k)&&r.set(k.record.name,k)}function w(k,h){let E,S={},v,_;if("name"in k&&k.name){if(E=r.get(k.name),!E)throw fo(Be.MATCHER_NOT_FOUND,{location:k});_=E.record.name,S=Te(La(h.params,E.keys.filter(V=>!V.optional).concat(E.parent?E.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),k.params&&La(k.params,E.keys.map(V=>V.name))),v=E.stringify(S)}else if(k.path!=null)v=k.path,E=n.find(V=>V.re.test(v)),E&&(S=E.parse(v),_=E.record.name);else{if(E=h.name?r.get(h.name):n.find(V=>V.re.test(h.path)),!E)throw fo(Be.MATCHER_NOT_FOUND,{location:k,currentLocation:h});_=E.record.name,S=Te({},h.params,k.params),v=E.stringify(S)}let N=[],T=E;for(;T;)N.unshift(T.record),T=T.parent;return{name:_,path:v,params:S,matched:N,meta:hp(N)}}e.forEach(k=>i(k));function g(){n.length=0,r.clear()}return{addRoute:i,resolve:w,removeRoute:a,clearRoutes:g,getRoutes:u,getRecordMatcher:s}}function La(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Fa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mp(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mp(e){let t={},n=e.props||!1;if("component"in e)t.default=n;else for(let r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function za(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hp(e){return e.reduce((t,n)=>Te(t,n.meta),{})}function vp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Ya(e,t[i])<0?r=i:n=i+1}let s=yp(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function yp(e){let t=e;for(;t=t.parent;)if(Ja(t)&&Ya(e,t)===0)return t}function Ja({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ha(e){let t=dt(os),n=dt(ns),r=!1,s=null,i=tt(()=>{let g=Wt(e.to);return t.resolve(g)}),a=tt(()=>{let{matched:g}=i.value,{length:k}=g,h=g[k-1],E=n.matched;if(!h||!E.length)return-1;let S=E.findIndex(po.bind(null,h));if(S>-1)return S;let v=Ba(g[k-2]);return k>1&&Ba(h)===v&&E[E.length-1].path!==v?E.findIndex(po.bind(null,g[k-2])):S}),u=tt(()=>a.value>-1&&Ep(n.params,i.value.params)),m=tt(()=>a.value>-1&&a.value===n.matched.length-1&&nr(n.params,i.value.params));function w(g={}){if(kp(g)){let k=t[Wt(e.replace)?"replace":"push"](Wt(e.to)).catch(Io);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>k),k}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:m,navigate:w}}function gp(e){return e.length===1?e[0]:e}var bp=un({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ha,setup(e,{slots:t}){let n=Fe(Ha(e)),{options:r}=dt(os),s=tt(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{let i=t.default&&gp(t.default(n));return e.custom?i:be("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),wp=bp;function kp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ep(e,t){for(let n in t){let r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!wt(s)||s.length!==r.length||r.some((i,a)=>i.valueOf()!==s[a].valueOf()))return!1}return!0}function Ba(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var ja=(e,t,n)=>e??t??n,Cp=un({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=dt(ss),s=tt(()=>e.route||r.value),i=dt(ar,0),a=tt(()=>{let w=Wt(i),{matched:g}=s.value,k;for(;(k=g[w])&&!k.components;)w++;return w}),u=tt(()=>s.value.matched[a.value]);uo(ar,tt(()=>a.value+1)),uo(Va,u),uo(ss,s);let m=xe();return He(()=>[m.value,u.value,e.name],([w,g,k],[h,E,S])=>{g&&(g.instances[k]=w,E&&E!==g&&w&&w===h&&(g.leaveGuards.size||(g.leaveGuards=E.leaveGuards),g.updateGuards.size||(g.updateGuards=E.updateGuards))),w&&g&&(!E||!po(g,E)||!h)&&(g.enterCallbacks[k]||[]).forEach(v=>v(w))},{flush:"post"}),()=>{let w=s.value,g=e.name,k=u.value,h=k&&k.components[g];if(!h)return Ga(n.default,{Component:h,route:w});let E=k.props[g],S=E?E===!0?w.params:typeof E=="function"?E(w):E:null,_=be(h,Te({},S,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(k.instances[g]=null)},ref:m}));return Ga(n.default,{Component:_,route:w})||_}}});function Ga(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var lr=Cp;function Qa(e){let t=fp(e.routes,e),n=e.parseQuery||Ia,r=e.stringifyQuery||ir,s=e.history,i=Po(),a=Po(),u=Po(),m=In(Xt),w=Xt;mo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=Zn.bind(null,F=>""+F),k=Zn.bind(null,Ca),h=Zn.bind(null,Oo);function E(F,Z){let Q,te;return rr(F)?(Q=t.getRecordMatcher(F),te=Z):te=F,t.addRoute(te,Q)}function S(F){let Z=t.getRecordMatcher(F);Z&&t.removeRoute(Z)}function v(){return t.getRoutes().map(F=>F.record)}function _(F){return!!t.getRecordMatcher(F)}function N(F,Z){if(Z=Te({},Z||m.value),typeof F=="string"){let y=xn(n,F,Z.path),D=t.resolve({path:y.path},Z),O=s.createHref(y.fullPath);return Te(y,D,{params:h(D.params),hash:Oo(y.hash),redirectedFrom:void 0,href:O})}let Q;if(F.path!=null)Q=Te({},F,{path:xn(n,F.path,Z.path).path});else{let y=Te({},F.params);for(let D in y)y[D]==null&&delete y[D];Q=Te({},F,{params:k(y)}),Z.params=k(Z.params)}let te=t.resolve(Q,Z),ye=F.hash||"";te.params=g(h(te.params));let Ee=_a(r,Te({},F,{hash:Ea(ye),path:te.path})),p=s.createHref(Ee);return Te({fullPath:Ee,hash:ye,query:r===ir?Pa(F.query):F.query||{}},te,{redirectedFrom:void 0,href:p})}function T(F){return typeof F=="string"?xn(n,F,m.value.path):Te({},F)}function V(F,Z){if(w!==F)return fo(Be.NAVIGATION_CANCELLED,{from:Z,to:F})}function M(F){return ne(F)}function q(F){return M(Te(T(F),{replace:!0}))}function z(F,Z){let Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){let{redirect:te}=Q,ye=typeof te=="function"?te(F,Z):te;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=T(ye):{path:ye},ye.params={}),Te({query:F.query,hash:F.hash,params:ye.path!=null?{}:F.params},ye)}}function ne(F,Z){let Q=w=N(F),te=m.value,ye=F.state,Ee=F.force,p=F.replace===!0,y=z(Q,te);if(y)return ne(Te(T(y),{state:typeof y=="object"?Te({},ye,y.state):ye,force:Ee,replace:p}),Z||Q);let D=Q;D.redirectedFrom=Z;let O;return!Ee&&Sa(r,te,Q)&&(O=fo(Be.NAVIGATION_DUPLICATED,{to:D,from:te}),Me(te,te,!0,!1)),(O?Promise.resolve(O):P(D,te)).catch(I=>Ht(I)?Ht(I,Be.NAVIGATION_GUARD_REDIRECT)?I:qe(I):re(I,D,te)).then(I=>{if(I){if(Ht(I,Be.NAVIGATION_GUARD_REDIRECT))return ne(Te({replace:p},T(I.to),{state:typeof I.to=="object"?Te({},ye,I.to.state):ye,force:Ee}),Z||D)}else I=J(D,te,!0,p,ye);return G(D,te,I),I})}function ee(F,Z){let Q=V(F,Z);return Q?Promise.reject(Q):Promise.resolve()}function C(F){let Z=ze.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(F):F()}function P(F,Z){let Q,[te,ye,Ee]=qa(F,Z);Q=rs(te.reverse(),"beforeRouteLeave",F,Z);for(let y of te)y.leaveGuards.forEach(D=>{Q.push(Qt(D,F,Z))});let p=ee.bind(null,F,Z);return Q.push(p),ke(Q).then(()=>{Q=[];for(let y of i.list())Q.push(Qt(y,F,Z));return Q.push(p),ke(Q)}).then(()=>{Q=rs(ye,"beforeRouteUpdate",F,Z);for(let y of ye)y.updateGuards.forEach(D=>{Q.push(Qt(D,F,Z))});return Q.push(p),ke(Q)}).then(()=>{Q=[];for(let y of Ee)if(y.beforeEnter)if(wt(y.beforeEnter))for(let D of y.beforeEnter)Q.push(Qt(D,F,Z));else Q.push(Qt(y.beforeEnter,F,Z));return Q.push(p),ke(Q)}).then(()=>(F.matched.forEach(y=>y.enterCallbacks={}),Q=rs(Ee,"beforeRouteEnter",F,Z,C),Q.push(p),ke(Q))).then(()=>{Q=[];for(let y of a.list())Q.push(Qt(y,F,Z));return Q.push(p),ke(Q)}).catch(y=>Ht(y,Be.NAVIGATION_CANCELLED)?y:Promise.reject(y))}function G(F,Z,Q){u.list().forEach(te=>C(()=>te(F,Z,Q)))}function J(F,Z,Q,te,ye){let Ee=V(F,Z);if(Ee)return Ee;let p=Z===Xt,y=mo?history.state:{};Q&&(te||p?s.replace(F.fullPath,Te({scroll:p&&y&&y.scroll},ye)):s.push(F.fullPath,ye)),m.value=F,Me(F,Z,Q,p),qe()}let X;function K(){X||(X=s.listen((F,Z,Q)=>{if(!Ue.listening)return;let te=N(F),ye=z(te,Ue.currentRoute.value);if(ye){ne(Te(ye,{replace:!0,force:!0}),te).catch(Io);return}w=te;let Ee=m.value;mo&&Ta(sr(Ee.fullPath,Q.delta),vn()),P(te,Ee).catch(p=>Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?p:Ht(p,Be.NAVIGATION_GUARD_REDIRECT)?(ne(Te(T(p.to),{force:!0}),te).then(y=>{Ht(y,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===es.pop&&s.go(-1,!1)}).catch(Io),Promise.reject()):(Q.delta&&s.go(-Q.delta,!1),re(p,te,Ee))).then(p=>{p=p||J(te,Ee,!1),p&&(Q.delta&&!Ht(p,Be.NAVIGATION_CANCELLED)?s.go(-Q.delta,!1):Q.type===es.pop&&Ht(p,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),G(te,Ee,p)}).catch(Io)}))}let se=Po(),ce=Po(),ue;function re(F,Z,Q){qe(F);let te=ce.list();return te.length?te.forEach(ye=>ye(F,Z,Q)):console.error(F),Promise.reject(F)}function _e(){return ue&&m.value!==Xt?Promise.resolve():new Promise((F,Z)=>{se.add([F,Z])})}function qe(F){return ue||(ue=!F,K(),se.list().forEach(([Z,Q])=>F?Q(F):Z()),se.reset()),F}function Me(F,Z,Q,te){let{scrollBehavior:ye}=e;if(!mo||!ye)return Promise.resolve();let Ee=!Q&&Aa(sr(F.fullPath,0))||(te||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>ye(F,Z,Ee)).then(p=>p&&Da(p)).catch(p=>re(p,F,Z))}let Pe=F=>s.go(F),Se,ze=new Set,Ue={currentRoute:m,listening:!0,addRoute:E,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:_,getRoutes:v,resolve:N,options:e,push:M,replace:q,go:Pe,back:()=>Pe(-1),forward:()=>Pe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:ce.add,isReady:_e,install(F){F.component("RouterLink",wp),F.component("RouterView",lr),F.config.globalProperties.$router=Ue,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Wt(m)}),mo&&!Se&&m.value===Xt&&(Se=!0,M(s.location).catch(te=>{}));let Z={};for(let te in Xt)Object.defineProperty(Z,te,{get:()=>m.value[te],enumerable:!0});F.provide(os,Ue),F.provide(ns,Yo(Z)),F.provide(ss,m);let Q=F.unmount;ze.add(F),F.unmount=function(){ze.delete(F),ze.size<1&&(w=Xt,X&&X(),X=null,m.value=Xt,Se=!1,ue=!1),Q()}}};function ke(F){return F.reduce((Z,Q)=>Z.then(()=>C(Q)),Promise.resolve())}return Ue}function Xa(e){return dt(ns)}function Za(e,t){return t?.split(".").reduce((n,r)=>n?.[r],e)}function dr(e=null,t=new Map){let n=Fe({}),r=[],s=!1,i=new Proxy(n,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(n,"parent",{value:e,configurable:!0}),Object.defineProperty(n,"viewState",{get:()=>i}),i.watch=(a,u,m=!1,w=!0)=>{let g=typeof a=="function"?()=>a(i):()=>Za(i,a),k=He(g,u,{deep:m,flush:"post"});return r.push(k),w&&ot(()=>{s||u(g(),g())}),k},i.watchGroup=(a,u,m=!0)=>i.watch(()=>a.map(w=>Za(i,w)),u,!0,m),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let m=()=>t.get(a)?.delete(u);return r.push(m),m},i.emit=(a,...u)=>{for(let m of[...t.get(a)||[]])m({},...u)},i.dispose=()=>{s=!0,r.splice(0).reverse().forEach(a=>a())},Wo(i.dispose),i}function ut(){let e=new Set,t=new Set,n=!1,r=(i,a=0)=>{if(n)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let s=(i,a)=>{if(n)return;let u=setInterval(i,a);return t.add(u),u};return s.cancel=i=>{clearInterval(i),t.delete(i)},Wo(()=>{n=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:s}}function Zt(){let e=new Set;return Wo(()=>{e.forEach(t=>t()),e.clear()}),(t,n,r,s)=>{t.addEventListener(n,r,s);let i=()=>{t.removeEventListener(n,r,s),e.delete(i)};return e.add(i),i}}function ur(e,t,n){let r,s=!1,i="form-draft:"+n,a=()=>Object.fromEntries(t.map(h=>[h,e[h]])),u=()=>JSON.stringify(a()),m=h=>{for(let E of t)Object.prototype.hasOwnProperty.call(h,E)&&(e[E]=h[E]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},w=()=>{try{window.sessionStorage.removeItem(i)}catch{}},g=(h=!1)=>{if(r!==void 0){if(h&&document.querySelectorAll("input, select, textarea").forEach(E=>{E._field?.binding.state===e&&E._field.timer&&E._field.commit()}),e.unsavedChanges=u()!==r,e.draftSaved=!1,!e.unsavedChanges){w();return}try{window.sessionStorage.setItem(i,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(){r=u();let h;try{h=JSON.parse(window.sessionStorage.getItem(i)||"null")}catch{}let E=h&&h.account===(e.user?.username||null)&&Date.now()-h.savedAt<30*6e4&&h.values;return E&&(m(h.values),e.draftRestored=!0),s||(s=!0,e.watch(()=>a(),()=>g(),!0)),e.unsavedChanges=u()!==r,!!E},checkpoint(){return JSON.parse(u())},accept(h){r=JSON.stringify(h),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(h=>{h._field?.binding.state!==e||!h._field.timer||(clearTimeout(h._field.timer),h._field.timer=null,h.value=h._field.binding.value??"")}),r!==void 0&&m(JSON.parse(r)),e.draftRestored=!1,g()},clear(){r=u(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,w()}}}var yn={VIEWER_ERRORS:{title:"Content could not be loaded",access_title:"GitHub access needs attention",reader_help:"Reading this repository? You do not need to sign in. Try again after the owner restores access, or let them know this anonymous link is unavailable.",owner_help:"Own this repository? If your GitHub account was suspended or recently recovered, sign in to Anonymous GitHub again and check the GitHub connection and repository permissions in your dashboard. Then retry this page. Keep the existing anonymous URL; do not delete the repository to restore access.",retry:"Try again",dashboard:"Open owner dashboard"},ERRORS:{cache_busy:"Downloads are busy. Please try again shortly.",invalid_sort:"The selected sort order is invalid.",invalid_cursor:"This project page is no longer valid. Reload the list.",repository_changed:"The repository changed while processing. Please retry.",repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"We could not load this content. Try again. If it still fails, contact support with the anonymous URL and the time of the error.",unreachable:"The service could not complete this request. Wait a moment and try again.",request_error:"The connection was interrupted. Check your internet connection and try again.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"Anonymous GitHub cannot access the source repository on GitHub. It may be private, unavailable, or require the owner to reconnect GitHub.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",invalid_project_name:"Use a project name of up to 100 characters without line breaks or control characters.",no_file_selected:"Please select a file.",submodule_not_available:"This public submodule file is no longer available at its recorded commit.",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.",token_attempts_rate_limited:"Too many token authentication attempts. Wait before trying again.",refresh_rate_limited:"A refresh was already requested for this repository. Wait one minute before trying again.",session_required:"Sign in through your browser to manage maintenance tokens.",invalid_token_options:"Provide a token name, 1 to 20 repository IDs, and an expiration of 1 to 90 days.",token_limit_reached:"You have reached the limit of 50 API tokens. Revoke an unused token before creating another.",invalid_token_id:"The token ID is invalid.",invalid_settings:"Provide supported settings with boolean values, or a list of anonymization terms.",token_scope_forbidden:"This token does not allow this operation or repository.",authentication_unavailable:"Authentication is temporarily unavailable. Try again later.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"The repository owner needs to renew their GitHub connection before this content can be loaded.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first.",github_app_access_required:"Allow this repository on GitHub using the read-only access button, then retry. Organization access may require administrator approval.",github_app_reconnect_required:"Reconnect your GitHub App account to restore read-only access.",github_app_disabled:"New GitHub App connections are currently unavailable.",github_oauth_required:"Connect legacy GitHub OAuth to use this feature.",github_identity_mismatch:"Use the same GitHub account that you are signed in with here.",github_app_permissions_invalid:"The GitHub App must be configured with read-only permissions.",github_unavailable:"GitHub is temporarily unavailable. Please retry.",connection_changed:"The repository connection changed. Reload and try again.",repository_busy:"Wait for the repository operation to finish before changing its connection.",invalid_connection:"Select a supported GitHub connection.",github_oauth_disabled:"Legacy OAuth sign-in is currently disabled.",invalid_auth_state:"The authorization session expired. Please start again from Anonymous GitHub.",invalid_webhook_signature:"The webhook signature is invalid.",webhook_processing_failed:"Webhook processing failed. Retry the delivery.",github_app_authorization_cancelled:"GitHub authorization was cancelled.",github_account_link_required:"Verify your existing account with your previous GitHub connection. Future sign-ins will use the GitHub App.",github_app_refresh_busy:"GitHub credentials are being renewed. Please retry shortly.",github_grant_revocation_failed:"Unable to revoke the GitHub grant. Please retry.",another_login_required:"Connect and verify another sign-in method before disconnecting OAuth.",oauth_resources_remaining:"Some resources still require OAuth. Migrate or remove them before disconnecting.",invalid_github_path:"The GitHub repository path is invalid."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"Some submodule contents could not be included. Only direct public GitHub submodules within the size limits are supported. Private, external, nested, or unavailable submodules appear as empty folders."}};function cr(e){let t=e?.data;if(typeof t=="string")try{t=JSON.parse(t)}catch{t=null}return typeof t?.error=="string"&&Object.prototype.hasOwnProperty.call(yn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var is="XXXX",Sp=e=>{is=e||"XXXX"},xa=(e=is)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},el=(e,t=is)=>{let n=xa(t);if(!n||!e||!e.textContent.includes(t))return;let r=e.ownerDocument,s=r.createTreeWalker(e,NodeFilter.SHOW_TEXT),i=[];for(;s.nextNode();)i.push(s.currentNode);for(let a of i){let u=a.nodeValue,m=a.parentElement;if(!u.includes(t)||!m||m.closest("script, style, mark.redaction, .mermaid"))continue;let w=m.closest('code[class*="language-"]');if(w&&!w.contains(e))continue;let g=r.createDocumentFragment(),k=0;for(let h of u.matchAll(n)){g.append(u.slice(k,h.index));let E=r.createElement("mark");E.className="redaction",E.title="Redacted by Anonymous GitHub",E.textContent=h[0],g.append(E),k=h.index+h[0].length}g.append(u.slice(k)),a.replaceWith(g)}},tl=(e,t=is)=>{if(!e||!t||!e.includes(t))return e;let n=new DOMParser().parseFromString(""+e+"","text/html");return el(n.body,t),n.body.innerHTML};async function ol(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let n=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),n?.focus()}}function Np(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],n=t.indexOf(e.currentTarget),r=e.key==="Home"?0:e.key==="End"?t.length-1:(n+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[r]?.focus(),t[r]?.click()}var nl=function(e,t,n,r){e.previewTabKeydown=Np,e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(g){let k=e.toasts.indexOf(g);k!==-1&&e.toasts.splice(k,1)},e.addToast=function(g){return e.toasts.push(g),r(function(){e.removeToast(g)},8e3),g};let s=/^\/(r|repository|pr|gist)\//;e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path()),e.darkMode=function(g){localStorage.setItem("darkMode",g),e.isDarkMode=g;let k="/css/prism-okaidia.css",h="/css/prism.css";if(g){$("body").addClass("dark-mode");let S=document.createElement("link");S.href=k,S.rel="stylesheet",document.head.append(S),$(`link[href='${h}']`).remove()}else{$("body").removeClass("dark-mode");let S=document.createElement("link");S.href=h,S.rel="stylesheet",document.head.append(S),$(`link[href='${k}']`).remove()}let E=document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");E&&(E.style.backgroundColor=g?"#34312C":"#1A1815",E.style.color="#FAF9F6"),e.emit("dark-mode",g)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let i;e.respondToEmailPrompt=async g=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let k=await t.post("/github/connections/email",{action:g,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});g==="save"&&(e.user.notificationEmail=k.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,i?.focus()}catch(k){e.emailPromptError=k.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function a(){t.get("/api/user").then(g=>{g&&(e.user=g.data),e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(i=document.activeElement,e.emailPromptOpen=!0,r(()=>{let k=document.getElementById("email-prompt");k?.showModal?k.showModal():k?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null})}a();function u(){t.get("/api/options").then(g=>{g&&(e.site_options=g.data),Sp(g?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}u();function m(){t.get("/api/message").then(g=>{g&&(e.generalMessage=g.data)},()=>{e.generalMessage=null})}m();function w(g,k){k&&(e.title=k.title),e.path=n.url(),e.paths=n.path().substring(1).split("/"),e.isReviewerRoute=s.test(n.path())}e.on("routeChange",w),e.on("routeUpdate",w)},sl=function(e,t){let n=Zt(),r=ut(),s=()=>{let i=window.location.hash.slice(1),a=document.getElementById(i);if(!a?.classList.contains("panel-collapse"))return;$(a).collapse("show");let u=document.getElementById(a.getAttribute("aria-labelledby"));u?.setAttribute("tabindex","-1"),u?.focus({preventScroll:!0}),u?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>r.timeout(s,0)),n(window,"hashchange",s),r.timeout(s,0)},rl=function(e,t,n,r,s){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let i="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let w=await t.get("/github/connections/email");e.accountEmail=w.data.notificationEmail||"",i=w.data.csrf,e.emailCSRFReady=!!i}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!i)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let w=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":i}});e.accountEmail=w.data.notificationEmail,e.user&&(e.user.notificationEmail=w.data.notificationEmail),e.emailSaved=!0}catch{e.emailError="Unable to save your email address. Check the address and try again."}finally{e.emailSaving=!1}}},e.loadAccountEmail(),s.load().then(w=>{e.quota=w},console.error);let a=ur(e,["terms","options"],"profile");e.discardDraft=()=>a.discard();function u(){t.get("/api/user/default").then(w=>{let g=w.data||{};g.terms&&(e.terms=g.terms.join(`
+`)),e.options=Object.assign({},e.options,g.options),a.restore()})}u();let m=null;e.saveDefault=w=>{if(w&&w.preventDefault&&w.preventDefault(),e.saving)return;let g=a.checkpoint(),k={terms:e.terms.split(`
+`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",k).then(()=>{a.accept(g),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",m&&r.cancel(m),m=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let E=h&&h.data&&h.data.error,S="Unable to save your defaults. Please try again.";Promise.all([n("ERRORS."+E),n("ERRORS.unknown_error")]).then(([v,_])=>{e.error=E&&v!==_?v:S},()=>{e.error=S})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},il=function(e,t,n){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{n.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},al=function(e,t,n,r,s){e.user&&!e.user.status&&n.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&n.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/signin":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,m){let w={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(w===void 0)return;u.preventDefault();let g=e.features.length,k=w==="first"?0:w==="last"?g-1:(m+w+g)%g;e.feature=e.features[k].key,s(()=>{let h=r.document.getElementById("feature-tab-"+e.feature);h&&h.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let m={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return m;let w=new Array(u.length-1);for(let v=1;v=2){let v=w[g-2];v&&(m.pctChange=(m.deltaToday-v)/v*100)}return m.pctAbs=Math.round(Math.abs(m.pctChange)),m.isUp=m.pctChange>=0,m}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let m=u.data||[];e.history={repositories:a(m.map(w=>w.nbRepositories||0)),users:a(m.map(w=>w.nbUsers||0)),pageViews:a(m.map(w=>w.nbPageViews||0)),pullRequests:a(m.map(w=>w.nbPullRequests||0))}})},ll=function(e,t,n,r,s,i){let a=ut();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,ot(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Zt()(document,"click",C=>{e.quotaExpanded&&!C.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=C=>C.status==="error"||C._broken||m(C.status)==="progress"&&C._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=C=>{e.projectView=C,C==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.projectDetailsId=C=>"project-details-"+encodeURIComponent(C._type+":"+(C._id||C._source||"unknown")),e.showProjectDetails=async C=>{e.selectedProject=C,e.projectName=C.projectName||"",e.nameError="",e.nameMessage="",await ot();let P=document.getElementById(e.projectDetailsId(C));P?.focus(),P?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=C=>{e.selectedProject=null,ot(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(C._type+":"+C._id)}"]`)?.focus())},e.saveProjectName=async C=>{if(e.nameSaving||!C._id)return;let P=e.projectName.trim();if(P.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let G=await t.post("/api/user/project-name",{type:C._type,id:C._id,name:P});C.projectName=G.data.name,C._label=C.projectName||C._fallbackLabel,e.selectedProject===C&&(e.nameMessage=P?"Project name saved.":"Default project name restored."),T||(e.dashboardCursor=null,await M(),e.selectedProject===C&&(e.selectedProject=e.items.find(J=>J._type===C._type&&J._id===C._id)||null))}catch{e.selectedProject===C&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async C=>{if(!C._viewUrl||e.copyingId)return;let P=new URL(C._viewUrl,s.location.origin).href;e.copyingId=C._type+":"+C._id;try{await ol(P),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:P})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function m(C){return C==="ready"||C==="error"?C:C==="expired"||C==="expiring"?"expired":C==="removed"||C==="removing"?"removed":(u.indexOf(C)>-1,"progress")}let w=7200*1e3,g="dashboard.filterPrefs",k={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},h=loadFilterPrefs(g)||{};e.typeFilter=h.typeFilter||k.typeFilter,e.filters={status:Object.assign({},k.filters.status,h.filters&&h.filters.status||{})},e.orderBy=h.orderBy||k.orderBy;let E={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=E,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let C=E[e.sortField()];return C?C.label:"Custom"},e.isSortedBy=C=>e.sortField()===C,e.setSort=(C,P)=>{typeof P!="boolean"&&(P=e.isSortedBy(C)?!e.sortDesc():!!(E[C]&&E[C].defaultDesc)),e.orderBy=(P?"-":"")+C},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),i.load().then(C=>{e.quota=C},console.error);function S(C,P,G,J,X,K){C.pageView||(C.pageView=0),C.lastView||(C.lastView=""),C.options=C.options||{},C.options.terms=(C.options.terms||[]).filter(ce=>ce),C._id=P||"",C._source=J,C._broken=!P,C._name=P||J||"(unnamed)",C._fallbackLabel=C._type==="gist"?"Gist "+(P||J||"without an ID"):J||G||C._name,C._label=C.projectName||C._fallbackLabel,C._editUrl=P?X:null,C._viewUrl=P?K:null,C._broken&&(C.status="error",C.statusMessage="incomplete_record"),C._statusKey=m(C.status);let se=C.anonymizeDate||C.lastView;return C._stale=C._statusKey==="progress"&&!!se&&Date.now()-new Date(se).getTime()>w,C.status==="expired"||C.status==="expiring"?C._expiry={kind:"expired",date:C.options.expirationDate}:C.status!=="ready"?C._expiry={kind:"none"}:C.options.expirationMode==="never"||!C.options.expirationDate?C._expiry={kind:"never"}:C._expiry={kind:"date",date:C.options.expirationDate},C}function v(C){return t.get(C).then(P=>P.data||[],P=>(console.error(P),[]))}function _(){return e.loading=!0,r.all([v("/api/user/anonymized_repositories"),v("/api/user/anonymized_pull_requests"),v("/api/user/anonymized_gists")]).then(C=>{let P=C[0],G=C[1],J=C[2],X=[];P.forEach(K=>{K._type="repo";let se=K.source||{};X.push(S(K,K.repoId,K.repoId,se.fullName,"/anonymize/"+K.repoId,"/r/"+K.repoId+"/"))}),G.forEach(K=>{K._type="pr";let se=K.source||{};X.push(S(K,K.pullRequestId,K.pullRequestId,se.repositoryFullName?se.repositoryFullName+"#"+se.pullRequestId:void 0,"/pull-request-anonymize/"+K.pullRequestId,"/pr/"+K.pullRequestId+"/"))}),J.forEach(K=>{K._type="gist";let se=K.source||{};X.push(S(K,K.gistId,K.gistId,se.gistId,"/gist-anonymize/"+K.gistId,"/gist/"+K.gistId+"/"))}),e.items=X,e.loading=!1})}let N=0,T=!1;e.dashboardCursor=null,e.dashboardError="";function V(C){let P=C.source||{};return C._type==="repo"?S(C,C.repoId,C.repoId,P.fullName,"/anonymize/"+C.repoId,"/r/"+C.repoId+"/"):C._type==="pr"?S(C,C.pullRequestId,C.pullRequestId,P.repositoryFullName?P.repositoryFullName+"#"+P.pullRequestId:void 0,"/pull-request-anonymize/"+C.pullRequestId,"/pr/"+C.pullRequestId+"/"):S(C,C.gistId,C.gistId,P.gistId,"/gist-anonymize/"+C.gistId,"/gist/"+C.gistId+"/")}function M(C=!1){if(T)return _();let P=++N;return e.loading=!C,e.loadingMore=C,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(G=>e.filters.status[G]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:C?e.dashboardCursor:void 0}}).then(G=>{if(P===N){if(!Array.isArray(G.data?.items))return T=!0,_();e.items=(C?e.items:[]).concat(G.data.items.map(V)),e.dashboardCursor=G.data.cursor,e.dashboardTotals=G.data}},G=>{if(P===N){if(G.status===404)return T=!0,_();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{P===N&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>M(!0);let q;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{T||(q&&a.timeout.cancel(q),q=a.timeout(()=>M(),150))},!1),e.watch("filters",()=>{T||M()},!0,!1),e.on("dispose",()=>{N++}),M(),e.openItem=(C,P)=>{if(!C._viewUrl)return;let G=P&&P.target;G&&G.closest&&G.closest("a, button, .dropdown, input")||(s.location.href=C._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(C=>e.filters.status[C]===!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(C=>e.filters.status[C]===!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(C=>{e.filters.status[C]=!0})};function z(C,P,G,J){t.get("/api/repo/"+C).then(async X=>{let K=J!==void 0&&J!==X.data.status;for(let se of e.items)if(se._type==="repo"&&se.repoId==C){K=K||se.status!==X.data.status;let ce=e.needsAttention(se);se.status=X.data.status,se.statusMessage=X.data.statusMessage,se._statusKey=m(se.status),se._statusKey!=="progress"&&(se._stale=!1);let ue=e.needsAttention(se);e.dashboardTotals&&ce!==ue&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(ue?1:-1)));break}if(K&&!T){e.dashboardCursor=null;let se=e.selectedProject;await M(),se&&e.selectedProject===se&&(e.selectedProject=e.items.find(ce=>ce._type===se._type&&ce._id===se._id)||null)}if(X.data.status=="ready"||X.data.status=="error"||X.data.status=="removed"||X.data.status=="expired"){P(X.data);return}a.timeout(()=>z(C,P,G,X.data.status),2500)},G)}let ne=C=>C==="repo"?"repository":C==="gist"?"gist":"pull request",ee=C=>C==="repo"?"/api/repo":C==="gist"?"/api/gist":"/api/pr";e.removeItem=C=>{let P=ne(C._type);if(confirm(`Are you sure that you want to remove the ${P} ${C._id}?`)){let G=Fe({title:`Removing ${C._id}...`,date:new Date,body:`The ${P} ${C._id} is going to be removed.`});e.addToast(G);let J=`${ee(C._type)}/${C._id}`;t.delete(J).then(()=>{C._type==="repo"?z(C._id,()=>{G.title=`${C._id} is removed.`,G.body=`The ${P} ${C._id} is removed.`},void 0,C.status):(G.title=`${C._id} is removed.`,G.body=`The ${P} ${C._id} is removed.`,M())},X=>{G.title=`Error during the removal of ${C._id}.`,G.body=X.body,M()})}},e.refreshItem=C=>{let P=ne(C._type),G=Fe({title:`Refreshing ${C._id}...`,date:new Date,body:`The ${P} ${C._id} is going to be refreshed.`});e.addToast(G);let J=K=>{G.title=`Error during the refresh of ${C._id}.`,G.body=K.data?.error||K.body||"The refresh could not be completed. Please try again.",M()},X=`${ee(C._type)}/${C._id}/refresh`;t.post(X).then(()=>{C._type==="repo"?z(C._id,K=>{if(K.status!=="ready"){J({body:K.statusMessage||`The repository is ${K.status}.`});return}G.title=`${C._id} is refreshed.`,G.body=`The ${P} ${C._id} is refreshed.`},J,C.status):(G.title=`${C._id} is refreshed.`,G.body=`The ${P} ${C._id} is refreshed.`,M())},J)},e.extendItem=C=>{let P=ne(C._type),G=Fe({title:`Extending ${C._id}...`,date:new Date,body:`The expiration of ${P} ${C._id} is going to be extended by 6 months.`});e.addToast(G);let J=`${ee(C._type)}/${C._id}/extend`;t.post(J).then(()=>{C._type==="repo"?z(C._id,()=>{G.title=`${C._id} is extended.`,G.body=`The expiration of ${P} ${C._id} is extended by 6 months.`},void 0,C.status):(G.title=`${C._id} is extended.`,G.body=`The expiration of ${P} ${C._id} is extended by 6 months.`,M())},X=>{G.title=`Error during the extension of ${C._id}.`,G.body=X.data&&X.data.error||X.body,M()})},e.itemFilter=C=>{if(e.projectView==="attention"&&!e.needsAttention(C)||e.typeFilter!=="all"&&C._type!==e.typeFilter||e.filters.status[C._statusKey]===!1)return!1;let P=e.search.trim().toLowerCase();return!!(P.length==0||C._label&&String(C._label).toLowerCase().indexOf(P)>-1||C._source&&String(C._source).toLowerCase().indexOf(P)>-1||C._id&&String(C._id).toLowerCase().indexOf(P)>-1||C.conference&&String(C.conference).toLowerCase().indexOf(P)>-1)}};var dl=function(e,t,n){let r=ut();e.repoId=n.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let s=null;e.copyShareUrl=async()=>{try{await ol(e.shareUrl),e.copied=!0,s&&r.timeout.cancel(s),s=r.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}};var i=null;let a=null,u=!1;function m(g){e.rateLimitResetAt=g,i&&r.interval.cancel(i);function k(){var h=Math.max(0,Math.ceil((g-Date.now())/1e3));if(h<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(i),i=null;else{var E=Math.floor(h/60),S=h%60;e.rateLimitCountdown=E>0?E+"m "+S+"s":S+"s"}}k(),i=r.interval(k,1e3)}e.on("dispose",function(){u=!0,i&&r.interval.cancel(i),a&&r.timeout.cancel(a)});function w(g){if(!g)return g;var k=g.match(/^rate_limited:(\d+)$/);return k?(m(parseInt(k[1],10)),null):(e.rateLimitResetAt=0,g)}e.getStatus=()=>{u||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(g=>{if(!u){e.repo=g.data,g.data.rateLimitResetAt?m(g.data.rateLimitResetAt):e.repo.statusMessage=w(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var k=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(k=!1),k&&(a=r.timeout(e.getStatus,2e3))}},g=>{e.error=g.data.error})},e.getStatus()},as=function(e,t,n,r,s,i,a){e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let u=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!u?.matches,u?.addEventListener&&Zt()(u,"change",p=>{e.mobileWorkspace=p.matches}),e.selectMobilePane=p=>{e.mobilePane=p};let m=0,w=!1,g=new Set,k=(p,y=!1)=>!w&&p.generation===m&&p.url===e.sourceUrl.trim()&&p.connection===e.githubConnection&&(!y||p.branch===e.source.branch),h=()=>{let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(p),e.sourceLoading=!0,p},E=p=>{g.delete(p),w||(e.sourceLoading=[...g].some(y=>k(y)))};e.on("dispose",()=>{w=!0,m++});let S=null,v=p=>p.gistId&&!p.repo?"gist:"+p.gistId.toLowerCase():(p.owner+"/"+p.repo).toLowerCase()+(p.pullRequestId?"/pull/"+p.pullRequestId:""),_=ur(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(s.path?.()||""));e.discardDraft=async()=>{_.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(m++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let N=()=>{let p={};for(let y of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])p[y]=e[y];sessionStorage.setItem("github-access-draft",JSON.stringify({path:s.path(),savedAt:Date.now(),draft:p}))};e.connectGistApp=()=>{N(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(s.path())},e.connectGistOAuth=()=>{N(),window.location.href="/github/login?returnTo="+encodeURIComponent(s.path())},e.grantGitHubAccess=()=>{N();let p=s.path(),y=P(e.sourceUrl)||"",D=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=D+"?returnTo="+encodeURIComponent(p)+"&repository="+encodeURIComponent(y)+"&install=1"},e.chooseGitHubConnection=async p=>{e.githubConnection=p,e.readme="",e.sourceUrl&&await J()},e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function T(){let p=new Date;return p.setMonth(p.getMonth()+6),p}e.options.expirationDate=T();function V(p){let y=p.getFullYear(),D=String(p.getMonth()+1).padStart(2,"0"),O=String(p.getDate()).padStart(2,"0");return`${y}-${D}-${O}`}e.minExpirationDate=V(new Date);let M=new Date;M.setFullYear(M.getFullYear()+1),e.maxExpirationDate=V(M),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1,e.previousConfigurations=[],e.previousConfigurationId="";let q,z=p=>String(p||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function ne(){if(e.isUpdate||r.repoId||r.pullRequestId||r.gistId)return;let p={generation:m,url:e.sourceUrl.trim(),connection:e.githubConnection};try{q||(q=t.get("/api/user/anonymized_repositories").then(O=>O.data));let y=await q;if(!k(p))return;let D=z(P(p.url));e.previousConfigurations=y.filter(O=>O.repoId&&O.options&&z(O.source?.fullName)===D).sort((O,I)=>(Date.parse(I.anonymizeDate)||0)-(Date.parse(O.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{q=void 0}}e.existingConfigurationUrl=()=>{let p=e.previousConfigurations.find(y=>y.repoId===e.previousConfigurationId);return p?"/anonymize/"+encodeURIComponent(p.repoId):null};function ee(p){t.get("/api/user/default").then(y=>{let D=y.data;D.terms&&(e.defaultTerms=D.terms.join(`
+`)),e.options=Object.assign({},e.options,D.options),e.options.expirationDate=D.options&&D.options.expirationDate?new Date(D.options.expirationDate):T(),!r.repoId&&!r.pullRequestId&&!r.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),p&&p()})}function C(p,y,D){e.anonymize&&e.anonymize[p]&&e.anonymize[p].setValidity(y,D)}function P(p){try{let y=parseGithubUrl(p);if(y&&y.owner&&y.repo)return y.owner+"/"+y.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!r.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||P(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let p=h();try{let y=await t.get("/github/connections");if(e.githubConnections=y.data,!y.data.appEnabled)return;let D=await t.post("/github/connections/migrate",{type:"repository",id:r.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":y.data.csrf}});if(!k(p))return;e.error=null,D.data.fullName&&(e._originalFullName=D.data.fullName,e.source.fullName=D.data.fullName,e.sourceUrl="https://github.com/"+D.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{k(p)&&(e.accessRepairMessage="Unable to repair GitHub access. Check the App's repository permissions in Manage access, then retry. Your published snapshot has not been replaced.")}finally{e.repairingGitHubAccess=!1,E(p)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await K()}catch{}}};function G(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:P(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function J(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function X(){let p;try{p=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!p||p.path!==s.path()||Date.now()-p.savedAt>=30*6e4)return _.restore()?(e.sourceUrl&&await J(),!0):!1;_.restore();for(let y of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(p.draft,y)&&(e[y]=p.draft[y]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await J(),sessionStorage.removeItem("github-access-draft"),!0}ee(()=>{!r.repoId&&!r.pullRequestId&&!r.gistId&&a(X,0),r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async p=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(p.data.status),e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.fullName,e._originalFullName=p.data.source.fullName,e.terms=p.data.options.terms.filter(y=>y).join(`
+`),e.source=p.data.source,e.role=p.data.role||"owner",e.coauthors=p.data.coauthors||[],e._originalBranch=p.data.source.branch,e.options=Object.assign({},e.options,p.data.options),e.conference=p.data.conference,e._originalConference=p.data.conference,e.repositoryID=p.data.source.repositoryID,e._originalRepositoryID=p.data.source.repositoryID,p.data.options.expirationDate&&(e.options.expirationDate=new Date(p.data.options.expirationDate)),S=v(parseGithubUrl(e.sourceUrl)),!await X()&&(await Promise.all([K(),se()]),_e())},()=>{s.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async p=>{if(e.githubConnection=p.data.connection||"oauth",e.sourceUrl="https://github.com/"+p.data.source.repositoryFullName+"/pull/"+p.data.source.pullRequestId,e.terms=p.data.options.terms.filter(y=>y).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)),S=v(parseGithubUrl(e.sourceUrl)),!await X())try{await qe()}catch{}},()=>{s.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async p=>{e.sourceUrl="https://gist.github.com/"+p.data.source.gistId,e.terms=p.data.options.terms.filter(y=>y).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)),S=v(parseGithubUrl(e.sourceUrl)),!await X()&&await ze()},()=>{s.url("/404")}))}),t.get("/github/connections").then(p=>{e.githubConnections=p.data,!r.repoId&&!r.pullRequestId&&!r.gistId&&e.githubConnection===void 0&&p.data.appEnabled&&p.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&J())}).catch(()=>{}),e.urlSelected=async(p=!1)=>{let y=++m;e.previousConfigurations=[],e.previousConfigurationId="";let D;try{D=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,re.cancel(),Se.cancel(),F.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",C("sourceUrl","github",!1);return}let O=v(D),I=p||S===O;S=O,e.sourceUrlError="",C("sourceUrl","github",!0);let U=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,U&&a(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!I&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],I||(e.source={type:"GitHubStream",branch:"",commit:""}),re.cancel(),Se.cancel(),F.cancel(),Me.clear(),Ue.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=I;try{D.gistId&&!D.repo?(e.detectedType="gist",e.source={gistId:D.gistId},await ze()):D.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:D.owner+"/"+D.repo,pullRequestId:D.pullRequestId},await qe()):(e.detectedType="repo",ne(),await Promise.all([K(),se()]),_e())}catch{}finally{y===m&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let p=e.branches.filter(D=>D.name==e.source.branch)[0];if(!p)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=p.commit),e.readme=p.readme,await se(),_e()}),e.getBranches=async p=>{let y=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${y.owner}/${y.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0||e.reconnectingSource?"1":"0",repositoryID:G()}});if(!k(D))return;e.branches=O.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let I=e.branches.filter(U=>U.name==e.source.branch);I.length>0&&(!(!e.reconnectingSource&&!p&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=I[0].commit),e.readme=I[0].readme,await se(p))}catch(O){if(!k(D))return;e.branches=[],e.sourceUnreachable=O&&(O.status===404||O.data&&O.data.error==="repo_not_found");let I=O&&O.data&&O.data.error||(O&&O.status===404?"repo_not_found":"unknown_error");i("ERRORS."+I).then(U=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:U}),e.error=U},console.error),typeof C=="function"&&C("sourceUrl","missing",!1)}finally{E(D)}};async function K(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te();let D=await t.get(`/api/repo/${p.owner}/${p.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,repositoryID:G(),force:"1"}});if(!k(y))return;e.details=D.data,e.reconnectingSource&&(e.reconnectRepositoryId=e.details.externalId),e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches(e.reconnectingSource)}catch(D){if(!k(y))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}async function se(p){if(e.readme&&!p)return e.readme;let y=parseGithubUrl(e.sourceUrl),D=h();try{let O=await t.get(`/api/repo/${y.owner}/${y.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&r.repoId&&P(e.sourceUrl)===e._originalFullName?r.repoId:void 0,connection:e.githubConnection,force:p===!0?"1":"0",branch:e.source.branch,repositoryID:G()}});k(D,!0)&&(e.readme=O.data)}catch{k(D,!0)&&(e.readme="")}finally{E(D)}}function ce(){let p={terms:e.terms?e.terms.split(`
+`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(p.branchName=e.source.branch);try{let y=parseGithubUrl(e.sourceUrl);p.repoName=`${y.owner}/${y.repo}`}catch{}return p}function ue(p,y,D){let O=null,I=0,U=()=>{if(e.detectedType!==p)return;O&&a.cancel(O);let L=++I;e.previewStatus="loading",O=a(()=>{O=null;let H=y();if(!H){e.previewStatus="idle";return}t.post("/api/anonymize-preview",H).then(Y=>{L===I&&(D(Y.data,H),e.previewStatus="ready")}).catch(()=>{L===I&&(e.previewStatus="error")})},200)};return U.cancel=()=>{I++,O&&a.cancel(O),O=null},e.on("dispose",U.cancel),U}e.retryPreview=()=>{e.detectedType==="repo"&&re(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()};let re=ue("repo",()=>e.readme?{content:e.readme,options:ce()}:null,p=>{if(typeof p?.content!="string")throw Error("Invalid preview response");e.anonymize_readme=p.content;let y="";try{let O=parseGithubUrl(e.sourceUrl),I=e.source.branch||e.details&&e.details.defaultBranch||"main";y=`https://github.com/${O.owner}/${O.repo}/raw/${I}/`}catch{}let D=renderMD(e.anonymize_readme,y);e.html_readme=D,a(Prism.highlightAll,150)});function _e(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),re())}async function qe(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te();let D=await t.get(`/api/pr/${p.owner}/${p.repo}/${p.pullRequestId}`,{params:{connection:e.githubConnection}});if(!k(y))return;e.details=D.data,e.pullRequestId||(e.pullRequestId=p.repo+"-PR"+p.pullRequestId+"-"+generateRandomId(4))}catch(D){if(!k(y))return;throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}let Me=Fe(new Map);function Pe(){let p=new Set,y=e.details&&e.details.pullRequest;if(!y)return p;typeof y.title=="string"&&p.add(y.title),typeof y.body=="string"&&p.add(y.body),typeof y.diff=="string"&&p.add(y.diff);let D=y.comments||[];for(let O of D)typeof O.author=="string"&&p.add(O.author),typeof O.body=="string"&&p.add(O.body);return p}let Se=ue("pr",()=>{let p=Pe(),y=Array.from(p);return y.length===0?null:{contents:y,options:ce()}},(p,y)=>{if(!Array.isArray(p?.contents)||p.contents.length!==y.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=y.contents,O=new Map;for(let I=0;IMe.set(U,I))});e.anonymizePrContent=function(p){return p&&(Me.has(p)?Me.get(p):"")};async function ze(){let p=parseGithubUrl(e.sourceUrl),y=h();try{te(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let D=await t.get(`/api/gist/source/${p.gistId}`);if(!k(y))return;e.details=D.data,e.gistId||(e.gistId="gist-"+p.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(D){if(!k(y))return;if(D.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,C("sourceUrl","missing",!1);return}if(D.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,C("sourceUrl","missing",!1);return}throw D.data&&(i("ERRORS."+D.data.error).then(O=>{e.addToast({title:"Error",date:new Date,body:O}),e.error=O},console.error),Ee(D.data.error)),C("sourceUrl","missing",!1),D}finally{E(y)}}let Ue=Fe(new Map);function ke(){let p=new Set,y=e.details&&e.details.gist;if(!y)return p;typeof y.description=="string"&&p.add(y.description),typeof y.ownerLogin=="string"&&p.add(y.ownerLogin);let D=y.files||[];for(let I of D)typeof I.filename=="string"&&p.add(I.filename),typeof I.content=="string"&&p.add(I.content);let O=y.comments||[];for(let I of O)typeof I.author=="string"&&p.add(I.author),typeof I.body=="string"&&p.add(I.body);return p}let F=ue("gist",()=>{let p=ke(),y=Array.from(p);return y.length===0?null:{contents:y,options:ce()}},(p,y)=>{if(!Array.isArray(p?.contents)||p.contents.length!==y.contents.length||p.contents.some(I=>typeof I!="string"))throw Error("Invalid preview response");let D=y.contents,O=new Map;for(let I=0;IUe.set(U,I)),Z()});e.anonymizeGistContent=function(p){return p&&(Ue.has(p)?Ue.get(p):"")},e.previewGistFiles=[];function Z(){let p=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=p.map(y=>({filename:e.anonymizeGistContent(y.filename),content:e.anonymizeGistContent(y.content),language:y.language}))}e.watch("details.gist.files",Z,!0),e.watch("terms",Z);function Q(){let p=e.conference;if(e.conference_data=null,!p)return;let y=e.isUpdate&&p===e._originalConference;t.get("/api/conferences/"+p).then(D=>{e.conference===p&&(e.conference_data=D.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!y&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===p&&(e.conference_data=null)})}function te(){C("repoId","used",!0),C("repoId","format",!0),C("pullRequestId","used",!0),C("pullRequestId","format",!0),C("gistId","used",!0),C("gistId","format",!0),C("sourceUrl","used",!0),C("sourceUrl","missing",!0),C("sourceUrl","access",!0),C("sourceUrl","github",!0),C("commit","exists",!0),C("conference","activated",!0),C("terms","format",!0),e.termsRegexWarning=!1}function ye(){let p=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||p&&p.invalid?(p&&p.setDirty&&p.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function Ee(p){let y=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(p){case"repoId_already_used":C(y,"used",!1);break;case"invalid_repoId":C(y,"format",!1);break;case"options_not_provided":C(y,"format",!1);break;case"repo_already_anonymized":C("sourceUrl","used",!1);break;case"invalid_terms_format":C("terms","format",!1);break;case"repo_not_found":C("sourceUrl","missing",!1);break;case"repo_not_accessible":C("sourceUrl","access",!1);break;case"commit_not_found":C("commit","exists",!1);break;case"conf_not_activated":C("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(y=>{let D=new Set((e.coauthors||[]).map(O=>(O.username||"").toLowerCase()));e.coauthorResults=(y.data||[]).filter(O=>!D.has((O.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(p,y)=>{y&&y.preventDefault(),!(!p||!p.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:p.username}).then(D=>{e.coauthors=D.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},D=>{let O=D&&D.data&&D.data.error||"unknown_error";e.coauthorError=O})},e.removeCoauthor=p=>{!p||!p.username||confirm("Remove co-author "+p.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(p.username)).then(y=>{e.coauthors=y.data||[]},y=>{let D=y&&y.data&&y.data.error||"unknown_error";e.coauthorError=D})},e.anonymizeRepo=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId||ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={repoId:e.repoId,terms:e.terms.trim().split(`
+`).filter(U=>U),connection:e.githubConnection,fullName:`${D.owner}/${D.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(O.options.pageSource=e.details.pageSource),te();let I=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/status/"+e.repoId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.anonymizeGist=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={gistId:e.gistId,terms:e.terms.trim().split(`
+`).filter(U=>U),source:{gistId:D.gistId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/gist/"+e.gistId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.anonymizePullRequest=p=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ye())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let y=p.currentTarget||p.target.closest?.("button")||p.target;y.disabled=!0;let D=parseGithubUrl(e.sourceUrl),O={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(`
+`).filter(U=>U),source:{repositoryFullName:`${D.owner}/${D.repo}`,pullRequestId:D.pullRequestId},options:e.options,conference:e.conference};te();let I=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(I,O,{headers:{"Content-Type":"application/json"}}).then(()=>{_.clear(),window.location.href="/pr/"+e.pullRequestId},U=>{U.data&&(i("ERRORS."+U.data.error).then(L=>{e.error=L},console.error),Ee(U.data.error))}).finally(()=>{y.disabled=!1})},e.watch("conference",()=>{Q()}),e.watch("terms",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.image",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("options.link",()=>{e.detectedType==="repo"&&_e(),e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()}),e.watch("details",()=>{e.detectedType==="pr"&&Se(),e.detectedType==="gist"&&F()},!0)},pr=function(e,t,n,r,s,i){let a=ut();window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",P=>el(P.element)),window.Prism.redactionHook=!0);let u=Zt();e.on("dark-mode",(P,G)=>{e.aceOption&&(G?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome")});let m=0,w=!1;e.on("dispose",()=>{w=!0,m++,g&&g.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(P){if((P.metaKey||P.ctrlKey)&&P.key==="k"){P.preventDefault();var G=document.querySelector(".tree-search-input");G&&(G.focus(),G.select())}});var g=null;e.onFileSearchChange=function(){g&&(g.resolve(),g=null);let P=e.fileSearchQuery;if(!P||P.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let G=i.defer();g=G,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(P)}`,{timeout:G.promise}).then(function(J){if(!(w||g!==G)){g=null,e.fileSearchLoading=!1;var X={};e.files.forEach(function(F){X[(F.path||"")+"/"+F.name]=!0});for(var K=[],se={},ce=0;ce0&&e.files.push.apply(e.files,K);for(var Se=[],ze=0;ze0&&e.files.push.apply(e.files,Se),e.fileSearchResults=J.data}},function(){!w&&g===G&&(g=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let k={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},h=["license","txt"],E=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],S=["wav","mp3","ogg","wma","flac","aac","m4a"],v=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(P,G){if(e.repoId!=r.repoId)return C();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(J=>J&&J.trim().length>0),ee();for(let J=0;J0?e.paths.slice(0,J).join("/"):"";e.files.some(se=>se.path===X)||e.getFiles(X)}}});function _(){if(e.paths[0]!="")return;let P=["readme.md","readme.txt","readme.org","readme.1st","readme"],G={};for(let X of e.files)X.name.toLowerCase().indexOf("readme")>-1&&(G[X.name.toLowerCase()]=X.name);let J=null;for(let X of P)if(G[X]){J=X;break}if(!J&&Object.keys(G).length>0&&(J=Object.keys(G)[0]),J){let X=n.url();X[X.length-1]!="/"&&(X+="/"),n.url(X+encodePathForUrl(G[J]))}}e.fileCounts=null,e.getFiles=function(P){let G=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(P)}&v=${e.options.lastUpdateDate}`).then(function(J){if(w||G!==e.repoId)return[];let X=P||"";return e.files=e.files.filter(K=>K.path!==X),e.files.push(...J.data),J.data},function(J){if(w||G!==e.repoId)return[];e.type="error",e.content=cr(J),e.files=[]})};function N(){let P=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(G){w||P!==e.repoId||(e.fileCounts=G.data)},function(){e.fileCounts={}})}function T(){return e.files.filter(P=>P.name==e.paths[e.paths.length-1]&&P.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var V=null;e.on("dispose",function(){V&&a.interval.cancel(V)});function M(P){if(w)return;let G=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(J=>{if(!(w||G!==e.repoId)){if(e.options=J.data,e.options.url){window.location=e.options.url;return}P&&P(J.data)}},J=>{if(!(w||G!==e.repoId)){var X=J.data||{};if(X.error==="rate_limited"&&X.resetAt){let se=function(){var ce=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(ce<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,V&&(a.interval.cancel(V),V=null),M(P);else{var ue=Math.floor(ce/60),re=ce%60;e.rateLimitCountdown=ue>0?ue+"m "+re+"s":re+"s"}};var K=se;e.type="rate_limited",e.rateLimitResetAt=X.resetAt,V&&a.interval.cancel(V),se(),V=a.interval(se,1e3)}else X.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){M(P)},3e3)):(e.type="error",e.content=cr(J))}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function q(P){return k[P]?k[P]:P}function z(P){return P=="pdf"?"pdf":P=="html"||P=="htm"?"html-doc":P=="md"?"md":P=="org"?"org":P=="ipynb"?"IPython":h.indexOf(P)>-1?"text":E.indexOf(P)>-1?"image":v.indexOf(P)>-1?"media":S.indexOf(P)>-1?"audio":"code"}function ne(P,G){let J=m;if(!P){e.type="error",e.content="no_file_selected";return}let X=e.type;e.type="loading",e.content="loading";let K=G&&G.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(P)}?v=`+K,{transformResponse:se=>se}).then(se=>{if(!(w||J!==m)){if(e.type=X,e.content=se.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(se.data,n.url()+"/../"),e.type="html"),e.type=="org"){let ue=contentAbs2Relative(se.data);var ce=new Org.Parser().parse(ue).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(ce.toString()),e.type="html"}e.type=="code"&&se.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},se=>{w||J!==m||(e.type="error",e.content=cr(se))})}function ee(){m++,e.content="",e.file=T();let P="0";e.file&&e.file.sha&&(P=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${P}`;let G=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${G?encodePathForUrl(G):""}`,e.showSource=!1,e.allowScripts=!1;let J=e.filePath.toLowerCase(),X=J.lastIndexOf(".");if(X>-1&&(J=J.substring(X+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:q(J),onLoad:function(K){let se=ace.require("ace/range").Range,ce=null;function ue(ke,F){ce!==null&&(K.session.removeMarker(ce),ce=null),ke!=null&&(ce=K.session.addMarker(new se(ke,0,F,1),"highlighted-line","fullLine"))}function re(ke){let F=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!F){ue(null);return}let Z=parseInt(F[1])-1,Q=F[2]?parseInt(F[2])-1:Z;ue(Z,Q),ke&&a.timeout(()=>{K.scrollToLine(Z,!0,!0,function(){})},100)}re(!0);let _e=null;K.on("guttermousedown",function(ke){let F=ke.getDocumentPosition().row,Z=ke.domEvent&&ke.domEvent.shiftKey,Q=F,te=F;Z&&_e!==null?(Q=Math.min(_e,F),te=Math.max(_e,F)):_e=F;let ye=Q===te?`#L${Q+1}`:`#L${Q+1}-L${te+1}`,Ee=window.location.pathname+window.location.search+ye;window.history.replaceState(null,"",Ee),ue(Q,te),ke.stop()});let qe=u(window,"hashchange",()=>re(!1));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);let Me=window.matchMedia("(max-width: 991px)"),Pe=()=>K.session.setUseWrapMode(e.aceOption.useWrapMode&&Me.matches);Pe(),Me.addEventListener?.("change",Pe),K.setBehavioursEnabled(e.aceOption.enableBehaviours),K.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let Se=[],ze=()=>{Se.forEach(Z=>K.session.removeMarker(Z)),Se=[];let ke=xa();if(!ke)return;K.session.getDocument().getAllLines().forEach((Z,Q)=>{for(let te of Z.matchAll(ke))Se.push(K.session.addMarker(new se(Q,te.index,Q,te.index+te[0].length),"ace_redaction","text"))})};ze(),K.session.on("change",()=>a.timeout(ze,0));let Ue=e.on("site-options",ze);return()=>{qe(),Ue(),Me.removeEventListener?.("change",Pe)}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=z(J),e.type=="pdf"){e.content="pdf";return}ne(e.filePath,e.file)}e.isSourceAccessError=()=>["repo_not_found","token_expired","github_app_access_required","github_app_reconnect_required","repo_saml_enforcement","repo_access_limited"].includes(e.content),e.retryContent=()=>C();function C(){m++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let P=e.repoId;M(function(G){N();var J=i.resolve();for(let X=0;X0?e.paths.slice(0,X).join("/"):"";J=J.then(function(){return e.getFiles(K)}).then(function(){if(e.type==="error")return i.reject("error")})}J.then(function(){w||P!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(_(),ee()))})})}C()},ul=function(e,t,n,r,s){async function i(m){t.get(`/api/pr/${e.pullRequestId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(m){t.get(`/api/pr/${e.pullRequestId}/content`).then(w=>{e.details=w.data,e.tabState={active:w.data.diff?"diff":"comments"},m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(m=>{a()})}u()},cl=function(e,t,n,r,s){async function i(m){t.get(`/api/gist/${e.gistId}/options`).then(w=>{if(e.options=w.data,e.options.url){window.location=e.options.url;return}m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}async function a(m){t.get(`/api/gist/${e.gistId}/content`).then(w=>{e.details=w.data;let g=w.data&&w.data.files&&w.data.files.length;e.tabState={active:g?"files":"comments"},m&&m(w.data)},w=>{e.type="error",e.content=w.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},pl=function(e,t,n){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let r="conferences.filterPrefs",s={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},s.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||s.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(a){if(!a.removing&&confirm(`Are you sure that you want to remove the conference ${a.name}? All the repositories linked to this conference will expire.`)){a.removing=!0;let u=Fe({title:`Removing ${a.name}...`,date:new Date,body:`The conference ${a.name} is going to be removed.`});e.addToast(u),t.delete(`/api/conferences/${a.conferenceID}`).then(()=>{u.title=`${a.name} is removed.`,u.body=`The conference ${a.name} is removed.`,e.loadConferences()}).catch(()=>{u.title="Unable to remove conference",u.body="Please try again. The conference has not been removed."}).finally(()=>{a.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(a=>{e.conferences=a.data||[]},a=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=a=>{if(e.filters.status[a.status]==!1)return!1;let u=e.search.trim().toLowerCase();return!!(!u||(a.name||"").toLowerCase().includes(u)||(a.conferenceID||"").toLowerCase().includes(u))}},fr=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.plans=[],e.editionMode=!1,e.saving=!1,e.error="";function s(){t.get("/api/conferences/"+r.conferenceId).then(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)})}r.conferenceId&&(e.editionMode=!0,s());function i(){t.get("/api/conferences/plans").then(g=>{e.plans=g.data,e.plan=e.plans.filter(k=>k.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={billing:{},startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]});function m(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function w(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=Fe({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),m(),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.`),n.url("/conference/"+g.conferenceID)},h=>{w(h.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(k)}).finally(()=>{e.saving=!1})}},fl=function(e,t,n,r){e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>{if(e.filters.status[i.status]==!1)return!1;let a=e.search.trim().toLowerCase();return!!(!a||(i.source?.fullName||"").toLowerCase().includes(a)||(i.repoId||"").toLowerCase().includes(a))};function s(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}s()},ml=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let n=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=n.data.notificationEmail,e.user&&(e.user.notificationEmail=n.data.notificationEmail),e.emailSaved=!0}catch(n){e.connectionError=n.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(n=>{e.connections=n.data,e.notificationEmail=n.data.notificationEmail||""}).catch(n=>{e.connectionError=n.data?.error||"Unable to load connections."}),e.changeConnection=async(n,r,s)=>{e.busy=!0,e.connectionError="";try{let i=await t.post("/github/connections/migrate",{type:n.type,id:n.id,connection:r,preview:s},{headers:{"X-CSRF-Token":e.connections.csrf}});s?n.eligible=i.data.eligible:await e.loadConnections()}catch(i){e.connectionError=i.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(n){e.connectionError=n.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},hl=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(n=>{e.accountRecovery=n.data.required}).catch(()=>{})};var vl=function(e,t,n){let r=ut(),s=Zt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&n.url("/")}),e.user==null&&n.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let v=document.querySelector('.admin-filter-toolbar input[type="search"]');v&&v.focus()}};s(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let a=()=>{let S=[];e.query.owner&&S.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&S.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=S};e.showStatusMessage=S=>{let v=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,v)},e.fetchGithubInfo=S=>{let v=window.open("","_blank");v&&v.document.write("
Manage how GitHub shares your code. Your anonymizations and URLs stay the same.
',2)),e.connectionError?(l(),d("p",Wp,c(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(l(),d("p",Kp,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(l(),d("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=n=>e.loadConnections())},"Try again",8,Yp)):f("v-if",!0),e.connections?(l(),d("div",Jp,[e.connections.emailNotificationsEnabled?(l(),d("section",Qp,[t[6]||(t[6]=o("h2",null,"Email alerts",-1)),t[7]||(t[7]=o("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),o("form",{onSubmit:t[2]||(t[2]=ie(n=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=o("label",{for:"notification-email"},"Email address",-1)),R(o("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=n=>e.notificationEmail=n),disabled:e.busy},null,8,Xp),[[zt,e.notificationEmail]]),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,Zp),e.emailSaved?(l(),d("p",xp,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),o("div",ef,[e.connections.appEnabled?(l(),d("section",tf,[t[13]||(t[13]=o("div",{class:"connection-top"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",{class:"connection-badge"},"Recommended")],-1)),o("div",of,[t[8]||(t[8]=o("h2",null,"GitHub App",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},c(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[14]||(t[14]=o("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(l(),d("p",nf,c(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),o("div",sf,[e.connections.appConnected&&!e.connections.appError?(l(),d("a",rf,[...t[9]||(t[9]=[b("Manage repository access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),o("a",{class:A(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},c(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3)]),t[15]||(t[15]=o("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(l(),d("ul",af,[(l(!0),d(W,null,oe(e.connections.installations,n=>(l(),d("li",{key:n.id},[o("div",null,[o("strong",null,c(n.account),1),n.suspended?(l(),d("span",lf," \xB7 Suspended")):f("v-if",!0)]),o("a",{target:"_self",href:"/github/app/install?installationId="+n.id},[t[10]||(t[10]=b("Manage access ",-1)),o("span",uf,"for "+c(n.account),1),t[11]||(t[11]=b(" \u2192",-1))],8,df)]))),128))])):f("v-if",!0),o("button",{class:"connection-link",disabled:e.busy,onClick:t[3]||(t[3]=n=>e.loadConnections())},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh access",-1)])],8,cf)])):f("v-if",!0),o("section",null,[t[18]||(t[18]=o("div",{class:"connection-top"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),o("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),o("div",pf,[t[16]||(t[16]=o("h2",null,"GitHub OAuth",-1)),o("span",{class:A(["connection-status",{"is-connected":e.connections.oauthConnected}])},c(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[19]||(t[19]=o("p",null,"For existing OAuth anonymizations.",-1)),t[20]||(t[20]=o("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(l(),d("a",ff,c(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(l(),d("div",mf,[e.connections.gistCount?(l(),d("p",hf,c(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[17]||(t[17]=o("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(l(),d("button",{key:1,class:"connection-link connection-danger",disabled:e.busy||e.connections.resources.some(n=>n.connection==="oauth"),onClick:t[4]||(t[4]=n=>e.disconnectOAuth())},"Revoke OAuth access",8,vf)):f("v-if",!0)])):f("v-if",!0)])]),o("section",yf,[o("div",gf,[t[21]||(t[21]=o("h2",null,"Repository connections",-1)),o("span",bf,c(e.connections.resources?.length||0)+" resources",1)]),t[23]||(t[23]=o("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(l(),d("div",wf,[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("div",null,[o("h3",null,"No repository connections yet"),o("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),o("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(l(!0),d(W,null,oe(e.connections.resources,n=>(l(),d("div",{class:"connection-resource",key:n.type+n.id},[o("div",kf,[o("strong",null,c(n.name||n.id),1),o("small",null,c(n.type)+" \xB7 "+c(n.id),1)]),o("span",{class:A(["connection-badge",{"connection-badge-muted":n.connection==="oauth"}])},c(n.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(l(),d("div",Ef,[o("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!0)},"Check read-only access",8,Cf),n.eligible?(l(),d("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:r=>e.changeConnection(n,"github-app",!1)},c(n.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,_f)):f("v-if",!0),n.eligible===!1?(l(),d("span",Sf,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(n.status)&&(n.status!=="download"||n.type==="pull-request"&&(!n.statusDate||new Date(n.statusDate).getTime()<=Date.now()-3e5))&&n.connection==="github-app"&&e.connections.oauthConnected?(l(),d("button",{key:1,class:"connection-link",disabled:e.busy,onClick:r=>e.changeConnection(n,"oauth",!1)},"Use OAuth",8,Nf)):f("v-if",!0)]))),128)),t[24]||(t[24]=o("p",{class:"connection-footnote"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var Rf={class:"container paper-page auth-page"},Df={class:"auth-layout"},Tf={class:"auth-options"},Af={key:0},Of={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},If={key:1},Pf={key:1},Vf={key:2,class:"auth-legacy"},qf={key:3,role:"status"};function Nl(e,t){return l(),d("div",Rf,[t[5]||(t[5]=o("a",{class:"auth-back",href:"/"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-left"})]),b(" Anonymous GitHub")],-1)),o("div",Df,[t[4]||(t[4]=de('
Your research, ready for review
Your code. Your identity, protected.Sign in to GitHub
Sign in to create and manage your anonymizations.
',1)),o("div",Tf,[e.accountRecovery?(l(),d("section",Af,[t[0]||(t[0]=o("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=o("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(l(),d("a",Of,"Verify with previous GitHub connection")):(l(),d("p",If,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(l(),d("section",Pf,[...t[2]||(t[2]=[de('
Read-only access
Continue with GitHub
Connect through the GitHub App with read-only repository access.
You choose which repositories to share
No permission to write to your code
Sign in with GitHub Your existing anonymizations and connections stay with your account.',6)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(l(),d("section",Vf,[...t[3]||(t[3]=[o("div",{class:"connection-title"},[o("h2",null,"Continue with GitHub")],-1),o("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),o("a",{class:"connection-link",target:"_self",href:"/github/login"},[b("Sign in with GitHub "),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(l(),d("p",qf,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])])}var Mf={class:"paper-empty"};function Rl(e,t){return l(),d("div",Mf,[...t[0]||(t[0]=[de('
Error \xB7 404
This link isn\u2019t here.
The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.
',1)),o("a",$y,[t[44]||(t[44]=o("span",{class:"ov-route-name"},"download",-1)),o("span",Ly,c(e.data?.queues?.download?.active),1),o("span",Fy,c(e.data?.queues?.download?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),o("a",zy,[t[45]||(t[45]=o("span",{class:"ov-route-name"},"remove",-1)),o("span",Hy,c(e.data?.queues?.remove?.active),1),o("span",By,c(e.data?.queues?.remove?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),o("a",jy,[t[46]||(t[46]=o("span",{class:"ov-route-name"},"cache",-1)),o("span",Gy,c(e.data?.queues?.cache?.active),1),o("span",Wy,c(e.data?.queues?.cache?.waiting),1),o("span",{class:A(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),o("section",Ky,[o("div",Yy,[t[49]||(t[49]=o("span",{class:"ov-panel-title"},"Services",-1)),o("span",Jy,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),o("div",Qy,[o("div",Xy,[t[51]||(t[51]=o("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),o("div",Zy,[t[50]||(t[50]=o("span",{class:"ov-svc-name"},"web",-1)),o("span",xy,c(e.data?.system?.nodeVersion),1)]),o("span",eg,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),o("div",tg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",og,[t[52]||(t[52]=o("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",ng,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(l(),d("span",sg,"idle"))])]),o("div",rg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ig,[t[53]||(t[53]=o("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",ag,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(l(),d("span",lg,"idle"))])]),o("div",dg,[o("span",{class:A(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),o("div",ug,[t[54]||(t[54]=o("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",cg,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(l(),d("span",pg,"idle"))])]),o("div",fg,[o("span",{class:A(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),o("div",mg,[t[55]||(t[55]=o("span",{class:"ov-svc-name"},"errors",-1)),o("span",hg,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):f("v-if",!0),o("section",vg,[o("div",yg,[t[60]||(t[60]=o("div",null,[o("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),o("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work \xB7 refreshes every 30 seconds")],-1)),o("div",gg,[t[58]||(t[58]=o("label",{for:"cache-window"},"Time range",-1)),R(o("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=n=>e.cacheMinutes=n),onChange:t[1]||(t[1]=n=>e.loadCache())},[...t[56]||(t[56]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1),o("option",{value:1440},"Last 24 hours",-1),o("option",{value:10080},"Last 7 days",-1)])],544),[[To,e.cacheMinutes,void 0,{number:!0}]]),t[59]||(t[59]=o("label",{for:"cache-traffic"},"Traffic",-1)),R(o("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=n=>e.cacheTraffic=n)},[...t[57]||(t[57]=[de('',6)])],512),[[To,e.cacheTraffic]])])]),e.cacheError?(l(),d("div",bg,[o("span",null,c(e.cacheError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=n=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(l(),d("p",wg,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(l(),d(W,{key:2},[e.cacheReport.enabled?f("v-if",!0):(l(),d("p",kg,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(l(),d("p",Eg,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(l(),d("p",Cg,c(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(l(),d("div",_g,[o("table",Sg,[t[61]||(t[61]=o("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[62]||(t[62]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Pool"),o("th",{scope:"col"},"Allocated / budget"),o("th",{scope:"col"},"Reserved for fills"),o("th",{scope:"col"},"Original bytes"),o("th",{scope:"col"},"Blobs"),o("th",{scope:"col"},"Active readers")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],n=>R((l(),d("tr",{key:n.name},[o("th",Ng,c(n.name),1),o("td",null,c(e.humanBytes(n.data?.allocatedBytes))+" / "+c(e.humanBytes(n.data?.budgetBytes)),1),o("td",null,c(e.humanBytes(n.data?.reservedBytes)),1),o("td",null,c(e.humanBytes(n.data?.originalBytes)),1),o("td",null,c(n.data?.blobs),1),o("td",null,c(n.data?.activeReaders),1)])),[[j,n.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(l(),d("p",Rg,"Source request hit rate: "+c(e.cacheRate("source","count"))+" \xB7 Source byte hit rate: "+c(e.cacheRate("source","bytes"))+" \xB7 Decision hit rate: "+c(e.cacheRate("decision","count")),1)):f("v-if",!0),t[65]||(t[65]=o("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(l(),d("div",Dg,[o("table",Tg,[t[63]||(t[63]=o("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[64]||(t[64]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Event"),o("th",{scope:"col"},"Traffic"),o("th",{scope:"col"},"Count"),o("th",{scope:"col"},"Bytes"),o("th",{scope:"col"},"Mean measured time"),o("th",{scope:"col"},"p95 bound")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.cacheRows(),n=>(l(),d("tr",{key:n.name+":"+n.traffic},[o("th",Ag,c(e.cacheEventName(n.name)),1),o("td",null,c(n.traffic),1),o("td",null,c(n.count),1),o("td",null,c(e.humanBytes(n.bytes)),1),o("td",null,c(n.ms?(n.ms/n.count).toFixed(2)+" ms":"Not timed"),1),o("td",null,c(e.cacheP95(n)),1)]))),128))])])])):(l(),d("p",Og,"No cache events in this time range for the selected traffic.")),o("p",Ig,"Updated "+c(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)]),o("section",Pg,[o("div",Vg,[t[68]||(t[68]=o("div",null,[o("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),o("p",{class:"ov-performance-note"},"Request latency and process health \xB7 refreshes every 30 seconds")],-1)),o("div",qg,[t[67]||(t[67]=o("label",{for:"performance-window"},"Time range",-1)),R(o("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=n=>e.performanceMinutes=n),onChange:t[5]||(t[5]=n=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[66]||(t[66]=[o("option",{value:15},"Last 15 minutes",-1),o("option",{value:60},"Last hour",-1)])],544),[[To,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(l(),d("div",Mg,[t[69]||(t[69]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),o("span",null,c(e.performanceError),1),o("button",{type:"button",class:"btn btn-sm",onClick:t[6]||(t[6]=n=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(l(),d("p",Ug,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(l(),d("div",$g,[o("div",Lg,[o("button",{id:"performance-routes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="routes"}]),role:"tab","aria-selected":e.performanceTab==="routes",tabindex:e.performanceTab==="routes"?0:-1,"aria-controls":"performance-routes",onClick:t[7]||(t[7]=n=>e.performanceTab="routes"),onKeydown:t[8]||(t[8]=n=>e.previewTabKeydown(n))},"Routes",42,Fg),o("button",{id:"performance-processes-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="processes"}]),role:"tab","aria-selected":e.performanceTab==="processes",tabindex:e.performanceTab==="processes"?0:-1,"aria-controls":"performance-processes",onClick:t[9]||(t[9]=n=>e.performanceTab="processes"),onKeydown:t[10]||(t[10]=n=>e.previewTabKeydown(n))},"Processes",42,zg),o("button",{id:"performance-stages-tab",type:"button",class:A(["paper-tab",{active:e.performanceTab==="stages"}]),role:"tab","aria-selected":e.performanceTab==="stages",tabindex:e.performanceTab==="stages"?0:-1,"aria-controls":"performance-stages",onClick:t[11]||(t[11]=n=>e.performanceTab="stages"),onKeydown:t[12]||(t[12]=n=>e.previewTabKeydown(n))},"Work stages",42,Hg)]),R(o("div",Bg,[e.performance.routes?.length?(l(),d("div",jg,[o("table",Gg,[t[70]||(t[70]=o("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[71]||(t[71]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Route"),o("th",{scope:"col",class:"num"},"Requests"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"First byte p95"),o("th",{scope:"col",class:"num"},"p95"),o("th",{scope:"col",class:"num"},"p99"),o("th",{scope:"col",class:"num"},"Interrupted"),o("th",{scope:"col",class:"num"},"5xx"),o("th",{scope:"col",class:"num"},"Slow")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.routes,n=>(l(),d("tr",{key:n.service+n.method+n.route},[o("th",Wg,[o("span",null,c(n.route),1),o("small",null,c(n.service)+" \xB7 "+c(n.method),1)]),o("td",Kg,c(e.fmt.number(n.count)),1),o("td",Yg,c(e.formatMs(n.avgMs)),1),o("td",Jg,c(e.firstByteBound(n)),1),o("td",Qg,c(e.latencyBound(n,"p95UpperMs")),1),o("td",Xg,c(e.latencyBound(n,"p99UpperMs")),1),o("td",{class:A(["num",{"ov-metric-warn":n.aborted>0}])},c(e.fmt.number(n.aborted)),3),o("td",{class:A(["num",{"ov-metric-warn":n.errors>0}])},c(e.fmt.number(n.errors)),3),o("td",{class:A(["num",{"ov-metric-warn":n.slow>0}])},c(e.fmt.number(n.slow)),3)]))),128))])])])):(l(),d("p",Zg,"No recorded requests in this time range yet."))],512),[[j,e.performanceTab==="routes"]]),R(o("div",xg,[t[75]||(t[75]=o("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(l(),d("div",tb,[o("table",ob,[t[73]||(t[73]=o("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[74]||(t[74]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Process"),o("th",{scope:"col",class:"num"},"RSS / limit"),o("th",{scope:"col",class:"num"},"CPU"),o("th",{scope:"col",class:"num"},"Event loop p95"),o("th",{scope:"col",class:"num"},"Active requests"),o("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),o("th",{scope:"col",class:"num"},"Workers / waiting"),o("th",{scope:"col",class:"num"},"Sample age"),o("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.instances,n=>(l(),d("tr",{key:n.instance,class:A({"ov-metric-warning-row":e.performanceWarning(n)})},[o("th",sb,[o("span",null,c(n.instance),1),e.performanceWarning(n)?(l(),d("small",rb,[...t[72]||(t[72]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" Needs attention",-1)])])):f("v-if",!0)]),o("td",ib,[b(c(e.humanBytes(n.memory.rss))+" / "+c(e.humanBytes(n.memoryLimitBytes)),1),o("small",null,"Peak "+c(e.humanBytes(e.peakRss(n))),1)]),o("td",ab,c(n.cpuPercent.toFixed(1))+"%",1),o("td",lb,c(n.eventLoop.p95Ms.toFixed(1))+" ms",1),o("td",db,c(n.activeRequests),1),o("td",ub,c(n.sockets?.descriptors??"Unavailable")+" / "+c(n.sockets?.closeWait??"Unavailable"),1),o("td",cb,c(n.workers?.running??0)+" / "+c(n.workers?.waiting??0),1),o("td",pb,c(e.sampleAge(n))+" s",1),o("td",fb,c(n.droppedBatches)+" / "+c(n.droppedMetrics),1)],2))),128))])])])):(l(),d("div",eb,"No recent process samples. Monitoring coverage is incomplete."))],512),[[j,e.performanceTab==="processes"]]),R(o("div",mb,[e.performance.stages?.some(n=>n.metric!=="first_byte")?(l(),d("div",hb,[o("table",vb,[t[76]||(t[76]=o("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[77]||(t[77]=o("thead",null,[o("tr",null,[o("th",{scope:"col"},"Work stage"),o("th",{scope:"col",class:"num"},"Samples"),o("th",{scope:"col",class:"num"},"Average"),o("th",{scope:"col",class:"num"},"p95")])],-1)),o("tbody",null,[(l(!0),d(W,null,oe(e.performance.stages.filter(n=>n.metric!=="first_byte"),n=>(l(),d("tr",{key:n.service+n.metric},[o("th",yb,[o("span",null,c(n.metric),1),o("small",null,c(n.service),1)]),o("td",gb,c(e.fmt.number(n.count)),1),o("td",bb,c(e.formatMs(n.avgMs)),1),o("td",wb,c(e.latencyBound(n,"p95UpperMs")),1)]))),128))])])])):(l(),d("p",kb,"No recorded work stages or cache results in this time range yet."))],512),[[j,e.performanceTab==="stages"]]),t[78]||(t[78]=o("details",{class:"ov-performance-help"},[o("summary",null,"How to read these metrics"),o("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)])])}var Eb={class:"container paper-page admin-page"},Cb={class:"q-header"},_b={class:"q-header-actions"},Sb={class:"q-range-btns"},Nb={class:"q-cards"},Rb=["aria-pressed","onKeydown","onClick"],Db={class:"q-card-head"},Tb=["textContent"],Ab=["textContent"],Ob={class:"q-card-sub"},Ib={key:0,class:"q-card-bar"},Pb={key:0,class:"q-detail"},Vb={class:"q-throughput"},qb={class:"q-section-label"},Mb={class:"q-section-right"},Ub={class:"q-stats-panel"},$b={class:"q-section-label"},Lb={class:"q-stats-grid"},Fb={class:"q-stat"},zb=["textContent"],Hb={class:"q-stat"},Bb=["textContent"],jb={class:"q-stat"},Gb=["textContent"],Wb={class:"q-stat"},Kb=["textContent"],Yb={class:"q-stat"},Jb=["textContent"],Qb={class:"q-stat"},Xb=["textContent"],Zb={class:"q-stats-actions"},xb=["disabled"],e1={class:"q-jobs"},t1={class:"q-jobs-header"},o1={class:"q-section-label"},n1={class:"q-state-filters"},s1={class:"q-state-toggle"},r1={type:"checkbox"},i1={class:"q-search-row"},a1={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},l1={class:"q-auto-refresh"},d1={type:"checkbox"},u1={key:0,class:"q-table"},c1=["onClick"],p1={class:"q-cell-state"},f1=["textContent"],m1=["textContent"],h1={class:"q-cell-id"},v1=["textContent","href"],y1={class:"q-cell-payload"},g1=["textContent"],b1={key:0,class:"q-payload-detail"},w1=["textContent"],k1=["textContent"],E1={class:"q-cell-progress"},C1={key:0,class:"q-progress-wrap"},_1=["textContent"],S1={class:"q-cell-actions"},N1=["onClick"],R1=["onClick"],D1={key:0,class:"q-detail-row"},T1={colspan:"7"},A1={class:"q-job-detail"},O1={class:"q-job-detail-grid"},I1={class:"q-job-detail-item"},P1={class:"q-job-detail-value"},V1=["textContent","href"],q1={class:"q-job-detail-item"},M1={class:"q-job-detail-value"},U1=["textContent"],$1={key:0,class:"q-job-detail-item"},L1=["textContent"],F1={key:1,class:"q-job-detail-item"},z1=["textContent"],H1={key:2,class:"q-job-detail-item"},B1={class:"q-job-detail-value"},j1={key:3,class:"q-job-detail-item"},G1=["textContent"],W1={key:4,class:"q-job-detail-item"},K1=["textContent"],Y1={key:5,class:"q-job-detail-item"},J1=["textContent"],Q1={key:6,class:"q-job-detail-item"},X1=["textContent"],Z1={key:7,class:"q-job-detail-item"},x1=["textContent"],ew={key:0,class:"q-job-detail-error"},tw=["textContent"],ow={key:1},nw=["textContent"],sw={class:"q-job-detail-actions"},rw=["onClick"],iw=["onClick"],aw=["href"],lw={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},dw={key:0},uw={key:1};function Ol(e,t){let n=ve("field");return l(),d("div",Eb,[t[48]||(t[48]=o("div",{class:"paper-crumbs"},[b("Admin \xA0/\xA0 "),o("span",{class:"here"},"Queues")],-1)),o("div",Cb,[t[12]||(t[12]=o("h1",{class:"paper-page-title"},"Queues",-1)),o("div",_b,[o("div",Sb,[o("button",{class:A(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),o("button",{class:A(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),o("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),o("button",{class:"btn btn-sm btn-danger-soft",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[49]||(t[49]=de('',1)),f(" Queue overview cards "),o("div",Nb,[(l(!0),d(W,null,oe(e.queueList,(r,s)=>(l(),d("div",{class:A(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===r.key,onKeydown:[Ao(ie(i=>e.selectQueue(r.key),["prevent"]),["enter"]),Ao(ie(i=>e.selectQueue(r.key),["prevent"]),["space"])],onClick:i=>e.selectQueue(r.key)},[o("div",Db,[o("span",{class:A(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),o("span",{class:"q-card-name",textContent:c(r?.label)},null,8,Tb)]),o("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,Ab),o("div",Ob,[o("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",Ib,[o("div",{class:"q-card-bar-fill",style:Ie({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,Rb))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Pb,[o("div",Vb,[o("div",qb,[b(c(e.selectedQueue)+" \xB7 throughput ",1),o("span",Mb,[t[13]||(t[13]=o("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=b(" completed ",-1)),t[15]||(t[15]=o("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=b(" failed ",-1)),t[17]||(t[17]=o("span",{class:"q-legend-exec"},"- -",-1)),b(" avg time \xB7 "+c(e.range),1)])]),t[18]||(t[18]=o("div",{class:"q-chart-wrap"},[o("canvas",{id:"q-throughput-chart",height:"180"}),o("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),o("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),o("div",Ub,[o("div",$b,c(e.selectedQueue)+" \xB7 stats",1),o("div",Lb,[o("div",Fb,[t[19]||(t[19]=o("div",{class:"q-stat-label"},"Waiting",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,zb)]),o("div",Hb,[t[20]||(t[20]=o("div",{class:"q-stat-label"},"Active",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,Bb)]),o("div",jb,[t[21]||(t[21]=o("div",{class:"q-stat-label"},"Completed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Gb)]),o("div",Wb,[t[22]||(t[22]=o("div",{class:"q-stat-label"},"Failed (24h)",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Kb)]),o("div",Yb,[t[23]||(t[23]=o("div",{class:"q-stat-label"},"Delayed",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Jb)]),o("div",Qb,[t[24]||(t[24]=o("div",{class:"q-stat-label"},"Workers",-1)),o("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Xb)])]),o("div",Zb,[o("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,xb),o("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):f("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),b(" "+c(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),o("div",e1,[o("div",t1,[o("div",o1,"All jobs \xB7 "+c(e.selectedQueue),1),o("div",n1,[(l(!0),d(W,null,oe(e.allStates,(r,s)=>(l(),d("label",s1,[R(o("input",r1,null,512),[[n,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),o("span",{class:A("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),o("div",i1,[R(o("input",a1,null,512),[[n,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),o("label",l1,[R(o("input",d1,null,512),[[n,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=b(" Auto-refresh ",-1))]),o("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow()),"aria-label":"Refresh"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(l(),d("table",u1,[t[46]||(t[46]=o("thead",null,[o("tr",null,[o("th",null,"State"),o("th",null,"Job id"),o("th",null,"Payload"),o("th",null,"Attempts"),o("th",null,"Duration"),o("th",null,"Progress"),o("th")])],-1)),(l(!0),d(W,null,oe(e.filteredJobs(),(r,s)=>(l(),d("tbody",null,[o("tr",{style:{cursor:"pointer"},class:A({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[o("td",p1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,f1),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,m1)):f("v-if",!0)]),o("td",h1,[(l(),d("svg",{class:A(["ui-icon q-chevron",{"q-chevron-open":e.expanded[r?.id]}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),o("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,v1)]),o("td",y1,[o("span",{textContent:c(r?.name||"anonymize")},null,8,g1),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",b1," \xB7 "+c(r?.data?.repoId),1)):f("v-if",!0)]),o("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,w1),o("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,k1),o("td",E1,[e.jobProgressPct(r)!==null?(l(),d("div",C1,[o("div",{class:"q-progress-bar",style:Ie({"--pct":e.jobProgressPct(r)+"%"})},null,4),o("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,_1)])):f("v-if",!0)]),o("td",S1,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()},"aria-label":"Retry job"},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])],8,N1)):f("v-if",!0),o("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,R1)])],10,c1),e.expanded[r?.id]?(l(),d("tr",D1,[o("td",T1,[o("div",A1,[o("div",O1,[o("div",I1,[t[31]||(t[31]=o("span",{class:"q-job-detail-label"},"Job id",-1)),o("span",P1,[o("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,V1)])]),o("div",q1,[t[32]||(t[32]=o("span",{class:"q-job-detail-label"},"State",-1)),o("span",M1,[o("span",{textContent:c(r?._state),class:A("q-state-badge q-state-"+r?._state)},null,10,U1)])]),r?.data?.repoId?(l(),d("div",$1,[t[33]||(t[33]=o("span",{class:"q-job-detail-label"},"Repo ID",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,L1)])):f("v-if",!0),r?.timestamp?(l(),d("div",F1,[t[34]||(t[34]=o("span",{class:"q-job-detail-label"},"Created",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,z1)])):f("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",H1,[t[35]||(t[35]=o("span",{class:"q-job-detail-label"},"Retry at",-1)),o("span",B1,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):f("v-if",!0),r?.processedOn?(l(),d("div",j1,[t[36]||(t[36]=o("span",{class:"q-job-detail-label"},"Processed",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,G1)])):f("v-if",!0),r?.finishedOn?(l(),d("div",W1,[t[37]||(t[37]=o("span",{class:"q-job-detail-label"},"Finished",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,K1)])):f("v-if",!0),r?.attemptsMade?(l(),d("div",Y1,[t[38]||(t[38]=o("span",{class:"q-job-detail-label"},"Attempts",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,J1)])):f("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Q1,[t[39]||(t[39]=o("span",{class:"q-job-detail-label"},"Status",-1)),o("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,X1)])):f("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",Z1,[t[40]||(t[40]=o("span",{class:"q-job-detail-label"},"Progress",-1)),o("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,x1)])):f("v-if",!0)]),r?.failedReason?(l(),d("div",ew,[t[41]||(t[41]=o("span",{class:"q-job-detail-label"},"Error",-1)),o("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,tw)])):f("v-if",!0),r?.stacktrace?.length?(l(),d("div",ow,[t[42]||(t[42]=o("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(l(!0),d(W,null,oe(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[o("code",{textContent:c(i)},null,8,nw)]))),128))])):f("v-if",!0),o("div",sw,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[43]||(t[43]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Retry",-1)])],8,rw)):f("v-if",!0),o("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[44]||(t[44]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,iw),o("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1),b(" View repo",-1)])],8,aw)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(l(),d("div",lw,[t[47]||(t[47]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(l(),d("span",dw,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",uw,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var cw={class:"container paper-page admin-page"},pw={class:"admin-summary"},fw={class:"summary-total"},mw={class:"summary-meta"},hw=["aria-pressed"],vw={class:"count"},yw=["aria-pressed"],gw={class:"count"},bw=["aria-pressed"],ww={class:"count"},kw=["aria-pressed"],Ew={class:"count"},Cw=["aria-pressed"],_w={class:"count"},Sw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Nw={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},Rw={class:"admin-filter-row"},Dw={class:"search-wrap"},Tw={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},Aw={key:0,class:"admin-search-hint"},Ow={class:"admin-filter-inline"},Iw={type:"text",class:"form-control form-control-sm",placeholder:"username"},Pw={class:"admin-filter-inline"},Vw={type:"text",class:"form-control form-control-sm",placeholder:"ID"},qw={class:"admin-filter-inline","aria-label":"Pagination"},Mw=["disabled"],Uw={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},$w=["disabled"],Lw={key:0,class:"admin-filter-row"},Fw={class:"admin-active-chips"},zw={class:"key"},Hw=["onClick"],Bw={key:1,class:"bulk-bar"},jw={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Gw={class:"paper-table-head",role:"row"},Ww={role:"columnheader",style:{width:"28px"}},Kw=["checked"],Yw={role:"columnheader"},Jw={role:"columnheader"},Qw={role:"columnheader",class:"num"},Xw={role:"columnheader"},Zw={role:"cell",style:{width:"28px"}},xw={type:"checkbox","aria-label":"Select repository"},ek={class:"cell-anon",role:"cell"},tk={class:"anon-text"},ok=["textContent","href"],nk={class:"anon-sub"},sk=["textContent","href"],rk={key:0},ik=["textContent","href"],ak={key:1},lk=["textContent","href"],dk={key:2},uk={class:"cell-status",role:"cell"},ck={class:"status-line"},pk=["textContent"],fk=["textContent","title"],mk={class:"cell-views num",role:"cell"},hk=["textContent"],vk={class:"cell-expires",role:"cell"},yk=["textContent"],gk={class:"cell-actions",role:"cell"},bk={class:"dropdown"},wk={class:"dropdown-menu dropdown-menu-right"},kk=["href"],Ek=["href"],Ck=["href"],_k=["onClick"],Sk=["onClick"],Nk=["onClick"],Rk=["onClick"],Dk=["onClick"],Tk=["onClick"],Ak={key:0,class:"paper-table-empty"},Ok={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Ik={style:{"font-size":"12px",color:"var(--ink-muted)"}},Pk={key:0,class:"pagination-compact"},Vk=["disabled"],qk=["max"],Mk=["disabled"],Uk={class:"admin-filter-inline"},$k={class:"form-control form-control-sm"};function Il(e,t){let n=ve("field"),r=ve("form");return l(),d("div",cw,[t[69]||(t[69]=de('
Admin \xA0/\xA0 Repositories
Repositories
',3)),o("div",pw,[o("span",fw,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("span",mw,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=s=>{e.query.ready=!e.query.ready,e.query.page=1}),"aria-pressed":!!e.query?.ready},[t[18]||(t[18]=b("Ready ",-1)),o("span",vw,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,hw),o("button",{type:"button",class:A(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=s=>{e.query.preparing=!e.query.preparing,e.query.page=1}),"aria-pressed":!!e.query?.preparing},[t[19]||(t[19]=b("Preparing ",-1)),o("span",gw,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],10,yw),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=s=>{e.query.error=!e.query.error,e.query.page=1}),"aria-pressed":!!e.query?.error},[t[20]||(t[20]=b("Errored ",-1)),o("span",ww,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,bw),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=s=>{e.query.expired=!e.query.expired,e.query.page=1}),"aria-pressed":!!e.query?.expired},[t[21]||(t[21]=b("Expired ",-1)),o("span",Ew,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],10,kw),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=s=>{e.query.removed=!e.query.removed,e.query.page=1}),"aria-pressed":!!e.query?.removed},[t[22]||(t[22]=b("Removed ",-1)),o("span",_w,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],10,Cw)]),e.fetchError?(l(),d("div",Sw,[t[23]||(t[23]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):f("v-if",!0),R((l(),d("form",Nw,[f(" Row 1: search + scoped inputs + headline actions "),o("div",Rw,[o("div",Dw,[R(o("input",Tw,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",Aw,"/"))]),o("span",Ow,[t[24]||(t[24]=o("label",null,"Owner",-1)),R(o("input",Iw,null,512),[[n,{state:e.viewState,set:s=>{e.query.owner=s},value:e.query?.owner,form:null,options:{}}]])]),o("span",Pw,[t[25]||(t[25]=o("label",null,"Conference",-1)),R(o("input",Vw,null,512),[[n,{state:e.viewState,set:s=>{e.query.conference=s},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=s=>e.exportCsv())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",qw,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,Mw),o("span",Uw,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,$w)])]),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Lw,[o("div",Fw,[(l(!0),d(W,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",zw,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(s.key)},[...t[30]||(t[30]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,Hw)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Bw,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=s=>e.bulkRefresh())},[...t[32]||(t[32]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=s=>e.bulkRemoveCache())},[...t[33]||(t[33]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",jw,[o("div",Gw,[o("div",Ww,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,Kw)]),o("div",Yw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=s=>e.sortBy("source.repositoryName"))},[t[35]||(t[35]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Jw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=s=>e.sortBy("status"))},[t[37]||(t[37]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Qw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=s=>e.sortBy("pageView"))},[t[39]||(t[39]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[38]||(t[38]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",Xw,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=s=>e.sortBy("anonymizeDate"))},[t[41]||(t[41]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[40]||(t[40]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[42]||(t[42]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",Zw,[R(o("input",xw,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",ek,[t[47]||(t[47]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",tk,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,ok),o("div",nk,[o("a",{textContent:c(s?.source?.repositoryName),href:e.safeUrl("https://github.com/"+s?.source?.repositoryName+"/")},null,8,sk),s?.options?.update?(l(),d("span",rk,[t[43]||(t[43]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,ik)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",ak,[t[44]||(t[44]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,lk)])),s?.conference?(l(),d("span",dk,[t[45]||(t[45]=b("\xA0\xB7\xA0",-1)),t[46]||(t[46]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",uk,[o("span",ck,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,pk)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,fk)):f("v-if",!0)]),o("div",mk,[t[48]||(t[48]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[49]||(t[49]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView||0))},null,8,hk)]),o("div",vk,[t[50]||(t[50]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[51]||(t[51]=b()),o("span",{textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,yk)]),o("div",gk,[o("div",bk,[t[63]||(t[63]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",wk,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[52]||(t[52]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,kk),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[53]||(t[53]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,Ek),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[54]||(t[54]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,Ck)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[55]||(t[55]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,_k),t[61]||(t[61]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[56]||(t[56]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,Sk),[[j,s?.status=="ready"||s?.status=="error"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[57]||(t[57]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,Nk),[[j,s?.status=="removed"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,Rk),[[j,s?.statusMessage]]),t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,Dk),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,Tk),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",Ak,[...t[64]||(t[64]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)]),o("div",Ok,[o("span",Ik,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Pk,[o("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[65]||(t[65]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous ",-1)])],8,Vk),R(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,qk),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[66]||(t[66]=[b(" Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Mk)])):f("v-if",!0),o("span",Uk,[t[68]||(t[68]=o("label",null,"Per page",-1)),R((l(),d("select",$k,[...t[67]||(t[67]=[de('',5)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var Lk={class:"container paper-page admin-page"},Fk={class:"paper-crumbs"},zk={class:"here"},Hk={class:"paper-page-title"},Bk={key:0,class:"user-detail-card"},jk={class:"user-header"},Gk=["src"],Wk={class:"status-dot-wrap"},Kk=["textContent"],Yk={key:0,class:"type-badge type-repo"},Jk={class:"user-actions",style:{"margin-top":"4px"}},Qk={class:"user-detail-grid"},Xk={class:"detail-value"},Zk={class:"detail-value"},xk={key:0,class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},e0={key:1,class:"detail-value text-muted"},t0={class:"detail-value"},o0=["href"],n0={class:"detail-value"},s0={class:"detail-value"},r0={key:0},i0={key:1,class:"text-muted"},a0={class:"detail-value"},l0={key:0,style:{"margin-top":"20px"}},d0={class:"paper-table w-100",style:{"margin-top":"10px"}},u0={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},c0={class:"cell-anon",role:"cell"},p0={class:"anon-text"},f0=["textContent"],m0={class:"cell-expires",role:"cell"},h0={key:1,class:"admin-section-header"},v0={class:"section-count"},y0={key:2,class:"user-detail-card"},g0={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},b0={key:0,class:"alert alert-warning",role:"alert"},w0={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},k0={key:1,class:"paper-table w-100"},E0={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},C0=["textContent"],_0=["textContent"],S0={role:"cell"},N0={key:0},R0={key:1,class:"text-muted"},D0={role:"cell"},T0=["onClick"],A0={key:2,class:"paper-table-empty"},O0={class:"admin-section-header"},I0={class:"section-count"},P0={class:"admin-summary"},V0={class:"summary-total"},q0=["aria-pressed"],M0={class:"count"},U0=["aria-pressed"],$0={class:"count"},L0=["aria-pressed"],F0={class:"count"},z0=["aria-pressed"],H0={class:"count"},B0=["aria-pressed"],j0={class:"count"},G0={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},W0={class:"admin-filter-row"},K0={class:"search-wrap"},Y0={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},J0={key:3,class:"bulk-bar"},Q0={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},X0={class:"paper-table-head",role:"row"},Z0={role:"columnheader",style:{width:"28px"}},x0=["checked"],eE={role:"columnheader"},tE={role:"columnheader"},oE={role:"columnheader",class:"num"},nE={role:"columnheader"},sE={role:"cell",style:{width:"28px"}},rE={type:"checkbox","aria-label":"Select repository"},iE={class:"cell-anon",role:"cell"},aE={class:"anon-text"},lE=["textContent","href"],dE={class:"anon-sub"},uE=["textContent","href"],cE={key:0},pE=["textContent","href"],fE={key:1},mE=["textContent","href"],hE={key:2},vE={class:"cell-status",role:"cell"},yE={class:"status-line"},gE=["textContent"],bE=["textContent","title"],wE=["textContent"],kE=["textContent"],EE={class:"cell-actions",role:"cell"},CE={class:"dropdown"},_E={class:"dropdown-menu dropdown-menu-right"},SE=["href"],NE=["href"],RE=["href"],DE=["onClick"],TE=["onClick"],AE=["onClick"],OE=["onClick"],IE=["onClick"],PE=["onClick"],VE={key:0,class:"paper-table-empty"};function Pl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",Lk,[o("div",Fk,[t[22]||(t[22]=o("a",{href:"/admin/"},"Admin",-1)),t[23]||(t[23]=b(" \xA0/\xA0 ",-1)),t[24]||(t[24]=o("a",{href:"/admin/users"},"Users",-1)),t[25]||(t[25]=b(" \xA0/\xA0 ",-1)),o("span",zk,c(e.userInfo?.username||"Profile"),1)]),o("h1",Hk,c(e.userInfo?.username||"User"),1),t[87]||(t[87]=de('',1)),e.userInfo?(l(),d("div",Bk,[o("div",jk,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Gk)):f("v-if",!0),o("div",null,[o("h2",null,[b(c(e.userInfo?.username)+" ",1),o("span",Wk,[o("span",{class:A(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),o("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Kk)]),e.userInfo?.isAdmin?(l(),d("span",Yk,"Admin")):f("v-if",!0)]),o("div",Jk,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=s=>e.banUser())},[...t[26]||(t[26]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=s=>e.activateUser())},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.promoteUser())},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-shield"})],-1),b(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=s=>e.demoteUser())},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user-minus"})],-1),b(" Remove admin",-1)])])):f("v-if",!0)])])]),o("div",Qk,[t[32]||(t[32]=o("div",{class:"detail-label"},"ID",-1)),o("div",Xk,c(e.userInfo?._id),1),t[33]||(t[33]=o("div",{class:"detail-label"},"Email",-1)),o("div",Zk,c(e.userInfo?.emails?.[0]?.email),1),t[34]||(t[34]=o("div",{class:"detail-label"},"Access token",-1)),e.userInfo?.accessTokens?.github?(l(),d("div",xk,c(e.userInfo?.accessTokens?.github),1)):f("v-if",!0),e.userInfo?.accessTokens?.github?f("v-if",!0):(l(),d("div",e0,"None stored")),t[35]||(t[35]=o("div",{class:"detail-label"},"GitHub",-1)),o("div",t0,[o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[30]||(t[30]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(e.userInfo?.username),1)],8,o0)]),t[36]||(t[36]=o("div",{class:"detail-label"},"Created",-1)),o("div",n0,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[37]||(t[37]=o("div",{class:"detail-label"},"Last connection",-1)),o("div",s0,[e.userInfo?.accessTokenDates?.github?(l(),d("span",r0,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(l(),d("span",i0,"never"))]),t[38]||(t[38]=o("div",{class:"detail-label"},"GitHub repos",-1)),o("div",a0,[b(c(e.userInfo?.repositories?.length)+" repositories ",1),o("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=s=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),o("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=s=>e.getGitHubRepositories())},[...t[31]||(t[31]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",l0,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),o("div",d0,[(l(!0),d(W,null,oe(e.userInfo?.repositories,(s,i)=>(l(),d("div",u0,[o("div",c0,[t[39]||(t[39]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",p0,[o("span",{class:"repo-name",textContent:c(s?.name)},null,8,f0)])]),o("div",m0,[t[40]||(t[40]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-database"})],-1)),b(" "+c(e.fmt?.humanFileSize(s?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",h0,[t[42]||(t[42]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-key"})]),b(" API tokens")],-1)),o("span",v0,c(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",y0,[t[48]||(t[48]=o("p",{class:"paper-page-lede"},[b("Personal API tokens for this admin account. Send as "),o("code",null,"Authorization: Bearer "),b(" to authenticate without GitHub OAuth (useful for development).")],-1)),R((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ie(s=>e.submitForm(s,()=>{e.createToken()}),["prevent"]))},[R(o("input",g0,null,512),[[n,{state:e.viewState,set:s=>{e.tokenForm.name=s},value:e.tokenForm?.name,form:null,options:{}}]]),t[43]||(t[43]=o("button",{type:"submit",class:"btn btn-ink"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})]),b(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",b0,[t[44]||(t[44]=o("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),o("pre",w0,c(e.tokenForm?.plaintext),1),o("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(l(),d("div",k0,[t[46]||(t[46]=o("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[o("div",{role:"columnheader"},"Name"),o("div",{role:"columnheader"},"Created"),o("div",{role:"columnheader"},"Last used"),o("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(W,null,oe(e.tokens,(s,i)=>(l(),d("div",E0,[o("div",{role:"cell",textContent:c(s?.name)},null,8,C0),o("div",{role:"cell",textContent:c(e.fmt?.humanTime(s?.createdAt))},null,8,_0),o("div",S0,[s?.lastUsedAt?(l(),d("span",N0,c(e.fmt?.humanTime(s?.lastUsedAt)),1)):f("v-if",!0),s?.lastUsedAt?f("v-if",!0):(l(),d("span",R0,"never"))]),o("div",D0,[o("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:a=>e.revokeToken(s)},[...t[45]||(t[45]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)])],8,T0)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(l(),d("div",A0,[...t[47]||(t[47]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),o("div",O0,[t[49]||(t[49]=o("h2",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})]),b(" Anonymized repositories")],-1)),o("span",I0,c(e.repositories?.length),1)]),o("div",P0,[o("span",V0,c(e.fmt?.number(e.repositories?.length)),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=s=>e.filters.status.ready=!e.filters.status.ready),"aria-pressed":e.filters?.status?.ready===!1},[t[50]||(t[50]=b("Ready ",-1)),o("span",M0,c(e.fmt?.number(e.statusCountFor("ready"))),1)],10,q0),o("button",{type:"button",class:A(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=s=>e.filters.status.preparing=!e.filters.status.preparing),"aria-pressed":e.filters?.status?.preparing===!1},[t[51]||(t[51]=b("Preparing ",-1)),o("span",$0,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],10,U0),o("button",{type:"button",class:A(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=s=>e.filters.status.error=!e.filters.status.error),"aria-pressed":e.filters?.status?.error===!1},[t[52]||(t[52]=b("Errored ",-1)),o("span",F0,c(e.fmt?.number(e.statusCountFor("error"))),1)],10,L0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=s=>e.filters.status.expired=!e.filters.status.expired),"aria-pressed":e.filters?.status?.expired===!1},[t[53]||(t[53]=b("Expired ",-1)),o("span",H0,c(e.fmt?.number(e.statusCountFor("expired"))),1)],10,z0),o("button",{type:"button",class:A(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=s=>e.filters.status.removed=!e.filters.status.removed),"aria-pressed":e.filters?.status?.removed===!1},[t[54]||(t[54]=b("Removed ",-1)),o("span",j0,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,B0)]),R((l(),d("form",G0,[o("div",W0,[o("div",K0,[R(o("input",Y0,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),t[56]||(t[56]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=s=>e.exportCsv())},[...t[55]||(t[55]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",J0,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[57]||(t[57]=b(" selected",-1))]),o("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=s=>e.bulkRefresh())},[...t[58]||(t[58]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force refresh",-1)])]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=s=>e.bulkRemoveCache())},[...t[59]||(t[59]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=s=>e.clearSelection())},"Clear")])):f("v-if",!0),o("div",Q0,[o("div",X0,[o("div",Z0,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,x0)]),o("div",eE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=s=>e.sortBy("source.repositoryName"))},[t[61]||(t[61]=b("Repository ",-1)),e.sortIcon("source.repositoryName")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[60]||(t[60]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",tE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=s=>e.sortBy("status"))},[t[63]||(t[63]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[62]||(t[62]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",oE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=s=>e.sortBy("pageView"))},[t[65]||(t[65]=b("Views ",-1)),e.sortIcon("pageView")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[64]||(t[64]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),o("div",nE,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=s=>e.sortBy("anonymizeDate"))},[t[67]||(t[67]=b("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[66]||(t[66]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[68]||(t[68]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error","row-selected":e.selected[s?.repoId]}]),role:"row"},[o("div",sE,[R(o("input",rE,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.repoId]=a},value:e.selected[s?.repoId],form:null,options:{}}]])]),o("div",iE,[t[73]||(t[73]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",aE,[o("a",{class:"repo-name",target:"_blank",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId)},null,8,lE),o("div",dE,[o("a",{textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,uE),s?.options?.update?(l(),d("span",cE,[t[69]||(t[69]=b("\xA0\xB7\xA0",-1)),o("a",{textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,pE)])):f("v-if",!0),s?.options?.update?f("v-if",!0):(l(),d("span",fE,[t[70]||(t[70]=b("\xA0\xB7\xA0@",-1)),o("a",{textContent:c(s?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},null,8,mE)])),s?.conference?(l(),d("span",hE,[t[71]||(t[71]=b("\xA0\xB7\xA0",-1)),t[72]||(t[72]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),b(" "+c(s?.conference),1)])):f("v-if",!0),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(s?.size?.storage)),1),o("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(s?.options?.terms?.length))+" "+c(s?.options?.terms?.length===1?"term":"terms"),1)])])]),o("div",vE,[o("span",yE,[o("span",{class:A(["status-dot",{"status-removed":s?.status=="removed"||s?.status=="expired","status-ready":s?.status=="ready","status-error":s?.status=="error","status-preparing":s?.status=="preparing"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,gE)]),s?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(s?.statusMessage)),title:s?.statusMessage},null,8,bE)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(s?.pageView||0))},null,8,wE),o("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(s?.anonymizeDate))},null,8,kE),o("div",EE,[o("div",CE,[t[85]||(t[85]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",_E,[o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[74]||(t[74]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit",-1)])],8,SE),o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[75]||(t[75]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View repo",-1)])],8,NE),s?.options?.page&&s?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+s?.repoId+"/")},[...t[76]||(t[76]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" View page",-1)])],8,RE)):f("v-if",!0),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.fetchGithubInfo(s),["prevent"])},[...t[77]||(t[77]=[o("i",{class:"fab fa-github"},null,-1),b(" Live GitHub info",-1)])],8,DE),t[83]||(t[83]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[78]||(t[78]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),b(" Force update",-1)])],8,TE),[[j,s?.status=="ready"||s?.status=="error"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updateRepository(s),["prevent"])},[...t[79]||(t[79]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Enable",-1)])],8,AE),[[j,s?.status=="removed"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.showStatusMessage(s),["prevent"])},[...t[80]||(t[80]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1),b(" View status message",-1)])],8,OE),[[j,s?.statusMessage]]),t[84]||(t[84]=o("div",{class:"dropdown-divider"},null,-1)),o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removeCache(s),["prevent"])},[...t[81]||(t[81]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-broom"})],-1),b(" Remove cache",-1)])],8,IE),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.removeRepository(s),["prevent"])},[...t[82]||(t[82]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),b(" Remove",-1)])],8,PE),[[j,s?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",VE,[...t[86]||(t[86]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var qE={class:"container paper-page admin-page"},ME={class:"admin-summary"},UE={class:"summary-total"},$E=["aria-pressed"],LE={class:"count"},FE=["aria-pressed"],zE={class:"count"},HE=["aria-pressed"],BE={class:"count"},jE={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},GE={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},WE={class:"admin-filter-row"},KE={class:"search-wrap"},YE={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},JE={key:0,class:"admin-search-hint"},QE={class:"admin-filter-inline"},XE={class:"form-control form-control-sm"},ZE={class:"admin-filter-inline","aria-label":"Pagination"},xE=["disabled"],eC={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},tC=["disabled"],oC={key:0,class:"admin-filter-row"},nC={class:"admin-active-chips"},sC={class:"key"},rC=["onClick"],iC={key:1,class:"bulk-bar"},aC={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},lC={class:"paper-table-head admin-users-row",role:"row"},dC={role:"columnheader",style:{width:"28px"}},uC=["checked"],cC={role:"columnheader"},pC={role:"columnheader"},fC={role:"cell",style:{width:"28px"}},mC={type:"checkbox","aria-label":"Select user"},hC={class:"cell-anon",role:"cell"},vC=["src"],yC={class:"anon-text"},gC=["textContent","href"],bC={class:"anon-sub"},wC={key:0},kC=["href"],EC={key:1},CC={class:"cell-views num",role:"cell"},_C=["textContent","href"],SC={class:"cell-status",role:"cell"},NC=["textContent"],RC={class:"cell-status",role:"cell"},DC={key:0,class:"type-badge type-repo"},TC={key:1,class:"empty-dash"},AC={class:"cell-actions",role:"cell"},OC={class:"dropdown"},IC={class:"dropdown-menu dropdown-menu-right"},PC=["href"],VC=["href"],qC=["onClick"],MC=["onClick"],UC={key:0,class:"paper-table-empty"},$C={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},LC={style:{"font-size":"12px",color:"var(--ink-muted)"}},FC={key:0,class:"pagination-compact"},zC=["disabled"],HC=["max"],BC=["disabled"],jC={class:"admin-filter-inline"},GC={class:"form-control form-control-sm"};function Vl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",qE,[t[46]||(t[46]=de('
Admin \xA0/\xA0 Users
Users
',3)),o("div",ME,[o("span",UE,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),o("button",{type:"button",class:A(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=s=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1}),"aria-pressed":e.query?.status=="active"},[t[13]||(t[13]=b("Active ",-1)),o("span",LE,c(e.fmt?.number(e.statusCountFor("active"))),1)],10,$E),o("button",{type:"button",class:A(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=s=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1}),"aria-pressed":e.query?.status=="banned"},[t[14]||(t[14]=b("Banned ",-1)),o("span",zE,c(e.fmt?.number(e.statusCountFor("banned"))),1)],10,FE),o("button",{type:"button",class:A(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=s=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1}),"aria-pressed":e.query?.status=="removed"},[t[15]||(t[15]=b("Removed ",-1)),o("span",BE,c(e.fmt?.number(e.statusCountFor("removed"))),1)],10,HE)]),e.fetchError?(l(),d("div",jE,[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fetchError),1)])):f("v-if",!0),R((l(),d("form",GE,[o("div",WE,[o("div",KE,[R(o("input",YE,null,512),[[n,{state:e.viewState,set:s=>{e.query.search=s},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(l(),d("span",JE,"/"))]),o("span",QE,[t[18]||(t[18]=o("label",null,"Role",-1)),R((l(),d("select",XE,[...t[17]||(t[17]=[o("option",{value:""},"Any",-1),o("option",{value:"admin"},"Admin",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.role=s},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=o("span",{class:"admin-filter-spacer"},null,-1)),o("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=s=>e.exportCsv())},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-export"})],-1),b(" Export",-1)])]),o("span",ZE,[o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[4]||(t[4]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1)])],8,xE),o("span",eC,c(e.query?.page)+"/"+c(e.totalPage||1),1),o("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,tC)])]),e.chips?.length?(l(),d("div",oC,[o("div",nC,[(l(!0),d(W,null,oe(e.chips,(s,i)=>(l(),d("span",{class:"admin-active-chip",key:s?.key},[o("span",sC,c(s?.label),1),o("span",null,c(s?.value),1),o("button",{type:"button",onClick:a=>e.clearFilter(s.key),"aria-label":"Clear filter"},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,rC)]))),128))])])):f("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",iC,[o("span",null,[o("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=b(" selected",-1))]),o("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=s=>e.bulkBan())},[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])]),o("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=s=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),o("div",aC,[o("div",lC,[o("div",dC,[o("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=s=>e.selectAllOnPage()),checked:e.allSelected},null,8,uC)]),o("div",cC,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=s=>e.sortBy("username"))},[t[27]||(t[27]=b("User ",-1)),e.sortIcon("username")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[26]||(t[26]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[30]||(t[30]=o("div",{role:"columnheader",class:"num"},"Repos",-1)),o("div",pC,[o("button",{type:"button",class:A(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=s=>e.sortBy("status"))},[t[29]||(t[29]=b("Status ",-1)),e.sortIcon("status")?(l(),d("svg",{key:0,class:A(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[28]||(t[28]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[31]||(t[31]=o("div",{role:"columnheader"},"Role",-1)),t[32]||(t[32]=o("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(W,null,oe(e.filteredUsers,(s,i)=>(l(),d("div",{class:A(["paper-table-row admin-users-row",{"row-selected":e.selected[s?.username]}]),role:"row"},[o("div",fC,[R(o("input",mC,null,512),[[n,{state:e.viewState,set:a=>{e.selected[s.username]=a},value:e.selected[s?.username],form:null,options:{}}]])]),o("div",hC,[s?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(s?.photo)},null,8,vC)):f("v-if",!0),o("div",yC,[o("a",{class:"repo-name",textContent:c(s?.username),href:e.safeUrl("/admin/users/"+s?.username)},null,8,gC),o("div",bC,[s?.emails?.[0]?.email?(l(),d("span",wC,c(s?.emails?.[0]?.email)+" \xB7 ",1)):f("v-if",!0),o("a",{target:"_blank",href:e.safeUrl("https://github.com/"+s?.username)},[t[33]||(t[33]=o("i",{class:"fab fa-github"},null,-1)),b(" "+c(s?.username),1)],8,kC),s?.dateOfEntry?(l(),d("span",EC,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(s?.dateOfEntry)),1)):f("v-if",!0)])])]),o("div",CC,[t[34]||(t[34]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1)),o("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(s?.repoCount||0)),href:e.safeUrl("/admin/repositories?owner="+s?.username)},null,8,_C)]),o("div",SC,[o("span",{class:A(["status-dot",{"status-ready":s?.status=="active","status-removed":s?.status=="removed"||s?.status=="banned"}])},null,2),o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,NC)]),o("div",RC,[s?.isAdmin?(l(),d("span",DC,"Admin")):f("v-if",!0),s?.isAdmin?f("v-if",!0):(l(),d("span",TC,"\u2014"))]),o("div",AC,[o("div",OC,[t[40]||(t[40]=o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})])],-1)),o("div",IC,[o("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+s?.username)},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View details",-1)])],8,PC),o("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+s?.username)},[...t[36]||(t[36]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),b(" View repositories",-1)])],8,VC),t[39]||(t[39]=o("div",{class:"dropdown-divider"},null,-1)),R(o("a",{class:"dropdown-item text-danger",href:"#",onClick:ie(a=>e.banUser(s),["prevent"])},[...t[37]||(t[37]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-ban"})],-1),b(" Ban",-1)])],8,qC),[[j,s?.status=="active"]]),R(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.activateUser(s),["prevent"])},[...t[38]||(t[38]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),b(" Activate",-1)])],8,MC),[[j,s?.status=="removed"||s?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",UC,[...t[41]||(t[41]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),o("div",$C,[o("span",LC,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",FC,[o("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=s=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[42]||(t[42]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-left"})],-1),b(" Previous",-1)])],8,zC),R(o("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,HC),[[n,{state:e.viewState,set:s=>{e.query.page=s},value:e.query?.page,form:null,options:{}}]]),o("span",null,"of "+c(e.totalPage),1),o("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=s=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[43]||(t[43]=[b("Next ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-chevron-right"})],-1)])],8,BC)])):f("v-if",!0),o("span",jC,[t[45]||(t[45]=o("label",null,"Per page",-1)),R((l(),d("select",GC,[...t[44]||(t[44]=[o("option",{value:"10"},"10",-1),o("option",{value:"25"},"25",-1),o("option",{value:"50"},"50",-1),o("option",{value:"100"},"100",-1)])])),[[n,{state:e.viewState,set:s=>{e.query.limit=s},value:e.query?.limit,form:null,options:{}}]])])])])}var WC={class:"anonymize-landing"},KC={class:"anonymize-landing-inner"},YC={class:"form-group mt-4 mb-2"},JC={class:"source-url-label-row"},QC={key:0,class:"repo-access","aria-label":"GitHub access"},XC={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},ZC=["aria-pressed","disabled"],xC=["aria-pressed","disabled"],e2={key:1,class:"connection-badge"},t2={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},o2={key:0,class:"draft-status",role:"status"},n2={key:1,class:"text-danger",role:"alert"},s2={key:2,class:"repo-access-details","aria-label":"GitHub access"},r2={class:"repo-access-main"},i2={class:"repo-access-controls"},a2={key:1,class:"connection-link",href:"/connections"},l2={class:"repo-access-note"},d2={key:0},u2={class:"anonymize-workspace"},c2={class:"anonymize-topbar"},p2={class:"anonymize-topbar-inner"},f2={class:"paper-crumbs"},m2={class:"here"},h2={class:"anonymize-topbar-head"},v2={class:"paper-page-title anonymize-topbar-title"},y2={key:0},g2={key:1},b2={key:0,class:"alert alert-info",role:"status"},w2={key:1,class:"alert alert-info",role:"status"},k2={key:1},E2={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},C2=["aria-selected","tabindex"],_2=["aria-selected","tabindex"],S2={key:2,class:"anonymize-preview-empty",id:"workspace-preview",role:"status"},N2={class:"anonymize-split"},R2=["role","aria-labelledby"],D2={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},T2={class:"paper-settings-section"},A2={class:"form-group"},O2={class:"source-url-label-row"},I2={key:0,class:"repo-access","aria-label":"GitHub access"},P2={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},V2=["aria-pressed","disabled"],q2=["aria-pressed","disabled"],M2={key:1,class:"connection-badge"},U2=["disabled"],$2={class:"invalid-feedback"},L2={class:"invalid-feedback"},F2={class:"invalid-feedback"},z2={class:"invalid-feedback"},H2={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},B2={key:0,class:"form-group"},j2=["value"],G2={key:1},W2={class:"repo-access-controls"},K2=["href"],Y2={key:1,class:"repo-access-details","aria-label":"GitHub access"},J2={class:"repo-access-main"},Q2={class:"repo-access-controls"},X2={key:1,class:"connection-link",href:"/connections"},Z2={class:"repo-access-note"},x2={key:0},e_={key:2,class:"repo-access-details"},t_=["disabled"],o_={key:0,role:"status"},n_={key:3,class:"repo-access-details"},s_={key:0,role:"status"},r_={key:4,class:"form-grid-2"},i_={class:"form-group"},a_={class:"input-group"},l_={class:"form-control",id:"branch",name:"branch"},d_=["textContent","value"],u_={class:"input-group-append"},c_={class:"form-group"},p_=["disabled"],f_={class:"invalid-feedback"},m_={class:"invalid-feedback"},h_={class:"form-check"},v_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},y_={class:"paper-settings-section"},g_={class:"form-group"},b_=["disabled"],w_={class:"form-text text-muted"},k_={class:"invalid-feedback"},E_={class:"form-group"},C_=["disabled"],__={class:"form-text text-muted"},S_={class:"invalid-feedback"},N_={class:"form-group"},R_=["disabled"],D_={class:"form-text text-muted"},T_={class:"invalid-feedback"},A_={class:"form-group"},O_={class:"form-text text-muted"},I_=["href"],P_={class:"invalid-feedback"},V_={class:"form-text text-muted"},q_={class:"paper-settings-section"},M_={class:"form-group"},U_={class:"form-text text-muted"},$_={class:"warning-feedback"},L_={class:"invalid-feedback"},F_={class:"paper-settings-section"},z_={class:"form-check"},H_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},B_={class:"form-check"},j_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},G_={class:"form-check"},W_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},K_={class:"form-check"},Y_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},J_={class:"form-check"},Q_=["disabled"],X_={key:0,class:"form-text text-muted"},Z_={key:1,class:"form-text text-muted"},x_={class:"form-check"},eS={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},tS={class:"form-check"},oS={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},nS={class:"form-check"},sS={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},rS={class:"form-check"},iS={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},aS={class:"form-check"},lS={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},dS={class:"form-check"},uS={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},cS={class:"form-check"},pS={class:"form-check-input",type:"checkbox",id:"title",name:"title"},fS={class:"form-check"},mS={class:"form-check-input",type:"checkbox",id:"body",name:"body"},hS={class:"form-check"},vS={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},yS={class:"form-check"},gS={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},bS={class:"form-check"},wS={class:"form-check-input",type:"checkbox",id:"username",name:"username"},kS={class:"form-check"},ES={class:"form-check-input",type:"checkbox",id:"date",name:"date"},CS={class:"form-check"},_S={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},SS={class:"paper-settings-section"},NS={class:"form-grid-2"},RS={class:"form-group"},DS={class:"form-control",id:"expiration",name:"expiration"},TS={class:"form-group"},AS=["min","max"],OS={class:"invalid-feedback"},IS={class:"invalid-feedback"},PS={class:"paper-settings-section"},VS={class:"form-group"},qS={style:{position:"relative"}},MS={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},US={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},$S=["onClick"],LS=["src"],FS=["textContent"],zS=["textContent"],HS={class:"coauthor-list"},BS={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},jS=["src"],GS=["textContent","href"],WS=["onClick"],KS={class:"form-text text-muted"},YS=["textContent"],JS={key:1,class:"draft-status",role:"status"},QS={key:2,class:"draft-status"},XS={key:3,class:"anonymize-review-note"},ZS={class:"anonymize-submit-bar"},xS=["disabled"],eN=["disabled"],tN=["disabled"],oN=["disabled"],nN=["disabled"],sN=["disabled"],rN=["role","aria-labelledby"],iN={class:"anonymize-preview-head"},aN={class:"anonymize-preview-sub"},lN={key:0,class:"anonymize-preview-status",role:"status"},dN={key:1,class:"anonymize-preview-status",role:"status"},uN={key:2,class:"anonymize-preview-status",role:"alert"},cN={key:3,class:"anonymize-preview-status"},pN=["innerHTML"],fN=["role","aria-labelledby"],mN={class:"anonymize-preview-head"},hN={class:"anonymize-preview-sub"},vN={key:0,class:"anonymize-preview-status",role:"status"},yN={key:1,class:"anonymize-preview-status",role:"status"},gN={key:2,class:"anonymize-preview-status",role:"alert"},bN={key:3,class:"anonymize-preview-body"},wN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},kN={class:"pr-title mb-1"},EN={key:0},CN=["textContent"],_N={key:0},SN={key:1},NN={key:2},RN={class:"pr-comments mt-3"},DN={class:"pr-comment"},TN={class:"pr-comment-head"},AN=["textContent"],ON={key:0,class:"pr-comment-date"},IN={key:3},PN={class:"pr-comments"},VN={class:"pr-comment"},qN={class:"pr-comment-head"},MN={key:0,class:"pr-comment-author"},UN=["textContent"],$N=["textContent"],LN={key:0,class:"pr-comment-body"},FN=["role","aria-labelledby"],zN={class:"anonymize-preview-head"},HN={class:"anonymize-preview-sub"},BN={key:0,class:"anonymize-preview-status",role:"status"},jN={key:1,class:"anonymize-preview-status",role:"status"},GN={key:2,class:"anonymize-preview-status",role:"alert"},WN={key:3,class:"anonymize-preview-body"},KN={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},YN={class:"pr-title mb-1"},JN={key:0},QN=["textContent"],XN={key:0},ZN={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},xN={key:2,class:"paper-tabs",role:"tablist"},eR=["aria-selected","tabindex"],tR=["aria-selected","tabindex"],oR=["textContent"],nR={key:3,class:"anonymize-preview-status"},sR={class:"paper-tab-content"},rR={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},iR=["innerHTML"],aR={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},lR={class:"pr-comments"},dR={class:"pr-comment"},uR={class:"pr-comment-head"},cR={key:0,class:"pr-comment-author"},pR=["textContent"],fR=["textContent"],mR={key:0,class:"pr-comment-body"};function ql(e,t){let n=Ge("gist-file"),r=Ge("markdown"),s=ve("field"),i=ve("form");return l(),d("div",{class:A(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview"}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),R(o("div",WC,[o("div",KC,[t[40]||(t[40]=o("div",{class:"paper-crumbs"},[b("My work \xA0/\xA0 "),o("span",{class:"here"},"New anonymization")],-1)),t[41]||(t[41]=o("h1",{class:"paper-page-title"},[b("New "),o("em",null,"anonymization")],-1)),t[42]||(t[42]=o("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, redact the terms you choose in text files, and give you a share link. Images and PDFs are served unchanged when enabled. Review them before sharing. ",-1)),o("div",YC,[o("div",JC,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",QC,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",XC,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=a=>e.chooseGitHubConnection("github-app"))},[...t[35]||(t[35]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,ZC),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,xC)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",e2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),R(o("input",t2,null,512),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),e.draftRestored?(l(),d("div",o2,[t[37]||(t[37]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[2]||(t[2]=a=>e.discardDraft())},"Discard draft")])):f("v-if",!0),e.sourceUrlError?(l(),d("p",n2,c(e.sourceUrlError),1)):f("v-if",!0),t[43]||(t[43]=o("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",s2,[o("div",r2,[o("div",i2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=a=>e.grantGitHubAccess())},[...t[38]||(t[38]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",a2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",l2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",d2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[39]||(t[39]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0)])],512),[[j,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),R(o("div",u2,[o("header",c2,[o("div",p2,[o("div",f2,[t[44]||(t[44]=o("a",{href:"/dashboard"},"My work",-1)),t[45]||(t[45]=b(" \xA0/\xA0 ",-1)),o("span",m2,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),o("div",h2,[o("h1",v2,[e.isUpdate?f("v-if",!0):(l(),d("span",y2,[...t[46]||(t[46]=[b("New ",-1),o("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",g2,[...t[47]||(t[47]=[b("Edit ",-1),o("em",null,"anonymization",-1)])])):f("v-if",!0)]),R(o("span",{class:A(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[j,e.detectedType]])])])]),e.detectedType==="gist"&&e.gistAppRequired?(l(),d("aside",b2,[t[48]||(t[48]=o("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),o("button",{type:"button",class:"btn btn-ink",onClick:t[4]||(t[4]=a=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(l(),d("aside",w2,[t[49]||(t[49]=o("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[50]||(t[50]=o("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(l(),d("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[5]||(t[5]=a=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(l(),d("p",k2,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),o("nav",E2,[o("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[6]||(t[6]=a=>e.previewTabKeydown(a)),onClick:t[7]||(t[7]=a=>e.selectMobilePane("settings"))},"Settings",40,C2),o("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[8]||(t[8]=a=>e.previewTabKeydown(a)),onClick:t[9]||(t[9]=a=>e.selectMobilePane("preview"))},"Reviewer preview",40,_2)]),e.detectedType!=="repo"&&!e.details?(l(),d("div",S2,c(e.sourceLoading?"Loading source\u2026":"Choose an accessible source to see its preview."),1)):f("v-if",!0),o("div",N2,[f(" Form column (left) "),o("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[R((l(),d("form",D2,[o("section",T2,[t[65]||(t[65]=o("div",{class:"paper-section-eyebrow"},"Source",-1)),o("div",A2,[o("div",O2,[t[52]||(t[52]=o("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(l(),d("aside",I2,[!e.isUpdate&&e.detectedType!=="gist"?(l(),d("div",P2,[o("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[10]||(t[10]=a=>e.chooseGitHubConnection("github-app"))},[...t[51]||(t[51]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(),o("span",{class:"sr-only"},"Read-only ",-1),b("GitHub App",-1)])],8,V2),o("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[11]||(t[11]=a=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,q2)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(l(),d("span",M2,c((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,U2),[[s,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),R(o("div",$2," Please provide a valid GitHub URL. ",512),[[j,e.anonymize?.sourceUrl?.errors?.github]]),R(o("div",L2," Not accessible. The organization may restrict access. ",512),[[j,e.anonymize?.sourceUrl?.errors?.access]]),R(o("div",F2," Does not exist or is not accessible. ",512),[[j,e.anonymize?.sourceUrl?.errors?.missing]]),R(o("div",z2," Already anonymized. ",512),[[j,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(l(),d("aside",H2,[t[54]||(t[54]=o("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(l(),d("div",B2,[t[53]||(t[53]=o("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),R(o("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[12]||(t[12]=a=>e.previousConfigurationId=a)},[(l(!0),d(W,null,oe(e.previousConfigurations,a=>(l(),d("option",{key:a.repoId,value:a.repoId},c(a.repoId),9,j2))),128))],512),[[To,e.previousConfigurationId]])])):(l(),d("p",G2,c(e.previousConfigurationId),1)),t[55]||(t[55]=o("p",null,"You can review and update its settings before saving.",-1)),o("div",W2,[o("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,K2),o("button",{type:"button",class:"btn btn-link",onClick:t[13]||(t[13]=a=>e.previousConfigurations=[])},"Create a separate anonymization")])])):f("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(l(),d("aside",Y2,[o("div",J2,[o("div",Q2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[14]||(t[14]=a=>e.grantGitHubAccess())},[...t[56]||(t[56]=[b("Manage access ",-1),o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(l(),d("a",X2,c(e.isUpdate?"Change connection":"Manage connections")+" \u2192",1)):f("v-if",!0)])]),o("div",Z2,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(l(),d("span",x2,"Signing in does not grant access to private repositories. Use Manage access to install or configure the GitHub App, select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[57]||(t[57]=o("span",null,[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",e_,[t[58]||(t[58]=o("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[15]||(t[15]=a=>e.repairGitHubAccess())},"Repair GitHub access",8,t_),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=a=>e.grantGitHubAccess())},"Manage access"),e.accessRepairMessage?(l(),d("p",o_,c(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(l(),d("aside",n_,[t[59]||(t[59]=o("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[17]||(t[17]=a=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(l(),d("p",s_,"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",r_,[o("div",i_,[t[61]||(t[61]=o("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),o("div",a_,[R((l(),d("select",l_,[(l(!0),d(W,null,oe(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,d_))),256))])),[[s,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),o("div",u_,[o("button",{class:"btn btn-icon",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[18]||(t[18]=a=>e.getBranches(!0)),"aria-label":"Refresh"},[...t[60]||(t[60]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1)])])])])]),o("div",c_,[t[62]||(t[62]=o("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,p_),[[s,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),R(o("div",f_," The commit SHA is not valid. ",512),[[j,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),R(o("div",m_," 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),R(o("div",h_,[R(o("input",v_,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[63]||(t[63]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[64]||(t[64]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[j,e.detectedType]])]),R(o("section",y_,[t[76]||(t[76]=o("div",{class:"paper-section-eyebrow"},"Identity",-1)),R(o("div",g_,[t[68]||(t[68]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,b_),[[s,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",w_,[t[66]||(t[66]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[67]||(t[67]=b(".",-1))]),R(o("div",k_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.repoId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[j,e.anonymize?.repoId?.errors?.used]])],512),[[j,e.detectedType==="repo"]]),R(o("div",E_,[t[71]||(t[71]=o("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,C_),[[s,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",__,[t[69]||(t[69]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[70]||(t[70]=b(".",-1))]),R(o("div",S_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])],512),[[j,e.detectedType==="pr"]]),R(o("div",N_,[t[74]||(t[74]=o("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,R_),[[s,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",D_,[t[72]||(t[72]=b("Your share link will be ",-1)),o("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[73]||(t[73]=b(".",-1))]),R(o("div",T_,"ID can only contain letters and numbers.",512),[[j,e.anonymize?.gistId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[j,e.anonymize?.gistId?.errors?.used]])],512),[[j,e.detectedType==="gist"]]),o("div",A_,[t[75]||(t[75]=o("label",{class:"paper-field-label",for:"conference"},[b("Conference "),o("span",{class:"paper-optional"},"(optional)")],-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[s,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),R(o("small",O_,[o("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,I_),b(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[j,e.conference_data]]),R(o("div",P_,"The conference is not activated.",512),[[j,e.anonymize?.conference?.errors?.activated]]),R(o("small",V_,"Link to a conference to apply its shared defaults.",512),[[j,!e.conference_data]])])],512),[[j,e.detectedType]]),R(o("section",q_,[t[84]||(t[84]=o("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),o("div",M_,[t[83]||(t[83]=o("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),R(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),o("small",U_,[t[77]||(t[77]=b("One term per line (regex allowed). Replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[78]||(t[78]=b(", or use ",-1)),t[79]||(t[79]=o("code",null,"term=>replacement",-1)),t[80]||(t[80]=b(" to pick your own (e.g. ",-1)),t[81]||(t[81]=o("code",null,"Anonymous=>ABC",-1)),t[82]||(t[82]=b(").",-1))]),R(o("div",$_,"Regex characters detected. Escape them if unintentional.",512),[[j,e.termsRegexWarning]]),R(o("div",L_,"Terms are in an invalid format.",512),[[j,e.anonymize?.terms?.errors?.format]])])],512),[[j,e.detectedType]]),R(o("section",F_,[t[105]||(t[105]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),R(o("div",null,[o("div",z_,[R(o("input",H_,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[85]||(t[85]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),o("div",B_,[R(o("input",j_,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[86]||(t[86]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[87]||(t[87]=o("small",{class:"form-text text-muted"},"Images are served unchanged and may contain names or affiliations.",-1))]),o("div",G_,[R(o("input",W_,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[88]||(t[88]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[89]||(t[89]=o("small",{class:"form-text text-muted"},[b("PDF contents and metadata are served unchanged. "),o("a",{href:"/faq#formats"},"About supported formats")],-1))]),o("div",K_,[R(o("input",Y_,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[90]||(t[90]=o("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),o("div",J_,[R(o("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,Q_),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[91]||(t[91]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),e.details?.hasPage?f("v-if",!0):(l(),d("small",X_,c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),1)),e.details?.hasPage&&e.details?.pageSource?.branch&&e.source?.branch&&e.details.pageSource.branch!==e.source.branch?(l(),d("small",Z_,c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),1)):f("v-if",!0)])],512),[[j,e.detectedType==="repo"]]),R(o("div",null,[o("div",x_,[R(o("input",eS,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[92]||(t[92]=o("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),o("div",tS,[R(o("input",oS,null,512),[[s,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[93]||(t[93]=o("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),o("div",nS,[R(o("input",sS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[94]||(t[94]=o("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),o("div",rS,[R(o("input",iS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[95]||(t[95]=o("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),o("div",aS,[R(o("input",lS,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[96]||(t[96]=o("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),o("div",dS,[R(o("input",uS,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[97]||(t[97]=o("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[j,e.detectedType==="gist"]]),R(o("div",null,[o("div",cS,[R(o("input",pS,null,512),[[s,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[98]||(t[98]=o("label",{class:"form-check-label",for:"title"},"PR title",-1))]),o("div",fS,[R(o("input",mS,null,512),[[s,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[99]||(t[99]=o("label",{class:"form-check-label",for:"body"},"PR body",-1))]),o("div",hS,[R(o("input",vS,null,512),[[s,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[100]||(t[100]=o("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),o("div",yS,[R(o("input",gS,null,512),[[s,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[101]||(t[101]=o("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),o("div",bS,[R(o("input",wS,null,512),[[s,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[102]||(t[102]=o("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),o("div",kS,[R(o("input",ES,null,512),[[s,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[103]||(t[103]=o("label",{class:"form-check-label",for:"date"},"Dates",-1))]),o("div",CS,[R(o("input",_S,null,512),[[s,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[104]||(t[104]=o("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[j,e.detectedType==="pr"]])],512),[[j,e.detectedType]]),R(o("section",SS,[t[109]||(t[109]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",NS,[o("div",RS,[t[107]||(t[107]=o("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),R((l(),d("select",DS,[...t[106]||(t[106]=[o("option",{value:"redirect"},"Redirect to GitHub when expired",-1),o("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),o("div",TS,[t[108]||(t[108]=o("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,AS),[[s,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),R(o("div",OS,"Pick a date in the future.",512),[[j,e.anonymize?.expirationDate?.errors?.min]]),R(o("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[j,e.anonymize?.expirationDate?.errors?.max]]),R(o("div",IS,"Enter a valid expiration date.",512),[[j,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[j,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[j,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[j,e.detectedType]]),R(o("section",PS,[t[113]||(t[113]=o("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[114]||(t[114]=o("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),R(o("div",VS,[t[110]||(t[110]=o("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),o("div",qS,[R(o("input",MS,null,512),[[s,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),R(o("div",US,[(l(!0),d(W,null,oe(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ie(m=>e.addCoauthor(a,m),["prevent"])},[o("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,LS),o("span",{textContent:c(a?.username)},null,8,FS)],8,$S))),256))],512),[[j,e.coauthorResults?.length>0]])]),R(o("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,zS),[[j,e.coauthorError]])],512),[[j,e.role==="owner"||e.role==="admin"]]),o("div",HS,[(l(!0),d(W,null,oe(e.coauthors,(a,u)=>(l(),d("div",BS,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,jS)):f("v-if",!0),o("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,GS),t[112]||(t[112]=o("span",{class:"type-badge type-coauthor"},"Co-author",-1)),R(o("button",{type:"button",class:"btn btn-sm btn-icon",style:{"margin-left":"auto"},title:"Remove co-author",onClick:m=>e.removeCoauthor(a),"aria-label":"Remove co-author"},[...t[111]||(t[111]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,WS),[[j,e.role==="owner"||e.role==="admin"]])]))),256)),R(o("div",KS," No co-authors yet. ",512),[[j,!e.coauthors||e.coauthors?.length===0]])])],512),[[j,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,YS)):f("v-if",!0),e.draftRestored?(l(),d("div",JS,[t[115]||(t[115]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[19]||(t[19]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",QS,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[20]||(t[20]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),e.detectedType==="repo"&&(e.options.image||e.options.pdf)?(l(),d("p",XS,"Review enabled images and PDFs before sharing. Their contents are not anonymized.")):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-ink mobile-preview-jump",onClick:t[21]||(t[21]=a=>e.selectMobilePane("preview"))},[...t[116]||(t[116]=[b("Review preview ",-1),o("span",{"aria-hidden":"true"},"\u2192",-1)])]),R(o("div",ZS,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[22]||(t[22]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[117]||(t[117]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Repository ",-1)])],8,xS)):f("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[23]||(t[23]=ie(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[118]||(t[118]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Repository ",-1)])],8,eN)):f("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[24]||(t[24]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[119]||(t[119]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Pull Request ",-1)])],8,tN)):f("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[25]||(t[25]=ie(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[120]||(t[120]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Pull Request ",-1)])],8,oN)):f("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[26]||(t[26]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[121]||(t[121]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize Gist ",-1)])],8,nN)):f("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",disabled:e.sourceLoading,class:"btn btn-ink",onClick:t[27]||(t[27]=ie(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[122]||(t[122]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update Gist ",-1)])],8,sN)):f("v-if",!0)],512),[[j,e.detectedType]])])),[[i,e.viewState]])],8,R2),f(" Preview column (right) "),e.detectedType==="repo"?(l(),d("div",{key:0,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",iN,[t[123]||(t[123]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",aN,c(e.previewStatus==="ready"?"README with redactions applied":"README preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",lN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",dN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",uN,[t[124]||(t[124]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[28]||(t[28]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),!e.sourceLoading&&!e.readme&&e.previewStatus==="idle"?(l(),d("div",cN,"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,pN)):f("v-if",!0)],8,rN)):f("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",{key:1,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",mN,[t[125]||(t[125]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",hN,c(e.previewStatus==="ready"?"Gist with redactions applied":"Gist preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",vN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",yN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",gN,[t[126]||(t[126]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[29]||(t[29]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",bN,[o("div",wN,[o("h2",kN,[e.options?.title?(l(),d("span",EN,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,CN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",_N,"Gist ID: "+c(e.details?.source?.gistId),1)):f("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",SN,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):f("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",NN,[o("ul",RN,[(l(!0),d(W,null,oe(e.previewGistFiles,(a,u)=>(l(),d("li",DN,[o("div",TN,[o("strong",{textContent:c(a?.filename)},null,8,AN),a?.language?(l(),d("span",ON,c(a?.language),1)):f("v-if",!0)]),Ce(n,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):f("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",IN,[t[129]||(t[129]=o("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),o("ul",PN,[(l(!0),d(W,null,oe(e.details?.gist?.comments,(a,u)=>(l(),d("li",VN,[o("div",qN,[e.options?.username?(l(),d("span",MN,[t[127]||(t[127]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[128]||(t[128]=b(" @",-1)),o("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,UN)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,$N)):f("v-if",!0)]),e.options?.body?(l(),d("div",LN,[Ce(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])):f("v-if",!0)],8,fN)):f("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",{key:2,id:"workspace-preview",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-preview-tab":null,class:"anonymize-preview-col"},[o("div",zN,[t[130]||(t[130]=o("span",{class:"paper-eyebrow"},"Live preview",-1)),o("span",HN,c(e.previewStatus==="ready"?"Pull request with redactions applied":"Pull request preview"),1)]),e.sourceLoading&&e.previewStatus==="idle"?(l(),d("div",BN,"Loading source\u2026")):f("v-if",!0),e.previewStatus==="loading"?(l(),d("div",jN,"Updating the anonymized preview\u2026")):f("v-if",!0),e.previewStatus==="error"?(l(),d("div",GN,[t[131]||(t[131]=o("p",null,"Unable to generate the anonymized preview. The latest redactions have not been verified.",-1)),o("button",{class:"btn btn-outline-ink",type:"button",onClick:t[30]||(t[30]=a=>e.retryPreview())},"Retry preview")])):f("v-if",!0),e.previewStatus==="ready"?(l(),d("div",WN,[o("div",KN,[o("h2",YN,[e.options?.title?(l(),d("span",JN,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,QN)):f("v-if",!0)]),e.options?.origin?(l(),d("small",XN,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",ZN,[Ce(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",xN,[e.options?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",id:"preview-pr-diff-tab","aria-selected":e.prTabState?.active==="diff","aria-controls":"preview-pr-diff-panel",tabindex:e.prTabState?.active==="diff"?0:-1,onKeydown:t[31]||(t[31]=a=>e.previewTabKeydown(a)),onClick:t[32]||(t[32]=a=>e.prTabState.active="diff")},[...t[132]||(t[132]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,eR)):f("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",id:"preview-pr-comments-tab","aria-selected":e.prTabState?.active==="comments","aria-controls":"preview-pr-comments-panel",tabindex:e.prTabState?.active==="comments"?0:-1,onKeydown:t[33]||(t[33]=a=>e.previewTabKeydown(a)),onClick:t[34]||(t[34]=a=>e.prTabState.active="comments")},[t[133]||(t[133]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,oR)],42,tR)):f("v-if",!0)])):f("v-if",!0),!e.options?.diff&&!e.options?.comments?(l(),d("div",nR,"Diff and comments are hidden by your display settings.")):f("v-if",!0),o("div",sR,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",rR,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,iR)])):f("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",aR,[o("ul",lR,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",dR,[o("div",uR,[e.options?.username?(l(),d("span",cR,[t[134]||(t[134]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[135]||(t[135]=b(" @",-1)),o("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,pR)])):f("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,fR)):f("v-if",!0)]),e.options?.body?(l(),d("div",mR,[Ce(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0)]))),256))])])):f("v-if",!0)])])):f("v-if",!0)],8,FN)):f("v-if",!0)])],512),[[j,e.workspaceOpen||e.isUpdate]])],2)}var hR={class:"container-fluid h-100 anonymize-page"},vR={class:"row h-100 flex-column flex-md-row"},yR={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},gR={class:"form-group"},bR={class:"form-group"},wR={class:"form-check"},kR={class:"form-check-input",type:"checkbox",id:"update",name:"update"},ER={class:"form-group"},CR={class:"form-text text-muted"},_R=["href"],SR={class:"invalid-feedback"},NR={class:"form-text text-muted"},RR={class:"form-group"},DR={id:"idHelp",class:"form-text text-muted"},TR={class:"invalid-feedback"},AR={class:"form-group"},OR={class:"invalid-feedback"},IR={class:"form-group"},PR={class:"form-control",id:"expiration",name:"expiration"},VR={class:"form-group",id:"expiration-date-form"},qR={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},MR={class:"accordion mb-3",id:"options"},UR={class:"card"},$R={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},LR={class:"card-body"},FR={class:"form-group mb-0"},zR={class:"form-check"},HR={class:"form-check-input",type:"checkbox",id:"link",name:"link"},BR={class:"form-check"},jR={class:"form-check-input",type:"checkbox",id:"image",name:"image"},GR={class:"form-check"},WR={class:"form-check-input",type:"checkbox",id:"date",name:"date"},KR={class:"form-check"},YR={class:"form-check-input",type:"checkbox",id:"username",name:"username"},JR={class:"form-check"},QR={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},XR={class:"form-check"},ZR={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},xR={class:"form-check"},eD={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},tD={class:"form-check"},oD={class:"form-check-input",type:"checkbox",id:"title",name:"title"},nD={class:"form-check"},sD={class:"form-check-input",type:"checkbox",id:"body",name:"body"},rD=["textContent"],iD={class:"anonymize-submit-bar"},aD={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},lD={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},dD={class:"pr-title mb-1"},uD={key:0},cD=["textContent"],pD={key:0},fD={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},mD={class:"nav nav-tabs",id:"myTab",role:"tablist"},hD={key:0,class:"nav-item",role:"presentation"},vD={key:1,class:"nav-item",role:"presentation"},yD=["textContent"],gD={class:"tab-content",id:"pills-tabContent"},bD={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},wD={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},kD={style:{"overflow-x":"auto"}},ED=["innerHTML"],CD={key:0,class:"pr-comments list-group"},_D={class:"pr-comment list-group-item"},SD={class:"d-flex w-100 justify-content-between flex-wrap"},ND={key:0,class:"mb-1"},RD=["textContent"],DD={class:"mb-1"};function Ml(e,t){let n=Ge("markdown"),r=ve("field"),s=ve("form");return l(),d("div",hR,[o("div",vR,[o("div",yR,[o("div",{class:A(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[R((l(),d("form",{class:A(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=de('
Anonymize \xA0/\xA0 Pull request
Anonymize a pull request
Fill in the details \u2014 it only takes a minute.
Source
',4)),f(" pullRequestUrl "),o("div",gR,[t[2]||(t[2]=o("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.access]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.missing]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[j,e.anonymize?.pullRequestUrl?.errors?.used]])]),R(o("div",null,[o("div",bR,[o("div",wR,[R(o("input",kR,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=o("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})]),b(" Conference ID ")],-1)),f(" Conference "),o("div",ER,[t[5]||(t[5]=o("label",{for:"conference"},[b("Conference ID "),o("span",{class:"text-muted"},"(Optional)")],-1)),R(o("input",{class:A(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),R(o("small",CR,[o("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,_R),b(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[j,e.conference_data]]),R(o("div",SR," The conference is not activated. ",512),[[j,e.anonymize?.conference?.errors?.activated]]),R(o("small",NR," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[j,!e.conference_data]])]),t[27]||(t[27]=o("div",{class:"paper-section-eyebrow anonymize-section-title"},[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b(" Anonymization Options ")],-1)),f(" Pull Request ID "),o("div",RR,[t[6]||(t[6]=o("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),o("small",DR,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),R(o("div",TR," Repository id can only contain letters and numbers ",512),[[j,e.anonymize?.pullRequestId?.errors?.format]]),R(o("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[j,e.anonymize?.pullRequestId?.errors?.used]])]),f(" Terms "),o("div",AR,[t[7]||(t[7]=o("label",{for:"terms"},"Terms to anonymize",-1)),R(o("textarea",{class:A(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=o("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),R(o("div",OR," Terms are in an invalid format ",512),[[j,e.anonymize?.terms?.errors?.format]])]),o("div",IR,[t[10]||(t[10]=o("label",{for:"expiration"},"Expiration strategy",-1)),R((l(),d("select",PR,[...t[9]||(t[9]=[o("option",{value:"never",selected:""},"Never expire",-1),o("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),o("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),R(o("div",VR,[t[12]||(t[12]=o("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),R(o("input",qR,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[j,e.options?.expirationMode=="remove"]]),R(o("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[j,e.options?.expirationMode=="redirect"]])],512),[[j,e.options?.expirationMode!="never"]]),o("div",MR,[o("div",UR,[t[25]||(t[25]=de('
',1)),o("div",$R,[o("div",LR,[o("div",FR,[o("div",zR,[R(o("input",HR,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),o("div",BR,[R(o("input",jR,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),o("div",GR,[R(o("input",WR,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=o("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=o("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),o("div",KR,[R(o("input",YR,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"username"},"Display username",-1))]),o("div",JR,[R(o("input",QR,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),o("div",XR,[R(o("input",ZR,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),o("div",xR,[R(o("input",eD,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),o("div",tD,[R(o("input",oD,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),o("div",nD,[R(o("input",sD,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[j,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,rD)):f("v-if",!0),R(o("div",iD,[e.isUpdate?f("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ie(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-save"})],-1),b(" Update ",-1)])])):f("v-if",!0)],512),[[j,e.pullRequestUrl]])],2)),[[s,e.viewState]])],2)]),e.details?(l(),d("div",aD,[o("div",lD,[o("h2",dD,[e.options?.title?(l(),d("span",uD,c(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),o("span",{class:A(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,cD)):f("v-if",!0)]),e.options?.origin?(l(),d("small",pD,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(l(),d("div",fD,[Ce(n,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),o("ul",mD,[e.options?.diff?(l(),d("li",hD,[...t[31]||(t[31]=[o("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(l(),d("li",vD,[o("button",{class:A(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[o("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,yD)],2)])):f("v-if",!0)]),o("div",gD,[o("div",bD,[e.options?.diff?(l(),d("div",wD,[o("pre",kD,[o("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,ED)])])):f("v-if",!0)]),o("div",{class:A(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",CD,[(l(!0),d(W,null,oe(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",_D,[o("div",SD,[e.options?.username?(l(),d("h5",ND," @"+c(e.anonymize(i?.author)),1)):f("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,RD)):f("v-if",!0)]),o("p",DD,[e.options?.body?(l(),Lt(n,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var TD={class:"container paper-page claim-page"},AD={class:"paper-settings-main claim-form"},OD={class:"form-group"},ID={class:"invalid-feedback"},PD={class:"form-group"};function Ul(e,t){let n=ve("field"),r=ve("form");return l(),d("div",TD,[t[6]||(t[6]=de('
Take ownership of an existing anonymized repository so it appears on your dashboard.
',3)),o("div",AD,[t[5]||(t[5]=o("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),R((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{e.claim()}),["prevent"]))},[o("div",OD,[t[1]||(t[1]=o("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",placeholder:"https://github.com/owner/repository",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoUrl=s},value:e.repoUrl,form:"claimForm",options:{}}]]),R(o("div",ID," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[j,e.claimForm?.repoUrl?.errors?.not_found]])]),o("div",PD,[t[2]||(t[2]=o("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",placeholder:"e.g. my-paper-7F2A","aria-describedby":"idHelp",required:""},null,2),[[n,{state:e.viewState,set:s=>{e.repoId=s},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=o("small",{id:"idHelp",class:"form-text text-muted"},[b("The ID is the last part of the anonymized URL: "),o("code",null,"anonymous.4open.science/r/"),b(".")],-1))]),t[4]||(t[4]=o("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var VD={class:"container page paper-page conference-page"},qD={class:"paper-crumbs"},MD={class:"here"},UD={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},$D=["textContent"],LD={key:0,class:"paper-page-lede"},FD=["textContent","href"],zD={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},HD=["textContent"],BD=["href"],jD={class:"paper-meta-rule"},GD=["textContent"],WD=["textContent"],KD={key:0},YD={class:"search-wrap"},JD={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},QD={class:"dashboard-filter-controls"},XD={class:"dropdown"},ZD={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},xD={class:"filter-btn-value"},eT={class:"dropdown-menu","aria-labelledby":"dropdownSort"},tT={class:"form-check dropdown-item"},oT={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},nT={class:"form-check dropdown-item"},sT={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},rT={class:"form-check dropdown-item"},iT={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},aT={class:"form-check dropdown-item"},lT={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},dT={class:"dropdown"},uT={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},cT={key:0,class:"filter-btn-value"},pT={key:1,class:"filter-btn-value"},fT={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},mT={class:"form-check dropdown-item"},hT=["id"],vT=["for"],yT={class:"dashboard-meta"},gT={class:"dashboard-count"},bT={key:0},wT={key:0},kT={key:1},ET={key:1},CT={key:0,class:"filter-chip"},_T=["onClick","aria-label"],ST={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},NT={class:"cell-anon",role:"cell"},RT={class:"anon-text"},DT=["textContent","href"],TT={class:"anon-sub"},AT={class:"anon-source"},OT=["textContent","href"],IT={key:0},PT=["textContent","href"],VT={key:1},qT=["href"],MT={class:"cell-status",role:"cell"},UT={class:"status-line"},$T=["textContent"],LT={key:0,class:"status-sub"},FT={class:"cell-views num",role:"cell"},zT=["textContent"],HT={class:"cell-expires",role:"cell"},BT={key:0,class:"expires-never"},jT=["textContent"],GT={key:2,class:"expires-past"},WT={key:0},KT={key:3,class:"empty-dash","aria-label":"Not applicable"},YT={class:"cell-actions",role:"cell"},JT={class:"dropdown"},QT=["aria-label"],XT={class:"dropdown-menu dropdown-menu-right"},ZT=["href"],xT=["href"],eA={key:0,class:"paper-table-empty"},tA={key:0},oA={key:1},nA={key:2,class:"paper-table-empty-actions"};function $l(e,t){let n=ve("field"),r=ve("form");return l(),d("div",VD,[o("div",null,[o("div",qD,[t[2]||(t[2]=o("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=b(" \xA0/\xA0 ",-1)),t[4]||(t[4]=o("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=b(" \xA0/\xA0 ",-1)),o("span",MD,c(e.conference?.conferenceID),1)]),o("div",UD,[o("div",null,[o("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,$D),e.conference?.url?(l(),d("p",LD,[o("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,FD)])):f("v-if",!0)]),o("div",zD,[o("span",{class:A(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[o("span",{class:A(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),o("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,HD)],2),o("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit conference",-1)])],8,BD)])]),o("div",jD,[o("span",null,[t[7]||(t[7]=b("ID ",-1)),o("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,GD)]),o("span",null,[t[8]||(t[8]=b("Review window ",-1)),o("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),o("span",null,[t[9]||(t[9]=b("Repositories ",-1)),o("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),o("span",null,[t[10]||(t[10]=b("Plan ",-1)),o("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,WD)]),e.conference?.price?(l(),d("span",KD,[t[11]||(t[11]=b("Cost so far ",-1)),o("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):f("v-if",!0)]),t[32]||(t[32]=o("div",{class:"paper-section-eyebrow"},"Repositories",-1)),R((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ie(s=>e.submitForm(s,()=>{s.preventDefault()}),["prevent"]))},[o("div",YD,[R(o("input",JD,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",QD,[o("div",XD,[o("button",ZD,[t[12]||(t[12]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",xD,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),o("div",eT,[t[17]||(t[17]=o("h6",{class:"dropdown-header"},"Order by",-1)),o("div",tT,[R(o("input",oT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=o("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),o("div",nT,[R(o("input",sT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=o("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),o("div",rT,[R(o("input",iT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",aT,[R(o("input",lT,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=o("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),o("div",dT,[o("button",uT,[t[18]||(t[18]=o("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",cT,"All")):f("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?f("v-if",!0):(l(),d("span",pT,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),o("div",fT,[t[19]||(t[19]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusLabels,(s,i,a)=>(l(),d("div",mT,[R(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,hT),[[n,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+i},c(s),9,vT)]))),256))])])])],32)),[[r,e.viewState]]),o("div",yT,[o("span",gT,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",bT,[b(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",wT,"y")):f("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",kT,"ies")):f("v-if",!0)])):f("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",ET,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):f("v-if",!0)]),(l(!0),d(W,null,oe(e.filters?.status,(s,i,a)=>(l(),d(W,null,[s===!1?(l(),d("span",CT,[b(" Hiding "+c(e.statusLabels[i])+" ",1),o("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,_T)])):f("v-if",!0)],64))),256))]),o("div",ST,[t[31]||(t[31]=o("div",{class:"paper-table-head",role:"row"},[o("div",{role:"columnheader"},"Repository"),o("div",{role:"columnheader"},"Status"),o("div",{role:"columnheader",class:"num"},"Views"),o("div",{role:"columnheader"},"Expires"),o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(W,null,oe(e.filteredRepositories,(s,i)=>(l(),d("div",{class:A(["paper-table-row",{"repo-inactive":s?.status=="expired"||s?.status=="removed","repo-error":s?.status=="error"}]),role:"row",key:s?.repoId},[o("div",NT,[t[22]||(t[22]=o("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[o("use",{href:"#project-type-repo"})],-1)),o("div",RT,[o("a",{class:"repo-name",textContent:c(s?.repoId),href:e.safeUrl("/r/"+s?.repoId+"/")},null,8,DT),o("div",TT,[o("span",AT,[o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.fullName),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/")},null,8,OT),s?.options?.update&&s?.source?.branch?(l(),d("span",IT,[t[20]||(t[20]=b(" \xB7 ",-1)),o("a",{target:"_blank",rel:"noopener",textContent:c(s?.source?.branch),href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.branch)},null,8,PT)])):f("v-if",!0),s?.source?.commit?(l(),d("span",VT,[t[21]||(t[21]=b(" \xB7 ",-1)),o("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+s?.source?.fullName+"/tree/"+s?.source?.commit)},"@"+c(s?.source?.commit?.substring(0,8)),9,qT)])):f("v-if",!0)])])])]),o("div",MT,[o("div",UT,[o("span",{class:A(["status-dot","status-"+(s?.status=="error"?"error":s?.status=="ready"?"ready":s?.status=="expired"||s?.status=="removed"?s?.status:"progress")]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(s?.status))},null,8,$T)]),s?.anonymizeDate?(l(),d("div",LT,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)):f("v-if",!0)]),o("div",FT,[t[23]||(t[23]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),t[24]||(t[24]=b()),o("span",{textContent:c(e.fmt?.number(s?.pageView))},null,8,zT)]),o("div",HT,[t[26]||(t[26]=o("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),s?.status=="ready"&&(s?.options?.expirationMode==="never"||!s?.options?.expirationDate)?(l(),d("span",BT,"Never")):f("v-if",!0),s?.status=="ready"&&s?.options?.expirationMode!=="never"&&s?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(s?.options?.expirationDate))},null,8,jT)):f("v-if",!0),s?.status=="expired"?(l(),d("span",GT,[t[25]||(t[25]=b("Expired",-1)),s?.options?.expirationDate?(l(),d("span",WT,c(e.fmt?.humanTime(s?.options?.expirationDate)),1)):f("v-if",!0)])):f("v-if",!0),s?.status!="ready"&&s?.status!="expired"?(l(),d("span",KT,"\u2014")):f("v-if",!0)]),o("div",YT,[o("div",JT,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+s?.repoId},[...t[27]||(t[27]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,QT),o("div",XT,[o("a",{class:"dropdown-item",href:e.safeUrl("/r/"+s?.repoId+"/")},[...t[28]||(t[28]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" View ",-1)])],8,ZT),o("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+s?.repoId)},[...t[29]||(t[29]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit ",-1)])],8,xT)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",eA,[t[30]||(t[30]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.conference?.repositories?.length?f("v-if",!0):(l(),d("span",tA,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",oA,"Nothing matches the current filters.")):f("v-if",!0),e.conference?.repositories?.length?(l(),d("div",nA,[o("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=s=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):f("v-if",!0)])):f("v-if",!0)])])])}var sA={class:"container page paper-page conferences-page"},rA={class:"row"},iA={class:"w-100"},aA={class:"search-wrap"},lA={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},dA={class:"dashboard-filter-controls"},uA={class:"dropdown"},cA={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},pA={class:"filter-btn-value"},fA={class:"dropdown-menu","aria-labelledby":"dropdownSort"},mA={class:"form-check dropdown-item"},hA={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},vA={class:"form-check dropdown-item"},yA={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},gA={class:"form-check dropdown-item"},bA={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},wA={class:"dropdown"},kA={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},EA={key:0,class:"filter-btn-value"},CA={key:1,class:"filter-btn-value"},_A={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},SA={class:"form-check dropdown-item"},NA=["id"],RA=["for"],DA={class:"dashboard-meta"},TA={class:"dashboard-count"},AA={key:0},OA={key:0},IA={key:1},PA={key:0,class:"filter-chip"},VA=["onClick","aria-label"],qA={key:0,class:"conference-feedback",role:"alert"},MA={key:1,class:"conference-feedback",role:"status"},UA={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},$A={class:"cell-anon",role:"cell"},LA={class:"anon-text"},FA=["textContent","href"],zA={class:"anon-sub"},HA={class:"anon-source"},BA=["textContent"],jA={key:0},GA=["textContent","href"],WA={class:"cell-status",role:"cell"},KA={class:"status-line"},YA=["textContent"],JA={class:"cell-views num",role:"cell"},QA=["textContent"],XA={class:"cell-expires",role:"cell"},ZA={key:0},xA={key:1,class:"empty-dash","aria-label":"No review window"},eO={class:"cell-actions",role:"cell"},tO={class:"dropdown"},oO=["disabled","aria-label"],nO={class:"dropdown-menu dropdown-menu-right"},sO=["href"],rO=["href"],iO={key:0},aO=["onClick"],lO={key:0,class:"paper-table-empty"},dO={key:0},uO={key:1},cO={class:"paper-table-empty-actions"},pO={key:1,href:"/conference/new",class:"btn btn-ink"};function Ll(e,t){let n=ve("field"),r=ve("form");return l(),d("div",sA,[o("div",rA,[o("div",iA,[t[10]||(t[10]=de('
',1))]),f(" Search + filters "),R((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ie(i=>e.submitForm(i,()=>{i.preventDefault()}),["prevent"]))},[o("div",NO,[R(o("input",RO,null,512),[[r,{state:e.viewState,set:i=>{e.search=i},value:e.search,form:null,options:{}}]])]),o("button",{class:"btn dashboard-filters-toggle",type:"button","aria-expanded":e.filtersExpanded,"aria-controls":"dashboard-filter-controls",onClick:t[3]||(t[3]=i=>e.filtersExpanded=!e.filtersExpanded)},[...t[30]||(t[30]=[b("Filters",-1),o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1)])],8,DO),o("div",{id:"dashboard-filter-controls",class:A(["dashboard-filter-controls",{expanded:e.filtersExpanded}])},[o("div",TO,[o("button",{type:"button",class:A(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[4]||(t[4]=i=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,AO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="repo"}]),title:"Repositories",onClick:t[5]||(t[5]=i=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},[...t[31]||(t[31]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-repo"})],-1),o("span",{class:"type-filter-label"},"Repos",-1)])],10,OO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="pr"}]),title:"Pull requests",onClick:t[6]||(t[6]=i=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},[...t[32]||(t[32]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-pr"})],-1),o("span",{class:"type-filter-label"},"PRs",-1)])],10,IO),o("button",{type:"button",class:A(["btn dashboard-type-filter",{"btn-primary":e.typeFilter==="gist"}]),title:"Gists",onClick:t[7]||(t[7]=i=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},[...t[33]||(t[33]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1),o("span",{class:"type-filter-label"},"Gists",-1)])],10,PO)]),o("div",{id:"dashboard-extra-filters",class:A(["dashboard-extra-filters",{expanded:e.filtersExpanded}])},[o("div",VO,[o("button",qO,[t[35]||(t[35]=o("span",{class:"filter-btn-label"},"Sort",-1)),o("span",MO,c(e.sortLabel()),1),(l(),d("svg",{class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[34]||(t[34]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)),o("span",UO,c(e.sortDesc()?"descending":"ascending"),1)]),o("div",$O,[t[36]||(t[36]=o("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(W,null,oe(e.sortFields,(i,a,u)=>(l(),d("div",LO,[o("input",{class:"form-check-input",type:"radio",name:"sort",onClick:m=>e.setSort(a,i.defaultDesc),checked:e.isSortedBy(a),id:"sort-"+u},null,8,FO),o("label",{class:"form-check-label",for:"sort-"+u},c(i?.label),9,zO)]))),256)),t[37]||(t[37]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item",onClick:t[8]||(t[8]=i=>e.toggleSortDirection())},c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])]),o("div",HO,[o("button",BO,[t[38]||(t[38]=o("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?f("v-if",!0):(l(),d("span",jO,"All")),e.hasHiddenStatus()?(l(),d("span",GO,c(e.hiddenStatusCount())+" hidden",1)):f("v-if",!0)]),o("div",WO,[t[39]||(t[39]=o("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(W,null,oe(e.statusKeyLabels,(i,a,u)=>(l(),d("div",KO,[R(o("input",{class:"form-check-input",type:"checkbox",id:"status-"+a},null,8,YO),[[r,{state:e.viewState,set:m=>{e.filters.status[a]=m},value:e.filters?.status[a],form:null,options:{}}]]),o("label",{class:"form-check-label",for:"status-"+a},c(i),9,JO)]))),256))])])],2)],2)],32)),[[s,e.viewState]]),f(" Result count + active filter chips "),e.loading?f("v-if",!0):(l(),d("div",QO,[o("div",XO,[o("button",{type:"button","aria-pressed":e.projectView==="all",onClick:t[10]||(t[10]=i=>e.setProjectView("all")),"aria-label":"All projects"},[...t[40]||(t[40]=[o("span",{class:"dashboard-view-long"},"All projects",-1),o("span",{class:"dashboard-view-short","aria-hidden":"true"},"All",-1)])],8,ZO),o("button",{type:"button","aria-pressed":e.projectView==="attention",onClick:t[11]||(t[11]=i=>e.setProjectView("attention")),"aria-label":"Needs attention "+e.attentionCount()},[t[41]||(t[41]=o("span",{class:"dashboard-attention-prefix"},"Needs ",-1)),t[42]||(t[42]=o("span",null,"attention",-1)),t[43]||(t[43]=b()),o("span",{class:A(["attention-count",{"has-attention":e.attentionCount()>0}])},c(e.attentionCount()),3)],8,xO)]),o("span",eI,[(e.dashboardTotals?.filtered??e.filteredItems?.length)===(e.dashboardTotals?.total??e.items?.length)?(l(),d("span",tI,[b(c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" project",1),(e.dashboardTotals?.total??e.items?.length)!==1?(l(),d("span",oI,"s")):f("v-if",!0)])):(l(),d("span",nI,c(e.fmt?.number(e.dashboardTotals?.filtered??e.filteredItems?.length))+" of "+c(e.fmt?.number(e.dashboardTotals?.total??e.items?.length))+" shown",1))]),o("div",sI,[(l(!0),d(W,null,oe(e.filters?.status,(i,a,u)=>(l(),d(W,null,[i===!1?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:m=>e.filters.status[a]=!0,"aria-label":"Show "+e.statusKeyLabels[a]+" again",title:"Show "+e.statusKeyLabels[a]+" again"},[b(c(e.statusKeyLabels[a])+" hidden",1),t[44]||(t[44]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))],8,rI)):f("v-if",!0)],64))),256)),e.typeFilter!=="all"?(l(),d("button",{key:0,type:"button",class:"filter-chip",onClick:t[12]||(t[12]=i=>e.typeFilter="all"),"aria-label":"Show all project types"},[b(c(e.typeFilter==="repo"?"Repositories":e.typeFilter==="pr"?"Pull requests":"Gists"),1),t[45]||(t[45]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1))])):f("v-if",!0),e.showClearFilters()?(l(),d("button",{key:1,type:"button",class:"btn-link-inline",onClick:t[13]||(t[13]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0)])]))]),f(" Table "),o("div",{class:"paper-table paper-table-dashboard",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[o("div",aI,[o("div",{role:"columnheader","aria-sort":e.isSortedBy("_label")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("_label")}]),onClick:t[14]||(t[14]=i=>e.setSort("_label"))},[t[47]||(t[47]=b(" Project ",-1)),e.isSortedBy("_label")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[46]||(t[46]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,lI),o("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("status")}]),onClick:t[15]||(t[15]=i=>e.setSort("status"))},[t[49]||(t[49]=b(" Status ",-1)),e.isSortedBy("status")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[48]||(t[48]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,dI),o("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[16]||(t[16]=i=>e.setSort("pageView"))},[t[51]||(t[51]=b(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[50]||(t[50]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,uI),o("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[o("button",{type:"button",class:A(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[17]||(t[17]=i=>e.setSort("options.expirationDate"))},[t[53]||(t[53]=b(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("svg",{key:0,class:A(["project-type-svg sort-direction",{ascending:!e.sortDesc()}]),"aria-hidden":"true"},[...t[52]||(t[52]=[o("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)],8,cI),t[54]||(t[54]=o("div",{role:"columnheader"},[o("span",{class:"sr-only"},"Actions")],-1))]),f(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(W,null,oe([1,2,3,4],(i,a)=>(l(),d(W,null,[e.loading?(l(),d("div",pI,[...t[55]||(t[55]=[o("div",{class:"cell-anon",role:"cell"},[o("span",{class:"skeleton skeleton-badge"}),o("div",{class:"anon-text"},[o("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),o("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),o("div",{class:"cell-status",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),o("div",{class:"cell-views num",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),o("div",{class:"cell-expires",role:"cell"},[o("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),o("div",{class:"cell-actions",role:"cell"},null,-1)])])):f("v-if",!0)],64))),64)),(l(!0),d(W,null,oe(e.filteredItems,(i,a)=>(l(),d(W,{key:i?._type+":"+(i?._id||a)},[e.loading?f("v-if",!0):(l(),d("div",{key:0,class:A(["paper-table-row",{"repo-inactive":i?._statusKey=="expired"||i?._statusKey=="removed","repo-error":i?.status=="error","row-clickable":!!i?._viewUrl}]),role:"row",onClick:u=>e.openItem(i,u)},[o("div",mI,[o("span",{class:"project-type-icon",role:"img","aria-label":i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist",title:i?._type==="repo"?"Repository":i?._type==="pr"?"Pull request":"Gist"},[(l(),d("svg",vI,[o("use",{href:"#project-type-"+i._type},null,8,yI)]))],8,hI),o("div",gI,[o("div",bI,[i?._viewUrl?(l(),d("a",{key:0,class:"repo-name",title:i._label,textContent:c(i?._label),href:e.safeUrl(i?._viewUrl)},null,8,wI)):f("v-if",!0),i?._viewUrl?f("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(i?._label)},null,8,kI)),i?.role==="coauthor"?(l(),d("span",EI,"Co-author")):f("v-if",!0)]),o("div",CI,[i?._id?(l(),d("code",{key:0,class:"anonymous-id",title:i._id},c(i._id),9,_I)):f("v-if",!0),i?._type==="repo"&&i?.source?.commit?(l(),d("span",{key:1,class:"commit-hash",title:i.source.commit},c(i.source.commit.substring(0,8)),9,SI)):f("v-if",!0),i?.conference?(l(),d("span",{key:2,class:"cell-conf conf-tag",title:i?.conference},[t[56]||(t[56]=o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),t[57]||(t[57]=b()),o("span",{textContent:c(i?.conference)},null,8,RI)],8,NI)):f("v-if",!0)])])]),o("div",DI,[o("div",TI,[o("div",AI,[o("span",{class:A(["status-dot","status-"+i?._statusKey]),"aria-hidden":"true"},null,2),o("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(i?.status))},null,8,OI)]),i?.status=="error"&&i?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(i?.statusMessage)),title:i?.statusMessage},null,8,II)):f("v-if",!0),i?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(i?.anonymizeDate||i?.lastView)}," Last activity "+c(e.fmt?.humanTime(i?.anonymizeDate||i?.lastView))+" \xB7 may be stuck ",9,PI)):f("v-if",!0),i.status==="error"&&i._editUrl?(l(),d("a",{key:2,class:"project-attention-action",href:e.safeUrl(i._editUrl)},"Fix source",8,VI)):f("v-if",!0),i._stale||i._broken?(l(),d("button",{key:3,type:"button",class:"project-attention-action",onClick:ie(u=>e.showProjectDetails(i),["stop"])},c(i._broken?"Review details":"Check progress"),9,qI)):f("v-if",!0),i?.status!="error"&&!i?._stale&&i?.anonymizeDate?(l(),d("div",MI," anonymized "+c(e.fmt?.humanTime(i?.anonymizeDate)),1)):f("v-if",!0)]),o("div",{class:"cell-views num",role:"cell","aria-label":e.fmt.number(i.pageView)+" views"},[t[58]||(t[58]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),o("span",null,c(e.fmt.number(i.pageView)),1)],8,UI),o("div",$I,[t[59]||(t[59]=o("svg",{class:"project-type-svg mobile-meta-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),i?._expiry?.kind==="never"?(l(),d("span",LI,"Never")):f("v-if",!0),i?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(i?._expiry?.date))},null,8,FI)):f("v-if",!0),i?._expiry?.kind==="expired"&&i?._expiry?.date?(l(),d("span",zI,"Expired "+c(e.fmt?.humanTime(i?._expiry?.date)),1)):f("v-if",!0),i?._expiry?.kind==="expired"&&!i?._expiry?.date?(l(),d("span",HI,"Expired")):f("v-if",!0),i?._expiry?.kind==="none"?(l(),d("span",BI,"\u2014")):f("v-if",!0)])]),o("div",jI,[i._viewUrl?(l(),d("button",{key:0,type:"button",class:"copy-link-inline",onClick:ie(u=>e.copyLink(i),["stop"]),disabled:!!e.copyingId,title:"Copy anonymous link for "+i._label,"aria-label":"Copy anonymous link for "+i._label},[...t[60]||(t[60]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-copy"})],-1)])],8,GI)):f("v-if",!0),i._broken?(l(),d("button",{key:1,type:"button",class:"project-details-button",onClick:ie(u=>e.showProjectDetails(i),["stop"]),"data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Details",8,WI)):f("v-if",!0),i?._broken?f("v-if",!0):(l(),d("div",KI,[o("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","data-project-actions":encodeURIComponent(i._type+":"+i._id),"aria-label":"Actions for "+i?._name},[...t[61]||(t[61]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-more"})],-1)])],8,YI),o("div",JI,[o("button",{type:"button",class:"dropdown-item",onClick:u=>e.showProjectDetails(i),"aria-controls":e.projectDetailsId(i),"aria-expanded":e.selectedProject===i},"Project details & name",8,QI),o("a",{class:"dropdown-item",href:e.safeUrl(i?._viewUrl)}," View ",8,XI),i?._type==="repo"&&i?.options?.page&&i?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+i?.repoId+"/")}," View page ",8,ZI)):f("v-if",!0),i?._viewUrl?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:u=>e.copyLink(i),disabled:!!e.copyingId}," Copy anonymous link ",8,xI)):f("v-if",!0),o("a",{class:"dropdown-item",href:e.safeUrl(i?._editUrl)}," Edit ",8,e4),i?.status=="ready"||i?.status=="error"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Force update ",8,t4)):f("v-if",!0),i?.status=="removed"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:u=>e.refreshItem(i)}," Enable ",8,o4)):f("v-if",!0),i?.status=="expired"?(l(),d("button",{key:4,type:"button",class:"dropdown-item",onClick:u=>e.extendItem(i)}," Extend 6 months ",8,n4)):f("v-if",!0),(i?.status=="ready"||i?.status=="expired"||i?.status=="error")&&i?.role!=="coauthor"?(l(),d("div",s4,[t[62]||(t[62]=o("div",{class:"dropdown-divider"},null,-1)),o("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:u=>e.removeItem(i)}," Remove ",8,r4)])):f("v-if",!0)])]))])],10,fI)),!e.loading&&e.selectedProject===i?(l(),d("div",i4,[o("div",{class:"project-details",role:"cell","aria-colspan":"5",id:e.projectDetailsId(i),tabindex:"-1",onKeydown:Ao(ie(u=>e.closeProjectDetails(i),["stop"]),["esc"])},[o("div",l4,[t[64]||(t[64]=o("h2",null,"Project details",-1)),o("button",{type:"button",class:"project-close",onClick:u=>e.closeProjectDetails(i),"aria-label":"Close project details"},[...t[63]||(t[63]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])],8,d4)]),o("dl",u4,[o("div",null,[t[65]||(t[65]=o("dt",null,"Source",-1)),o("dd",null,c(i._source||"Not available"),1)]),o("div",null,[t[66]||(t[66]=o("dt",null,"Anonymous ID",-1)),o("dd",null,[o("code",null,c(i._id||"Missing identifier"),1)])]),i.source?.commit?(l(),d("div",c4,[t[67]||(t[67]=o("dt",null,"Commit",-1)),o("dd",null,[o("code",null,c(i.source.commit),1)])])):f("v-if",!0),i.conference?(l(),d("div",p4,[t[68]||(t[68]=o("dt",null,"Conference",-1)),o("dd",null,c(i.conference),1)])):f("v-if",!0),o("div",null,[t[69]||(t[69]=o("dt",null,"Status",-1)),o("dd",null,[b(c(e.fmt.statusLabel(i.status)),1),i.statusMessage?(l(),d("span",f4," \xB7 "+c(e.fmt.statusMsg(i.statusMessage)),1)):f("v-if",!0)])]),i.anonymizeDate?(l(),d("div",m4,[t[70]||(t[70]=o("dt",null,"Last anonymized",-1)),o("dd",null,c(e.fmt.humanTime(i.anonymizeDate)),1)])):f("v-if",!0)]),i._stale?(l(),d("p",h4,"This download has not progressed recently. Check the source access and selected branch before retrying.")):f("v-if",!0),i._editUrl?(l(),d("a",{key:1,class:"project-attention-action",href:e.safeUrl(i._editUrl)},c(e.needsAttention(i)?"Check source settings":"Edit anonymization settings"),9,v4)):f("v-if",!0),i._id?(l(),d("form",{key:2,class:"project-name-form",onSubmit:ie(u=>e.saveProjectName(i),["prevent"])},[o("label",{for:"project-name-"+i._type+"-"+i._id},"Project name",8,g4),o("p",{id:"project-name-help-"+i._type+"-"+i._id},"Only you see this name. Leave it blank to use the default.",8,b4),o("div",w4,[R(o("input",{class:"form-control",type:"text",id:"project-name-"+i._type+"-"+i._id,"aria-describedby":"project-name-help-"+i._type+"-"+i._id,maxlength:"100","onUpdate:modelValue":t[18]||(t[18]=u=>e.projectName=u),disabled:e.nameSaving},null,8,k4),[[zt,e.projectName]]),o("button",{class:"btn btn-ink",type:"submit",disabled:e.nameSaving},c(e.nameSaving?"Saving\u2026":"Save name"),9,E4)]),e.nameError?(l(),d("p",C4,c(e.nameError),1)):f("v-if",!0),e.nameMessage?(l(),d("p",_4,c(e.nameMessage),1)):f("v-if",!0)],40,y4)):f("v-if",!0)],40,a4)])):f("v-if",!0)],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",S4,[t[72]||(t[72]=o("svg",{class:"project-type-svg project-empty-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1)),e.hasProjects()?f("v-if",!0):(l(),d("span",N4,"You have no anonymizations yet.")),e.hasProjects()?(l(),d("span",R4,"Nothing matches the current filters.")):f("v-if",!0),o("div",D4,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=i=>e.clearFilters())},"Clear filters")):f("v-if",!0),e.hasProjects()?f("v-if",!0):(l(),d("a",T4,[...t[71]||(t[71]=[o("svg",{class:"project-type-svg","aria-hidden":"true"},[o("use",{href:"#project-icon-plus"})],-1),b(" New anonymization",-1)])]))])])):f("v-if",!0)],8,iI)]),e.dashboardCursor||e.dashboardError?(l(),d("div",A4,[e.dashboardError?(l(),d("p",O4,c(e.dashboardError),1)):f("v-if",!0),e.dashboardCursor?(l(),d("button",{key:1,type:"button",class:"btn",onClick:t[20]||(t[20]=i=>e.loadMoreProjects()),disabled:e.loadingMore},c(e.loadingMore?"Loading\u2026":"Load more projects"),9,I4)):f("v-if",!0)])):f("v-if",!0)])}var P4={class:"explorer-page"},V4=["aria-label"],q4={class:"ui-icon","aria-hidden":"true"},M4=["href"],U4=["textContent"],$4={class:"leftCol-head"},L4={class:"leftCol-search"},F4={class:"tree-search-box"},z4=["href"],H4={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},B4={class:"leftCol-project-header"},j4=["textContent","title"],G4={class:"project-file-count"},W4=["title"],K4={class:"leftCol-body"},Y4={key:0,class:"paper-inline-warning",role:"alert"},J4={key:1,class:"paper-inline-warning",role:"alert"},Q4={class:"leftCol-foot"},X4=["title"],Z4=["title"],x4=["title"],e3={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."},t3={class:"explorer-main"},o3={class:"status-bar"},n3={class:"breadcrumb paths","aria-label":"Path"},s3=["textContent"],r3={class:"status-bar-actions"},i3=["href"],a3={class:"d-none d-md-inline"},l3={class:"ui-icon","aria-hidden":"true"},d3=["href"],u3={class:"d-none d-md-inline"},c3=["href"],p3=["href"],f3=["href"],m3=["href"],h3={class:"explorer-content"};function zl(e,t){let n=Ge("tree"),r=Ge("partial-view"),s=ve("field");return l(),d("div",P4,[R(o("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[(l(),d("svg",q4,[o("use",{href:e.sidebarCollapsed?"#ui-icon-folder":"#project-icon-close"},null,8,M4)])),o("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,U4)],8,V4),[[j,e.files?.length]]),R(o("div",{class:A(["leftCol",{collapsed:e.sidebarCollapsed}])},[o("div",$4,[t[7]||(t[7]=o("span",{class:"leftCol-eyebrow"},"Files",-1)),o("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-close"})],-1)])])]),o("div",L4,[o("div",F4,[(l(),d("svg",{class:A(["ui-icon tree-search-icon",{"fa-spin":e.fileSearchLoading}]),"aria-hidden":"true"},[o("use",{href:e.fileSearchLoading?"#ui-icon-spinner":"#ui-icon-search"},null,8,z4)],2)),R(o("input",H4,null,512),[[s,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),R(o("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[j,!e.fileSearchQuery]]),R(o("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[j,e.fileSearchQuery]])])]),o("div",B4,[o("span",{class:"project-name",textContent:c(e.repoId),title:e.repoId},null,8,j4),o("span",G4,c(e.fileCounts?.[""]||e.files?.length)+" files",1),e.options?.expirationDate?(l(),d("span",{key:0,class:"project-expiry",title:e.options.expirationDate},[t[8]||(t[8]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),b(" Available until "+c(e.fmt?.date(e.options.expirationDate)),1)],8,W4)):f("v-if",!0)]),o("div",K4,[e.options?.truncatedFolders?.length>0?(l(),d("div",Y4,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):f("v-if",!0),e.options?.hasSubmodules?(l(),d("div",J4,[t[10]||(t[10]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})],-1)),b(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):f("v-if",!0),Ce(n,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),o("div",Q4,[o("span",{class:"last-update",title:e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate},c(e.options?.sourceCommitDate?"Source commit":e.options?.anonymizedAt?"Anonymized":"Updated")+" "+c(e.fmt?.date(e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),9,X4),e.options?.settingsSavedAt?(l(),d("span",{key:0,class:"last-update",title:e.options.settingsSavedAt}," Settings saved "+c(e.fmt?.date(e.options.settingsSavedAt)),9,Z4)):f("v-if",!0),e.options?.publishedAt?(l(),d("span",{key:1,class:"last-update",title:e.options.publishedAt}," Snapshot ready "+c(e.fmt?.date(e.options.publishedAt)),9,x4)):f("v-if",!0),e.options?.anonymizedAt&&!e.options?.publishedAt?(l(),d("span",e3," Snapshot ready date not recorded ")):f("v-if",!0)])],2),[[j,e.files?.length]]),R(o("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[j,e.files?.length&&!e.sidebarCollapsed]]),o("div",t3,[R(o("div",o3,[o("ol",n3,[(l(!0),d(W,null,oe(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,s3))),256))]),o("div",r3,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[11]||(t[11]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,i3)):f("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:A(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[12]||(t[12]=o("i",{class:"fab fa-js"},null,-1)),o("span",a3,c(e.allowScripts?"JS on":"JS off"),1)],2)):f("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[(l(),d("svg",l3,[o("use",{href:e.showSource?"#project-icon-eye":"#ui-icon-code"},null,8,d3)])),o("span",u3,c(e.showSource?"Rendered":"Source"),1)])):f("v-if",!0),R(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"View raw current file",title:"View raw file",href:e.safeUrl(e.url)},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1)])],8,c3),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),R(o("a",{target:"_self",class:"btn btn-sm btn-icon-only","aria-label":"Download current file",title:"Download this file",href:e.safeUrl(e.url+"&download=true")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-download"})],-1)])],8,p3),[[j,e.content!=null&&e.type!="error"&&e.type!="rate_limited"]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm btn-ink","aria-label":"Download repository as ZIP",title:"Download the whole repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[15]||(t[15]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-archive"})],-1),o("span",{class:"d-none d-md-inline"}," Download repository",-1)])],8,f3)):f("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),o("span",{class:"d-none d-md-inline"}," Website",-1)])],8,m3)):f("v-if",!0)])],512),[[j,e.type!="error"||e.files?.length]]),o("div",h3,[Ce(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var v3={class:"paper-faq"};function Hl(e,t){return l(),d("div",v3,[...t[0]||(t[0]=[de('
',1),o("div",{class:"paper-faq-body"},[o("aside",{class:"paper-faq-toc"},[o("div",{class:"paper-faq-toc-head"},"Contents"),o("nav",null,[o("a",{href:"#faq-general"},"General"),o("a",{href:"#faq-features"},"Features"),o("a",{href:"#faq-limitations"},"Limitations"),o("a",{href:"#faq-privacy"},"Privacy & Security"),o("a",{href:"#faq-hosting"},"Self-Hosting")])]),o("section",{class:"faq-section","aria-label":"FAQs"},[o("div",null,[f(" General "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})]),b("General ")]),o("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),o("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),o("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),o("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[o("div",{class:"panel-body p-3"},[o("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),o("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),o("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),b(", donating through "),o("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),b(', or by clicking the "Support me" button on the site. ')])])])])]),f(" Features "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})]),b("Features ")]),o("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),o("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[o("div",{class:"panel-body p-3"},[o("p",null," Anonymous GitHub can display and render a wide variety of file types: "),o("ul",null,[o("li",null,[o("strong",null,"Text and source code"),b(" \u2014 displayed with syntax highlighting")]),o("li",null,[o("strong",null,"Markdown"),b(" \u2014 rendered as formatted HTML")]),o("li",null,[o("strong",null,"Images"),b(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),o("li",null,[o("strong",null,"PDFs"),b(" \u2014 rendered directly in the browser")]),o("li",null,[o("strong",null,"Jupyter Notebooks"),b(" \u2014 rendered with code cells and outputs")])]),o("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),o("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),o("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[o("div",{class:"panel-body p-3"},[o("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),o("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[o("div",{class:"panel-body p-3"},[o("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),o("ul",null,[o("li",null,[o("strong",null,"Never expire"),b(" \u2014 the anonymized repository remains accessible indefinitely.")]),o("li",null,[o("strong",null,"Redirect to GitHub"),b(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),o("li",null,[o("strong",null,"Remove content"),b(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),o("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),o("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),o("p",null," A few practical implications worth keeping in mind: "),o("ul",null,[o("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),o("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),o("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),o("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[o("div",{class:"panel-body p-3"},[o("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),o("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[o("code",null,`npm install -g @tdurieux/anonymous_github
+anonymous_github`)])])])])]),f(" Limitations "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-warning"})]),b("Limitations ")]),o("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),o("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[o("div",{class:"panel-body p-3"},[o("ul",null,[o("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),o("li",null," Files larger than 8 MB are not supported. "),o("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),o("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),f(" Privacy & Security "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})]),b("Privacy & Security ")]),o("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),o("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[o("div",{class:"panel-body p-3"},[o("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),o("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[o("div",{class:"panel-body p-3"},[o("p",null,[b("The GitHub App has read-only access to the repositories you choose. You can change repository access on your "),o("a",{href:"/connections"},"GitHub connections"),b(" page.")]),o("p",null,"Legacy GitHub OAuth includes write access to private repositories because GitHub's OAuth scopes do not offer a read-only option for them. Existing OAuth anonymizations and gists can still use this connection."),o("p",null,"Anonymous GitHub reads repository content. It never pushes, modifies, or deletes files on GitHub.")])])]),o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),o("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[o("div",{class:"panel-body p-3"},[o("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),f(" Self-Hosting "),o("h4",{class:"faq-cat"},[o("svg",{class:"ui-icon mr-2","aria-hidden":"true"},[o("use",{href:"#project-icon-storage"})]),b("Self-Hosting ")]),o("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[o("div",{class:"panel panel-default mb-3"},[o("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[o("h3",{class:"panel-title"},[o("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),o("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[o("div",{class:"panel-body p-3"},[o("p",null,[b(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),b(". ")]),o("p",null," The basic steps are: "),o("ol",null,[o("li",null,"Clone the repository and install dependencies"),o("li",null,[b("Create a "),o("code",null,".env"),b(" file with your GitHub token, OAuth client ID, and client secret")]),o("li",null,[b("Run "),o("code",null,"docker-compose up -d")])])])])])]),o("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[o("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),o("p",{class:"text-muted mb-0"},[b(" Open an issue on the "),o("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),b(" and we'll be happy to help. ")])])])])],-1)])])}var y3={class:"pr-page"},g3={class:"container paper-page pr-page-inner"},b3={class:"pr-header"},w3={class:"pr-title-row"},k3={class:"paper-page-title pr-title"},E3=["textContent"],C3={key:1,class:"text-muted"},_3=["href"],S3={class:"pr-header-meta"},N3={key:0,class:"pr-meta-item"},R3=["textContent"],D3={key:1,class:"pr-meta-item"},T3=["textContent"],A3={key:2,class:"pr-meta-item"},O3=["textContent"],I3={key:0,class:"paper-tabs",role:"tablist"},P3=["aria-selected","tabindex"],V3=["textContent"],q3=["aria-selected","tabindex"],M3=["textContent"],U3={class:"paper-tab-content"},$3={key:0,role:"tabpanel",id:"gist-files-panel","aria-labelledby":"gist-files-tab"},L3={class:"pr-comments"},F3={class:"pr-comment"},z3={class:"pr-comment-head"},H3=["textContent"],B3={key:0,class:"pr-comment-date"},j3={key:0,class:"paper-table-empty"},G3={key:1,role:"tabpanel",id:"gist-comments-panel","aria-labelledby":"gist-comments-tab"},W3={class:"pr-comments"},K3={class:"pr-comment"},Y3={class:"pr-comment-head"},J3={key:0,class:"pr-comment-author"},Q3=["textContent"],X3=["textContent"],Z3={key:0,class:"pr-comment-body"},x3={key:0,class:"paper-table-empty"};function Bl(e,t){let n=Ge("gist-file"),r=Ge("markdown");return l(),d("div",y3,[o("div",g3,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Gist")],-1)),o("header",b3,[o("div",w3,[o("h1",k3,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,E3)):f("v-if",!0),e.details?.description?f("v-if",!0):(l(),d("span",C3,"Untitled gist"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,_3)):f("v-if",!0)]),o("div",S3,[o("span",{class:A(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",N3,[t[5]||(t[5]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[6]||(t[6]=b(" @",-1)),o("span",{textContent:c(e.details?.ownerLogin)},null,8,R3)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",D3,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,T3)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",A3,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,O3)])):f("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",I3,[e.details?.files?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",id:"gist-files-tab","aria-selected":e.tabState?.active==="files","aria-controls":"gist-files-panel",tabindex:e.tabState?.active==="files"?0:-1,onKeydown:t[0]||(t[0]=s=>e.previewTabKeydown(s)),onClick:t[1]||(t[1]=s=>e.tabState.active="files")},[t[11]||(t[11]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-type-gist"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,V3)],42,P3)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"gist-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"gist-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=s=>e.previewTabKeydown(s)),onClick:t[3]||(t[3]=s=>e.tabState.active="comments")},[t[12]||(t[12]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,M3)],42,q3)):f("v-if",!0)])):f("v-if",!0),o("div",U3,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",$3,[o("ul",L3,[(l(!0),d(W,null,oe(e.details?.files,(s,i)=>(l(),d("li",F3,[o("div",z3,[o("strong",{textContent:c(s?.filename)},null,8,H3),s?.language?(l(),d("span",B3,c(s?.language),1)):f("v-if",!0)]),Ce(n,{file:s},null,8,["file"])]))),256)),e.details?.files?.length?f("v-if",!0):(l(),d("li",j3,[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-file"})],-1),o("span",null,"No files in this gist.",-1)])]))])])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",G3,[o("ul",W3,[(l(!0),d(W,null,oe(e.details?.comments,(s,i)=>(l(),d("li",K3,[o("div",Y3,[s?.author?(l(),d("span",J3,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(s?.author)},null,8,Q3)])):f("v-if",!0),s?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(s?.updatedDate))},null,8,X3)):f("v-if",!0)]),s?.body?(l(),d("div",Z3,[Ce(r,{content:s?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",x3,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this gist.",-1)])]))])])):f("v-if",!0)])])])}var eP={class:"collapse navbar-collapse",id:"navbarSupportedContent"},tP={class:"navbar-nav mr-auto smooth-scroll"},oP={key:0,class:"nav-item"},nP={key:1,class:"nav-item"},sP={key:2,class:"nav-item"},rP={key:3,class:"nav-item"},iP={class:"nav-item"},aP={key:4,class:"nav-item"},lP={class:"navbar-nav"},dP={key:0,class:"nav-item"},uP={key:1,class:"nav-item"},cP={key:2,class:"nav-item"},pP={key:3,class:"nav-item"},fP={key:4,class:"nav-item dropdown user-chip-wrap"},mP={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},hP=["src"],vP={class:"user-chip-name"},yP={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},gP={class:"dropdown-header"},bP=["innerHTML"],wP=["disabled"],kP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},EP={class:"email-prompt-actions"},CP=["disabled"],_P=["disabled"],SP=["disabled"];function jl(e,t){return l(),d(W,null,[o("nav",{class:A(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[18]||(t[18]=de('Anonymous GitHubSupport',3)),o("div",eP,[o("ul",tP,[e.user?f("v-if",!0):(l(),d("li",oP,[o("a",{class:A(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",nP,[o("a",{class:A(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[7]||(t[7]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-grid"})],-1),b(" My work ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",sP,[o("a",{class:A(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[8]||(t[8]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1),b(" Anonymize ",-1)])],2)])):f("v-if",!0),e.user?(l(),d("li",rP,[o("a",{class:A(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[9]||(t[9]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1),b(" Conferences ",-1)])],2)])):f("v-if",!0),o("li",iP,[o("a",{class:A(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[10]||(t[10]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-help"})],-1),b("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",aP,[o("a",{class:A(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[11]||(t[11]=[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#project-icon-filter"})],-1),b(" Admin ",-1)])],2)])):f("v-if",!0)]),o("ul",lP,[e.user||!e.isReviewerRoute?(l(),d("li",dP,[...t[12]||(t[12]=[o("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[o("i",{class:"fab fa-github","aria-hidden":"true"})],-1)])])):f("v-if",!0),f(` "Report a bug" is about this service. Reviewers who land on an
anonymized repository often think it is about the paper, so the
- label names the service and the tooltip says who to contact. `),t[17]||(t[17]=o("li",{class:"nav-item d-none d-lg-block"},[o("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),w("Report a bug ")])],-1)),e.isDarkMode?f("v-if",!0):(l(),d("li",K3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ie(n=>{e.darkMode(!0)},["prevent"]))},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",Y3,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ie(n=>{e.darkMode(!1)},["prevent"]))},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",J3,[...t[15]||(t[15]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),w(" Sign in ")],-1)])])):f("v-if",!0),e.user?(l(),d("li",Q3,[o("a",X3,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,Z3)):f("v-if",!0),o("span",x3,c(e.user?.username),1)]),o("div",eP,[o("h6",tP,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=ue('SettingsDefaults, quotas, accountGitHub connectionsRepository access and OAuthClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSupport the projectSign out',9))])])):f("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,oP)):f("v-if",!0),e.emailPromptOpen?(l(),d("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[6]||(t[6]=ie(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=ie(n=>e.respondToEmailPrompt("save"),["prevent"]))},[t[19]||(t[19]=o("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[20]||(t[20]=o("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[21]||(t[21]=o("label",{for:"email-prompt-address"},"Email address",-1)),N(o("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[2]||(t[2]=n=>e.emailPromptAddress=n),disabled:e.emailPromptBusy},null,8,nP),[[zt,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",sP,c(e.emailPromptError),1)):f("v-if",!0),o("div",rP,[o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[3]||(t[3]=n=>e.respondToEmailPrompt("later"))},"Remind me later",8,iP),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,aP),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,lP)])],32)],32)):f("v-if",!0)],64)}var dP={class:"paper-landing"},uP={class:"paper-hero"},cP={class:"paper-hero-copy"},pP={class:"paper-cta-row"},fP={key:0,href:"/signin",target:"_self",class:"btn-hero"},mP={key:1,href:"/anonymize",class:"btn-hero"},hP={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},vP={class:"paper-stats-grid"},yP={class:"paper-stat-value"},gP={class:"paper-stat-label"},bP=["viewBox"],wP=["x","y","width","height"],kP={key:1,class:"paper-stat-delta"},EP={class:"paper-features paper-wrap","aria-label":"Product features"},CP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},_P=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],SP={class:"paper-eyebrow"},NP={class:"paper-feature-title"},DP={class:"paper-feature-more"},RP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},TP=["href","target"],AP={class:"paper-features-stage"},OP=["id","aria-labelledby"],IP={class:"paper-frame"},PP={class:"paper-frame-bar","aria-hidden":"true"},VP={class:"url"},qP=["src","alt"],MP={class:"paper-footer"},UP={class:"paper-footer-inner"},$P={class:"paper-footer-col"},LP={key:0,href:"/dashboard"},FP={key:1,href:"/conferences"},zP={class:"paper-footer-foot"};function Gl(e,t){return l(),d("div",dP,[f(" Hero: copy on the left, the product on the right "),o("section",uP,[o("div",cP,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[w(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),o("div",pP,[e.user?f("v-if",!0):(l(),d("a",fP,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),w("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",mP," Anonymize a repository \u2192 ")):f("v-if",!0),t[1]||(t[1]=o("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=ue('
anonymous.4open.science/anonymize
',1))]),f(" Proof "),t[16]||(t[16]=ue('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),f(" Live stats "),o("section",hP,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),w(" updated daily ")])],-1)),o("div",vP,[(l(!0),d(K,null,oe(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",yP,c(e.fmt?.bigNum(n?.total)),1),o("div",gP,c(n?.label),1),e.history[n?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[n?.key].viewW+" 36"},[(l(!0),d(K,null,oe(e.history[n?.key].bars,(s,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[n.key].bars.length-1}),x:s?.x,y:s?.y,width:s?.w,height:s?.h},null,10,wP))),128))],8,bP)):f("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",kP," +"+c(e.fmt?.number(e.history[n?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))])]),f(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[w("The same repository, "),o("em",null,"minus you.")])]),o("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),w(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),w(),o("strong",null,"DeepLearnUtils")]),o("div",null,[w("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),w(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),w(".")]),o("div",null,[w("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),w(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[w("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),f(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[w("Anonymize, review, "),o("em",null,"manage.")])]),o("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),o("section",EP,[o("div",CP,[(l(!0),d(K,null,oe(e.features,(n,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===n?.key}]),key:n?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:s=>e.selectFeature(n.key),onKeydown:s=>e.featureKeydown(s,r),id:"feature-tab-"+n?.key,"aria-controls":"feature-panel-"+n?.key,"aria-selected":e.feature===n?.key,tabindex:e.feature===n?.key?0:-1},[o("span",SP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",NP,[w(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,_P),o("div",DP,[o("span",RP,[w(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)]),o("p",null,c(n?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(n)),target:e.featureTarget(n)},c(n?.cta)+" \u2192",9,TP)])],2))),128))]),o("div",AP,[(l(!0),d(K,null,oe(e.features,(n,r)=>N((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:n?.key,id:"feature-panel-"+n?.key,"aria-labelledby":"feature-tab-"+n?.key},[o("div",IP,[o("div",PP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",VP,c(n?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+n?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(n?.img),alt:n?.alt},null,8,qP)],2)])],8,OP)),[[j,e.feature===n?.key]])),128))])]),f(" FAQ teaser "),t[20]||(t[20]=ue('
The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
',1)),o("footer",MP,[o("div",UP,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[w("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",$P,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",LP,"My work")):f("v-if",!0),e.user?(l(),d("a",FP,"Conferences")):f("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=ue('',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",zP,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var HP={class:"paper-empty"},BP={class:"paper-empty-inner"},jP={key:0,class:"paper-eyebrow"},GP={key:1,class:"paper-eyebrow"},WP={key:2,class:"paper-empty-title"},KP=["textContent"];function Wl(e,t){return l(),d("div",HP,[o("div",BP,[e.error?f("v-if",!0):(l(),d("div",jP,"Working")),e.error?(l(),d("div",GP,"Error")):f("v-if",!0),e.error?f("v-if",!0):(l(),d("h1",WP,[...t[0]||(t[0]=[w(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,KP)):f("v-if",!0)])])}var YP={class:"container paper-page paper-settings"},JP={class:"paper-crumbs"},QP={class:"here"},XP={class:"paper-page-title"},ZP={class:"paper-settings-body"},xP={class:"paper-settings-toc"},eV={href:"#conf-billing"},tV={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},oV={id:"conf-basics",class:"paper-settings-section"},nV={class:"form-group"},sV={class:"invalid-feedback"},rV={class:"invalid-feedback"},iV={class:"form-group"},aV={class:"invalid-feedback"},lV={class:"form-group"},dV={class:"invalid-feedback"},uV={class:"invalid-feedback"},cV={id:"conf-window",class:"paper-settings-section"},pV={class:"form-grid-2"},fV={class:"form-group"},mV={class:"invalid-feedback"},hV={class:"invalid-feedback"},vV={class:"form-group"},yV={class:"invalid-feedback"},gV={class:"invalid-feedback"},bV={id:"conf-rendering",class:"paper-settings-section"},wV={class:"form-check"},kV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},EV={class:"form-check"},CV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},_V={class:"form-check"},SV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},NV={class:"form-check"},DV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},RV={id:"conf-features",class:"paper-settings-section"},TV={class:"form-check"},AV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},OV={class:"form-check"},IV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},PV={id:"conf-plan",class:"paper-settings-section"},VV={class:"paper-plan-grid"},qV=["value"],MV=["textContent"],UV={class:"paper-plan-price"},$V=["innerHTML"],LV={key:0,id:"conf-billing",class:"paper-settings-section"},FV={class:"form-group"},zV={class:"form-group"},HV={class:"form-group"},BV={class:"form-group"},jV={class:"form-grid-3"},GV={class:"form-group"},WV={class:"form-group"},KV={class:"form-group"},YV={class:"form-group"},JV={class:"paper-settings-footer"},QV=["textContent"],XV=["textContent"],ZV=["disabled"];function Kl(e,t){let n=ve("paper-scrollspy"),r=ve("field"),s=ve("form");return l(),d("div",YP,[o("div",JP,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=w(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=w(" \xA0/\xA0 ",-1)),o("span",QP,c(e.editionMode?"Edit":"New"),1)]),o("h1",XP,[w(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",ZP,[N((l(),d("aside",xP,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=ue('BasicsReview windowRendering defaultsFeaturesPlan',5)),N(o("a",eV,"Billing",512),[[j,e.plan?.pricePerRepo>0]])])])),[[n]]),N((l(),d("form",tV,[o("section",oV,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",nV,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),N(o("div",sV," The name of the conference is invalid. ",512),[[j,e.conference?.name?.errors?.invalid]]),N(o("div",rV," The name of the conference is required. ",512),[[j,e.conference?.name?.errors?.required]])]),o("div",iV,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),N(o("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),N(o("div",aV," The url of the conference is invalid. ",512),[[j,e.conference?.url?.errors?.url]])]),o("div",lV,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[w("3\u201310 characters, letters, numbers, "),o("code",null,"-"),w(" and "),o("code",null,"_"),w(". Authors reference this when they anonymize.")],-1)),N(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[j,e.conference?.conferenceID?.errors?.used]]),N(o("div",dV," The conference ID is required. ",512),[[j,e.conference?.conferenceID?.errors?.required]]),N(o("div",uV," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[j,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",cV,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",pV,[o("div",fV,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),N(o("div",mV," Start date is required. ",512),[[j,e.conference?.startDate?.errors?.required]]),N(o("div",hV," Start date must be before end date. ",512),[[j,e.conference?.startDate?.errors?.invalid]])]),o("div",vV,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),N(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),N(o("div",yV," End date is required. ",512),[[j,e.conference?.endDate?.errors?.required]]),N(o("div",gV," End date is invalid. ",512),[[j,e.conference?.endDate?.errors?.invalid]])])])]),o("section",bV,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",wV,[N(o("input",kV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",EV,[N(o("input",CV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",_V,[N(o("input",SV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",NV,[N(o("input",DV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",RV,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",TV,[N(o("input",AV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",OV,[N(o("input",IV,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",PV,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",VV,[(l(!0),d(K,null,oe(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[N(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,qV),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,MV),o("div",UV,[w(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,$V)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",LV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",FV,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),o("div",zV,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),N(o("input",{type:"email",class:A(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),o("div",HV,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),o("div",BV,[N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),o("div",jV,[o("div",GV,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),o("div",WV,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),o("div",KV,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),o("div",YV,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),N(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),o("div",JV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,QV)):f("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,XV)):f("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,ZV)])])),[[s,e.viewState]])])])}var xV={key:0},e5=["innerHTML"],t5={key:3},o5=["src"],n5=["src"],s5={key:7},r5={controls:"controls"},i5=["src"],a5={key:8},l5={key:9,class:"file-error container d-flex h-100"},d5={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},u5={class:"paper-error-msg"},c5={key:10,class:"file-error container d-flex h-100"},p5={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},f5={id:"viewer-error-title",class:"paper-empty-title"},m5={class:"paper-error-actions"},h5={key:0,href:"/",class:"btn btn-sm"},v5={key:1,href:"/faq",class:"btn btn-sm"},y5={key:2,class:"btn btn-outline-ink",href:"/dashboard"},g5={key:11,class:"file-error container d-flex h-100"},b5={key:12,class:"file-error container d-flex h-100"},w5={key:13,class:"file-error container d-flex h-100"},k5={key:14,class:"file-error container d-flex h-100"},E5={class:"paper-empty-title m-auto"},C5=["href"];function Yl(e,t){let n=Ge("html-doc"),r=Ge("pdfviewer"),s=Ge("notebook"),i=ve("code-editor");return l(),d(K,null,[e.type=="text"?N((l(),d("div",xV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,e5)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Lt(n,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?N((l(),d("div",t5,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,o5)):f("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,n5)):f("v-if",!0),e.type=="pdf"?(l(),Lt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="audio"?(l(),d("div",s5,[o("audio",r5,[o("source",{src:e.safeUrl(e.url)},null,8,i5)])])):f("v-if",!0),e.type=="IPython"?(l(),d("div",a5,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="rate_limited"?(l(),d("div",l5,[o("div",d5,[t[3]||(t[3]=ue('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",u5,[t[1]||(t[1]=w("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[2]||(t[2]=w(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"?(l(),d("div",c5,[o("section",p5,[o("h1",f5,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),o("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(K,{key:0},[o("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),o("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),o("div",m5,[e.isSourceAccessError()?f("v-if",!0):(l(),d("a",h5,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(l(),d("a",v5,"Read the FAQ")),o("button",{type:"button",class:"btn btn-primary",onClick:t[0]||(t[0]=a=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",y5,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",g5,[...t[4]||(t[4]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):f("v-if",!0),e.type=="empty"?(l(),d("div",b5,[...t[5]||(t[5]=[o("h1",{class:"paper-empty-title m-auto"},[w("Empty "),o("em",null,"repository"),w(".")],-1)])])):f("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",w5,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},[w("Empty "),o("em",null,"file"),w(".")],-1)])])):f("v-if",!0),e.type=="binary"?(l(),d("div",k5,[o("h1",E5,[t[7]||(t[7]=w("Unsupported ",-1)),t[8]||(t[8]=o("em",null,"binary file",-1)),t[9]||(t[9]=w(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,C5),t[10]||(t[10]=w(".",-1))])])):f("v-if",!0)],64)}var _5={class:"container page dashboard-page paper-page"},S5={class:"row"},N5={class:"w-100"},D5={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},R5={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},T5={class:"flex-grow-1"},A5={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},O5={class:"d-flex flex-wrap",style:{gap:"6px"}},I5={class:"dropdown"},P5={class:"dropdown-menu","aria-labelledby":"dropdownSort"},V5={class:"form-check dropdown-item"},q5={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},M5={class:"form-check dropdown-item"},U5={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},$5={class:"form-check dropdown-item"},L5={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},F5={class:"form-check dropdown-item"},z5={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},H5={class:"form-check dropdown-item"},B5={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},j5={class:"dropdown"},G5={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},W5={class:"form-check dropdown-item"},K5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},Y5={class:"form-check dropdown-item"},J5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},Q5={class:"form-check dropdown-item"},X5={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},Z5={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},x5={class:"filter-chip"},eq=["onClick"],tq={class:"repo-list w-100"},oq={class:"repo-list-item-content"},nq={class:"repo-list-item-main"},sq={class:"repo-list-item-header"},rq=["textContent","href"],iq=["textContent"],aq=["textContent"],lq={class:"repo-source"},dq=["href"],uq={class:"repo-date"},cq={class:"repo-meta"},pq={key:0,title:"Conference"},fq=["title"],mq=["title"],hq=["title"],vq={key:1},yq={class:"repo-list-item-actions"},gq={class:"dropdown"},bq={class:"dropdown-menu dropdown-menu-right"},wq=["href"],kq=["onClick"],Eq=["onClick"],Cq=["onClick"],_q=["href"],Sq={key:0,class:"repo-list-empty"};function Jl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",_5,[o("div",S5,[o("div",N5,[t[12]||(t[12]=ue('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)),f(" Search + filters row "),N((l(),d("form",D5,[o("div",R5,[o("div",T5,[N(o("input",A5,null,512),[[n,{state:e.viewState,set:s=>{e.search=s},value:e.search,form:null,options:{}}]])]),o("div",O5,[o("div",I5,[t[6]||(t[6]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),o("div",P5,[t[5]||(t[5]=o("h6",{class:"dropdown-header"},"Select order",-1)),o("div",V5,[N(o("input",q5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=o("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),o("div",M5,[N(o("input",U5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=o("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),o("div",$5,[N(o("input",L5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=o("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),o("div",F5,[N(o("input",z5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=o("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),o("div",H5,[N(o("input",B5,null,512),[[n,{state:e.viewState,set:s=>{e.orderBy=s},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=o("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),o("div",j5,[t[11]||(t[11]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),o("div",G5,[t[10]||(t[10]=o("h6",{class:"dropdown-header"},"Select status",-1)),o("div",W5,[N(o("input",K5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.ready=s},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=o("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),o("div",Y5,[N(o("input",J5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.expired=s},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=o("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),o("div",Q5,[N(o("input",X5,null,512),[[n,{state:e.viewState,set:s=>{e.filters.status.removed=s},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=o("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),f(" Active filter chips "),N(o("div",Z5,[(l(!0),d(K,null,oe(e.filters?.status,(s,i,a)=>N((l(),d("span",x5,[w(c(e.fmt?.title(i))+" ",1),o("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,eq)],512)),[[j,!s]])),256))],512),[[j,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),o("ul",tq,[(l(!0),d(K,null,oe(e.filteredPullRequests,(s,i)=>(l(),d("li",{class:A(["repo-list-item",{"repo-inactive":s?.status=="expired"||s?.status=="removed"||s?.status=="error"}])},[o("div",oq,[o("div",nq,[o("div",sq,[o("a",{class:"repo-name",textContent:c(s?.pullRequestId),href:e.safeUrl("/pr/"+s?.pullRequestId)},null,8,rq),o("span",{class:A(["status-badge",{"status-removed":s?.status=="removed"||s?.status=="expired"||s?.status=="removing"||s?.status=="expiring","status-preparing":s?.status=="preparing"||s?.status=="download","status-ready":s?.status=="ready","status-error":s?.status=="error"}])},[o("span",{textContent:c(e.fmt?.title(s?.status))},null,8,iq),s?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+s?.statusMessage)},null,8,aq)):f("v-if",!0)],2)]),o("div",lq,[o("span",null,[t[13]||(t[13]=o("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),o("a",{href:e.safeUrl("https://github.com/"+s?.source?.repositoryFullName+"/pull/"+s?.source?.pullRequestId)},c(s?.source?.repositoryFullName)+"#"+c(s?.source?.pullRequestId),9,dq)]),o("span",{class:A(["status-badge",{"status-ready":s?.merged,"status-removed":s?.state=="open","status-error":s?.state=="closed"&&!s?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(s?.merged?"merged":s?.state)),3),o("span",uq,"anonymized "+c(e.fmt?.humanTime(s?.anonymizeDate)),1)])]),o("div",cq,[s?.conference?(l(),d("span",pq,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-conference"})],-1)),w(" "+c(s?.conference),1)])):f("v-if",!0),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+s?.options?.terms?.join(", ")},[t[15]||(t[15]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),w(" "+c(e.fmt?.number(s?.options?.terms?.length)),1)],8,fq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(s?.pageView)},[t[16]||(t[16]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1)),w(" "+c(e.fmt?.number(s?.pageView)),1)],8,mq),o("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(s?.lastView)},[t[17]||(t[17]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-calendar"})],-1)),w(" "+c(e.fmt?.humanTime(s?.lastView)),1)],8,hq),s?.options?.expirationMode!="never"&&s?.status=="ready"?(l(),d("span",vq,[t[18]||(t[18]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),w(" Expire: "+c(e.fmt?.humanTime(s?.options?.expirationDate)),1)])):f("v-if",!0)])]),o("div",yq,[o("div",gq,[t[24]||(t[24]=o("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),o("div",bq,[o("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+s?.pullRequestId)},[...t[19]||(t[19]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit ",-1)])],8,wq),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[20]||(t[20]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-refresh"})],-1),w(" Force update ",-1)])],8,kq),[[j,s?.status=="ready"||s?.status=="error"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.updatePullRequest(s),["prevent"])},[...t[21]||(t[21]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-check-circle"})],-1),w(" Enable ",-1)])],8,Eq),[[j,s?.status=="removed"]]),N(o("a",{class:"dropdown-item",href:"#",onClick:ie(a=>e.removePullRequest(s),["prevent"])},[...t[22]||(t[22]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1),w(" Remove ",-1)])],8,Cq),[[j,s?.status=="ready"]]),o("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+s?.pullRequestId+"/")},[...t[23]||(t[23]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" View PR ",-1)])],8,_q)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",Sq,[...t[25]||(t[25]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-inbox"})],-1),o("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var Nq={class:"container paper-page paper-settings"},Dq={class:"paper-settings-body"},Rq={class:"paper-settings-toc"},Tq={class:"paper-settings-main"},Aq={id:"settings-quota",class:"paper-settings-section"},Oq={key:1,class:"quota-row","aria-hidden":"true"},Iq={class:"quota-item"},Pq={id:"settings-terms",class:"paper-settings-section"},Vq={class:"form-group"},qq={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith
+ label names the service and the tooltip says who to contact. `),t[17]||(t[17]=o("li",{class:"nav-item d-none d-lg-block"},[o("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[o("svg",{class:"ui-icon d-lg-none mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-bug"})]),b("Report a bug ")])],-1)),e.isDarkMode?f("v-if",!0):(l(),d("li",uP,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ie(n=>{e.darkMode(!0)},["prevent"]))},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-moon"})],-1)])])])),e.isDarkMode?(l(),d("li",cP,[o("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ie(n=>{e.darkMode(!1)},["prevent"]))},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-sun"})],-1)])])])):f("v-if",!0),!e.user&&!e.isReviewerRoute?(l(),d("li",pP,[...t[15]||(t[15]=[o("a",{class:"nav-link btn-signin",target:"_self",href:"/signin","data-offset":"30"},[o("i",{class:"fab fa-github mr-1"}),b(" Sign in ")],-1)])])):f("v-if",!0),e.user?(l(),d("li",fP,[o("a",mP,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,hP)):f("v-if",!0),o("span",vP,c(e.user?.username),1)]),o("div",yP,[o("h6",gP,"Signed in as @"+c(e.user?.username),1),t[16]||(t[16]=de('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,bP)):f("v-if",!0),e.emailPromptOpen?(l(),d("dialog",{key:1,id:"email-prompt",class:"email-prompt","aria-labelledby":"email-prompt-title","aria-describedby":"email-prompt-reason",onCancel:t[6]||(t[6]=ie(n=>e.respondToEmailPrompt("later"),["prevent"]))},[o("form",{onSubmit:t[5]||(t[5]=ie(n=>e.respondToEmailPrompt("save"),["prevent"]))},[t[19]||(t[19]=o("h2",{id:"email-prompt-title"},"Stay informed about access problems",-1)),t[20]||(t[20]=o("p",{id:"email-prompt-reason"},"Get email alerts when your GitHub token or repository access fails.",-1)),t[21]||(t[21]=o("label",{for:"email-prompt-address"},"Email address",-1)),R(o("input",{id:"email-prompt-address",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[2]||(t[2]=n=>e.emailPromptAddress=n),disabled:e.emailPromptBusy},null,8,wP),[[zt,e.emailPromptAddress]]),e.emailPromptError?(l(),d("p",kP,c(e.emailPromptError),1)):f("v-if",!0),o("div",EP,[o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[3]||(t[3]=n=>e.respondToEmailPrompt("later"))},"Remind me later",8,CP),o("button",{type:"button",class:"btn btn-outline-ink",disabled:e.emailPromptBusy,onClick:t[4]||(t[4]=n=>e.respondToEmailPrompt("never"))},"Never",8,_P),o("button",{type:"submit",class:"btn btn-ink",disabled:e.emailPromptBusy},c(e.emailPromptBusy?"Saving\u2026":"Save"),9,SP)])],32)],32)):f("v-if",!0)],64)}var NP={class:"paper-landing"},RP={class:"paper-hero"},DP={class:"paper-hero-copy"},TP={class:"paper-cta-row"},AP={key:0,href:"/signin",target:"_self",class:"btn-hero"},OP={key:1,href:"/anonymize",class:"btn-hero"},IP={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},PP={class:"paper-stats-grid"},VP={class:"paper-stat-value"},qP={class:"paper-stat-label"},MP=["viewBox"],UP=["x","y","width","height"],$P={key:1,class:"paper-stat-delta"},LP={class:"paper-features paper-wrap","aria-label":"Product features"},FP={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},zP=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],HP={class:"paper-eyebrow"},BP={class:"paper-feature-title"},jP={class:"paper-feature-more"},GP={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},WP=["href","target"],KP={class:"paper-features-stage"},YP=["id","aria-labelledby"],JP={class:"paper-frame"},QP={class:"paper-frame-bar","aria-hidden":"true"},XP={class:"url"},ZP=["src","alt"],xP={class:"paper-footer"},e5={class:"paper-footer-inner"},t5={class:"paper-footer-col"},o5={key:0,href:"/dashboard"},n5={key:1,href:"/conferences"},s5={class:"paper-footer-foot"};function Gl(e,t){return l(),d("div",NP,[f(" Hero: copy on the left, the product on the right "),o("section",RP,[o("div",DP,[t[2]||(t[2]=o("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=o("h1",{class:"hero-title"},[b(" Share the code,"),o("br"),o("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=o("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist. It redacts the terms you choose in text files, so reviewers can browse your artifact through an anonymous link. ",-1)),o("div",TP,[e.user?f("v-if",!0):(l(),d("a",AP,[...t[0]||(t[0]=[o("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),b("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",OP," Anonymize a repository \u2192 ")):f("v-if",!0),t[1]||(t[1]=o("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=o("ul",{class:"paper-reassure"},[o("li",null,"Free and open source"),o("li",null,"Read-only: never writes to your repos"),o("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=de('
anonymous.4open.science/anonymize
',1))]),f(" Proof "),t[16]||(t[16]=de('
Trusted by authors at
ICSE\xB7FSE\xB7OOPSLA
',1)),f(" Live stats "),o("section",IP,[t[7]||(t[7]=o("div",{class:"paper-stats-meta"},[o("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),o("div",{class:"paper-stats-meta-right"},[o("span",{class:"paper-stats-dot","aria-hidden":"true"}),b(" updated daily ")])],-1)),o("div",PP,[(l(!0),d(W,null,oe(e.cards,(n,r)=>(l(),d("div",{class:"paper-stat-card",key:n?.key},[o("div",VP,c(e.fmt?.bigNum(n?.total)),1),o("div",qP,c(n?.label),1),e.history[n?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[n?.key].viewW+" 36"},[(l(!0),d(W,null,oe(e.history[n?.key].bars,(s,i)=>(l(),d("rect",{key:i,class:A({"is-latest":i===e.history[n.key].bars.length-1}),x:s?.x,y:s?.y,width:s?.w,height:s?.h},null,10,UP))),128))],8,MP)):f("v-if",!0),e.history[n?.key].bars?.length>1?(l(),d("div",$P," +"+c(e.fmt?.number(e.history[n?.key].deltaToday))+" today ",1)):f("v-if",!0)]))),128))])]),f(" Before / after "),t[17]||(t[17]=o("section",{class:"paper-section-head paper-wrap"},[o("div",null,[o("div",{class:"paper-eyebrow"},"Before \xB7 after"),o("h2",null,[b("The same repository, "),o("em",null,"minus you.")])]),o("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=o("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"Before \xB7 your repo"),o("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,"Developed by Jane Smith at MIT CSAIL."),o("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),o("div",null,"Contact: jane.smith@mit.edu")])]),o("div",{class:"pane"},[o("div",{class:"pane-header"},[o("span",{class:"pane-label"},"After \xB7 anonymous mirror"),o("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),o("div",{class:"pane-body"},[o("div",null,[o("span",{class:"tok"},"#"),b(),o("strong",null,"DeepLearnUtils")]),o("div",null,[b("Developed by "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" at "),o("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),b(".")]),o("div",null,[b("See "),o("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),b(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),o("div",null,[b("Contact: "),o("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),f(" What you get: one screenshot, three tabs "),t[19]||(t[19]=o("section",{class:"paper-section-head paper-wrap",id:"about"},[o("div",null,[o("div",{class:"paper-eyebrow"},"What you get"),o("h2",null,[b("Anonymize, review, "),o("em",null,"manage.")])]),o("p",null," Terms are redacted in text files. Enabled images and PDFs are served unchanged, so review them for identifying content before sharing. Monitor your mirror, update it, or remove it when the review is over. ")],-1)),o("section",LP,[o("div",FP,[(l(!0),d(W,null,oe(e.features,(n,r)=>(l(),d("div",{class:A(["paper-feature",{"is-on":e.feature===n?.key}]),key:n?.key},[o("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:s=>e.selectFeature(n.key),onKeydown:s=>e.featureKeydown(s,r),id:"feature-tab-"+n?.key,"aria-controls":"feature-panel-"+n?.key,"aria-selected":e.feature===n?.key,tabindex:e.feature===n?.key?0:-1},[o("span",HP,c(n?.num)+" \xB7 "+c(n?.eyebrow),1),o("span",BP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)])],40,zP),o("div",jP,[o("span",GP,[b(c(n?.title)+" ",1),o("em",null,c(n?.accent),1)]),o("p",null,c(n?.text),1),o("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(n)),target:e.featureTarget(n)},c(n?.cta)+" \u2192",9,WP)])],2))),128))]),o("div",KP,[(l(!0),d(W,null,oe(e.features,(n,r)=>R((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:n?.key,id:"feature-panel-"+n?.key,"aria-labelledby":"feature-tab-"+n?.key},[o("div",JP,[o("div",QP,[t[8]||(t[8]=o("span",{class:"dots"},[o("i"),o("i"),o("i")],-1)),o("span",XP,c(n?.url),1)]),o("div",{class:A("paper-crop paper-crop-"+n?.key)},[o("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(n?.img),alt:n?.alt},null,8,ZP)],2)])],8,YP)),[[j,e.feature===n?.key]])),128))])]),f(" FAQ teaser "),t[20]||(t[20]=de('
The GitHub App has read-only access to gists and the repositories you choose. Legacy OAuth uses broader permissions. Anonymous GitHub never writes to your repositories.
Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Text files are anonymized; enabled images and PDFs are served unchanged.
You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.
',1)),o("footer",xP,[o("div",e5,[t[12]||(t[12]=o("div",{class:"paper-footer-brand"},[o("div",{class:"paper-footer-mark"},[b("Anonymous "),o("em",null,"GitHub")]),o("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),o("div",t5,[t[9]||(t[9]=o("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=o("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",o5,"My work")):f("v-if",!0),e.user?(l(),d("a",n5,"Conferences")):f("v-if",!0),t[11]||(t[11]=o("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=de('',2))]),t[15]||(t[15]=o("div",{class:"paper-footer-rule"},null,-1)),o("div",s5,[o("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[14]||(t[14]=o("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var r5={class:"paper-empty"},i5={class:"paper-empty-inner"},a5={key:0,class:"paper-eyebrow"},l5={key:1,class:"paper-eyebrow"},d5={key:2,class:"paper-empty-title"},u5=["textContent"];function Wl(e,t){return l(),d("div",r5,[o("div",i5,[e.error?f("v-if",!0):(l(),d("div",a5,"Working")),e.error?(l(),d("div",l5,"Error")):f("v-if",!0),e.error?f("v-if",!0):(l(),d("h1",d5,[...t[0]||(t[0]=[b(" Loading",-1),o("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,u5)):f("v-if",!0)])])}var c5={class:"container paper-page paper-settings"},p5={class:"paper-crumbs"},f5={class:"here"},m5={class:"paper-page-title"},h5={class:"paper-settings-body"},v5={class:"paper-settings-toc"},y5={href:"#conf-billing"},g5={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},b5={id:"conf-basics",class:"paper-settings-section"},w5={class:"form-group"},k5={class:"invalid-feedback"},E5={class:"invalid-feedback"},C5={class:"form-group"},_5={class:"invalid-feedback"},S5={class:"form-group"},N5={class:"invalid-feedback"},R5={class:"invalid-feedback"},D5={id:"conf-window",class:"paper-settings-section"},T5={class:"form-grid-2"},A5={class:"form-group"},O5={class:"invalid-feedback"},I5={class:"invalid-feedback"},P5={class:"form-group"},V5={class:"invalid-feedback"},q5={class:"invalid-feedback"},M5={id:"conf-rendering",class:"paper-settings-section"},U5={class:"form-check"},$5={class:"form-check-input",type:"checkbox",id:"link",name:"link"},L5={class:"form-check"},F5={class:"form-check-input",type:"checkbox",id:"image",name:"image"},z5={class:"form-check"},H5={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},B5={class:"form-check"},j5={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},G5={id:"conf-features",class:"paper-settings-section"},W5={class:"form-check"},K5={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Y5={class:"form-check"},J5={class:"form-check-input",type:"checkbox",id:"page",name:"page"},Q5={id:"conf-plan",class:"paper-settings-section"},X5={class:"paper-plan-grid"},Z5=["value"],x5=["textContent"],eV={class:"paper-plan-price"},tV=["innerHTML"],oV={key:0,id:"conf-billing",class:"paper-settings-section"},nV={class:"form-group"},sV={class:"form-group"},rV={class:"form-group"},iV={class:"form-group"},aV={class:"form-grid-3"},lV={class:"form-group"},dV={class:"form-group"},uV={class:"form-group"},cV={class:"form-group"},pV={class:"paper-settings-footer"},fV=["textContent"],mV=["textContent"],hV=["disabled"];function Kl(e,t){let n=ve("paper-scrollspy"),r=ve("field"),s=ve("form");return l(),d("div",c5,[o("div",p5,[t[1]||(t[1]=o("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=b(" \xA0/\xA0 ",-1)),t[3]||(t[3]=o("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=b(" \xA0/\xA0 ",-1)),o("span",f5,c(e.editionMode?"Edit":"New"),1)]),o("h1",m5,[b(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=o("em",null,"conference",-1))]),t[43]||(t[43]=o("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),o("div",h5,[R((l(),d("aside",v5,[t[7]||(t[7]=o("div",{class:"paper-settings-toc-head"},"On this page",-1)),o("nav",null,[t[6]||(t[6]=de('BasicsReview windowRendering defaultsFeaturesPlan',5)),R(o("a",y5,"Billing",512),[[j,e.plan?.pricePerRepo>0]])])])),[[n]]),R((l(),d("form",g5,[o("section",b5,[t[12]||(t[12]=o("div",{class:"paper-section-eyebrow"},"Basics",-1)),o("div",w5,[t[8]||(t[8]=o("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),R(o("div",k5," The name of the conference is invalid. ",512),[[j,e.conference?.name?.errors?.invalid]]),R(o("div",E5," The name of the conference is required. ",512),[[j,e.conference?.name?.errors?.required]])]),o("div",C5,[t[9]||(t[9]=o("label",{class:"paper-field-label",for:"url"},"Website",-1)),R(o("input",{type:"url",class:A(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),R(o("div",_5," The url of the conference is invalid. ",512),[[j,e.conference?.url?.errors?.url]])]),o("div",S5,[t[10]||(t[10]=o("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=o("small",{class:"form-text text-muted"},[b("3\u201310 characters, letters, numbers, "),o("code",null,"-"),b(" and "),o("code",null,"_"),b(". Authors reference this when they anonymize.")],-1)),R(o("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[j,e.conference?.conferenceID?.errors?.used]]),R(o("div",N5," The conference ID is required. ",512),[[j,e.conference?.conferenceID?.errors?.required]]),R(o("div",R5," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[j,e.conference?.conferenceID?.errors?.pattern]])])]),o("section",D5,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Review window",-1)),o("div",T5,[o("div",A5,[t[13]||(t[13]=o("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),R(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=o("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),R(o("div",O5," Start date is required. ",512),[[j,e.conference?.startDate?.errors?.required]]),R(o("div",I5," Start date must be before end date. ",512),[[j,e.conference?.startDate?.errors?.invalid]])]),o("div",P5,[t[15]||(t[15]=o("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),R(o("input",{type:"date",class:A(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=o("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),R(o("div",V5," End date is required. ",512),[[j,e.conference?.endDate?.errors?.required]]),R(o("div",q5," End date is invalid. ",512),[[j,e.conference?.endDate?.errors?.invalid]])])])]),o("section",M5,[t[26]||(t[26]=o("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),o("div",U5,[R(o("input",$5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=o("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),o("div",L5,[R(o("input",F5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=o("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),o("div",z5,[R(o("input",H5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=o("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),o("div",B5,[R(o("input",j5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),o("section",G5,[t[31]||(t[31]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",W5,[R(o("input",K5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=o("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),o("div",Y5,[R(o("input",J5,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),o("section",Q5,[t[33]||(t[33]=o("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[34]||(t[34]=o("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),o("div",X5,[(l(!0),d(W,null,oe(e.plans,(i,a)=>(l(),d("label",{class:A(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[R(o("input",{type:"radio",name:"planPicker",value:i?.id},null,8,Z5),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),o("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,x5),o("div",eV,[b(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[32]||(t[32]=o("span",{class:"paper-plan-per"},"/ repo / month",-1))]),o("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,tV)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",oV,[t[42]||(t[42]=o("div",{class:"paper-section-eyebrow"},"Billing",-1)),o("div",nV,[t[35]||(t[35]=o("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),o("div",sV,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"email"},"Email",-1)),R(o("input",{type:"email",class:A(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),o("div",rV,[t[37]||(t[37]=o("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),o("div",iV,[R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),o("div",aV,[o("div",lV,[t[38]||(t[38]=o("label",{class:"paper-field-label",for:"city"},"City",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),o("div",dV,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"country"},"Country",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),o("div",uV,[t[40]||(t[40]=o("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),o("div",cV,[t[41]||(t[41]=o("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),R(o("input",{type:"text",class:A(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),o("div",pV,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,fV)):f("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,mV)):f("v-if",!0),o("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ie(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,hV)])])),[[s,e.viewState]])])])}var vV={key:0},yV=["innerHTML"],gV={key:3},bV=["src"],wV=["src"],kV={key:7},EV={controls:"controls"},CV=["src"],_V={key:8},SV={key:9,class:"file-error container d-flex h-100"},NV={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},RV={class:"paper-error-msg"},DV={key:10,class:"file-error container d-flex h-100"},TV={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},AV={id:"viewer-error-title",class:"paper-empty-title"},OV={class:"paper-error-actions"},IV={key:0,href:"/",class:"btn btn-sm"},PV={key:1,href:"/faq",class:"btn btn-sm"},VV={key:2,class:"btn btn-outline-ink",href:"/dashboard"},qV={key:11,class:"file-error container d-flex h-100"},MV={key:12,class:"file-error container d-flex h-100"},UV={key:13,class:"file-error container d-flex h-100"},$V={key:14,class:"file-error container d-flex h-100"},LV={class:"paper-empty-title m-auto"},FV=["href"];function Yl(e,t){let n=Ge("html-doc"),r=Ge("pdfviewer"),s=Ge("notebook"),i=ve("code-editor");return l(),d(W,null,[e.type=="text"?R((l(),d("div",vV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.highlightRedactions(e.sanitize(e.content))},null,8,yV)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),Lt(n,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?R((l(),d("div",gV,null,512)),[[i,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,bV)):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,wV)):f("v-if",!0),e.type=="pdf"?(l(),Lt(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="audio"?(l(),d("div",kV,[o("audio",EV,[o("source",{src:e.safeUrl(e.url)},null,8,CV)])])):f("v-if",!0),e.type=="IPython"?(l(),d("div",_V,[Ce(s,{file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="rate_limited"?(l(),d("div",SV,[o("div",NV,[t[3]||(t[3]=de('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",RV,[t[1]||(t[1]=b("This repository will be available in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[2]||(t[2]=b(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"?(l(),d("div",DV,[o("section",TV,[o("h1",AV,c(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),o("p",null,c(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(l(),d(W,{key:0},[o("p",null,c(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),o("p",null,c(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),o("div",OV,[e.isSourceAccessError()?f("v-if",!0):(l(),d("a",IV,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(l(),d("a",PV,"Read the FAQ")),o("button",{type:"button",class:"btn btn-primary",onClick:t[0]||(t[0]=a=>e.retryContent())},c(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(l(),d("a",VV,c(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",qV,[...t[4]||(t[4]=[o("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):f("v-if",!0),e.type=="empty"?(l(),d("div",MV,[...t[5]||(t[5]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"repository"),b(".")],-1)])])):f("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",UV,[...t[6]||(t[6]=[o("h1",{class:"paper-empty-title m-auto"},[b("Empty "),o("em",null,"file"),b(".")],-1)])])):f("v-if",!0),e.type=="binary"?(l(),d("div",$V,[o("h1",LV,[t[7]||(t[7]=b("Unsupported ",-1)),t[8]||(t[8]=o("em",null,"binary file",-1)),t[9]||(t[9]=b(". You can ",-1)),o("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,FV),t[10]||(t[10]=b(".",-1))])])):f("v-if",!0)],64)}var zV={class:"container page dashboard-page paper-page"},HV={class:"row"},BV={class:"w-100"},jV={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},GV={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},WV={class:"flex-grow-1"},KV={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},YV={class:"d-flex flex-wrap",style:{gap:"6px"}},JV={class:"dropdown"},QV={class:"dropdown-menu","aria-labelledby":"dropdownSort"},XV={class:"form-check dropdown-item"},ZV={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},xV={class:"form-check dropdown-item"},eq={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},tq={class:"form-check dropdown-item"},oq={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},nq={class:"form-check dropdown-item"},sq={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},rq={class:"form-check dropdown-item"},iq={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},aq={class:"dropdown"},lq={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},dq={class:"form-check dropdown-item"},uq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},cq={class:"form-check dropdown-item"},pq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},fq={class:"form-check dropdown-item"},mq={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},hq={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},vq={class:"filter-chip"},yq=["onClick"],gq={class:"repo-list w-100"},bq={class:"repo-list-item-content"},wq={class:"repo-list-item-main"},kq={class:"repo-list-item-header"},Eq=["textContent","href"],Cq=["textContent"],_q=["textContent"],Sq={class:"repo-source"},Nq=["href"],Rq={class:"repo-date"},Dq={class:"repo-meta"},Tq={key:0,title:"Conference"},Aq=["title"],Oq=["title"],Iq=["title"],Pq={key:1},Vq={class:"repo-list-item-actions"},qq={class:"dropdown"},Mq={class:"dropdown-menu dropdown-menu-right"},Uq=["href"],$q=["onClick"],Lq=["onClick"],Fq=["onClick"],zq=["href"],Hq={key:0,class:"repo-list-empty"};function Jl(e,t){let n=ve("field"),r=ve("form");return l(),d("div",zV,[o("div",HV,[o("div",BV,[t[12]||(t[12]=de('
My work \xA0/\xA0 Pull requests
Anonymized pull requests
Track PR mirrors you\u2019ve created and their reviewer traffic.
',2)])])),[[r]]),o("div",Tq,[f(" Account usage shares the dashboard component. "),o("section",Aq,[t[10]||(t[10]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[11]||(t[11]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):f("v-if",!0),e.quota?f("v-if",!0):(l(),d("div",Oq,[(l(),d(K,null,oe([1,2,3],(a,u)=>o("div",Iq,[...t[9]||(t[9]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),N((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=ie(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",Pq,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[18]||(t[18]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",Vq,[t[16]||(t[16]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),N(o("textarea",qq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",Mq,[t[12]||(t[12]=w(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[13]||(t[13]=w(", or use ",-1)),t[14]||(t[14]=o("code",null,"term=>replacement",-1)),t[15]||(t[15]=w(" to pick your own. ",-1))]),N(o("div",Uq," Terms are in an invalid format ",512),[[j,e.defaultsForm?.terms?.errors?.format]])])]),o("section",$q,[t[27]||(t[27]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[28]||(t[28]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",Lq,[o("div",Fq,[N(o("input",zq,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",Hq,[N(o("input",Bq,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",jq,[N(o("input",Gq,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[24]||(t[24]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",Wq,[N(o("input",Kq,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",Yq,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",Jq,[o("div",Qq,[N(o("input",Xq,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",Zq,[N(o("input",xq,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[32]||(t[32]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",eM,[N(o("input",tM,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[33]||(t[33]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[34]||(t[34]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",oM,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),N((l(),d("select",nM,[...t[35]||(t[35]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",sM," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",rM,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",iM,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),N((l(),d("select",aM,[...t[38]||(t[38]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[40]||(t[40]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",lM,[t[42]||(t[42]=w("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",dM,[w(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),o("div",uM,[e.error?(l(),d("div",cM,[t[43]||(t[43]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[44]||(t[44]=w()),o("span",{textContent:c(e.error)},null,8,pM)])):f("v-if",!0),o("div",fM,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",hM,[...t[45]||(t[45]=[o("use",{href:"#ui-icon-check"},null,-1)])])):f("v-if",!0),w(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,mM),t[46]||(t[46]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",vM,[t[56]||(t[56]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",yM,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,gM)):f("v-if",!0),o("div",bM,[o("div",wM,"@"+c(e.user?.username),1),t[47]||(t[47]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[48]||(t[48]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),o("form",{class:"paper-account-email",onSubmit:t[6]||(t[6]=ie(a=>e.saveAccountEmail(),["prevent"]))},[t[49]||(t[49]=o("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[50]||(t[50]=o("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),N(o("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[3]||(t[3]=a=>e.accountEmail=a),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[4]||(t[4]=a=>e.emailSaved=!1)},null,40,kM),[[zt,e.accountEmail]]),e.emailLoading?(l(),d("p",EM,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(l(),d("p",CM,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[5]||(t[5]=a=>e.loadAccountEmail())},"Try again")):f("v-if",!0),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},c(e.emailSaving?"Saving\u2026":"Save email address"),9,_M),e.emailSaved?(l(),d("p",SM,"Email address saved.")):f("v-if",!0)],32),t[57]||(t[57]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[w("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",NM,[t[54]||(t[54]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[55]||(t[55]=o("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",DM,[t[51]||(t[51]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[52]||(t[52]=w()),o("span",{textContent:c(e.deleteError)},null,8,RM)])):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[7]||(t[7]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[53]||(t[53]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),w(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,TM)])])])])])}var AM={class:"pr-page"},OM={class:"container paper-page pr-page-inner"},IM={class:"pr-header"},PM={class:"pr-title-row"},VM={class:"paper-page-title pr-title"},qM=["textContent"],MM={key:1,class:"text-muted"},UM=["href"],$M={class:"pr-header-meta"},LM={key:0,class:"pr-meta-item"},FM=["textContent"],zM={key:1,class:"pr-meta-item"},HM=["textContent"],BM={key:2,class:"pr-meta-item"},jM=["textContent"],GM={key:0,class:"pr-body-card"},WM={key:1,class:"paper-tabs",role:"tablist"},KM=["aria-selected","tabindex"],YM=["aria-selected","tabindex"],JM=["textContent"],QM={class:"paper-tab-content"},XM={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},ZM=["innerHTML"],xM={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},e8={class:"pr-comments"},t8={class:"pr-comment"},o8={class:"pr-comment-head"},n8={key:0,class:"pr-comment-author"},s8=["textContent"],r8=["textContent"],i8={key:0,class:"pr-comment-body"},a8={key:0,class:"paper-table-empty"};function Xl(e,t){let n=Ge("markdown");return l(),d("div",AM,[o("div",OM,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),w(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",IM,[o("div",PM,[o("h1",VM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,qM)):f("v-if",!0),e.details?.title?f("v-if",!0):(l(),d("span",MM,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,UM)):f("v-if",!0)]),o("div",$M,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),w(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",LM,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=w()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,FM)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",zM,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=w()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,HM)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",BM,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=w(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,jM)])):f("v-if",!0)])]),e.details?.body?(l(),d("section",GM,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(n,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",WM,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),w(" Diff ",-1)])],42,KM)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,JM)],42,YM)):f("v-if",!0)])):f("v-if",!0),o("div",QM,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",XM,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,ZM)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",xM,[o("ul",e8,[(l(!0),d(K,null,oe(e.details?.comments,(r,s)=>(l(),d("li",t8,[o("div",o8,[r?.author?(l(),d("span",n8,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=w(" @",-1)),o("span",{textContent:c(r?.author)},null,8,s8)])):f("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,r8)):f("v-if",!0)]),r?.body?(l(),d("div",i8,[Ce(n,{content:r?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",a8,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var l8={class:"container paper-page status-page"},d8={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},u8={class:"paper-page-title"},c8=["textContent"],p8={key:1},f8={class:"paper-settings-section"},m8=["textContent"],h8={key:0,class:"paper-section-copy"},v8={key:1,class:"paper-ratelimit-card",role:"status"},y8={class:"paper-error-msg"},g8=["aria-valuenow"],b8={class:"paper-progress-label"},w8=["textContent"],k8={key:0},E8=["textContent"],C8={class:"paper-progress-pct"},_8={key:3,class:"paper-error-card",role:"alert"},S8={key:0,class:"paper-error-msg"},N8={key:1,class:"paper-error-msg"},D8={class:"paper-error-actions"},R8=["href"],T8={key:4,class:"share-link"},A8={class:"share-link-row"},O8=["value"],I8={class:"ui-icon","aria-hidden":"true"},P8=["href"],V8=["textContent"],q8={class:"share-link-actions"},M8=["href"],U8=["href"];function Zl(e,t){return l(),d("div",l8,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[w("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",d8,[o("div",null,[o("h1",u8,[t[2]||(t[2]=w("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?f("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,c8)),e.rateLimitResetAt?(l(),d("span",p8,"Rate limited")):f("v-if",!0)],2)]),o("section",f8,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,m8),e.repo?.status!="ready"?(l(),d("p",h8,[...t[4]||(t[4]=[w(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),w(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(l(),d("div",v8,[t[7]||(t[7]=ue('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",y8,[t[5]||(t[5]=w("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=w(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:Ie("width: "+e.progress+"%;")},null,4),o("div",b8,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,w8),e.repo?.statusMessage?(l(),d("span",k8,[t[8]||(t[8]=w("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,E8)])):f("v-if",!0),o("span",C8,c(e.progress||0)+"%",1)])],10,g8)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",_8,[t[11]||(t[11]=ue('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",S8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(l(),d("p",N8,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",D8,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),w(" Edit anonymization",-1)])],8,R8),t[10]||(t[10]=ue(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(l(),d("div",T8,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",A8,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=n=>n.target.select())},null,40,O8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",I8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,P8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,V8)])]),o("div",q8,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),w(" Open repository ",-1)])],8,M8),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),w(" Open GitHub page ",-1)])],8,U8)):f("v-if",!0)])])):f("v-if",!0)]),t[17]||(t[17]=ue('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.
',2)])])),[[r]]),o("div",Wq,[f(" Account usage shares the dashboard component. "),o("section",Kq,[t[10]||(t[10]=o("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[11]||(t[11]=o("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),Lt(n,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):f("v-if",!0),e.quota?f("v-if",!0):(l(),d("div",Yq,[(l(),d(W,null,oe([1,2,3],(a,u)=>o("div",Jq,[...t[9]||(t[9]=[o("div",{class:"quota-header"},[o("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),o("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),o("div",{class:"quota-track"},null,-1)])])),64))]))]),R((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[2]||(t[2]=ie(a=>e.submitForm(a,()=>{e.saveDefault(a)}),["prevent"]))},[o("section",Qq,[t[17]||(t[17]=o("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[18]||(t[18]=o("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),o("div",Xq,[t[16]||(t[16]=o("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),R(o("textarea",Zq,null,512),[[s,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),o("small",xq,[t[12]||(t[12]=b(" One term per line (regex allowed). Each match is replaced by ",-1)),o("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[13]||(t[13]=b(", or use ",-1)),t[14]||(t[14]=o("code",null,"term=>replacement",-1)),t[15]||(t[15]=b(" to pick your own. ",-1))]),R(o("div",eM," Terms are in an invalid format ",512),[[j,e.defaultsForm?.terms?.errors?.format]])])]),o("section",tM,[t[27]||(t[27]=o("div",{class:"paper-section-eyebrow"},"Display",-1)),t[28]||(t[28]=o("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),o("div",oM,[o("div",nM,[R(o("input",sM,null,512),[[s,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=o("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[20]||(t[20]=o("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),o("div",rM,[R(o("input",iM,null,512),[[s,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[21]||(t[21]=o("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[22]||(t[22]=o("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),o("div",aM,[R(o("input",lM,null,512),[[s,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=o("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[24]||(t[24]=o("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),o("div",dM,[R(o("input",uM,null,512),[[s,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=o("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[26]||(t[26]=o("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),o("section",cM,[t[37]||(t[37]=o("div",{class:"paper-section-eyebrow"},"Features",-1)),o("div",pM,[o("div",fM,[R(o("input",mM,null,512),[[s,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=o("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=o("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),o("div",hM,[R(o("input",vM,null,512),[[s,{state:e.viewState,set:a=>{e.options.loc=a},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=o("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[32]||(t[32]=o("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),o("div",yM,[R(o("input",gM,null,512),[[s,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[33]||(t[33]=o("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[34]||(t[34]=o("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),o("div",bM,[t[36]||(t[36]=o("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),R((l(),d("select",wM,[...t[35]||(t[35]=[o("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),o("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.mode=a},value:e.options?.mode,form:"defaultsForm",options:{}}]]),o("small",kM," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),o("section",EM,[t[41]||(t[41]=o("div",{class:"paper-section-eyebrow"},"Expiration",-1)),o("div",CM,[t[39]||(t[39]=o("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),R((l(),d("select",_M,[...t[38]||(t[38]=[o("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),o("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[s,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[40]||(t[40]=o("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),e.draftRestored?(l(),d("div",SM,[t[42]||(t[42]=b("Your unsaved draft was restored. ",-1)),o("button",{type:"button",class:"draft-discard",onClick:t[0]||(t[0]=a=>e.discardDraft())},"Discard draft")])):e.unsavedChanges?(l(),d("div",NM,[b(c(e.draftSaved?"Draft saved in this tab for 30 minutes.":"Unsaved changes. Keep this tab open until you save.")+" ",1),o("button",{type:"button",class:"draft-discard",onClick:t[1]||(t[1]=a=>e.discardDraft())},c(e.isUpdate?"Restore saved settings":"Discard changes"),1)])):f("v-if",!0),o("div",RM,[e.error?(l(),d("div",DM,[t[43]||(t[43]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[44]||(t[44]=b()),o("span",{textContent:c(e.error)},null,8,TM)])):f("v-if",!0),o("div",AM,[o("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("svg",IM,[...t[45]||(t[45]=[o("use",{href:"#ui-icon-check"},null,-1)])])):f("v-if",!0),b(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,OM),t[46]||(t[46]=o("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[i,e.viewState]]),o("section",PM,[t[56]||(t[56]=o("div",{class:"paper-section-eyebrow"},"Account",-1)),o("div",VM,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,qM)):f("v-if",!0),o("div",MM,[o("div",UM,"@"+c(e.user?.username),1),t[47]||(t[47]=o("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[48]||(t[48]=o("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),o("form",{class:"paper-account-email",onSubmit:t[6]||(t[6]=ie(a=>e.saveAccountEmail(),["prevent"]))},[t[49]||(t[49]=o("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[50]||(t[50]=o("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),R(o("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[3]||(t[3]=a=>e.accountEmail=a),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[4]||(t[4]=a=>e.emailSaved=!1)},null,40,$M),[[zt,e.accountEmail]]),e.emailLoading?(l(),d("p",LM,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(l(),d("p",FM,c(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(l(),d("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[5]||(t[5]=a=>e.loadAccountEmail())},"Try again")):f("v-if",!0),o("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},c(e.emailSaving?"Saving\u2026":"Save email address"),9,zM),e.emailSaved?(l(),d("p",HM,"Email address saved.")):f("v-if",!0)],32),t[57]||(t[57]=o("a",{class:"paper-settings-connection-link",href:"/connections"},[o("i",{class:"fab fa-github","aria-hidden":"true"}),o("span",null,[b("GitHub connections"),o("small",null,"Manage repository access and legacy OAuth.")]),o("span",{"aria-hidden":"true"},"\u2192")],-1)),o("div",BM,[t[54]||(t[54]=o("div",{class:"paper-danger-head"},"Delete account",-1)),t[55]||(t[55]=o("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",jM,[t[51]||(t[51]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-info"})],-1)),t[52]||(t[52]=b()),o("span",{textContent:c(e.deleteError)},null,8,GM)])):f("v-if",!0),o("button",{type:"button",class:"btn btn-outline-danger",onClick:t[7]||(t[7]=a=>e.deleteAccount()),disabled:e.deletingAccount},[t[53]||(t[53]=o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-trash"})],-1)),b(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,WM)])])])])])}var KM={class:"pr-page"},YM={class:"container paper-page pr-page-inner"},JM={class:"pr-header"},QM={class:"pr-title-row"},XM={class:"paper-page-title pr-title"},ZM=["textContent"],xM={key:1,class:"text-muted"},e8=["href"],t8={class:"pr-header-meta"},o8={key:0,class:"pr-meta-item"},n8=["textContent"],s8={key:1,class:"pr-meta-item"},r8=["textContent"],i8={key:2,class:"pr-meta-item"},a8=["textContent"],l8={key:0,class:"pr-body-card"},d8={key:1,class:"paper-tabs",role:"tablist"},u8=["aria-selected","tabindex"],c8=["aria-selected","tabindex"],p8=["textContent"],f8={class:"paper-tab-content"},m8={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},h8=["innerHTML"],v8={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},y8={class:"pr-comments"},g8={class:"pr-comment"},b8={class:"pr-comment-head"},w8={key:0,class:"pr-comment-author"},k8=["textContent"],E8=["textContent"],C8={key:0,class:"pr-comment-body"},_8={key:0,class:"paper-table-empty"};function Xl(e,t){let n=Ge("markdown");return l(),d("div",KM,[o("div",YM,[t[17]||(t[17]=o("div",{class:"paper-crumbs"},[o("a",{href:"/dashboard"},"Reviewer"),b(" \xA0/\xA0 "),o("span",{class:"here"},"Pull request")],-1)),o("header",JM,[o("div",QM,[o("h1",XM,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,ZM)):f("v-if",!0),e.details?.title?f("v-if",!0):(l(),d("span",xM,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),o("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,e8)):f("v-if",!0)]),o("div",t8,[o("span",{class:A(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[o("span",{class:A(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),b(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",o8,[t[5]||(t[5]=o("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=b()),o("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,n8)])):f("v-if",!0),e.details?.updatedDate?(l(),d("span",s8,[t[7]||(t[7]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=b()),o("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,r8)])):f("v-if",!0),e.details?.anonymizeDate?(l(),d("span",i8,[t[9]||(t[9]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=b(" Anonymized ",-1)),o("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,a8)])):f("v-if",!0)])]),e.details?.body?(l(),d("section",l8,[t[11]||(t[11]=o("div",{class:"paper-section-eyebrow"},"Description",-1)),Ce(n,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",d8,[e.details?.diff?(l(),d("button",{key:0,class:A(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=r=>e.previewTabKeydown(r)),onClick:t[1]||(t[1]=r=>e.tabState.active="diff")},[...t[12]||(t[12]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-code"})],-1),b(" Diff ",-1)])],42,u8)):f("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:A(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=r=>e.previewTabKeydown(r)),onClick:t[3]||(t[3]=r=>e.tabState.active="comments")},[t[13]||(t[13]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1)),o("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,p8)],42,c8)):f("v-if",!0)])):f("v-if",!0),o("div",f8,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",m8,[o("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,h8)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",v8,[o("ul",y8,[(l(!0),d(W,null,oe(e.details?.comments,(r,s)=>(l(),d("li",g8,[o("div",b8,[r?.author?(l(),d("span",w8,[t[14]||(t[14]=o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=b(" @",-1)),o("span",{textContent:c(r?.author)},null,8,k8)])):f("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,E8)):f("v-if",!0)]),r?.body?(l(),d("div",C8,[Ce(n,{content:r?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(l(),d("li",_8,[...t[16]||(t[16]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-comment"})],-1),o("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var S8={class:"container paper-page status-page"},N8={class:"d-flex align-items-center justify-content-between flex-wrap",style:{gap:"12px"}},R8={class:"paper-page-title"},D8=["textContent"],T8={key:1},A8={class:"paper-settings-section"},O8=["textContent"],I8={key:0,class:"paper-section-copy"},P8={key:1,class:"paper-ratelimit-card",role:"status"},V8={class:"paper-error-msg"},q8=["aria-valuenow"],M8={class:"paper-progress-label"},U8=["textContent"],$8={key:0},L8=["textContent"],F8={class:"paper-progress-pct"},z8={key:3,class:"paper-error-card",role:"alert"},H8={key:0,class:"paper-error-msg"},B8={key:1,class:"paper-error-msg"},j8={class:"paper-error-actions"},G8=["href"],W8={key:4,class:"share-link"},K8={class:"share-link-row"},Y8=["value"],J8={class:"ui-icon","aria-hidden":"true"},Q8=["href"],X8=["textContent"],Z8={class:"share-link-actions"},x8=["href"],e6=["href"];function Zl(e,t){return l(),d("div",S8,[t[16]||(t[16]=o("div",{class:"paper-crumbs"},[b("Anonymization \xA0/\xA0 "),o("span",{class:"here"},"Status")],-1)),o("div",N8,[o("div",null,[o("h1",R8,[t[2]||(t[2]=b("Status of ",-1)),o("em",null,c(e.repoId),1)]),t[3]||(t[3]=o("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),o("span",{class:A(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[o("span",{class:A(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?f("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,D8)),e.rateLimitResetAt?(l(),d("span",T8,"Rate limited")):f("v-if",!0)],2)]),o("section",A8,[o("div",{class:"paper-section-eyebrow",textContent:c(e.repo?.status=="ready"?"Your anonymous link":"Progress")},null,8,O8),e.repo?.status!="ready"?(l(),d("p",I8,[...t[4]||(t[4]=[b(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),o("a",{href:"/faq"},"FAQ",-1),b(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(l(),d("div",P8,[t[7]||(t[7]=de('
Temporarily paused
GitHub API rate limit reached
',1)),o("p",V8,[t[5]||(t[5]=b("Anonymization will resume automatically in ",-1)),o("strong",null,c(e.rateLimitCountdown),1),t[6]||(t[6]=b(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!="error"&&e.repo?.status!="ready"&&!e.rateLimitResetAt?(l(),d("div",{key:2,class:A(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[o("div",{class:"paper-progress-bar",style:Ie("width: "+e.progress+"%;")},null,4),o("div",M8,[o("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,U8),e.repo?.statusMessage?(l(),d("span",$8,[t[8]||(t[8]=b("\xA0\xB7\xA0",-1)),o("span",{textContent:c(e.repo?.statusMessage)},null,8,L8)])):f("v-if",!0),o("span",F8,c(e.progress||0)+"%",1)])],10,q8)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",z8,[t[11]||(t[11]=de('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(l(),d("p",H8,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(l(),d("p",B8,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[12]||(t[12]=o("ul",{class:"paper-error-hints"},[o("li",null,"Make sure the source URL points to a repository or pull request you can access."),o("li",null,"Check that the chosen branch and commit still exist on GitHub."),o("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),o("div",j8,[o("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[9]||(t[9]=[o("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[o("use",{href:"#ui-icon-edit"})],-1),b(" Edit anonymization",-1)])],8,G8),t[10]||(t[10]=de(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(l(),d("div",W8,[t[15]||(t[15]=o("p",{class:"paper-section-copy"},"Reviewers can browse the repository at this address without seeing who you are.",-1)),o("div",K8,[o("input",{id:"share-url",class:"form-control share-link-input",readonly:"","aria-label":"Anonymous link",value:e.shareUrl,onFocus:t[0]||(t[0]=n=>n.target.select())},null,40,Y8),o("button",{type:"button",class:"btn btn-ink",onClick:t[1]||(t[1]=n=>e.copyShareUrl())},[(l(),d("svg",J8,[o("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,Q8)])),o("span",{"aria-live":"polite",textContent:c(e.copied?"Copied":"Copy link")},null,8,X8)])]),o("div",Z8,[o("a",{class:"btn",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[13]||(t[13]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#project-icon-eye"})],-1),b(" Open repository ",-1)])],8,x8),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[14]||(t[14]=[o("svg",{class:"ui-icon","aria-hidden":"true"},[o("use",{href:"#ui-icon-globe"})],-1),b(" Open GitHub page ",-1)])],8,e6)):f("v-if",!0)])])):f("v-if",!0)]),t[17]||(t[17]=de('
Support Anonymous GitHub
A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.