diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 10847f2..416d049 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,8 +1,8 @@ { "core.min.js": "core.d23af1c652.min.js", - "vendor.min.js": "vendor.a3d1333818.min.js", + "vendor.min.js": "vendor.44de84a04c.min.js", "mermaid.min.js": "mermaid.a7356d5ed1.min.js", - "all.min.css": "all.cd80499a66.min.css", + "all.min.css": "all.22da2ca161.min.css", "markdown.min.js": "markdown.6c8dfb7b1d.min.js", "pdf.min.js": "pdf.4d9cc6ff49.min.js", "notebook.min.js": "notebook.c3144c18ae.min.js", diff --git a/public/css/all.min.css b/public/css/all.min.css index 9d11391..298a99e 100644 --- a/public/css/all.min.css +++ b/public/css/all.min.css @@ -10,4 +10,4 @@ @container explorer-file (max-width: 700px) { .reviewer-preview .file-card-head .file-card-meta, .reviewer-preview .file-card-head .symbols { display: none !important; } } -.reviewer-preview .rp-main{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.reviewer-preview .rp-document{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;scrollbar-width:thin;position:relative}.reviewer-preview button.rp-count{background:0 0;border:0;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.reviewer-preview button.rp-count:hover{text-decoration-color:currentColor}@media (max-width:767px){.reviewer-preview .file-card-head .rp-preserved-tag{display:none}}.billing-page{--bl-subscription:#008C7E;--bl-repository:#D0652A;--bl-conference:#6250D6}.dark-mode .billing-page{--bl-subscription:#16A091;--bl-repository:#D95926;--bl-conference:#9085E9}.billing-page .bl-subscription{background:var(--bl-subscription)!important}.billing-page .bl-repository{background:var(--bl-repository)!important}.billing-page .bl-conference{background:var(--bl-conference)!important}.billing-page .bl-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:4px 0 0}.billing-page .bl-basis{margin:0;font-size:12px;color:var(--ink-muted)}.billing-page .bl-message{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:10px 14px;border:1px solid var(--border-color);border-radius:var(--radius-control,8px);font-size:13px;color:var(--color);background:var(--paper-card)}.billing-page .bl-message .ui-icon{width:16px;height:16px;flex:none;color:var(--ink-muted)}.billing-page .bl-message.ov-performance-warning{border-color:color-mix(in srgb,var(--status-progress) 45%,var(--border-color));background:color-mix(in srgb,var(--status-progress) 8%,var(--paper-card))}.billing-page .bl-message.ov-performance-warning .ui-icon{color:var(--status-progress)}.billing-page .bl-message .btn{margin-left:auto}.overview-page .bl-kpi-row{grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 16px}.overview-page .bl-kpi-row .ov-kpi-card{min-width:0;padding:16px 18px}.overview-page .bl-kpi-row .ov-kpi-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-page .bl-kpi-row .ov-kpi-sub{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.overview-page .bl-kpi-row .ov-kpi-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-page .bl-kpi-row .bl-muted-value{color:var(--ink-muted);font-size:20px;line-height:28px}.overview-page .bl-kpi-row.is-loading .ov-kpi-card{opacity:.6}.billing-page .bl-skeleton-value{display:block;width:50%;height:28px;margin:4px 0;border-radius:6px}@media (max-width:1279px){.overview-page .bl-kpi-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (max-width:767px){.overview-page .bl-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.billing-page .bl-health{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;padding:10px 16px;margin:0 0 16px;border:1px solid var(--border-color);border-radius:var(--radius-control,8px);background:var(--paper-card);font-size:13px;font-variant-numeric:tabular-nums}.billing-page .bl-health-title{display:inline-flex;align-items:center;gap:8px;font-weight:600}.billing-page .bl-health-title .ov-svc-dot{width:8px;height:8px;margin:0;border-radius:50%}.billing-page .bl-dot-bad{background:var(--st-bad,#b42318)}.billing-page .bl-health-item .k{color:var(--ink-muted);margin-right:2px}.billing-page .bl-health-item.is-bad{color:var(--st-bad,#b42318);font-weight:600}.billing-page .bl-health-item.is-warn{color:#946519;font-weight:600}.dark-mode .billing-page .bl-health-item.is-warn{color:var(--status-progress)}.dark-mode .billing-page .bl-health-item.is-bad{color:#f08a82}.billing-page .bl-health-error{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.billing-page .bl-health-error code{font-size:12px;color:inherit;background:var(--paper-bg-alt);padding:1px 5px;border-radius:4px}.billing-page .bl-chart-card{margin-bottom:16px}.billing-page .bl-swatch{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}.billing-page .bl-bars{position:relative;gap:3px}.billing-page .bl-bars.is-dense{gap:1px}.billing-page .bl-col{min-width:0}.billing-page .bl-stack{display:flex;flex-direction:column-reverse;width:100%;gap:1px;border-radius:2px 2px 0 0;overflow:hidden}.billing-page .bl-stack>i{display:block;min-height:2px;flex-basis:0}.billing-page .bl-col:hover .bl-stack{filter:brightness(1.08)}.billing-page .bl-col.is-zero .bl-stack{height:1px!important;background:var(--border-color)}.billing-page .bl-empty{margin:8px 0 4px;padding:32px 0;text-align:center;color:var(--ink-muted)}.billing-page .bl-plans{margin-bottom:24px}.billing-page .ov-metrics-table thead th.bl-group{text-align:center;border-bottom:1px solid var(--border-color)}.billing-page .ov-metrics-table tfoot td,.billing-page .ov-metrics-table tfoot th{border-top:1px solid var(--border-color);border-bottom:0;font-weight:600;background:var(--paper-bg-alt)}.billing-page .ov-metrics-table tbody tr:last-child>*{border-bottom:0}.billing-page .bl-plan-name{font-weight:500;text-align:left}.billing-page .bl-plan-cell .bl-swatch,.billing-page .bl-plan-name .bl-swatch{margin-right:8px;vertical-align:1px}.billing-page .bl-link{padding:0;border:0;background:0 0;font:inherit;color:var(--link-color);cursor:pointer;text-align:left}.billing-page .bl-link:hover{text-decoration:underline}.billing-page .bl-idle .bl-link,.billing-page .bl-idle td{color:var(--ink-faint)}.billing-page .ov-muted{color:var(--ink-faint)}.billing-page .bl-note{margin:10px 0 0}.billing-page .bl-grants{margin:8px 0 24px;scroll-margin-top:16px}.billing-page .bl-section-head{margin:0 0 8px}.billing-page .bl-section-head h2{margin:0}.billing-page .bl-grant-scroll{margin-top:12px}.billing-page .bl-grant-table th[scope=row]{font-weight:500;text-align:left;max-width:200px;overflow:hidden;text-overflow:ellipsis}.billing-page .bl-grant-table td,.billing-page .bl-grant-table th{padding:9px 12px}.billing-page .bl-grant-table th[scope=row] a,.billing-page .bl-scope a{color:var(--link-color)}.billing-page .bl-grant-table .sortable{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:0 0;font:inherit;color:inherit;cursor:pointer}.billing-page .bl-grant-table .sortable.active{color:var(--color)}.billing-page .bl-state{display:inline-flex;align-items:center;gap:6px}.billing-page .bl-state .status-dot{margin:0}.billing-page .bl-plan-cell{white-space:nowrap}.billing-page .bl-flag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--status-progress) 14%,transparent);color:#7a5212}.dark-mode .billing-page .bl-flag{color:var(--status-progress)}.billing-page .bl-flag.is-bad{background:color-mix(in srgb,var(--st-bad,#b42318) 12%,transparent);color:#a1251b}.dark-mode .billing-page .bl-flag.is-bad{color:#f08a82}.billing-page .bl-scope a{display:inline-flex;align-items:center;gap:6px;max-width:200px;min-width:0}.billing-page .bl-scope a>span{overflow:hidden;text-overflow:ellipsis}.billing-page .bl-scope .ui-icon{width:14px;height:14px;flex:none;color:var(--ink-muted)}.billing-page .bl-page{font-family:var(--font-mono);font-size:12px;color:var(--ink-muted)}.billing-page .bl-alert{display:flex;align-items:center;gap:8px;margin:8px 0}.billing-page .bl-alert .btn{margin-left:auto}.billing-page .bl-pager{justify-content:space-between;border-bottom:none;margin-top:8px}.billing-page .paper-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}@media (max-width:767px){.billing-page .bl-health{gap:4px 14px}.billing-page .bl-health-title{flex-basis:100%}.billing-page .bl-toolbar .seg-filter{max-width:100%;overflow-x:auto}}.breadcrumb .redact-slot,.files .tree-name .redact-slot{position:relative;top:-.15em}.dark-mode .markdown-body :is(p,li,td,th,blockquote,dd) mark.redact-chip,.markdown-body :is(p,li,td,th,blockquote,dd) mark.redact-chip{vertical-align:.04em!important}.errors-page .error-source-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin:16px 0;border-bottom:1px solid var(--border-color)}.errors-page .error-health-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-left:auto;padding:4px 0 8px;max-width:560px}.errors-page .log-state{flex:1;margin:0;font-size:12px;color:var(--ink-soft)}.errors-page .error-source-switch{display:flex;gap:24px;margin:0;padding:0;border:0;background:0 0;border-radius:0}.errors-page .error-source-switch .seg-chip{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;font-size:14px;font-weight:500;background:0 0;color:var(--ink-soft)}.errors-page .error-source-switch .seg-chip.active{border-bottom-color:var(--accent);color:var(--color);background:0 0}.errors-page .log-investigation{margin:0}.errors-page .log-investigation h2,.errors-page .redis-history-title{font-size:18px;margin:0}.errors-page .volume-head{gap:12px;flex-wrap:wrap;margin-bottom:14px}.errors-page .log-filters,.errors-page .log-local-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0 10px}.errors-page .log-filters label,.errors-page .log-local-filters label{display:grid;gap:6px;margin:0;font-size:12px;font-weight:500;min-width:0}.errors-page .log-filters label{flex:1}.errors-page .log-filters .form-control,.errors-page .log-local-filters .form-control{width:100%;min-width:0}.errors-page .log-local-filters .log-search{flex:1;min-width:180px}.errors-page .log-coverage,.errors-page .log-meta{font-size:12px;color:var(--ink-muted)}.errors-page .log-coverage{margin:8px 0 14px}.errors-page .log-meta{display:block;margin-top:4px}.errors-page .log-workspace{display:flex;align-items:start;gap:20px}.errors-page .log-results{flex:1;min-width:0}.errors-page .log-table-scroll{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:var(--paper-card)}.errors-page .log-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.errors-page .log-table td,.errors-page .log-table th{padding:10px 16px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.errors-page .log-table th{background:var(--paper-bg-alt);color:var(--ink-muted);font-size:12px;font-weight:500}.errors-page .log-table th:first-child{width:32%}.errors-page .log-table th:nth-child(2){width:15%}.errors-page .log-table th:nth-child(4){width:13%}.errors-page .log-table th:nth-child(3){width:8%;text-align:right}.errors-page .log-table td.log-count{text-align:right;font:500 14px var(--font-mono);background:0 0!important;box-shadow:none}.errors-page .log-table th:last-child{width:32%}.errors-page .log-table tbody tr+tr{border-top:1px solid var(--border-color)}.errors-page .log-table tbody tr:hover{background:var(--paper-bg-alt)}.errors-page .log-table tbody tr.log-selected{background:var(--accent-soft)}.errors-page .log-event-button{display:block;width:100%;min-height:44px;border:0;background:0 0;color:var(--color);padding:0;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}.errors-page .log-event-title{display:flex;align-items:center;gap:10px}.errors-page .log-event-title .ui-icon{width:14px;height:14px;color:var(--ink-muted);flex-shrink:0}.errors-page .log-event-button:hover .ui-icon{color:var(--link-color)}.errors-page .log-event-button strong{font-size:14px;font-weight:600;line-height:1.5}.errors-page .log-event-button:hover strong,.errors-page .log-selected .log-event-button strong{color:var(--link-color)}.errors-page .log-event-button:hover strong{text-decoration:underline;text-underline-offset:3px}.errors-page .log-service{color:var(--ink-soft);font-weight:500}.errors-page .log-module{color:var(--ink-muted);font-weight:400}.errors-page .log-severity{display:inline-flex;align-items:center;gap:6px;font-weight:500}.errors-page .log-severity::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.errors-page .log-severity-error{color:var(--status-error)}.errors-page .log-severity-warn{color:var(--status-progress)}.errors-page .log-severity-info{color:var(--ink-muted)}.errors-page .log-trace-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 0;margin:0 14px 0 0;border:0;background:0 0;color:var(--link-color);font:500 12px var(--font-sans);cursor:pointer;max-width:100%;white-space:normal;text-align:left}.errors-page .log-trace-button:hover{text-decoration:underline;text-underline-offset:3px}.errors-page .log-trace-button:last-child{margin-right:0}.errors-page .log-http{display:block;margin-top:4px;font:12px var(--font-mono);color:var(--ink-muted)}.errors-page .log-short-id{font:12px var(--font-mono);color:var(--ink-soft)}.errors-page .log-detail{min-width:0;padding:8px 4px;overflow-wrap:anywhere}.errors-page .log-table .log-detail-row>td{background:var(--paper-bg-alt)}.errors-page .log-table tbody tr{scroll-margin-top:80px}.errors-page .log-origin{color:var(--ink-soft);margin:0 0 10px}.errors-page .log-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.errors-page .log-detail-row .log-detail{width:100%}.errors-page .log-detail h3,.errors-page .log-timeline h3{font-size:14px;margin:0}.errors-page .log-detail dl{margin:0;font-size:12px}.errors-page .log-detail dl>div{margin-top:12px}.errors-page .log-detail dt{font-weight:400;font-size:11px;color:var(--ink-muted)}.errors-page .log-detail dd{margin:5px 0 0;font-family:var(--font-mono);line-height:1.6}.errors-page .log-detail-heading{align-items:flex-start;justify-content:space-between}.errors-page .log-detail #log-detail-title{font-size:18px!important;line-height:1.4;font-weight:600;margin:0}.errors-page .log-detail-heading>div{min-width:0}.errors-page .log-detail-heading>button{flex-shrink:0}.errors-page .log-detail-section{border-top:1px solid var(--border-color);padding-top:14px;margin-top:18px}.errors-page .log-detail-section h4{font-size:12px!important;font-weight:600;margin:0 0 4px;color:var(--ink-soft)}.errors-page .log-detail-identifiers{grid-template-columns:1fr}.errors-page .log-detail-identifiers>div{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:12px}.errors-page .log-detail-identifiers dd{margin:0}.errors-page .log-detail-dates dd{font-family:var(--font-sans)}.errors-page .history-summary,.errors-page .log-health{margin:20px 0;font-size:12px;color:var(--ink-soft)}.errors-page summary{cursor:pointer;padding:8px 0}.errors-page .log-health summary span{margin-left:8px;color:var(--ink-muted)}.errors-page .log-health p{margin:8px 0;max-width:75ch}.errors-page .log-timeline{margin-top:20px;padding:20px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:8px;font-size:12px}.errors-page .log-events code,.errors-page .log-health li,.errors-page .log-id{overflow-wrap:anywhere}.errors-page .log-events{padding-left:20px}.errors-page .log-events li{padding:12px 0;border-bottom:1px solid var(--border-color)}.errors-page .log-events code{display:block;color:var(--ink-soft)}.errors-page .log-loading{padding:28px 16px;background:var(--paper-bg-alt);color:var(--ink-soft)}.errors-page :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.errors-page button.errors-row-main{border:0;background:0 0;color:inherit;width:100%;text-align:left;font:inherit}.errors-page button.errors-row-main:hover{background:var(--hover-bg-color)}.errors-page .errors-row-main .col-msg,.errors-page .errors-row-main .col-when{display:block}.errors-page .errors-row-main .when-abs,.errors-page .errors-row-main .when-rel{display:block}.errors-page .history-source>p{font-size:12px;color:var(--ink-soft);margin:10px 0}.errors-page .errors-actions{display:flex;flex-wrap:wrap;gap:8px}@media (max-width:1100px){.errors-page .log-workspace{flex-direction:column}.errors-page .log-detail,.errors-page .log-results{width:100%}}@media (max-width:767px){.errors-page .log-filters label{flex:1 1 40%}.errors-page .log-local-filters .log-search{flex-basis:100%}.errors-page .log-local-filters label{flex:1}.errors-page .log-table,.errors-page .log-table tbody{display:block}.errors-page .log-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.errors-page .log-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:14px}.errors-page .log-table td{display:block;padding:0;min-width:0}.errors-page .log-table td:first-child{grid-column:1;grid-row:1}.errors-page .log-table td:nth-child(4){color:var(--ink-muted)}.errors-page .log-table td:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.errors-page .log-table tbody tr.log-detail-row{display:block;padding:14px}.errors-page .log-table .log-detail-row>td{display:block}.errors-page .log-detail dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}.errors-page .log-detail .log-detail-identifiers{grid-template-columns:1fr}.errors-page .log-detail-identifiers>div{grid-template-columns:62px minmax(0,1fr)}.errors-page .log-detail-heading{gap:10px}.errors-page .log-detail #log-detail-title{font-size:16px!important}.errors-page .log-detail{padding:0}.errors-page .log-count::before{content:'×';font-size:12px;color:var(--ink-muted);margin-right:3px}.errors-page .error-source-toolbar{gap:4px}.errors-page .error-health-strip{padding:0 0 8px;margin:0;width:100%;max-width:none}.errors-page .log-state{flex:1 1 175px}.errors-page .log-table td.log-count{align-self:start;padding-top:3px}.errors-page .log-table td:nth-child(4){grid-column:2;grid-row:2;align-self:center;margin-top:0;font-size:12px;text-align:right}.errors-page .log-table td.log-count{grid-column:2;grid-row:1}.errors-page .log-table td:nth-child(2){grid-column:1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.errors-page .log-http{display:inline;margin:0}.errors-page .log-trace-button{min-height:44px;margin:0 8px 0 0}.errors-page .log-timeline{padding:14px}.errors-page .errors-toolbar>:first-child{min-width:0}.errors-page .errors-toolbar .seg-filter{flex-wrap:wrap}.errors-page .errors-row-main{gap:8px;padding-left:12px;padding-right:12px}.errors-page .history-source .errors-list-head{display:none}.errors-page .history-source .errors-row-main{grid-template-columns:minmax(0,1fr) auto!important}.errors-page .history-source .errors-row-main .col-msg{grid-column:1/-1;grid-row:1}.errors-page .history-source .errors-row-main .col-when{grid-column:1}.errors-page .history-source .errors-row-main .col-count{grid-column:2;grid-row:2}.errors-page .history-source .errors-row-main .col-status{grid-column:2}}.errors-page .log-query{margin:0 0 8px;font-size:12px;color:var(--ink-soft)}.errors-page .log-query[open]{border-bottom:1px solid var(--border-color);padding-bottom:8px}.errors-page .log-query-hint{float:right;color:var(--link-color)}.errors-page .log-investigation>.volume-head:has(.sr-only):not(:has(a)){margin:0}.errors-page .error-source-switch .seg-chip{box-shadow:none}.errors-page .log-filters>label{min-width:0!important}@media(max-width:767px){.errors-page .log-filters>label{width:auto!important;flex:1 1 40%}}.errors-page .history-source .errors-toolbar{display:grid!important;grid-template-columns:auto minmax(180px,1fr) auto;gap:10px!important;align-items:center}.errors-page .history-source .errors-toolbar>:first-child{min-width:0!important}.errors-page .history-source .errors-toolbar .seg-filter{display:flex;flex-wrap:nowrap;width:auto;gap:2px}.errors-page .history-source .errors-toolbar .seg-chip{white-space:nowrap;padding:6px 8px}.errors-page .history-source .errors-toolbar .autoref{grid-column:1/-1;justify-self:end}.errors-page .history-management{margin:20px 0;font-size:12px;color:var(--ink-soft)}.errors-page .history-management>summary{width:fit-content}.errors-page .history-management .volume-head{margin-top:12px}.errors-page .history-warning{color:var(--status-progress);font-size:12px}.errors-page .history-fields{margin:0;display:grid;gap:12px}.errors-page .history-fields>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:baseline}.errors-page .history-fields dt{margin:0;font:400 12px var(--font-sans);color:var(--ink-muted)}.errors-page .history-fields dd{margin:0;font:12px/1.6 var(--font-mono);overflow-wrap:anywhere}.errors-page .history-source .errors-row-detail{padding:16px!important}.errors-page .history-source .detail-body{gap:20px}.errors-page .history-source .detail-main pre{margin:0;padding:12px;border:1px solid var(--border-color);border-radius:4px;box-shadow:none!important;background:var(--paper-card)!important;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.errors-page .history-source .detail-tabs{margin-bottom:16px}.errors-page .log-value-reveal{min-width:0}.errors-page .log-value-reveal summary{padding:0;font:inherit;color:var(--ink-soft)}.errors-page .log-value-reveal>span{display:block;margin-top:6px;overflow-wrap:anywhere}.errors-page .log-copy-value{display:inline-block;border:0;background:0 0;color:var(--link-color);padding:4px 0;font:12px var(--font-sans);cursor:pointer}.errors-page .log-copy-value:hover{text-decoration:underline}.errors-page .log-copy-status{font-size:12px;color:var(--ink-soft)}@media(max-width:767px){.errors-page .history-source .errors-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.errors-page .history-source .errors-toolbar .search-wrap,.errors-page .history-source .errors-toolbar .seg-filter{grid-column:1/-1;width:100%}.errors-page .history-source .errors-toolbar .seg-chip{flex:1;min-width:0;min-height:44px;padding:6px 4px;justify-content:center}.errors-page .history-source .errors-toolbar .select-wrap{display:grid;gap:4px}.errors-page .history-source .errors-toolbar .select-wrap select{min-width:0;width:100%}.errors-page .history-source .errors-toolbar .autoref{justify-self:start}.errors-page .history-fields>div{grid-template-columns:70px minmax(0,1fr)}.errors-page .log-copy-value{min-height:44px}.errors-page .history-source .detail-main{min-width:0}}.errors-page .history-view-options{font-size:12px;color:var(--ink-soft)}.errors-page .history-view-controls{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0}.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:auto minmax(180px,1fr)}.errors-page .history-source .history-view-options[open]{grid-column:1/-1}@media(max-width:767px){.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.errors-page .history-source .history-view-options{grid-column:1/-1}.errors-page .history-source .errors-group-note{display:none}.errors-page .history-source .errors-group-head{padding:10px 12px}.errors-page .history-source .errors-row-main .col-status{grid-row:2}.errors-page .history-source .errors-row-main .col-count{grid-row:1}.errors-page .history-source .errors-row-main .col-msg{grid-column:1}}.errors-page .history-source .errors-toolbar{grid-template-areas:"severity search options"}.errors-page .history-source .errors-toolbar>.seg-filter{grid-area:severity;width:auto!important}.errors-page .history-source .errors-toolbar>.search-wrap{grid-area:search;width:100%!important;min-width:0!important}.errors-page .history-source .errors-toolbar>.history-view-options{grid-area:options}.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-areas:"severity search" "options options"}@media(max-width:767px){.errors-page .history-source .errors-toolbar,.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:minmax(0,1fr);grid-template-areas:"severity" "search" "options"}.errors-page .history-source .errors-toolbar>.seg-filter{width:100%!important}}.errors-page .history-source .detail-aside{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0 0!important;border-top:1px solid var(--border-color)!important}.errors-page .history-source .aside-label{font:400 11px var(--font-sans)!important;text-transform:none!important;letter-spacing:0!important;color:var(--ink-muted)}.errors-page .history-source .aside-value{font:400 12px/1.5 var(--font-sans)!important}.errors-page .history-source .detail-actions{display:flex;flex-wrap:wrap;gap:8px}.errors-page .history-source .detail-actions .btn{flex:0 0 auto!important;width:auto!important}@media(max-width:767px){.errors-page .history-source .detail-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.errors-page .history-source .aside-block{margin:0!important;min-width:0}.errors-page .history-source .aside-block:nth-child(n+4){grid-column:1/-1}}.emails-page .email-overview-toolbar,.emails-page .email-refresh,.emails-page .email-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.email-overview-toolbar{margin:20px 0 10px}.email-basis,.email-muted,.email-refresh{color:var(--ink-muted);font-size:12px}.email-basis{margin:0 0 16px}.emails-page .email-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.email-error-text{color:var(--status-error)}.email-chart{margin-bottom:28px}.email-chart h2{margin:0}.email-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11px}.email-chart-plot{display:flex;gap:10px;height:108px;margin-top:20px}.email-axis{display:flex;flex-direction:column;justify-content:space-between;color:var(--ink-muted);font:11px var(--font-mono);min-width:20px}.email-bars{display:flex;gap:5px;flex:1;border-bottom:1px solid var(--border-color);background:linear-gradient(var(--border-color),var(--border-color)) center/100% 1px no-repeat}.email-bar-column{flex:1;min-width:0;display:flex;align-items:flex-end;padding:0 2px}.email-bar-stack{width:100%;display:flex;flex-direction:column-reverse;gap:1px;border-radius:2px 2px 0 0;overflow:hidden;background:var(--border-color)}.email-bar-stack i{flex-basis:0;min-height:0}.email-bar-accepted{background:var(--status-ready)}.email-bar-rejected{background:var(--status-error)}.email-bar-unknown{background:var(--status-progress)}.email-chart-dates{display:flex;justify-content:space-between;gap:12px;margin:8px 0 0 30px;color:var(--ink-muted);font-size:11px}.email-section-head{margin-bottom:14px}.email-section-head h2{font-size:18px;margin:0}.email-toolbar{display:flex;align-items:end;gap:10px;margin-bottom:16px}.email-toolbar label{display:grid;gap:6px;margin:0;font-size:12px;font-weight:500}.email-toolbar .email-search{flex:1}.email-toolbar input{width:100%}.email-toolbar select{min-width:180px}.email-status-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border-color);margin-bottom:14px;overflow-x:auto}.email-status-tabs button{padding:0 0 10px;background:0 0;border:0;border-bottom:2px solid transparent;color:var(--ink-muted);font:500 12px inherit;white-space:nowrap;cursor:pointer}.email-status-tabs button.active{border-color:var(--accent);color:var(--color)}.email-status-tabs button span{margin-left:5px;font-family:var(--font-mono);font-size:11px}.email-state{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:20px;margin:16px 0;background:var(--paper-card);border:1px solid var(--border-color);border-radius:8px;color:var(--ink-muted)}.email-state p{margin:0}.email-state-error{color:var(--status-error)}.email-table-wrap{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:var(--paper-card)}.email-table{width:100%;table-layout:fixed;font-size:12px;line-height:1.5}.email-table td,.email-table th{padding:11px 14px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.email-table th{background:var(--paper-bg-alt);color:var(--ink-muted);font-weight:500;font-size:11px}.email-table tbody tr+tr{border-top:1px solid var(--border-color)}.email-table th:first-child{width:32%}.email-table th:nth-child(2){width:19%}.email-table th:nth-child(3){width:21%}.email-table th:nth-child(4){width:18%}.email-table th:last-child{width:10%}.email-recipient>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-attempted,.email-type{color:var(--ink-muted)}.email-outcome{display:inline-flex;align-items:center;gap:6px;font-weight:500;white-space:nowrap}.email-outcome::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.email-outcome-accepted{color:var(--status-ready)}.email-outcome-rejected{color:var(--status-error)}.email-outcome-sending,.email-outcome-unknown{color:var(--status-progress)}.email-http{margin-left:8px;color:var(--ink-muted);font:10px var(--font-mono)}.email-copy,.email-detail-button{border:0;background:0 0;color:var(--link-color);cursor:pointer;font:inherit;padding:3px 0}.email-detail-button{white-space:nowrap}.email-detail-button span{margin-left:5px}.email-copy:hover,.email-detail-button:hover{text-decoration:underline}.email-selected{background:var(--paper-bg-alt)}.email-expanded td{padding:20px 24px;background:var(--paper-bg-alt)}.email-detail-heading{display:flex;align-items:center;gap:16px}.email-detail-heading h3{margin:0;font-size:14px}.email-explanation{max-width:85ch;margin:10px 0 20px;color:var(--ink-soft)}.email-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 30px;margin:0}.email-detail-grid dt{color:var(--ink-muted);font-size:11px;font-weight:400;margin-bottom:4px}.email-detail-grid dd{margin:0;overflow-wrap:anywhere}.email-detail-grid code{color:inherit;background:0 0;padding:0;font-size:11px}.email-copy{margin-left:10px;font-size:11px}.email-copy-feedback{margin:10px 0 0;color:var(--ink-muted);min-height:18px}.email-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px;color:var(--ink-muted);font-size:12px}.email-footer>div{display:flex;gap:8px}.email-about{margin:24px 0;color:var(--ink-muted);font-size:12px}.email-about summary{cursor:pointer;width:fit-content}.email-about p{max-width:90ch;margin:8px 0}@media(max-width:767px){.emails-page .email-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.emails-page .email-kpis .ov-kpi-card{padding:14px}.emails-page .email-kpis .ov-kpi-value{font-size:26px}.email-overview-toolbar .email-refresh{width:100%}.email-toolbar{flex-wrap:wrap}.email-toolbar .email-search{flex-basis:100%}.email-toolbar label:not(.email-search){flex:1}.email-toolbar select{min-width:0;width:100%}.email-legend{gap:10px}.email-chart .ov-chart-head{flex-wrap:wrap;gap:10px}.email-chart-dates{font-size:10px}.email-bars{gap:2px}.email-bar-column{padding:0}.email-status-tabs{gap:18px}.email-table,.email-table tbody{display:block}.email-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.email-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px}.email-table td{display:block;padding:0;min-width:0}.email-table .email-recipient{grid-column:1/-1}.email-table .email-recipient>span{white-space:normal}.email-table .email-result{grid-column:1}.email-table .email-type{grid-column:1}.email-table .email-attempted{grid-column:1;font-size:11px}.email-table .email-expand{grid-column:2;grid-row:2/5;align-self:center}.email-table tbody .email-expanded{display:block;padding:18px 14px;background:var(--paper-bg-alt)}.email-detail-grid{grid-template-columns:1fr;gap:14px}.email-detail-heading{flex-wrap:wrap}.email-section-head .email-muted{font-size:11px}.email-footer{flex-wrap:wrap}.email-table .email-http{font-size:10px}}.emails-page .ov-kpi-sub{white-space:normal;overflow:visible;text-overflow:clip}.email-pager-top{margin:0 0 10px}.email-status-tabs button{font-family:inherit;font-size:12px;font-weight:500}.email-chart-data{margin:12px 0 0 30px;color:var(--ink-muted);font-size:11px}.email-chart-data summary{cursor:pointer;width:fit-content}.email-data-scroll{overflow:auto;max-height:240px;margin-top:10px}.email-chart-data table{width:100%;font-variant-numeric:tabular-nums}.email-chart-data td,.email-chart-data th{text-align:right;padding:6px 10px;border-bottom:1px solid var(--border-color);white-space:nowrap}.email-chart-data th:first-child{text-align:left}.email-chart-data th{font-weight:500}.email-search-help{margin:-6px 0 16px;font-size:11px;color:var(--ink-muted)}@media(max-width:767px){.email-status-tabs{flex-wrap:wrap;gap:10px 18px;overflow:visible}.email-status-tabs button{padding-bottom:7px}.email-search-help{line-height:1.5}}.emails-page .email-kpis .ov-kpi-sub{white-space:normal!important}#email-history-title{scroll-margin-top:80px}.email-jump{font-size:12px;margin-right:auto}.errors-page .log-correlations{display:flex;flex-wrap:wrap;gap:8px 16px}.errors-page .log-correlations .log-trace-button{min-height:44px;margin:0}.errors-page .log-explanation{margin:16px 0;max-width:760px}.errors-page .log-explanation p{margin:6px 0;font-size:13px;line-height:1.6}.errors-page .log-explanation .log-explanation-lead{font-size:15px;font-weight:500;color:var(--color)}.errors-page .log-detail-identifiers>div{display:block}.errors-page .log-detail-identifiers dt{margin-bottom:6px}.errors-page .log-detail-identifiers dd{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.errors-page .log-detail-identifiers .log-value-reveal{flex:1 1 100%;padding:8px 10px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card);font:13px var(--font-mono)}.errors-page .log-detail-identifiers .log-copy-value,.errors-page .log-follow-id{min-height:32px;padding:4px 8px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card);color:var(--link-color);font:12px var(--font-sans);cursor:pointer}@media(max-width:767px){.errors-page .log-detail-identifiers .log-copy-value,.errors-page .log-follow-id{min-height:44px}}@media(max-width:767px){.errors-page .log-detail-identifiers .log-value-reveal{padding:0}.errors-page .log-detail-identifiers .log-value-reveal>summary{min-height:44px;box-sizing:border-box;padding:12px 10px}.errors-page .log-detail-identifiers .log-value-reveal>span{margin:0;padding:0 10px 10px}}.errors-page .log-list-view .log-table th:first-child{width:52%}.errors-page .log-list-view .log-table th:nth-child(2){width:18%}.errors-page .log-list-view .log-table th:nth-child(3){width:12%}.errors-page .log-list-view .log-table th:last-child{width:18%}.errors-page .log-list-view .log-table td{padding:14px 16px}.errors-page .log-query{margin:0}.errors-page .log-query>summary{display:flex;gap:16px;width:fit-content}.errors-page .log-query-hint{float:none}.errors-page .log-local-filters{margin-top:8px}.errors-page .log-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:0 0;color:var(--link-color);font:13px var(--font-sans);cursor:pointer}.errors-page .log-inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px}.errors-page .log-inspector-eyebrow{color:var(--ink-muted);font-size:12px;margin:0 0 6px}.errors-page .log-inspector #log-detail-title{font:600 24px/1.35 var(--font-sans);margin:0;overflow-wrap:anywhere}.errors-page .log-inspector-heading>div{min-width:0}.errors-page .log-inspector-heading>.log-severity{flex-shrink:0;font-size:12px}.errors-page .log-inspector-tabs{display:flex;gap:28px;border-bottom:1px solid var(--border-color)}.errors-page .log-inspector-tabs button{min-height:44px;padding:8px 0;border:0;border-bottom:2px solid transparent;background:0 0;font:500 14px var(--font-sans);color:var(--ink-muted);cursor:pointer}.errors-page .log-inspector-tabs button.active{color:var(--color);border-bottom-color:var(--accent)}.errors-page .log-overview{display:grid;grid-template-columns:minmax(0,1fr) 280px;padding:0;background:var(--paper-card);border:1px solid var(--border-color);border-top:0}.errors-page .log-overview-main{min-width:0;padding:28px}.errors-page .log-overview h3{font:600 13px var(--font-sans);margin:0 0 12px}.errors-page .log-overview .log-explanation-lead{font:500 17px/1.55 var(--font-sans);color:var(--color);margin:0 0 12px}.errors-page .log-evidence{font:13px/1.6 var(--font-sans);color:var(--ink-soft)}.errors-page .log-overview .log-coverage{font-size:12px;line-height:1.6;max-width:65ch}.errors-page .log-overview-context{padding:28px 22px;border-left:1px solid var(--border-color);background:var(--paper-bg-alt);min-width:0}.errors-page .log-occurrence-total{display:block;font:500 28px var(--font-sans);margin-bottom:20px;font-variant-numeric:tabular-nums}.errors-page .log-overview-context dl{display:block}.errors-page .log-overview-context dd{font:13px/1.6 var(--font-sans)}.errors-page .log-overview-context .log-identifiers-title{margin-top:28px}.errors-page .log-overview-context .log-value-reveal{padding:0}.errors-page .log-overview-context .log-value-reveal summary{min-height:44px;box-sizing:border-box;padding:12px 10px}.errors-page .log-overview-context .log-value-reveal>span{padding:0 10px 10px;margin:0;font-size:12px}.errors-page .log-overview-context .log-copy-value{padding:0;min-height:32px;border:0;background:0 0}.errors-page .log-next-step{border-top:1px solid var(--border-color);margin-top:28px;padding-top:24px}.errors-page .log-next-step p{color:var(--ink-soft);font-size:13px;margin:0 0 16px}.errors-page .log-detail-actions{display:flex;flex-wrap:wrap;gap:10px}.errors-page .log-detail-actions .log-trace-button{margin:0;padding:8px 12px;min-height:40px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card)}.errors-page .log-all-fields{border-top:1px solid var(--border-color);margin-top:28px;padding-top:12px;font-size:13px}.errors-page .log-all-fields>summary{min-height:44px;box-sizing:border-box;padding:12px 0}.errors-page .log-all-fields>summary>span{color:var(--ink-muted);margin-left:8px}.errors-page .log-all-fields dl{grid-template-columns:1fr 1fr;padding-bottom:16px}.errors-page .log-all-fields dt{font-size:12px}.errors-page .log-all-fields dd{font-size:13px}.errors-page .log-inspector .log-timeline{margin:0;padding:24px 28px;border-top:0;border-radius:0;background:var(--paper-card)}.errors-page .log-timeline .volume-head{justify-content:space-between}.errors-page .log-timeline h3{font-size:16px}.errors-page .log-timeline .log-origin{font-size:13px}.errors-page .log-events{list-style:none;padding:0;margin-top:24px}.errors-page .log-events li{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--border-color)}.errors-page .log-events time{color:var(--ink-muted);font:12px/1.6 var(--font-mono)}.errors-page .log-timeline-event-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.errors-page .log-timeline-event-title strong{font-size:14px;overflow-wrap:anywhere}.errors-page .log-timeline-event p{margin:6px 0;color:var(--ink-muted);font-size:12px}.errors-page .log-event-fields>summary,.errors-page .log-timeline-scope>summary{color:var(--ink-muted);font-size:12px}.errors-page .log-event-fields pre,.errors-page .log-raw-sample pre{padding:12px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:4px;box-shadow:none;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--font-mono)}.errors-page .log-timeline-scope code{display:block;overflow-wrap:anywhere}@media(max-width:767px){.errors-page .log-list-view .log-table td{padding:0}.errors-page .log-list-view .log-table td:last-child{grid-column:2;grid-row:2;display:block}.errors-page .log-inspector-heading{display:block;margin-bottom:16px}.errors-page .log-inspector-heading>.log-severity{margin-top:12px}.errors-page .log-inspector #log-detail-title{font-size:21px}.errors-page .log-overview{grid-template-columns:minmax(0,1fr)}.errors-page .log-overview-context,.errors-page .log-overview-main{padding:20px}.errors-page .log-overview-context{border-left:0;border-top:1px solid var(--border-color)}.errors-page .log-detail-actions .log-trace-button,.errors-page .log-overview-context .log-copy-value{min-height:44px}.errors-page .log-inspector .log-timeline{padding:20px}.errors-page .log-events li{grid-template-columns:minmax(0,1fr);gap:6px}.errors-page .log-event-fields summary,.errors-page .log-timeline-scope summary{min-height:44px;box-sizing:border-box;padding:12px 0}}.errors-page #history-inspector-title{font:600 24px/1.35 var(--font-sans);margin:0;overflow-wrap:anywhere}.errors-page .history-inspector{border-top:0;border-radius:0}.errors-page .history-inspector .errors-row{border:0}.errors-page .history-inspector .errors-row-detail{background:var(--paper-card);padding:24px!important}.errors-page .history-inspector .detail-tabs{margin-bottom:20px}.errors-page .history-inspector .detail-main{min-width:0}@media(max-width:767px){.errors-page #history-inspector-title{font-size:21px}.errors-page .history-inspector .errors-row-detail{padding:20px!important}}.errors-page .history-technical{margin:20px 0;border-top:1px solid var(--border-color)}.errors-page .history-technical>summary{min-height:44px;padding:12px 0;box-sizing:border-box;font-size:13px}.errors-page .history-inspector .detail-main>div>h3{font:600 13px var(--font-sans);margin:0 0 12px}.errors-page .history-inspector .log-explanation-lead{font:500 17px/1.55 var(--font-sans)}.errors-page .history-source .log-inspector-tabs{margin-bottom:0;flex-wrap:wrap}.errors-page .log-facts-strip{display:flex;flex-wrap:wrap;gap:12px 28px;padding:0 0 20px;color:var(--ink-muted);font-size:12px}.errors-page .log-facts-strip strong,.errors-page .log-facts-strip time{color:var(--ink-soft);font-weight:500;font-variant-numeric:tabular-nums}.errors-page .log-investigation-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;border:1px solid var(--border-color);border-radius:6px;padding:0;background:var(--paper-card)}.errors-page .log-related-main{min-width:0}.errors-page .log-correlation-selector{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;border-bottom:1px solid var(--border-color);font-size:12px;color:var(--ink-muted)}.errors-page .log-correlation-selector .log-trace-button{margin:0;padding:7px 10px;min-height:36px;border:1px solid transparent;border-radius:4px;font-size:12px}.errors-page .log-correlation-selector .log-trace-button[aria-pressed=true]{border-color:var(--border-color);background:var(--paper-bg-alt);color:var(--color)}.errors-page .log-selector-mark{margin-left:6px}.errors-page .log-correlation-window{margin-left:auto}.errors-page .log-investigation-body .log-timeline{padding:20px;border:0}.errors-page .log-investigation-body .log-timeline h3{font-size:14px}.errors-page .log-investigation-body .log-events{margin:16px 0}.errors-page .log-investigation-body .log-events li{grid-template-columns:88px minmax(0,1fr);gap:16px;padding:16px 0}.errors-page .log-investigation-body .log-events time{font-size:11px;padding-top:2px}.errors-page .log-investigation-body .log-timeline-event{position:relative;padding-left:16px;border-left:1px solid var(--border-color)}.errors-page .log-investigation-body .log-timeline-event::before{content:'';position:absolute;top:6px;left:-4px;width:7px;height:7px;border-radius:50%;background:var(--ink-muted)}.errors-page .log-sample-panel{min-width:0;border-left:1px solid var(--border-color);padding:20px;background:var(--paper-bg-alt);border-radius:0 6px 6px 0}.errors-page .log-no-trace h3,.errors-page .log-sample-panel h3{font:600 14px var(--font-sans);margin:0 0 10px}.errors-page .log-sample-panel dl{display:block}.errors-page .log-sample-panel dt{font-size:11px}.errors-page .log-sample-panel dd{font-size:12px}.errors-page .log-sample-panel .log-value-reveal{padding:0}.errors-page .log-sample-panel .log-value-reveal summary{min-height:44px;padding:12px 8px;box-sizing:border-box;font-size:12px}.errors-page .log-sample-panel .log-value-reveal>span{padding:0 8px 8px;margin:0}.errors-page .log-sample-panel .log-copy-value{min-height:32px;border:0;background:0 0;padding:0}.errors-page .log-sample-panel .log-all-fields{margin-top:16px}.errors-page .log-sample-panel .log-all-fields summary{font-size:12px}.errors-page .log-no-trace{padding:24px;font-size:13px}@media(max-width:767px){.errors-page .log-inspector-heading{margin-top:4px}.errors-page .log-facts-strip{gap:8px 16px;padding-bottom:16px}.errors-page .log-investigation-body{grid-template-columns:minmax(0,1fr)}.errors-page .log-sample-panel{border-left:0;border-top:1px solid var(--border-color);border-radius:0 0 6px 6px}.errors-page .log-correlation-selector{padding:10px 14px}.errors-page .log-correlation-selector .log-trace-button,.errors-page .log-sample-panel .log-copy-value{min-height:44px}.errors-page .log-investigation-body .log-timeline{padding:16px}.errors-page .log-investigation-body .log-events li{grid-template-columns:minmax(0,1fr);gap:6px}}.errors-page .log-request-route code{font-size:12px;white-space:normal;overflow-wrap:anywhere}.errors-page .log-error-stack summary{min-height:44px;display:list-item;box-sizing:border-box;padding:12px 0;cursor:pointer;font-size:12px}.errors-page .log-error-stack pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;padding:12px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:4px} \ No newline at end of file +.reviewer-preview .rp-main{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.reviewer-preview .rp-document{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;scrollbar-width:thin;position:relative}.reviewer-preview button.rp-count{background:0 0;border:0;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.reviewer-preview button.rp-count:hover{text-decoration-color:currentColor}@media (max-width:767px){.reviewer-preview .file-card-head .rp-preserved-tag{display:none}}.billing-page{--bl-subscription:#008C7E;--bl-repository:#D0652A;--bl-conference:#6250D6}.dark-mode .billing-page{--bl-subscription:#16A091;--bl-repository:#D95926;--bl-conference:#9085E9}.billing-page .bl-subscription{background:var(--bl-subscription)!important}.billing-page .bl-repository{background:var(--bl-repository)!important}.billing-page .bl-conference{background:var(--bl-conference)!important}.billing-page .bl-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:4px 0 0}.billing-page .bl-basis{margin:0;font-size:12px;color:var(--ink-muted)}.billing-page .bl-message{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:10px 14px;border:1px solid var(--border-color);border-radius:var(--radius-control,8px);font-size:13px;color:var(--color);background:var(--paper-card)}.billing-page .bl-message .ui-icon{width:16px;height:16px;flex:none;color:var(--ink-muted)}.billing-page .bl-message.ov-performance-warning{border-color:color-mix(in srgb,var(--status-progress) 45%,var(--border-color));background:color-mix(in srgb,var(--status-progress) 8%,var(--paper-card))}.billing-page .bl-message.ov-performance-warning .ui-icon{color:var(--status-progress)}.billing-page .bl-message .btn{margin-left:auto}.overview-page .bl-kpi-row{grid-template-columns:repeat(6,minmax(0,1fr));margin:16px 0 16px}.overview-page .bl-kpi-row .ov-kpi-card{min-width:0;padding:16px 18px}.overview-page .bl-kpi-row .ov-kpi-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-page .bl-kpi-row .ov-kpi-sub{white-space:normal;overflow-wrap:anywhere;line-height:1.4}.overview-page .bl-kpi-row .ov-kpi-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.overview-page .bl-kpi-row .bl-muted-value{color:var(--ink-muted);font-size:20px;line-height:28px}.overview-page .bl-kpi-row.is-loading .ov-kpi-card{opacity:.6}.billing-page .bl-skeleton-value{display:block;width:50%;height:28px;margin:4px 0;border-radius:6px}@media (max-width:1279px){.overview-page .bl-kpi-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media (max-width:767px){.overview-page .bl-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.billing-page .bl-health{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;padding:10px 16px;margin:0 0 16px;border:1px solid var(--border-color);border-radius:var(--radius-control,8px);background:var(--paper-card);font-size:13px;font-variant-numeric:tabular-nums}.billing-page .bl-health-title{display:inline-flex;align-items:center;gap:8px;font-weight:600}.billing-page .bl-health-title .ov-svc-dot{width:8px;height:8px;margin:0;border-radius:50%}.billing-page .bl-dot-bad{background:var(--st-bad,#b42318)}.billing-page .bl-health-item .k{color:var(--ink-muted);margin-right:2px}.billing-page .bl-health-item.is-bad{color:var(--st-bad,#b42318);font-weight:600}.billing-page .bl-health-item.is-warn{color:#946519;font-weight:600}.dark-mode .billing-page .bl-health-item.is-warn{color:var(--status-progress)}.dark-mode .billing-page .bl-health-item.is-bad{color:#f08a82}.billing-page .bl-health-error{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.billing-page .bl-health-error code{font-size:12px;color:inherit;background:var(--paper-bg-alt);padding:1px 5px;border-radius:4px}.billing-page .bl-chart-card{margin-bottom:16px}.billing-page .bl-swatch{display:inline-block;width:8px;height:8px;border-radius:2px;flex:none}.billing-page .bl-bars{position:relative;gap:3px}.billing-page .bl-bars.is-dense{gap:1px}.billing-page .bl-col{min-width:0}.billing-page .bl-stack{display:flex;flex-direction:column-reverse;width:100%;gap:1px;border-radius:2px 2px 0 0;overflow:hidden}.billing-page .bl-stack>i{display:block;min-height:2px;flex-basis:0}.billing-page .bl-col:hover .bl-stack{filter:brightness(1.08)}.billing-page .bl-col.is-zero .bl-stack{height:1px!important;background:var(--border-color)}.billing-page .bl-empty{margin:8px 0 4px;padding:32px 0;text-align:center;color:var(--ink-muted)}.billing-page .bl-plans{margin-bottom:24px}.billing-page .ov-metrics-table thead th.bl-group{text-align:center;border-bottom:1px solid var(--border-color)}.billing-page .ov-metrics-table tfoot td,.billing-page .ov-metrics-table tfoot th{border-top:1px solid var(--border-color);border-bottom:0;font-weight:600;background:var(--paper-bg-alt)}.billing-page .ov-metrics-table tbody tr:last-child>*{border-bottom:0}.billing-page .bl-plan-name{font-weight:500;text-align:left}.billing-page .bl-plan-cell .bl-swatch,.billing-page .bl-plan-name .bl-swatch{margin-right:8px;vertical-align:1px}.billing-page .bl-link{padding:0;border:0;background:0 0;font:inherit;color:var(--link-color);cursor:pointer;text-align:left}.billing-page .bl-link:hover{text-decoration:underline}.billing-page .bl-idle .bl-link,.billing-page .bl-idle td{color:var(--ink-faint)}.billing-page .ov-muted{color:var(--ink-faint)}.billing-page .bl-note{margin:10px 0 0}.billing-page .bl-grants{margin:8px 0 24px;scroll-margin-top:16px}.billing-page .bl-section-head{margin:0 0 8px}.billing-page .bl-section-head h2{margin:0}.billing-page .bl-grant-scroll{margin-top:12px}.billing-page .bl-grant-table th[scope=row]{font-weight:500;text-align:left;max-width:200px;overflow:hidden;text-overflow:ellipsis}.billing-page .bl-grant-table td,.billing-page .bl-grant-table th{padding:9px 12px}.billing-page .bl-grant-table th[scope=row] a,.billing-page .bl-scope a{color:var(--link-color)}.billing-page .bl-grant-table .sortable{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:0 0;font:inherit;color:inherit;cursor:pointer}.billing-page .bl-grant-table .sortable.active{color:var(--color)}.billing-page .bl-state{display:inline-flex;align-items:center;gap:6px}.billing-page .bl-state .status-dot{margin:0}.billing-page .bl-plan-cell{white-space:nowrap}.billing-page .bl-flag{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;background:color-mix(in srgb,var(--status-progress) 14%,transparent);color:#7a5212}.dark-mode .billing-page .bl-flag{color:var(--status-progress)}.billing-page .bl-flag.is-bad{background:color-mix(in srgb,var(--st-bad,#b42318) 12%,transparent);color:#a1251b}.dark-mode .billing-page .bl-flag.is-bad{color:#f08a82}.billing-page .bl-scope a{display:inline-flex;align-items:center;gap:6px;max-width:200px;min-width:0}.billing-page .bl-scope a>span{overflow:hidden;text-overflow:ellipsis}.billing-page .bl-scope .ui-icon{width:14px;height:14px;flex:none;color:var(--ink-muted)}.billing-page .bl-page{font-family:var(--font-mono);font-size:12px;color:var(--ink-muted)}.billing-page .bl-alert{display:flex;align-items:center;gap:8px;margin:8px 0}.billing-page .bl-alert .btn{margin-left:auto}.billing-page .bl-pager{justify-content:space-between;border-bottom:none;margin-top:8px}.billing-page .paper-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}@media (max-width:767px){.billing-page .bl-health{gap:4px 14px}.billing-page .bl-health-title{flex-basis:100%}.billing-page .bl-toolbar .seg-filter{max-width:100%;overflow-x:auto}}.breadcrumb .redact-slot,.files .tree-name .redact-slot{position:relative;top:-.15em}.dark-mode .markdown-body :is(p,li,td,th,blockquote,dd) mark.redact-chip,.markdown-body :is(p,li,td,th,blockquote,dd) mark.redact-chip{vertical-align:.04em!important}.errors-page .error-source-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;margin:16px 0;border-bottom:1px solid var(--border-color)}.errors-page .error-health-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-left:auto;padding:4px 0 8px;max-width:560px}.errors-page .log-state{flex:1;margin:0;font-size:12px;color:var(--ink-soft)}.errors-page .error-source-switch{display:flex;gap:24px;margin:0;padding:0;border:0;background:0 0;border-radius:0}.errors-page .error-source-switch .seg-chip{border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;font-size:14px;font-weight:500;background:0 0;color:var(--ink-soft)}.errors-page .error-source-switch .seg-chip.active{border-bottom-color:var(--accent);color:var(--color);background:0 0}.errors-page .log-investigation{margin:0}.errors-page .log-investigation h2,.errors-page .redis-history-title{font-size:18px;margin:0}.errors-page .volume-head{gap:12px;flex-wrap:wrap;margin-bottom:14px}.errors-page .log-filters,.errors-page .log-local-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:14px 0 10px}.errors-page .log-filters label,.errors-page .log-local-filters label{display:grid;gap:6px;margin:0;font-size:12px;font-weight:500;min-width:0}.errors-page .log-filters label{flex:1}.errors-page .log-filters .form-control,.errors-page .log-local-filters .form-control{width:100%;min-width:0}.errors-page .log-local-filters .log-search{flex:1;min-width:180px}.errors-page .log-coverage,.errors-page .log-meta{font-size:12px;color:var(--ink-muted)}.errors-page .log-coverage{margin:8px 0 14px}.errors-page .log-meta{display:block;margin-top:4px}.errors-page .log-workspace{display:flex;align-items:start;gap:20px}.errors-page .log-results{flex:1;min-width:0}.errors-page .log-table-scroll{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:var(--paper-card)}.errors-page .log-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}.errors-page .log-table td,.errors-page .log-table th{padding:10px 16px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.errors-page .log-table th{background:var(--paper-bg-alt);color:var(--ink-muted);font-size:12px;font-weight:500}.errors-page .log-table th:first-child{width:32%}.errors-page .log-table th:nth-child(2){width:15%}.errors-page .log-table th:nth-child(4){width:13%}.errors-page .log-table th:nth-child(3){width:8%;text-align:right}.errors-page .log-table td.log-count{text-align:right;font:500 14px var(--font-mono);background:0 0!important;box-shadow:none}.errors-page .log-table th:last-child{width:32%}.errors-page .log-table tbody tr+tr{border-top:1px solid var(--border-color)}.errors-page .log-table tbody tr:hover{background:var(--paper-bg-alt)}.errors-page .log-table tbody tr.log-selected{background:var(--accent-soft)}.errors-page .log-event-button{display:block;width:100%;min-height:44px;border:0;background:0 0;color:var(--color);padding:0;text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere}.errors-page .log-event-title{display:flex;align-items:center;gap:10px}.errors-page .log-event-title .ui-icon{width:14px;height:14px;color:var(--ink-muted);flex-shrink:0}.errors-page .log-event-button:hover .ui-icon{color:var(--link-color)}.errors-page .log-event-button strong{font-size:14px;font-weight:600;line-height:1.5}.errors-page .log-event-button:hover strong,.errors-page .log-selected .log-event-button strong{color:var(--link-color)}.errors-page .log-event-button:hover strong{text-decoration:underline;text-underline-offset:3px}.errors-page .log-service{color:var(--ink-soft);font-weight:500}.errors-page .log-module{color:var(--ink-muted);font-weight:400}.errors-page .log-severity{display:inline-flex;align-items:center;gap:6px;font-weight:500}.errors-page .log-severity::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.errors-page .log-severity-error{color:var(--status-error)}.errors-page .log-severity-warn{color:var(--status-progress)}.errors-page .log-severity-info{color:var(--ink-muted)}.errors-page .log-trace-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 0;margin:0 14px 0 0;border:0;background:0 0;color:var(--link-color);font:500 12px var(--font-sans);cursor:pointer;max-width:100%;white-space:normal;text-align:left}.errors-page .log-trace-button:hover{text-decoration:underline;text-underline-offset:3px}.errors-page .log-trace-button:last-child{margin-right:0}.errors-page .log-http{display:block;margin-top:4px;font:12px var(--font-mono);color:var(--ink-muted)}.errors-page .log-short-id{font:12px var(--font-mono);color:var(--ink-soft)}.errors-page .log-detail{min-width:0;padding:8px 4px;overflow-wrap:anywhere}.errors-page .log-table .log-detail-row>td{background:var(--paper-bg-alt)}.errors-page .log-table tbody tr{scroll-margin-top:80px}.errors-page .log-origin{color:var(--ink-soft);margin:0 0 10px}.errors-page .log-detail dl{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.errors-page .log-detail-row .log-detail{width:100%}.errors-page .log-detail h3,.errors-page .log-timeline h3{font-size:14px;margin:0}.errors-page .log-detail dl{margin:0;font-size:12px}.errors-page .log-detail dl>div{margin-top:12px}.errors-page .log-detail dt{font-weight:400;font-size:11px;color:var(--ink-muted)}.errors-page .log-detail dd{margin:5px 0 0;font-family:var(--font-mono);line-height:1.6}.errors-page .log-detail-heading{align-items:flex-start;justify-content:space-between}.errors-page .log-detail #log-detail-title{font-size:18px!important;line-height:1.4;font-weight:600;margin:0}.errors-page .log-detail-heading>div{min-width:0}.errors-page .log-detail-heading>button{flex-shrink:0}.errors-page .log-detail-section{border-top:1px solid var(--border-color);padding-top:14px;margin-top:18px}.errors-page .log-detail-section h4{font-size:12px!important;font-weight:600;margin:0 0 4px;color:var(--ink-soft)}.errors-page .log-detail-identifiers{grid-template-columns:1fr}.errors-page .log-detail-identifiers>div{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:baseline;gap:12px}.errors-page .log-detail-identifiers dd{margin:0}.errors-page .log-detail-dates dd{font-family:var(--font-sans)}.errors-page .history-summary,.errors-page .log-health{margin:20px 0;font-size:12px;color:var(--ink-soft)}.errors-page summary{cursor:pointer;padding:8px 0}.errors-page .log-health summary span{margin-left:8px;color:var(--ink-muted)}.errors-page .log-health p{margin:8px 0;max-width:75ch}.errors-page .log-timeline{margin-top:20px;padding:20px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:8px;font-size:12px}.errors-page .log-events code,.errors-page .log-health li,.errors-page .log-id{overflow-wrap:anywhere}.errors-page .log-events{padding-left:20px}.errors-page .log-events li{padding:12px 0;border-bottom:1px solid var(--border-color)}.errors-page .log-events code{display:block;color:var(--ink-soft)}.errors-page .log-loading{padding:28px 16px;background:var(--paper-bg-alt);color:var(--ink-soft)}.errors-page :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.errors-page button.errors-row-main{border:0;background:0 0;color:inherit;width:100%;text-align:left;font:inherit}.errors-page button.errors-row-main:hover{background:var(--hover-bg-color)}.errors-page .errors-row-main .col-msg,.errors-page .errors-row-main .col-when{display:block}.errors-page .errors-row-main .when-abs,.errors-page .errors-row-main .when-rel{display:block}.errors-page .history-source>p{font-size:12px;color:var(--ink-soft);margin:10px 0}.errors-page .errors-actions{display:flex;flex-wrap:wrap;gap:8px}@media (max-width:1100px){.errors-page .log-workspace{flex-direction:column}.errors-page .log-detail,.errors-page .log-results{width:100%}}@media (max-width:767px){.errors-page .log-filters label{flex:1 1 40%}.errors-page .log-local-filters .log-search{flex-basis:100%}.errors-page .log-local-filters label{flex:1}.errors-page .log-table,.errors-page .log-table tbody{display:block}.errors-page .log-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.errors-page .log-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:14px}.errors-page .log-table td{display:block;padding:0;min-width:0}.errors-page .log-table td:first-child{grid-column:1;grid-row:1}.errors-page .log-table td:nth-child(4){color:var(--ink-muted)}.errors-page .log-table td:last-child{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.errors-page .log-table tbody tr.log-detail-row{display:block;padding:14px}.errors-page .log-table .log-detail-row>td{display:block}.errors-page .log-detail dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}.errors-page .log-detail .log-detail-identifiers{grid-template-columns:1fr}.errors-page .log-detail-identifiers>div{grid-template-columns:62px minmax(0,1fr)}.errors-page .log-detail-heading{gap:10px}.errors-page .log-detail #log-detail-title{font-size:16px!important}.errors-page .log-detail{padding:0}.errors-page .log-count::before{content:'×';font-size:12px;color:var(--ink-muted);margin-right:3px}.errors-page .error-source-toolbar{gap:4px}.errors-page .error-health-strip{padding:0 0 8px;margin:0;width:100%;max-width:none}.errors-page .log-state{flex:1 1 175px}.errors-page .log-table td.log-count{align-self:start;padding-top:3px}.errors-page .log-table td:nth-child(4){grid-column:2;grid-row:2;align-self:center;margin-top:0;font-size:12px;text-align:right}.errors-page .log-table td.log-count{grid-column:2;grid-row:1}.errors-page .log-table td:nth-child(2){grid-column:1;grid-row:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.errors-page .log-http{display:inline;margin:0}.errors-page .log-trace-button{min-height:44px;margin:0 8px 0 0}.errors-page .log-timeline{padding:14px}.errors-page .errors-toolbar>:first-child{min-width:0}.errors-page .errors-toolbar .seg-filter{flex-wrap:wrap}.errors-page .errors-row-main{gap:8px;padding-left:12px;padding-right:12px}.errors-page .history-source .errors-list-head{display:none}.errors-page .history-source .errors-row-main{grid-template-columns:minmax(0,1fr) auto!important}.errors-page .history-source .errors-row-main .col-msg{grid-column:1/-1;grid-row:1}.errors-page .history-source .errors-row-main .col-when{grid-column:1}.errors-page .history-source .errors-row-main .col-count{grid-column:2;grid-row:2}.errors-page .history-source .errors-row-main .col-status{grid-column:2}}.errors-page .log-query{margin:0 0 8px;font-size:12px;color:var(--ink-soft)}.errors-page .log-query[open]{border-bottom:1px solid var(--border-color);padding-bottom:8px}.errors-page .log-query-hint{float:right;color:var(--link-color)}.errors-page .log-investigation>.volume-head:has(.sr-only):not(:has(a)){margin:0}.errors-page .error-source-switch .seg-chip{box-shadow:none}.errors-page .log-filters>label{min-width:0!important}@media(max-width:767px){.errors-page .log-filters>label{width:auto!important;flex:1 1 40%}}.errors-page .history-source .errors-toolbar{display:grid!important;grid-template-columns:auto minmax(180px,1fr) auto;gap:10px!important;align-items:center}.errors-page .history-source .errors-toolbar>:first-child{min-width:0!important}.errors-page .history-source .errors-toolbar .seg-filter{display:flex;flex-wrap:nowrap;width:auto;gap:2px}.errors-page .history-source .errors-toolbar .seg-chip{white-space:nowrap;padding:6px 8px}.errors-page .history-source .errors-toolbar .autoref{grid-column:1/-1;justify-self:end}.errors-page .history-management{margin:20px 0;font-size:12px;color:var(--ink-soft)}.errors-page .history-management>summary{width:fit-content}.errors-page .history-management .volume-head{margin-top:12px}.errors-page .history-warning{color:var(--status-progress);font-size:12px}.errors-page .history-fields{margin:0;display:grid;gap:12px}.errors-page .history-fields>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:baseline}.errors-page .history-fields dt{margin:0;font:400 12px var(--font-sans);color:var(--ink-muted)}.errors-page .history-fields dd{margin:0;font:12px/1.6 var(--font-mono);overflow-wrap:anywhere}.errors-page .history-source .errors-row-detail{padding:16px!important}.errors-page .history-source .detail-body{gap:20px}.errors-page .history-source .detail-main pre{margin:0;padding:12px;border:1px solid var(--border-color);border-radius:4px;box-shadow:none!important;background:var(--paper-card)!important;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.errors-page .history-source .detail-tabs{margin-bottom:16px}.errors-page .log-value-reveal{min-width:0}.errors-page .log-value-reveal summary{padding:0;font:inherit;color:var(--ink-soft)}.errors-page .log-value-reveal>span{display:block;margin-top:6px;overflow-wrap:anywhere}.errors-page .log-copy-value{display:inline-block;border:0;background:0 0;color:var(--link-color);padding:4px 0;font:12px var(--font-sans);cursor:pointer}.errors-page .log-copy-value:hover{text-decoration:underline}.errors-page .log-copy-status{font-size:12px;color:var(--ink-soft)}@media(max-width:767px){.errors-page .history-source .errors-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.errors-page .history-source .errors-toolbar .search-wrap,.errors-page .history-source .errors-toolbar .seg-filter{grid-column:1/-1;width:100%}.errors-page .history-source .errors-toolbar .seg-chip{flex:1;min-width:0;min-height:44px;padding:6px 4px;justify-content:center}.errors-page .history-source .errors-toolbar .select-wrap{display:grid;gap:4px}.errors-page .history-source .errors-toolbar .select-wrap select{min-width:0;width:100%}.errors-page .history-source .errors-toolbar .autoref{justify-self:start}.errors-page .history-fields>div{grid-template-columns:70px minmax(0,1fr)}.errors-page .log-copy-value{min-height:44px}.errors-page .history-source .detail-main{min-width:0}}.errors-page .history-view-options{font-size:12px;color:var(--ink-soft)}.errors-page .history-view-controls{display:flex;flex-wrap:wrap;gap:12px;padding:8px 0}.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:auto minmax(180px,1fr)}.errors-page .history-source .history-view-options[open]{grid-column:1/-1}@media(max-width:767px){.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.errors-page .history-source .history-view-options{grid-column:1/-1}.errors-page .history-source .errors-group-note{display:none}.errors-page .history-source .errors-group-head{padding:10px 12px}.errors-page .history-source .errors-row-main .col-status{grid-row:2}.errors-page .history-source .errors-row-main .col-count{grid-row:1}.errors-page .history-source .errors-row-main .col-msg{grid-column:1}}.errors-page .history-source .errors-toolbar{grid-template-areas:"severity search options"}.errors-page .history-source .errors-toolbar>.seg-filter{grid-area:severity;width:auto!important}.errors-page .history-source .errors-toolbar>.search-wrap{grid-area:search;width:100%!important;min-width:0!important}.errors-page .history-source .errors-toolbar>.history-view-options{grid-area:options}.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-areas:"severity search" "options options"}@media(max-width:767px){.errors-page .history-source .errors-toolbar,.errors-page .history-source .errors-toolbar:has(.history-view-options[open]){grid-template-columns:minmax(0,1fr);grid-template-areas:"severity" "search" "options"}.errors-page .history-source .errors-toolbar>.seg-filter{width:100%!important}}.errors-page .history-source .detail-aside{background:0 0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0 0!important;border-top:1px solid var(--border-color)!important}.errors-page .history-source .aside-label{font:400 11px var(--font-sans)!important;text-transform:none!important;letter-spacing:0!important;color:var(--ink-muted)}.errors-page .history-source .aside-value{font:400 12px/1.5 var(--font-sans)!important}.errors-page .history-source .detail-actions{display:flex;flex-wrap:wrap;gap:8px}.errors-page .history-source .detail-actions .btn{flex:0 0 auto!important;width:auto!important}@media(max-width:767px){.errors-page .history-source .detail-aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.errors-page .history-source .aside-block{margin:0!important;min-width:0}.errors-page .history-source .aside-block:nth-child(n+4){grid-column:1/-1}}.emails-page .email-overview-toolbar,.emails-page .email-refresh,.emails-page .email-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.email-overview-toolbar{margin:20px 0 10px}.email-basis,.email-muted,.email-refresh{color:var(--ink-muted);font-size:12px}.email-basis{margin:0 0 16px}.emails-page .email-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.email-error-text{color:var(--status-error)}.email-chart{margin-bottom:28px}.email-chart h2{margin:0}.email-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11px}.email-chart-plot{display:flex;gap:10px;height:108px;margin-top:20px}.email-axis{display:flex;flex-direction:column;justify-content:space-between;color:var(--ink-muted);font:11px var(--font-mono);min-width:20px}.email-bars{display:flex;gap:5px;flex:1;border-bottom:1px solid var(--border-color);background:linear-gradient(var(--border-color),var(--border-color)) center/100% 1px no-repeat}.email-bar-column{flex:1;min-width:0;display:flex;align-items:flex-end;padding:0 2px}.email-bar-stack{width:100%;display:flex;flex-direction:column-reverse;gap:1px;border-radius:2px 2px 0 0;overflow:hidden;background:var(--border-color)}.email-bar-stack i{flex-basis:0;min-height:0}.email-bar-accepted{background:var(--status-ready)}.email-bar-rejected{background:var(--status-error)}.email-bar-unknown{background:var(--status-progress)}.email-chart-dates{display:flex;justify-content:space-between;gap:12px;margin:8px 0 0 30px;color:var(--ink-muted);font-size:11px}.email-section-head{margin-bottom:14px}.email-section-head h2{font-size:18px;margin:0}.email-toolbar{display:flex;align-items:end;gap:10px;margin-bottom:16px}.email-toolbar label{display:grid;gap:6px;margin:0;font-size:12px;font-weight:500}.email-toolbar .email-search{flex:1}.email-toolbar input{width:100%}.email-toolbar select{min-width:180px}.email-status-tabs{display:flex;gap:20px;border-bottom:1px solid var(--border-color);margin-bottom:14px;overflow-x:auto}.email-status-tabs button{padding:0 0 10px;background:0 0;border:0;border-bottom:2px solid transparent;color:var(--ink-muted);font:500 12px inherit;white-space:nowrap;cursor:pointer}.email-status-tabs button.active{border-color:var(--accent);color:var(--color)}.email-status-tabs button span{margin-left:5px;font-family:var(--font-mono);font-size:11px}.email-state{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:20px;margin:16px 0;background:var(--paper-card);border:1px solid var(--border-color);border-radius:8px;color:var(--ink-muted)}.email-state p{margin:0}.email-state-error{color:var(--status-error)}.email-table-wrap{border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background:var(--paper-card)}.email-table{width:100%;table-layout:fixed;font-size:12px;line-height:1.5}.email-table td,.email-table th{padding:11px 14px;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.email-table th{background:var(--paper-bg-alt);color:var(--ink-muted);font-weight:500;font-size:11px}.email-table tbody tr+tr{border-top:1px solid var(--border-color)}.email-table th:first-child{width:32%}.email-table th:nth-child(2){width:19%}.email-table th:nth-child(3){width:21%}.email-table th:nth-child(4){width:18%}.email-table th:last-child{width:10%}.email-recipient>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.email-attempted,.email-type{color:var(--ink-muted)}.email-outcome{display:inline-flex;align-items:center;gap:6px;font-weight:500;white-space:nowrap}.email-outcome::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.email-outcome-accepted{color:var(--status-ready)}.email-outcome-rejected{color:var(--status-error)}.email-outcome-sending,.email-outcome-unknown{color:var(--status-progress)}.email-http{margin-left:8px;color:var(--ink-muted);font:10px var(--font-mono)}.email-copy,.email-detail-button{border:0;background:0 0;color:var(--link-color);cursor:pointer;font:inherit;padding:3px 0}.email-detail-button{white-space:nowrap}.email-detail-button span{margin-left:5px}.email-copy:hover,.email-detail-button:hover{text-decoration:underline}.email-selected{background:var(--paper-bg-alt)}.email-expanded td{padding:20px 24px;background:var(--paper-bg-alt)}.email-detail-heading{display:flex;align-items:center;gap:16px}.email-detail-heading h3{margin:0;font-size:14px}.email-explanation{max-width:85ch;margin:10px 0 20px;color:var(--ink-soft)}.email-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 30px;margin:0}.email-detail-grid dt{color:var(--ink-muted);font-size:11px;font-weight:400;margin-bottom:4px}.email-detail-grid dd{margin:0;overflow-wrap:anywhere}.email-detail-grid code{color:inherit;background:0 0;padding:0;font-size:11px}.email-copy{margin-left:10px;font-size:11px}.email-copy-feedback{margin:10px 0 0;color:var(--ink-muted);min-height:18px}.email-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px;color:var(--ink-muted);font-size:12px}.email-footer>div{display:flex;gap:8px}.email-about{margin:24px 0;color:var(--ink-muted);font-size:12px}.email-about summary{cursor:pointer;width:fit-content}.email-about p{max-width:90ch;margin:8px 0}@media(max-width:767px){.emails-page .email-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.emails-page .email-kpis .ov-kpi-card{padding:14px}.emails-page .email-kpis .ov-kpi-value{font-size:26px}.email-overview-toolbar .email-refresh{width:100%}.email-toolbar{flex-wrap:wrap}.email-toolbar .email-search{flex-basis:100%}.email-toolbar label:not(.email-search){flex:1}.email-toolbar select{min-width:0;width:100%}.email-legend{gap:10px}.email-chart .ov-chart-head{flex-wrap:wrap;gap:10px}.email-chart-dates{font-size:10px}.email-bars{gap:2px}.email-bar-column{padding:0}.email-status-tabs{gap:18px}.email-table,.email-table tbody{display:block}.email-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.email-table tbody tr{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:14px}.email-table td{display:block;padding:0;min-width:0}.email-table .email-recipient{grid-column:1/-1}.email-table .email-recipient>span{white-space:normal}.email-table .email-result{grid-column:1}.email-table .email-type{grid-column:1}.email-table .email-attempted{grid-column:1;font-size:11px}.email-table .email-expand{grid-column:2;grid-row:2/5;align-self:center}.email-table tbody .email-expanded{display:block;padding:18px 14px;background:var(--paper-bg-alt)}.email-detail-grid{grid-template-columns:1fr;gap:14px}.email-detail-heading{flex-wrap:wrap}.email-section-head .email-muted{font-size:11px}.email-footer{flex-wrap:wrap}.email-table .email-http{font-size:10px}}.emails-page .ov-kpi-sub{white-space:normal;overflow:visible;text-overflow:clip}.email-pager-top{margin:0 0 10px}.email-status-tabs button{font-family:inherit;font-size:12px;font-weight:500}.email-chart-data{margin:12px 0 0 30px;color:var(--ink-muted);font-size:11px}.email-chart-data summary{cursor:pointer;width:fit-content}.email-data-scroll{overflow:auto;max-height:240px;margin-top:10px}.email-chart-data table{width:100%;font-variant-numeric:tabular-nums}.email-chart-data td,.email-chart-data th{text-align:right;padding:6px 10px;border-bottom:1px solid var(--border-color);white-space:nowrap}.email-chart-data th:first-child{text-align:left}.email-chart-data th{font-weight:500}.email-search-help{margin:-6px 0 16px;font-size:11px;color:var(--ink-muted)}@media(max-width:767px){.email-status-tabs{flex-wrap:wrap;gap:10px 18px;overflow:visible}.email-status-tabs button{padding-bottom:7px}.email-search-help{line-height:1.5}}.emails-page .email-kpis .ov-kpi-sub{white-space:normal!important}#email-history-title{scroll-margin-top:80px}.email-jump{font-size:12px;margin-right:auto}.errors-page .log-correlations{display:flex;flex-wrap:wrap;gap:8px 16px}.errors-page .log-correlations .log-trace-button{min-height:44px;margin:0}.errors-page .log-explanation{margin:16px 0;max-width:760px}.errors-page .log-explanation p{margin:6px 0;font-size:13px;line-height:1.6}.errors-page .log-explanation .log-explanation-lead{font-size:15px;font-weight:500;color:var(--color)}.errors-page .log-detail-identifiers>div{display:block}.errors-page .log-detail-identifiers dt{margin-bottom:6px}.errors-page .log-detail-identifiers dd{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.errors-page .log-detail-identifiers .log-value-reveal{flex:1 1 100%;padding:8px 10px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card);font:13px var(--font-mono)}.errors-page .log-detail-identifiers .log-copy-value,.errors-page .log-follow-id{min-height:32px;padding:4px 8px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card);color:var(--link-color);font:12px var(--font-sans);cursor:pointer}@media(max-width:767px){.errors-page .log-detail-identifiers .log-copy-value,.errors-page .log-follow-id{min-height:44px}}@media(max-width:767px){.errors-page .log-detail-identifiers .log-value-reveal{padding:0}.errors-page .log-detail-identifiers .log-value-reveal>summary{min-height:44px;box-sizing:border-box;padding:12px 10px}.errors-page .log-detail-identifiers .log-value-reveal>span{margin:0;padding:0 10px 10px}}.errors-page .log-list-view .log-table th:first-child{width:52%}.errors-page .log-list-view .log-table th:nth-child(2){width:18%}.errors-page .log-list-view .log-table th:nth-child(3){width:12%}.errors-page .log-list-view .log-table th:last-child{width:18%}.errors-page .log-list-view .log-table td{padding:14px 16px}.errors-page .log-query{margin:0}.errors-page .log-query>summary{display:flex;gap:16px;width:fit-content}.errors-page .log-query-hint{float:none}.errors-page .log-local-filters{margin-top:8px}.errors-page .log-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:0 0;color:var(--link-color);font:13px var(--font-sans);cursor:pointer}.errors-page .log-inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 0 24px}.errors-page .log-inspector-eyebrow{color:var(--ink-muted);font-size:12px;margin:0 0 6px}.errors-page .log-inspector #log-detail-title{font:600 24px/1.35 var(--font-sans);margin:0;overflow-wrap:anywhere}.errors-page .log-inspector-heading>div{min-width:0}.errors-page .log-inspector-heading>.log-severity{flex-shrink:0;font-size:12px}.errors-page .log-inspector-tabs{display:flex;gap:28px;border-bottom:1px solid var(--border-color)}.errors-page .log-inspector-tabs button{min-height:44px;padding:8px 0;border:0;border-bottom:2px solid transparent;background:0 0;font:500 14px var(--font-sans);color:var(--ink-muted);cursor:pointer}.errors-page .log-inspector-tabs button.active{color:var(--color);border-bottom-color:var(--accent)}.errors-page .log-overview{display:grid;grid-template-columns:minmax(0,1fr) 280px;padding:0;background:var(--paper-card);border:1px solid var(--border-color);border-top:0}.errors-page .log-overview-main{min-width:0;padding:28px}.errors-page .log-overview h3{font:600 13px var(--font-sans);margin:0 0 12px}.errors-page .log-overview .log-explanation-lead{font:500 17px/1.55 var(--font-sans);color:var(--color);margin:0 0 12px}.errors-page .log-evidence{font:13px/1.6 var(--font-sans);color:var(--ink-soft)}.errors-page .log-overview .log-coverage{font-size:12px;line-height:1.6;max-width:65ch}.errors-page .log-overview-context{padding:28px 22px;border-left:1px solid var(--border-color);background:var(--paper-bg-alt);min-width:0}.errors-page .log-occurrence-total{display:block;font:500 28px var(--font-sans);margin-bottom:20px;font-variant-numeric:tabular-nums}.errors-page .log-overview-context dl{display:block}.errors-page .log-overview-context dd{font:13px/1.6 var(--font-sans)}.errors-page .log-overview-context .log-identifiers-title{margin-top:28px}.errors-page .log-overview-context .log-value-reveal{padding:0}.errors-page .log-overview-context .log-value-reveal summary{min-height:44px;box-sizing:border-box;padding:12px 10px}.errors-page .log-overview-context .log-value-reveal>span{padding:0 10px 10px;margin:0;font-size:12px}.errors-page .log-overview-context .log-copy-value{padding:0;min-height:32px;border:0;background:0 0}.errors-page .log-next-step{border-top:1px solid var(--border-color);margin-top:28px;padding-top:24px}.errors-page .log-next-step p{color:var(--ink-soft);font-size:13px;margin:0 0 16px}.errors-page .log-detail-actions{display:flex;flex-wrap:wrap;gap:10px}.errors-page .log-detail-actions .log-trace-button{margin:0;padding:8px 12px;min-height:40px;border:1px solid var(--border-color);border-radius:4px;background:var(--paper-card)}.errors-page .log-all-fields{border-top:1px solid var(--border-color);margin-top:28px;padding-top:12px;font-size:13px}.errors-page .log-all-fields>summary{min-height:44px;box-sizing:border-box;padding:12px 0}.errors-page .log-all-fields>summary>span{color:var(--ink-muted);margin-left:8px}.errors-page .log-all-fields dl{grid-template-columns:1fr 1fr;padding-bottom:16px}.errors-page .log-all-fields dt{font-size:12px}.errors-page .log-all-fields dd{font-size:13px}.errors-page .log-inspector .log-timeline{margin:0;padding:24px 28px;border-top:0;border-radius:0;background:var(--paper-card)}.errors-page .log-timeline .volume-head{justify-content:space-between}.errors-page .log-timeline h3{font-size:16px}.errors-page .log-timeline .log-origin{font-size:13px}.errors-page .log-events{list-style:none;padding:0;margin-top:24px}.errors-page .log-events li{display:grid;grid-template-columns:145px minmax(0,1fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--border-color)}.errors-page .log-events time{color:var(--ink-muted);font:12px/1.6 var(--font-mono)}.errors-page .log-timeline-event-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.errors-page .log-timeline-event-title strong{font-size:14px;overflow-wrap:anywhere}.errors-page .log-timeline-event p{margin:6px 0;color:var(--ink-muted);font-size:12px}.errors-page .log-event-fields>summary,.errors-page .log-timeline-scope>summary{color:var(--ink-muted);font-size:12px}.errors-page .log-event-fields pre,.errors-page .log-raw-sample pre{padding:12px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:4px;box-shadow:none;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--font-mono)}.errors-page .log-timeline-scope code{display:block;overflow-wrap:anywhere}@media(max-width:767px){.errors-page .log-list-view .log-table td{padding:0}.errors-page .log-list-view .log-table td:last-child{grid-column:2;grid-row:2;display:block}.errors-page .log-inspector-heading{display:block;margin-bottom:16px}.errors-page .log-inspector-heading>.log-severity{margin-top:12px}.errors-page .log-inspector #log-detail-title{font-size:21px}.errors-page .log-overview{grid-template-columns:minmax(0,1fr)}.errors-page .log-overview-context,.errors-page .log-overview-main{padding:20px}.errors-page .log-overview-context{border-left:0;border-top:1px solid var(--border-color)}.errors-page .log-detail-actions .log-trace-button,.errors-page .log-overview-context .log-copy-value{min-height:44px}.errors-page .log-inspector .log-timeline{padding:20px}.errors-page .log-events li{grid-template-columns:minmax(0,1fr);gap:6px}.errors-page .log-event-fields summary,.errors-page .log-timeline-scope summary{min-height:44px;box-sizing:border-box;padding:12px 0}}.errors-page #history-inspector-title{font:600 24px/1.35 var(--font-sans);margin:0;overflow-wrap:anywhere}.errors-page .history-inspector{border-top:0;border-radius:0}.errors-page .history-inspector .errors-row{border:0}.errors-page .history-inspector .errors-row-detail{background:var(--paper-card);padding:24px!important}.errors-page .history-inspector .detail-tabs{margin-bottom:20px}.errors-page .history-inspector .detail-main{min-width:0}@media(max-width:767px){.errors-page #history-inspector-title{font-size:21px}.errors-page .history-inspector .errors-row-detail{padding:20px!important}}.errors-page .history-technical{margin:20px 0;border-top:1px solid var(--border-color)}.errors-page .history-technical>summary{min-height:44px;padding:12px 0;box-sizing:border-box;font-size:13px}.errors-page .history-inspector .detail-main>div>h3{font:600 13px var(--font-sans);margin:0 0 12px}.errors-page .history-inspector .log-explanation-lead{font:500 17px/1.55 var(--font-sans)}.errors-page .history-source .log-inspector-tabs{margin-bottom:0;flex-wrap:wrap}.errors-page .log-facts-strip{display:flex;flex-wrap:wrap;gap:12px 28px;padding:0 0 20px;color:var(--ink-muted);font-size:12px}.errors-page .log-facts-strip strong,.errors-page .log-facts-strip time{color:var(--ink-soft);font-weight:500;font-variant-numeric:tabular-nums}.errors-page .log-investigation-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;border:1px solid var(--border-color);border-radius:6px;padding:0;background:var(--paper-card)}.errors-page .log-related-main{min-width:0}.errors-page .log-correlation-selector{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;border-bottom:1px solid var(--border-color);font-size:12px;color:var(--ink-muted)}.errors-page .log-correlation-selector .log-trace-button{margin:0;padding:7px 10px;min-height:36px;border:1px solid transparent;border-radius:4px;font-size:12px}.errors-page .log-correlation-selector .log-trace-button[aria-pressed=true]{border-color:var(--border-color);background:var(--paper-bg-alt);color:var(--color)}.errors-page .log-selector-mark{margin-left:6px}.errors-page .log-correlation-window{margin-left:auto}.errors-page .log-investigation-body .log-timeline{padding:20px;border:0}.errors-page .log-investigation-body .log-timeline h3{font-size:14px}.errors-page .log-investigation-body .log-events{margin:16px 0}.errors-page .log-investigation-body .log-events li{grid-template-columns:88px minmax(0,1fr);gap:16px;padding:16px 0}.errors-page .log-investigation-body .log-events time{font-size:11px;padding-top:2px}.errors-page .log-investigation-body .log-timeline-event{position:relative;padding-left:16px;border-left:1px solid var(--border-color)}.errors-page .log-investigation-body .log-timeline-event::before{content:'';position:absolute;top:6px;left:-4px;width:7px;height:7px;border-radius:50%;background:var(--ink-muted)}.errors-page .log-sample-panel{min-width:0;border-left:1px solid var(--border-color);padding:20px;background:var(--paper-bg-alt);border-radius:0 6px 6px 0}.errors-page .log-no-trace h3,.errors-page .log-sample-panel h3{font:600 14px var(--font-sans);margin:0 0 10px}.errors-page .log-sample-panel dl{display:block}.errors-page .log-sample-panel dt{font-size:11px}.errors-page .log-sample-panel dd{font-size:12px}.errors-page .log-sample-panel .log-value-reveal{padding:0}.errors-page .log-sample-panel .log-value-reveal summary{min-height:44px;padding:12px 8px;box-sizing:border-box;font-size:12px}.errors-page .log-sample-panel .log-value-reveal>span{padding:0 8px 8px;margin:0}.errors-page .log-sample-panel .log-copy-value{min-height:32px;border:0;background:0 0;padding:0}.errors-page .log-sample-panel .log-all-fields{margin-top:16px}.errors-page .log-sample-panel .log-all-fields summary{font-size:12px}.errors-page .log-no-trace{padding:24px;font-size:13px}@media(max-width:767px){.errors-page .log-inspector-heading{margin-top:4px}.errors-page .log-facts-strip{gap:8px 16px;padding-bottom:16px}.errors-page .log-investigation-body{grid-template-columns:minmax(0,1fr)}.errors-page .log-sample-panel{border-left:0;border-top:1px solid var(--border-color);border-radius:0 0 6px 6px}.errors-page .log-correlation-selector{padding:10px 14px}.errors-page .log-correlation-selector .log-trace-button,.errors-page .log-sample-panel .log-copy-value{min-height:44px}.errors-page .log-investigation-body .log-timeline{padding:16px}.errors-page .log-investigation-body .log-events li{grid-template-columns:minmax(0,1fr);gap:6px}}.errors-page .log-request-route code{font-size:12px;white-space:normal;overflow-wrap:anywhere}.errors-page .log-error-stack summary{min-height:44px;display:list-item;box-sizing:border-box;padding:12px 0;cursor:pointer;font-size:12px}.errors-page .log-error-stack pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;padding:12px;background:var(--paper-bg-alt);border:1px solid var(--border-color);border-radius:4px}.errors-page .history-occurrence-list{list-style:none;padding:0;margin:16px 0 0}.errors-page .history-occurrence-list>li{padding:0;border-top:1px solid var(--border-color)}.errors-page .history-occurrence-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px;color:var(--ink-muted);font-variant-numeric:tabular-nums}.errors-page .history-occurrence-list strong{font-size:14px;overflow-wrap:anywhere}.errors-page .history-occurrence-context{display:block;margin:4px 0 0;overflow-wrap:anywhere;color:var(--ink-soft);font-size:12px}.errors-page .history-occurrence-record summary{min-height:44px;padding:12px 0;box-sizing:border-box;cursor:pointer;color:var(--ink-soft)}.errors-page .history-occurrence-record pre{max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.errors-page .history-occurrence>summary{display:block;cursor:pointer;padding:16px 20px 16px 0;min-height:44px;position:relative}.errors-page .history-occurrence>summary::after{content:"+";position:absolute;right:0;top:16px;color:var(--ink-muted)}.errors-page .history-occurrence[open]>summary::after{content:"−"}.errors-page .history-occurrence>pre{white-space:pre-wrap;overflow-wrap:anywhere} \ No newline at end of file diff --git a/public/css/style.css b/public/css/style.css index 74183b1..fabf43f 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -14742,3 +14742,17 @@ body.dark-mode .reviewer-preview .rp-preserved-tag { background: rgba(251, 191, .errors-page .log-request-route code { font-size:12px; white-space:normal; overflow-wrap:anywhere; } .errors-page .log-error-stack summary { min-height:44px; display:list-item; box-sizing:border-box; padding:12px 0; cursor:pointer; font-size:12px; } .errors-page .log-error-stack pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; padding:12px; background:var(--paper-bg-alt); border:1px solid var(--border-color); border-radius:4px; } + +/* History occurrences retain evidence instead of repeating status badges. */ +.errors-page .history-occurrence-list { list-style:none; padding:0; margin:16px 0 0; } +.errors-page .history-occurrence-list > li { padding:0; border-top:1px solid var(--border-color); } +.errors-page .history-occurrence-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:8px; font-size:12px; color:var(--ink-muted); font-variant-numeric:tabular-nums; } +.errors-page .history-occurrence-list strong { font-size:14px; overflow-wrap:anywhere; } +.errors-page .history-occurrence-context { display:block; margin:4px 0 0; overflow-wrap:anywhere; color:var(--ink-soft); font-size:12px; } +.errors-page .history-occurrence-record summary { min-height:44px; padding:12px 0; box-sizing:border-box; cursor:pointer; color:var(--ink-soft); } +.errors-page .history-occurrence-record pre { max-height:320px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; } + +.errors-page .history-occurrence > summary { display:block; cursor:pointer; padding:16px 20px 16px 0; min-height:44px; position:relative; } +.errors-page .history-occurrence > summary::after { content:"+"; position:absolute; right:0; top:16px; color:var(--ink-muted); } +.errors-page .history-occurrence[open] > summary::after { content:"−"; } +.errors-page .history-occurrence > pre { white-space:pre-wrap; overflow-wrap:anywhere; } diff --git a/public/partials/admin/errors.htm b/public/partials/admin/errors.htm index 0346229..4c3bd91 100644 --- a/public/partials/admin/errors.htm +++ b/public/partials/admin/errors.htm @@ -109,7 +109,7 @@

Application history

{{ redisCollecting === false ? 'Collection is off; retained history is not receiving new events.' : 'Collection status is unknown.' }}

-

{{ historySelected.module }} · Application history

{{ historySelected.displayMessage }}

{{ historySelected._bucket }} · HTTP {{ historySelected._status }}
+

{{ historySelected.module }} · Application history

{{ historySelected.displayMessage }}

{{ historySelected._bucket }} · HTTP {{ historySelected._status }}
@@ -201,13 +201,22 @@

What happened

{{ row.raw[0].method }} {{ row.raw[0].route }}

{{ row.raw[0].errorType }} · caused by {{ row.raw[0].causeType }}

{{ logExplanation(row.raw?.[0] || {}) }}

{{ logEvidence(row.raw?.[0] || {}) }}

Technical fields
{{ key }}
{{ row?._rawJson }}
{{ row?._stack }}
- +
+

Stored occurrences

+

{{ row._related.length }} matching records in the loaded Redis snapshot. Most recent first.

+
    +
  1. +
    + {{ r._status ? 'HTTP '+r._status : r._bucket }}{{ r.raw?.[0]?.service || 'Application' }} · {{ r.module || 'Unknown module' }} · {{ r.raw[0].method }} {{ r.raw[0].route }} · Route not captured +

    {{ r.raw[0].errorType }}

    +
    {{ r._stack }}
    +

    Exception frames were not captured.

    +

    Request route was not captured.

    +
    Stored record
    {{ r._rawJson }}
    +
    +
  2. +
+
diff --git a/public/script/admin-log-investigation.js b/public/script/admin-log-investigation.js index b24b93e..a9fb52c 100644 --- a/public/script/admin-log-investigation.js +++ b/public/script/admin-log-investigation.js @@ -35,6 +35,8 @@ export function installLogInvestigation(state, http) { sample.attempt !== undefined ? "Recorded attempt: " + sample.attempt + "." : "", sample.queue ? "Queue: " + sample.queue + "." : "", ].filter(Boolean).join(" "); + state.occurrenceTime = value => Number.isFinite(Date.parse(value)) ? new Date(value).toLocaleString(undefined, {dateStyle:"medium",timeStyle:"medium"}) : "Time not captured"; + state.historyOccurrences = row => (row?._related || []).slice().sort((a,b) => Date.parse(b.ts)-Date.parse(a.ts)); state.historyDetailFields = row => { try { const value = JSON.parse(row?._detailJson || "{}"); return value && typeof value === "object" ? Object.entries(value) : [["value", value]]; } catch { return [["record", row?._detailJson || ""]]; } diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index 21e7236..aa10159 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -1,29 +1,29 @@ -"use strict";(()=>{var el=Object.defineProperty;var tl=e=>{throw TypeError(e)};var rf=(e,t,s)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var af=(e,t)=>{for(var s in t)el(e,s,{get:t[s],enumerable:!0})};var et=(e,t,s)=>rf(e,typeof t!="symbol"?t+"":t,s),hr=(e,t,s)=>t.has(e)||tl("Cannot "+s);var re=(e,t,s)=>(hr(e,t,"read from private field"),s?s.call(e):t.get(e)),qe=(e,t,s)=>t.has(e)?tl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),_e=(e,t,s,i)=>(hr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),$e=(e,t,s)=>(hr(e,t,"access private method"),s);var nl=(e,t,s,i)=>({set _(o){_e(e,t,o,s)},get _(){return re(e,t,i)}});var ge=["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 ve={markdown:"/script/markdown.6c8dfb7b1d.min.js",notebook:"/script/notebook.c3144c18ae.min.js",org:"/script/org.f61f262915.min.js",pdf:"/script/pdf.4d9cc6ff49.min.js",editor:"/script/editor.4f142d3adc.min.js"};function ol(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function sl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,p,c,v,g,y,m=!0,b,E=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(_=>_.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:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>m&&e.user?.username===y;function w(){m=!1,r=p=c=void 0,E.resolve(),o.clearTimeout(b)}e.on("dispose",w),e.on("routeLeave",w),e.watch(()=>e.user?.username,_=>{!y&&_?y=_:y&&_!==y&&(w(),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 D=()=>({timeout:E.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),O=_=>_?.status===404?"Artifact linking is not available on this server.":_?.status===401?"Sign in, then open a new artifact link from your submission.":_?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!m||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let _=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(_)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(b),g||(g=S());try{let j=(await s.get("/api/review-consent/csrf",{timeout:E.promise})).data;if(!N())return;if(c=j.csrf,e.handoffEnabled=j.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let oe=(await s.post("/api/review-consent/preview",{repositoryId:_,intent:{...r,requestId:g}},D())).data;if(!N())return;if(!oe||typeof oe.ticket!="string"||!oe.ticket||oe.ticket.length>8192||typeof oe.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(oe.policy?.access)||!Number.isSafeInteger(oe.policy.version)||!Number.isFinite(Date.parse(oe.policy.retainUntil))||!Number.isFinite(Date.parse(oe.expiresAt))||Date.parse(oe.expiresAt)<=Date.now()||Date.parse(oe.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=oe.ticket,v=S(),e.preview={repositoryName:oe.repositoryName,policy:{...oe.policy},expiresAt:oe.expiresAt},b=o.setTimeout(()=>{m&&(e.expired=!0)},Math.max(0,Date.parse(oe.expiresAt)-Date.now()))}catch(j){N()&&(e.error=O(j))}finally{N()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!N()||e.busy||e.saved||!p||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let _=(await s.post("/api/review-consent/confirm",{ticket:p,requestId:v,acceptAccess:!0,acceptRetention:!0},D())).data;if(!N())return;if(_?.requestId!==v||!Number.isFinite(Date.parse(_.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,r=void 0,e.handoffEnabled||(p=void 0)}catch{N()&&(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{N()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!N()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let _,j=()=>{_?.remove(),o.removeEventListener("securitypolicyviolation",oe)},oe=F=>{F.violatedDirective?.startsWith("form-action")&&(j(),N()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let F=(await s.post("/api/review-consent/handoff",{ticket:p},D())).data;if(!N())return;let B=F?.completion,I=new URL(F?.callbackUrl);if(!B||Object.keys(B).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||B.contract!=="4open.artifacts/1"||B.clientId!==u.clientId||B.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(B.code||"")||!Number.isFinite(Date.parse(B.expiresAt))||Date.parse(B.expiresAt)<=Date.now()||Date.parse(B.expiresAt)>Date.now()+3e5||I.protocol!=="https:"||I.href!==F.callbackUrl||I.username||I.password||F.callbackUrl.includes("?")||F.callbackUrl.includes("#"))throw new Error("invalid_handoff");_=o.document.createElement("form"),_.method="POST",_.action=I.href;let L=o.document.createElement("input");L.type="hidden",L.name="completion",L.value=JSON.stringify(B),_.appendChild(L),o.document.body.appendChild(_),o.addEventListener("securitypolicyviolation",oe),e.on("dispose",j),_.submit()}catch{j(),N()&&(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 ti=new Map,uf=ve;function Xn(e){if(!ti.has(e)){let t=document.createElement("script");t.src=uf[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{ti.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});ti.set(e,s),document.head.appendChild(t)}return ti.get(e)}async function ni(){await Xn("editor"),ace.config.set("basePath","/script/external/ace/")}function Ro(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var xe={},On=[],At=()=>{},vr=()=>!1,To=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Do=e=>e.startsWith("onUpdate:"),pt=Object.assign,ts=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},cf=Object.prototype.hasOwnProperty,Ge=(e,t)=>cf.call(e,t),Ne=Array.isArray,yn=e=>ns(e)==="[object Map]",Jt=e=>ns(e)==="[object Set]",il=e=>ns(e)==="[object Date]";var Ie=e=>typeof e=="function",rt=e=>typeof e=="string",$t=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",yr=e=>(Xe(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),dl=Object.prototype.toString,ns=e=>dl.call(e),br=e=>ns(e).slice(8,-1),oi=e=>ns(e)==="[object Object]",si=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Po=Ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var ii=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},pf=/-\w/g,mt=ii(e=>e.replace(pf,t=>t.slice(1).toUpperCase())),ff=/\B([A-Z])/g,sn=ii(e=>e.replace(ff,"-$1").toLowerCase()),Qn=ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=ii(e=>e?`on${Qn(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Ao=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Io=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var rl,ss=()=>rl||(rl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(Ne(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(mf).forEach(s=>{if(s){let i=s.split(hf);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function R(e){let t="";if(rt(e))t=e;else if(Ne(e))for(let s=0;sXt(s,t))}var pl=e=>!!(e&&e.__v_isRef===!0),d=e=>rt(e)?e:e==null?"":Ne(e)||Xe(e)&&(e.toString===dl||!Ie(e.toString))?pl(e)?d(e.value):JSON.stringify(e,fl,2):String(e),fl=(e,t)=>pl(t)?fl(e,t.value):yn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[gr(i,r)+" =>"]=o,s),{})}:Jt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>gr(s))}:$t(t)?gr(t):Xe(t)&&!Ne(t)&&!oi(t)?String(t):t,gr=(e,t="")=>{var s;return $t(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function kf(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var ht,ls=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&&ht&&(ht.active?(this.parent=ht,this.index=(ht.scopes||(ht.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(ht===this)ht=this.prevScope;else{let t=ht;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(as){let t=as;for(as=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;rs;){let t=rs;for(rs=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function wl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kl(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),Mr(i),Cf(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function Sr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ds)||(e.globalVersion=ds,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sr(e))))return;e.flags|=2;let t=e.dep,s=ot,i=Qt;ot=e,Qt=!0;try{wl(e);let o=e.fn(e._value);(t.version===0||Ht(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=s,Qt=i,kl(e),e.flags&=-3}}function Mr(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Mr(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Cf(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var Qt=!0,Sl=[];function Zt(){Sl.push(Qt),Qt=!1}function xt(){let e=Sl.pop();Qt=e===void 0?!0:e}function ml(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=ot;ot=void 0;try{t()}finally{ot=s}}}var ds=0,Er=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},us=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(!ot||!Qt||ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ot)s=this.activeLink=new Er(ot,this),ot.deps?(s.prevDep=ot.depsTail,ot.depsTail.nextDep=s,ot.depsTail=s):ot.deps=ot.depsTail=s,El(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=ot.depsTail,s.nextDep=void 0,ot.depsTail.nextDep=s,ot.depsTail=s,ot.deps===s&&(ot.deps=i)}return s}trigger(t){this.version++,ds++,this.notify(t)}notify(t){Ir();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Or()}}};function El(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)El(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var Nr=new WeakMap,xn=Symbol(""),Rr=Symbol(""),cs=Symbol("");function Ct(e,t,s){if(Qt&&ot){let i=Nr.get(e);i||Nr.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new us),o.map=i,o.key=s),o.track()}}function an(e,t,s,i,o,r){let u=Nr.get(e);if(!u){ds++;return}let p=c=>{c&&c.trigger()};if(Ir(),t==="clear")u.forEach(p);else{let c=Ne(e),v=c&&si(s);if(c&&s==="length"){let g=Number(i);u.forEach((y,m)=>{(m==="length"||m===cs||!$t(m)&&m>=g)&&p(y)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),v&&p(u.get(cs)),t){case"add":c?v&&p(u.get("length")):(p(u.get(xn)),yn(e)&&p(u.get(Rr)));break;case"delete":c||(p(u.get(xn)),yn(e)&&p(u.get(Rr)));break;case"set":yn(e)&&p(u.get(xn));break}}Or()}function Oo(e){let t=Ye(e);return t===e||(Ct(t,"iterate",cs),It(e))?t:jt(e)?dn(e)?t.map(s=>wn(Ft(s))):t.map(wn):t.map(Ft)}function ps(e){return Ct(e=Ye(e),"iterate",cs),e}function rn(e,t){return jt(e)?wn(dn(e)?Ft(t):t):Ft(t)}var Sf={__proto__:null,[Symbol.iterator](){return kr(this,Symbol.iterator,e=>rn(this,e))},concat(...e){return Oo(this).concat(...e.map(t=>Ne(t)?Oo(t):t))},entries(){return kr(this,"entries",e=>(e[1]=rn(this,e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,s=>s.map(i=>rn(this,i)),arguments)},find(e,t){return bn(this,"find",e,t,s=>rn(this,s),arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,s=>rn(this,s),arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cr(this,"includes",e)},indexOf(...e){return Cr(this,"indexOf",e)},join(e){return Oo(this).join(e)},lastIndexOf(...e){return Cr(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return is(this,"pop")},push(...e){return is(this,"push",e)},reduce(e,...t){return gl(this,"reduce",e,t)},reduceRight(e,...t){return gl(this,"reduceRight",e,t)},shift(){return is(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return is(this,"splice",e)},toReversed(){return Oo(this).toReversed()},toSorted(e){return Oo(this).toSorted(e)},toSpliced(...e){return Oo(this).toSpliced(...e)},unshift(...e){return is(this,"unshift",e)},values(){return kr(this,"values",e=>rn(this,e))}};function kr(e,t,s){let i=ps(e),o=i[t],r=o.call(i);if(i!==e&&!It(e)){if(r[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(r));return u.next=()=>hl(r.next(),s),o!==Nl[t]&&Object.defineProperties(u,{return:{get(){let p=r.return;return typeof p=="function"?p.bind(r):p}},throw:{get(){let p=r.throw;return typeof p=="function"?p.bind(r):p}}}),u}r._next=r.next,r.next=()=>hl(r._next(),s)}return r}function hl(e,t){return e.done||(e.value=t(e.value)),e}var Nl=Array.prototype;function bn(e,t,s,i,o,r){let u=ps(e),p=u!==e&&!It(e),c=u[t];if(c!==Nl[t]){let y=c.apply(e,r);return p?Ft(y):y}let v=s;u!==e&&(p?v=function(y,m){return s.call(this,rn(e,y),m,e)}:s.length>2&&(v=function(y,m){return s.call(this,y,m,e)}));let g=c.call(u,v,i);return p&&o?o(g):g}function gl(e,t,s,i){let o=ps(e),r=o!==e&&!It(e),u=s,p=!1;o!==e&&(r?(p=i.length===0,u=function(v,g,y){return p&&(p=!1,v=rn(e,v)),s.call(this,v,rn(e,g),y,e)}):s.length>3&&(u=function(v,g,y){return s.call(this,v,g,y,e)}));let c=o[t](u,...i);return p?rn(e,c):c}function Cr(e,t,s){let i=Ye(e);Ct(i,"iterate",cs);let o=i[t](...s);return(o===-1||o===!1)&&ms(s[0])?(s[0]=Ye(s[0]),i[t](...s)):o}function is(e,t,s=[]){Zt(),Ir();let i=Ye(e)[t].apply(e,s);return Or(),xt(),i}var Ef=Ro("__proto__,__v_isRef,__isVue"),Rl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t));function Nf(e){$t(e)||(e=String(e));let t=Ye(this);return Ct(t,"has",e),t.hasOwnProperty(e)}var pi=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Vf:Pl:r?Dl:Tl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ne(t);if(!o){let c;if(u&&(c=Sf[s]))return c;if(s==="hasOwnProperty")return Nf}let p=Reflect.get(t,s,wt(t)?t:i);if(($t(s)?Rl.has(s):Ef(s))||(o||Ct(t,"get",s),r))return p;if(wt(p)){let c=u&&si(s)?p:p.value;return o&&Xe(c)?mi(c):c}return Xe(p)?o?mi(p):st(p):p}},fi=class extends pi{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],u=Ne(t)&&si(s);if(!this._isShallow){let v=jt(r);if(!It(i)&&!jt(i)&&(r=Ye(r),i=Ye(i)),!u&&wt(r)&&!wt(i))return v||(r.value=i),!0}let p=u?Number(s)e,di=e=>Reflect.getPrototypeOf(e);function Pf(e,t,s){return function(...i){let o=this.__v_raw,r=Ye(o),u=yn(r),p=e==="entries"||e===Symbol.iterator&&u,c=e==="keys"&&u,v=o[e](...i),g=s?Dr:t?wn:Ft;return!t&&Ct(r,"iterate",c?Rr:xn),pt(Object.create(v),{next(){let{value:y,done:m}=v.next();return m?{value:y,done:m}:{value:p?[g(y[0]),g(y[1])]:g(y),done:m}}})}}function ui(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Af(e,t){let s={get(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);e||(Ht(o,p)&&Ct(u,"get",o),Ct(u,"get",p));let{has:c}=di(u),v=t?Dr:e?wn:Ft;if(c.call(u,o))return v(r.get(o));if(c.call(u,p))return v(r.get(p));r!==u&&r.get(o)},get size(){let o=this.__v_raw;return!e&&Ct(Ye(o),"iterate",xn),o.size},has(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);return e||(Ht(o,p)&&Ct(u,"has",o),Ct(u,"has",p)),o===p?r.has(o):r.has(o)||r.has(p)},forEach(o,r){let u=this,p=u.__v_raw,c=Ye(p),v=t?Dr:e?wn:Ft;return!e&&Ct(c,"iterate",xn),p.forEach((g,y)=>o.call(r,v(g),v(y),u))}};return pt(s,e?{add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear")}:{add(o){let r=Ye(this),u=di(r),p=Ye(o),c=!t&&!It(o)&&!jt(o)?p:o;return u.has.call(r,c)||Ht(o,c)&&u.has.call(r,o)||Ht(p,c)&&u.has.call(r,p)||(r.add(c),an(r,"add",c,c)),this},set(o,r){!t&&!It(r)&&!jt(r)&&(r=Ye(r));let u=Ye(this),{has:p,get:c}=di(u),v=p.call(u,o);v||(o=Ye(o),v=p.call(u,o));let g=c.call(u,o);return u.set(o,r),v?Ht(r,g)&&an(u,"set",o,r,g):an(u,"add",o,r),this},delete(o){let r=Ye(this),{has:u,get:p}=di(r),c=u.call(r,o);c||(o=Ye(o),c=u.call(r,o));let v=p?p.call(r,o):void 0,g=r.delete(o);return c&&an(r,"delete",o,void 0,v),g},clear(){let o=Ye(this),r=o.size!==0,u=void 0,p=o.clear();return r&&an(o,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Pf(o,e,t)}),s}function Vr(e,t){let s=Af(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?i:Reflect.get(Ge(s,o)&&o in i?s:i,o,r)}var If={get:Vr(!1,!1)},Of={get:Vr(!1,!0)},Mf={get:Vr(!0,!1)};var Tl=new WeakMap,Dl=new WeakMap,Pl=new WeakMap,Vf=new WeakMap;function Lf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function st(e){return jt(e)?e:Lr(e,!1,Rf,If,Tl)}function fs(e){return Lr(e,!1,Df,Of,Dl)}function mi(e){return Lr(e,!0,Tf,Mf,Pl)}function Lr(e,t,s,i,o){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let u=Lf(br(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return o.set(e,p),p}function dn(e){return jt(e)?dn(e.__v_raw):!!(e&&e.__v_isReactive)}function jt(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function ms(e){return e?!!e.__v_raw:!1}function Ye(e){let t=e&&e.__v_raw;return t?Ye(t):e}function un(e){return!Ge(e,"__v_skip")&&Object.isExtensible(e)&&ri(e,"__v_skip",!0),e}var Ft=e=>Xe(e)?st(e):e,wn=e=>Xe(e)?mi(e):e;function wt(e){return e?e.__v_isRef===!0:!1}function St(e){return Al(e,!1)}function gi(e){return Al(e,!0)}function Al(e,t){return wt(e)?e:new Pr(e,t)}var Pr=class{constructor(t,s){this.dep=new us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Ye(t),this._value=s?t:Ft(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||It(t)||jt(t);t=i?t:Ye(t),Ht(t,s)&&(this._rawValue=t,this._value=i?t:Ft(t),this.dep.trigger())}};function kn(e){return wt(e)?e.value:e}var qf={get:(e,t,s)=>t==="__v_raw"?e:kn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return wt(o)&&!wt(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function vi(e){return dn(e)?e:new Proxy(e,qf)}var Ar=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ds-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return bl(this,!0),!0}get value(){let t=this.dep.track();return Cl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Il(e,t,s=!1){let i,o;return Ie(e)?i=e:(i=e.get,o=e.set),new Ar(i,o,s)}var ci={},hi=new WeakMap,Zn;function Ol(e,t=!1,s=Zn){if(s){let i=hi.get(s);i||hi.set(s,i=[]),i.push(e)}}function Ml(e,t,s=xe){let{immediate:i,deep:o,once:r,scheduler:u,augmentJob:p,call:c}=s,v=j=>{(s.onWarn||kf)("Invalid watch source: ",j,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=j=>o?j:It(j)||o===!1||o===0?ln(j,1):ln(j),y,m,b,E,S=!1,N=!1;if(wt(e)?(m=()=>e.value,S=It(e)):dn(e)?(m=()=>g(e),S=!0):Ne(e)?(N=!0,S=e.some(j=>dn(j)||It(j)),m=()=>e.map(j=>{if(wt(j))return j.value;if(dn(j))return g(j);if(Ie(j))return c?c(j,2):j()})):Ie(e)?t?m=c?()=>c(e,2):e:m=()=>{if(b){Zt();try{b()}finally{xt()}}let j=Zn;Zn=y;try{return c?c(e,3,[E]):e(E)}finally{Zn=j}}:m=At,t&&o){let j=m,oe=o===!0?1/0:o;m=()=>ln(j(),oe)}let w=vl(),D=()=>{y.stop(),w&&w.active&&ts(w.effects,y)};if(r&&t){let j=t;t=(...oe)=>{try{return j(...oe)}finally{D()}}}let O=N?new Array(e.length).fill(ci):ci,_=j=>{if(!(!(y.flags&1)||!y.dirty&&!j))if(t){let oe=y.run();if(j||o||S||(N?oe.some((F,B)=>Ht(F,O[B])):Ht(oe,O))){let F=Zn;Zt();try{b&&b(),Zn=y;let B=[oe,O===ci?void 0:N&&O[0]===ci?[]:O,E];O=oe,c?c(t,3,B):t(...B)}finally{Zn=F,xt()}}}else y.run()};return p&&p(_),y=new Mo(m),y.scheduler=u?()=>u(_,!1):_,E=j=>Ol(j,!1,y),b=y.onStop=()=>{let j=hi.get(y);if(j){if(c)c(j,4);else for(let oe of j)oe();hi.delete(y)}},t?i?_(!0):O=y.run():u?u(_.bind(null,!0),!0):y.run(),D.pause=y.pause.bind(y),D.resume=y.resume.bind(y),D.stop=D,D}function ln(e,t=1/0,s){if(t<=0||!Xe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,wt(e))ln(e.value,t,s);else if(Ne(e))for(let i=0;i{ln(i,t,s)});else if(oi(e)){for(let i in e)ln(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&ln(e[i],t,s)}return e}function Rs(e,t,s,i){try{return i?e(...i):e()}catch(o){Ts(o,t,s)}}function Gt(e,t,s,i){if(Ie(e)){let o=Rs(e,t,s,i);return o&&yr(o)&&o.catch(r=>{Ts(r,t,s)}),o}if(Ne(e)){let o=[];for(let r=0;r>>1,o=Dt[i],r=ks(o);r=ks(s)?Dt.push(e):Dt.splice(Bf(t),0,e),e.flags|=1,Xl()}}function Xl(){wi||(wi=Jl.then(ed))}function Ql(e){if(!Ne(e))Mn&&e.id===-1?Mn.splice(Vo+1,0,e):e.flags&1||(pn.push(e),e.flags|=1);else for(let t=0;t=t))continue;Dt.splice(i,1),i=e?i-1:en,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function xl(e,t,s=0){if(pn.length){let i=pn,o=0;if(t){i=[];for(let u=0;uks(u)-ks(p));if(pn.length=o,Mn){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function ed(e){let t=At;try{for(en=0;en{i._d&&Ei(-1);let r=ki(t),u=oo.length,p;try{p=e(...o)}finally{for(let c=oo.length;c>u;c--)Ad();ki(r),i._d&&Ei(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function T(e,t){if(_t===null)return e;let s=Oi(_t),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&Ie(t)?t.call(i&&i.proxy):t}}var jf=Symbol.for("v-scx"),Gf=()=>{{let e=Mt(jf);return e}};function ut(e,t,s){return nd(e,t,s)}function nd(e,t,s=xe){let{immediate:i,deep:o,flush:r,once:u}=s,p=pt({},s),c=t&&i||!t&&r!=="post",v;if($o){if(r==="sync"){let b=Gf();v=b.__watcherHandles||(b.__watcherHandles=[])}else if(!c){let b=()=>{};return b.stop=At,b.resume=At,b.pause=At,b}}let g=Et;p.call=(b,E,S)=>Gt(b,g,E,S);let y=!1;r==="post"?p.scheduler=b=>{b.i=g,Ot(b,g&&g.suspense)}:r!=="sync"&&(y=!0,p.scheduler=(b,E)=>{E?b():Kr(b)}),p.augmentJob=b=>{t&&(b.flags|=4),y&&(b.flags|=2,g&&(b.id=g.uid,b.i=g))};let m=Ml(e,t,p);return $o&&(v?v.push(m):c&&m()),m}function Wf(e,t,s){let i=this.proxy,o=rt(e)?e.includes(".")?od(i,e):()=>i[e]:e.bind(i,i),r;Ie(t)?r=t:(r=t.handler,s=t);let u=As(this),p=nd(o,r.bind(i),s);return u(),p}function od(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var $r=Symbol("_leaveCb");function Yf(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==tn){t=i,s=!0;break}}return t}function sd(e){if(!Di(e))return Ti(e.type)&&e.children?Yf(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Ie(s.default))return s.default()}}function Cs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Cs(Ti(s.type)&&sd(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===V&&Ne(e.children)){let s=gd(e.children,!1);s&&Cs(s,t)}}function Br(e){if(e.component)return Br(e.component.subTree);if(e.type===V){let t=Ne(e.children)&&gd(e.children,!1);return t?Br(t):void 0}if(e.type!==tn)return e}function Ds(e,t){return Ie(e)?pt({name:e.name},t,{setup:e}):e}function Yr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Ci=new WeakMap;function vs(e,t,s,i,o=!1){if(Ne(e)){e.forEach((S,N)=>vs(S,t&&(Ne(t)?t[N]:t),s,i,o));return}if(ys(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&vs(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?Oi(i.component):i.el,u=o?null:r,{i:p,r:c}=e,v=t&&t.r,g=p.refs===xe?p.refs={}:p.refs,y=p.setupState,m=Ye(y),b=y===xe?vr:S=>Vl(g,S)?!1:Ge(m,S),E=(S,N)=>!(N&&Vl(g,N));if(v!=null&&v!==c){if(Ll(t),rt(v))g[v]=null,b(v)&&(y[v]=null);else if(wt(v)){let S=t;E(v,S.k)&&(v.value=null),S.k&&(g[S.k]=null)}}if(Ie(c))Rs(c,p,12,[u,g]);else{let S=rt(c),N=wt(c);if(S||N){let w=()=>{if(e.f){let D=S?b(c)?y[c]:g[c]:E(c)||!e.k?c.value:g[e.k];if(o)Ne(D)&&ts(D,r);else if(Ne(D))D.includes(r)||D.push(r);else if(S)g[c]=[r],b(c)&&(y[c]=g[c]);else{let O=[r];E(c,e.k)&&(c.value=O),e.k&&(g[e.k]=O)}}else S?(g[c]=u,b(c)&&(y[c]=u)):N&&(E(c,e.k)&&(c.value=u),e.k&&(g[e.k]=u))};if(u){let D=()=>{w(),Ci.delete(e)};D.id=-1,Ci.set(e,D),Ot(D,s)}else Ll(e),w()}}}function Ll(e){let t=Ci.get(e);t&&(t.flags|=8,Ci.delete(e))}var ql=e=>e.nodeType===8;var Dte=ss().requestIdleCallback||(e=>setTimeout(e,1)),Pte=ss().cancelIdleCallback||(e=>clearTimeout(e));function Jf(e,t){if(ql(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(ql(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var ys=e=>!!e.type.__asyncLoader;function id(e){Ie(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:u,suspensible:p=!0,onError:c}=e,v=null,g,y=0,m=()=>(y++,v=null,b()),b=()=>{let E;return v||(E=v=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((N,w)=>{c(S,()=>N(m()),()=>w(S),y+1)});throw S}).then(S=>E!==v&&v?v:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),g=S,S)))};return Ds({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(E,S,N){let w=E.isConnected,D=!1;(S.bu||(S.bu=[])).push(()=>D=!0);let O=()=>{D||!E.parentNode||w&&!E.isConnected||N()},_=r?()=>{let j=r(O,oe=>Jf(E,oe));j&&(S.bum||(S.bum=[])).push(j)}:O;g?_():b().then(()=>!S.isUnmounted&&_())},get __asyncResolved(){return g},setup(){let E=Et;if(Yr(E),g)return()=>yi(g,E);let S=j=>{v=null,Ts(j,E,13,!i)};if(p&&E.suspense||$o)return b().then(j=>()=>yi(j,E)).catch(j=>(S(j),()=>i?Oe(i,{error:j}):null));let N=St(!1),w=St(),D=St(!!o),O,_;return Ps(()=>{O!=null&&clearTimeout(O),_!=null&&clearTimeout(_)}),o&&(_=setTimeout(()=>{E.isUnmounted||(D.value=!1)},o)),u!=null&&(O=setTimeout(()=>{if(!E.isUnmounted&&!N.value&&!w.value){let j=new Error(`Async component timed out after ${u}ms.`);S(j),w.value=j}},u)),b().then(()=>{E.isUnmounted||(N.value=!0,E.parent&&Di(E.parent.vnode)&&E.parent.update())}).catch(j=>{if(E.isUnmounted){v=null;return}S(j),w.value=j}),()=>{if(N.value&&g)return yi(g,E);if(w.value&&i)return Oe(i,{error:w.value});if(s&&!D.value)return yi(s,E)}}})}function yi(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,u=Oe(e,i,o);return u.ref=s,u.ce=r,delete t.vnode.ce,u}var Di=e=>e.type.__isKeepAlive;function rd(e,t){ld(e,"a",t)}function ad(e,t){ld(e,"da",t)}function ld(e,t,s=Et){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Pi(t,i,s),s){let o=s.parent;for(;o&&o.parent;)Di(o.parent.vnode)&&Xf(i,t,s,o),o=o.parent}}function Xf(e,t,s,i){let o=Pi(t,e,i,!0);Ps(()=>{ts(i[t],o)},s)}function Pi(e,t,s=Et,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...u)=>{Zt();let p=As(s),c=Gt(t,s,e,u);return p(),xt(),c});return i?o.unshift(r):o.push(r),r}}var Sn=e=>(t,s=Et)=>{(!$o||e==="sp")&&Pi(e,(...i)=>t(...i),s)},Qf=Sn("bm"),mn=Sn("m"),dd=Sn("bu"),ud=Sn("u"),io=Sn("bum"),Ps=Sn("um"),Zf=Sn("sp"),xf=Sn("rtg"),em=Sn("rtc");function tm(e,t=Et){Pi("ec",e,t)}var cd="components",nm="directives";function Qe(e,t){return pd(cd,e,!0,t)||e}var om=Symbol.for("v-ndc");function De(e){return pd(nm,e)}function pd(e,t,s=!0,i=!1){let o=_t||Et;if(o){let r=o.type;if(e===cd){let p=Um(r,!1);if(p&&(p===t||p===mt(t)||p===Qn(mt(t))))return r}let u=$l(o[e]||r[e],t)||$l(o.appContext[e],t);return!u&&i?r:u}}function $l(e,t){return e&&(e[t]||e[mt(t)]||e[Qn(mt(t))])}function Q(e,t,s,i){let o,r=s&&s[i],u=Ne(e);if(u||rt(e)){let p=u&&dn(e),c=!1,v=!1;p&&(c=!It(e),v=jt(e),e=ps(e)),o=new Array(e.length);for(let g=0,y=e.length;gt(p,c,void 0,r&&r[c]));else{let p=Object.keys(e);o=new Array(p.length);for(let c=0,v=p.length;ce?Vd(e)?Oi(e):zr(e.parent):null;var bs=pt(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=>zr(e.parent),$root:e=>zr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jr(e),$forceUpdate:e=>e.f||(e.f=()=>{Kr(e.update)}),$nextTick:e=>e.n||(e.n=je.bind(e.proxy)),$watch:e=>Wf.bind(e)});var Fr=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ge(e,t),sm={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:u,type:p,appContext:c}=e;if(t[0]!=="$"){let m=u[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(Fr(i,t))return u[t]=1,i[t];if(o!==xe&&Ge(o,t))return u[t]=2,o[t];if(Ge(r,t))return u[t]=3,r[t];if(s!==xe&&Ge(s,t))return u[t]=4,s[t];Hr&&(u[t]=0)}}let v=bs[t],g,y;if(v)return t==="$attrs"&&Ct(e.attrs,"get",""),v(e);if((g=p.__cssModules)&&(g=g[t]))return g;if(s!==xe&&Ge(s,t))return u[t]=4,s[t];if(y=c.config.globalProperties,Ge(y,t))return y[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return Fr(o,t)?(o[t]=s,!0):i!==xe&&Ge(i,t)?(i[t]=s,!0):Ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:u}},p){let c;return!!(s[p]||e!==xe&&p[0]!=="$"&&Ge(e,p)||Fr(t,p)||Ge(r,p)||Ge(i,p)||Ge(bs,p)||Ge(o.config.globalProperties,p)||(c=u.__cssModules)&&c[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ge(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Fl(e){return Ne(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var Hr=!0;function im(e){let t=Jr(e),s=e.proxy,i=e.ctx;Hr=!1,t.beforeCreate&&_l(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:u,watch:p,provide:c,inject:v,created:g,beforeMount:y,mounted:m,beforeUpdate:b,updated:E,activated:S,deactivated:N,beforeDestroy:w,beforeUnmount:D,destroyed:O,unmounted:_,render:j,renderTracked:oe,renderTriggered:F,errorCaptured:B,serverPrefetch:I,expose:L,inheritAttrs:k,components:q,directives:W,filters:H}=t;if(v&&rm(v,i,null),u)for(let G in u){let ue=u[G];Ie(ue)&&(i[G]=ue.bind(s))}if(o){let G=o.call(s,s);Xe(G)&&(e.data=st(G))}if(Hr=!0,r)for(let G in r){let ue=r[G],he=Ie(ue)?ue.bind(s,s):Ie(ue.get)?ue.get.bind(s,s):At,Me=!Ie(ue)&&Ie(ue.set)?ue.set.bind(s):At,Ue=Nt({get:he,set:Me});Object.defineProperty(i,G,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:We=>Ue.value=We})}if(p)for(let G in p)fd(p[G],i,s,G);if(c){let G=Ie(c)?c.call(s):c;Reflect.ownKeys(G).forEach(ue=>{so(ue,G[ue])})}g&&_l(g,e,"c");function ne(G,ue){Ne(ue)?ue.forEach(he=>G(he.bind(s))):ue&&G(ue.bind(s))}if(ne(Qf,y),ne(mn,m),ne(dd,b),ne(ud,E),ne(rd,S),ne(ad,N),ne(tm,B),ne(em,oe),ne(xf,F),ne(io,D),ne(Ps,_),ne(Zf,I),Ne(L))if(L.length){let G=e.exposed||(e.exposed={});L.forEach(ue=>{Object.defineProperty(G,ue,{get:()=>s[ue],set:he=>s[ue]=he,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===At&&(e.render=j),k!=null&&(e.inheritAttrs=k),q&&(e.components=q),W&&(e.directives=W),I&&Yr(e)}function rm(e,t,s=At){Ne(e)&&(e=jr(e));for(let i in e){let o=e[i],r;Xe(o)?"default"in o?r=Mt(o.from||i,o.default,!0):r=Mt(o.from||i):r=Mt(o),wt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:u=>r.value=u}):t[i]=r}}function _l(e,t,s){Gt(Ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function fd(e,t,s,i){let o=i.includes(".")?od(s,i):()=>s[i];if(rt(e)){let r=t[e];Ie(r)&&ut(o,r)}else if(Ie(e))ut(o,e.bind(s));else if(Xe(e))if(Ne(e))e.forEach(r=>fd(r,t,s,i));else{let r=Ie(e.handler)?e.handler.bind(s):t[e.handler];Ie(r)&&ut(o,r,e)}}function Jr(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:u}}=e.appContext,p=r.get(t),c;return p?c=p:!o.length&&!s&&!i?c=t:(c={},o.length&&o.forEach(v=>Si(c,v,u,!0)),Si(c,t,u)),Xe(t)&&r.set(t,c),c}function Si(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Si(e,r,s,!0),o&&o.forEach(u=>Si(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=am[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var am={data:Ul,props:Bl,emits:Bl,methods:gs,computed:gs,beforeCreate:Tt,created:Tt,beforeMount:Tt,mounted:Tt,beforeUpdate:Tt,updated:Tt,beforeDestroy:Tt,beforeUnmount:Tt,destroyed:Tt,unmounted:Tt,activated:Tt,deactivated:Tt,errorCaptured:Tt,serverPrefetch:Tt,components:gs,directives:gs,watch:dm,provide:Ul,inject:lm};function Ul(e,t){return t?e?function(){return pt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function lm(e,t){return gs(jr(e),jr(t))}function jr(e){if(Ne(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${sn(t)}Modifiers`];function fm(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||xe,o=s,r=t.startsWith("update:"),u=r&&pm(i,t.slice(7));u&&(u.trim&&(o=s.map(g=>rt(g)?g.trim():g)),u.number&&(o=o.map(Io)));let p,c=i[p=os(t)]||i[p=os(mt(t))];!c&&r&&(c=i[p=os(sn(t))]),c&&Gt(c,e,6,o);let v=i[p+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,Gt(v,e,6,o)}}var mm=new WeakMap;function hd(e,t,s=!1){let i=s?mm:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,u={},p=!1;if(!Ie(e)){let c=v=>{let g=hd(v,t,!0);g&&(p=!0,pt(u,g))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!p?(Xe(e)&&i.set(e,null),null):(Ne(r)?r.forEach(c=>u[c]=null):pt(u,r),Xe(e)&&i.set(e,u),u)}function Ai(e,t){return!e||!To(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ge(e,t[0].toLowerCase()+t.slice(1))||Ge(e,sn(t))||Ge(e,t))}function _r(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:u,attrs:p,emit:c,render:v,renderCache:g,props:y,data:m,setupState:b,ctx:E,inheritAttrs:S}=e,N=ki(e),w,D;try{if(s.shapeFlag&4){let j=o||i,oe=j;w=fn(v.call(oe,j,g,y,b,m,E)),D=p}else{let j=t;w=fn(j.length>1?j(y,{attrs:p,slots:u,emit:c}):j(y,null)),D=t.props?p:hm(p)}}catch(j){oo.length=0,Ts(j,e,1),w=Oe(tn)}let O=w,_;if(D&&S!==!1){let j=Object.keys(D),{shapeFlag:oe}=O;j.length&&oe&7&&(r&&j.some(Do)&&(D=gm(D,r)),O=qo(O,D,!1,!0))}if(s.dirs&&(O=qo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(s.dirs):s.dirs),s.transition){let j=Ti(O.type)&&sd(O)||O;Cs(j,s.transition)}return w=O,ki(N),w}function gd(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||To(s))&&((t||(t={}))[s]=e[s]);return t},gm=(e,t)=>{let s={};for(let i in e)(!Do(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function vm(e,t,s){let{props:i,children:o,component:r}=e,{props:u,children:p,patchFlag:c}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return i?zl(i,u,v):!!u;if(c&8){let g=t.dynamicProps;for(let y=0;yObject.create(yd),wd=e=>Object.getPrototypeOf(e)===yd;function bm(e,t,s,i=!1){let o={},r=bd();e.propsDefaults=Object.create(null),kd(e,t,o,r);for(let u in e.propsOptions[0])u in o||(o[u]=void 0);s?e.props=i?o:fs(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function wm(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:u}}=e,p=Ye(o),[c]=e.propsOptions,v=!1;if((i||u>0)&&!(u&16)){if(u&8){let g=e.vnode.dynamicProps;for(let y=0;y{c=!0;let[m,b]=Cd(y,t,!0);pt(u,m),b&&p.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!r&&!c)return Xe(e)&&i.set(e,On),On;if(Ne(r))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Qr=e=>Ne(e)?e.map(fn):[fn(e)],Cm=(e,t,s)=>{if(t._n)return t;let i=Hf((...o)=>Qr(t(...o)),s);return i._c=!1,i},Sd=(e,t,s)=>{let i=e._ctx;for(let o in e){if(Xr(o))continue;let r=e[o];if(Ie(r))t[o]=Cm(o,r,i);else if(r!=null){let u=Qr(r);t[o]=()=>u}}},Ed=(e,t)=>{let s=Qr(t);e.slots.default=()=>s},Nd=(e,t,s)=>{for(let i in t)(s||!Xr(i))&&(e[i]=t[i])},Sm=(e,t,s)=>{let i=e.slots=bd();if(e.vnode.shapeFlag&32){let o=t._;o?(Nd(i,t,s),s&&ri(i,"_",o,!0)):Sd(t,i)}else t&&Ed(e,t)},Em=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,u=xe;if(i.shapeFlag&32){let p=t._;p?s&&p===1?r=!1:Nd(o,t,s):(r=!t.$stable,Sd(t,o)),u=t}else t&&(Ed(e,t),u={default:1});if(r)for(let p in o)!Xr(p)&&u[p]==null&&delete o[p]};function Nm(){let e=[]}var Ot=Pm;function Rd(e){return Rm(e)}function Rm(e,t){Nm();let s=ss();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:u,createText:p,createComment:c,setText:v,setElementText:g,parentNode:y,nextSibling:m,setScopeId:b=At,insertStaticContent:E}=e,S=(P,A,U,x=null,K=null,ee=null,le=void 0,se=null,ie=!!A.dynamicChildren)=>{if(P===A)return;P&&!hs(P,A)&&(x=me(P),ze(P,K,ee,!0),P=null),A.patchFlag===-2&&(ie=!1,A.dynamicChildren=null),A.dynamicChildren&&P&&P.dynamicChildren&&P.dynamicChildren.hasOnce&&(A.dynamicChildren===On&&(A.dynamicChildren=[]),A.dynamicChildren.hasOnce=!0);let{type:te,ref:Ce,shapeFlag:fe}=A;switch(te){case Ii:N(P,A,U,x);break;case tn:w(P,A,U,x);break;case ws:P==null&&D(A,U,x,le);break;case V:W(P,A,U,x,K,ee,le,se,ie);break;default:fe&1?oe(P,A,U,x,K,ee,le,se,ie):fe&6?H(P,A,U,x,K,ee,le,se,ie):(fe&64||fe&128)&&te.process(P,A,U,x,K,ee,le,se,ie,pe)}Ce!=null&&K?vs(Ce,P&&P.ref,ee,A||P,!A):Ce==null&&P&&P.ref!=null&&vs(P.ref,null,ee,P,!0)},N=(P,A,U,x)=>{if(P==null)i(A.el=p(A.children),U,x);else{let K=A.el=P.el;A.children!==P.children&&v(K,A.children)}},w=(P,A,U,x)=>{P==null?i(A.el=c(A.children||""),U,x):A.el=P.el},D=(P,A,U,x)=>{[P.el,P.anchor]=E(P.children,A,U,x,P.el,P.anchor)},O=(P,A,U,x)=>{if(A.children!==P.children){let K=m(P.anchor);j(P),[A.el,A.anchor]=E(A.children,U,K,x)}else A.el=P.el,A.anchor=P.anchor},_=({el:P,anchor:A},U,x)=>{let K;for(;P&&P!==A;)K=m(P),i(P,U,x),P=K;i(A,U,x)},j=({el:P,anchor:A})=>{let U;for(;P&&P!==A;)U=m(P),o(P),P=U;o(A)},oe=(P,A,U,x,K,ee,le,se,ie)=>{if(A.type==="svg"?le="svg":A.type==="math"&&(le="mathml"),P==null)F(A,U,x,K,ee,le,se,ie);else{let te=P.el&&P.el._isVueCE?P.el:null;try{te&&te._beginPatch(),L(P,A,K,ee,le,se,ie)}finally{te&&te._endPatch()}}},F=(P,A,U,x,K,ee,le,se)=>{let ie,te,{props:Ce,shapeFlag:fe,transition:Ee,dirs:Te}=P;if(ie=P.el=u(P.type,ee,Ce&&Ce.is,Ce),fe&8?g(ie,P.children):fe&16&&I(P.children,ie,null,x,K,Ur(P,ee),le,se),Te&&to(P,null,x,"created"),B(ie,P,P.scopeId,le,x),Ce){for(let Ke in Ce)Ke!=="value"&&!Po(Ke)&&r(ie,Ke,null,Ce[Ke],ee,x);"value"in Ce&&r(ie,"value",null,Ce.value,ee),(te=Ce.onVnodeBeforeMount)&&cn(te,x,P)}Te&&to(P,null,x,"beforeMount");let Le=Tm(K,Ee);Le&&Ee.beforeEnter(ie),i(ie,A,U),((te=Ce&&Ce.onVnodeMounted)||Le||Te)&&Ot(()=>{let He;te&&cn(te,x,P),Le&&Ee.enter(ie),Te&&to(P,null,x,"mounted")},K)},B=(P,A,U,x,K)=>{if(U&&b(P,U),x)for(let ee=0;ee{for(let te=ie;te{let se=A.el=P.el,{patchFlag:ie,dynamicChildren:te,dirs:Ce}=A;ie|=P.patchFlag&16;let fe=P.props||xe,Ee=A.props||xe,Te;if(U&&no(U,!1),(Te=Ee.onVnodeBeforeUpdate)&&cn(Te,U,A,P),Ce&&to(A,P,U,"beforeUpdate"),U&&no(U,!0),te&&(!P.dynamicChildren||P.dynamicChildren.length!==te.length)&&(ie=0,le=!1,te=null),(fe.innerHTML&&Ee.innerHTML==null||fe.textContent&&Ee.textContent==null)&&g(se,""),te?k(P.dynamicChildren,te,se,U,x,Ur(A,K),ee):le||he(P,A,se,null,U,x,Ur(A,K),ee,!1),ie>0){if(ie&16)q(se,fe,Ee,U,K);else if(ie&2&&fe.class!==Ee.class&&r(se,"class",null,Ee.class,K),ie&4&&r(se,"style",fe.style,Ee.style,K),ie&8){let Le=A.dynamicProps;for(let Ke=0;Ke{Te&&cn(Te,U,A,P),Ce&&to(A,P,U,"updated")},x)},k=(P,A,U,x,K,ee,le)=>{for(let se=0;se{if(A!==U){if(A!==xe)for(let ee in A)!Po(ee)&&!(ee in U)&&r(P,ee,A[ee],null,K,x);for(let ee in U){if(Po(ee))continue;let le=U[ee],se=A[ee];le!==se&&ee!=="value"&&r(P,ee,se,le,K,x)}"value"in U&&r(P,"value",A.value,U.value,K)}},W=(P,A,U,x,K,ee,le,se,ie)=>{let te=A.el=P?P.el:p(""),Ce=A.anchor=P?P.anchor:p(""),{patchFlag:fe,dynamicChildren:Ee,slotScopeIds:Te}=A;Te&&(se=se?se.concat(Te):Te),P==null?(i(te,U,x),i(Ce,U,x),I(A.children||[],U,Ce,K,ee,le,se,ie)):fe>0&&fe&64&&Ee&&P.dynamicChildren&&P.dynamicChildren.length===Ee.length?(k(P.dynamicChildren,Ee,U,K,ee,le,se),(A.key!=null||K&&A===K.subTree)&&Td(P,A,!0)):he(P,A,U,Ce,K,ee,le,se,ie)},H=(P,A,U,x,K,ee,le,se,ie)=>{A.slotScopeIds=se,P==null?A.shapeFlag&512?K.ctx.activate(A,U,x,le,ie):J(A,U,x,K,ee,le,ie):ne(P,A,ie)},J=(P,A,U,x,K,ee,le)=>{let se=P.component=Lm(P,x,K);if(Di(P)&&(se.ctx.renderer=pe),qm(se,!1,le),se.asyncDep){if(K&&K.registerDep(se,G,le,ee),!P.el){let ie=se.subTree=Oe(tn);w(null,ie,A,U),P.placeholder=ie.el}}else G(se,P,A,U,K,ee,le)},ne=(P,A,U)=>{let x=A.component=P.component;if(vm(P,A,U))if(x.asyncDep&&!x.asyncResolved){A.el=P.el,A.placeholder=P.placeholder,ue(x,A,U);return}else x.next=A,x.update();else A.el=P.el,A.placeholder=P.placeholder,x.vnode=A},G=(P,A,U,x,K,ee,le)=>{let se=()=>{if(P.isMounted){let{next:fe,bu:Ee,u:Te,parent:Le,vnode:Ke}=P;{let at=Dd(P);if(at){fe&&(fe.el=Ke.el,ue(P,fe,le)),at.asyncDep.then(()=>{Ot(()=>{P.isUnmounted||te()},K)});return}}let He=fe,ke;no(P,!1),fe?(fe.el=Ke.el,ue(P,fe,le)):fe=Ke,Ee&&Ao(Ee),(ke=fe.props&&fe.props.onVnodeBeforeUpdate)&&cn(ke,Le,fe,Ke),no(P,!0);let we=_r(P),it=P.subTree;P.subTree=we,S(it,we,y(it.el),me(it),P,K,ee),fe.el=we.el,He===null&&ym(P,we.el),Te&&Ot(Te,K),(ke=fe.props&&fe.props.onVnodeUpdated)&&Ot(()=>cn(ke,Le,fe,Ke),K)}else{let fe,{el:Ee,props:Te}=A,{bm:Le,m:Ke,parent:He,root:ke,type:we}=P,it=ys(A);if(no(P,!1),Le&&Ao(Le),!it&&(fe=Te&&Te.onVnodeBeforeMount)&&cn(fe,He,A),no(P,!0),Ee&&Ve){let at=()=>{P.subTree=_r(P),Ve(Ee,P.subTree,P,K,null)};it&&we.__asyncHydrate?we.__asyncHydrate(Ee,P,at):at()}else{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(we,P.parent?P.parent.type:void 0);let at=P.subTree=_r(P);S(null,at,U,x,P,K,ee),A.el=at.el}if(Ke&&Ot(Ke,K),!it&&(fe=Te&&Te.onVnodeMounted)){let at=A;Ot(()=>cn(fe,He,at),K)}(A.shapeFlag&256||He&&ys(He.vnode)&&He.vnode.shapeFlag&256)&&P.a&&Ot(P.a,K),P.isMounted=!0,A=U=x=null}};P.scope.on();let ie=P.effect=new Mo(se);P.scope.off();let te=P.update=ie.run.bind(ie),Ce=P.job=ie.runIfDirty.bind(ie);Ce.i=P,Ce.id=P.uid,ie.scheduler=()=>Kr(Ce),no(P,!0),te()},ue=(P,A,U)=>{A.component=P;let x=P.vnode.props;P.vnode=A,P.next=null,wm(P,A.props,x,U),Em(P,A.children,U),Zt(),Zl(P),xt()},he=(P,A,U,x,K,ee,le,se,ie=!1)=>{let te=P&&P.children,Ce=P?P.shapeFlag:0,fe=A.children,{patchFlag:Ee,shapeFlag:Te}=A;if(Ee>0){if(Ee&128){Ue(te,fe,U,x,K,ee,le,se,ie);return}else if(Ee&256){Me(te,fe,U,x,K,ee,le,se,ie);return}}Te&8?(Ce&16&&X(te,K,ee),fe!==te&&g(U,fe)):Ce&16?Te&16?Ue(te,fe,U,x,K,ee,le,se,ie):X(te,K,ee,!0):(Ce&8&&g(U,""),Te&16&&I(fe,U,x,K,ee,le,se,ie))},Me=(P,A,U,x,K,ee,le,se,ie)=>{P=P||On,A=A||On;let te=P.length,Ce=A.length,fe=Math.min(te,Ce),Ee;for(Ee=0;EeCe?X(P,K,ee,!0,!1,fe):I(A,U,x,K,ee,le,se,ie,fe)},Ue=(P,A,U,x,K,ee,le,se,ie)=>{let te=0,Ce=A.length,fe=P.length-1,Ee=Ce-1;for(;te<=fe&&te<=Ee;){let Te=P[te],Le=A[te]=ie?Cn(A[te]):fn(A[te]);if(hs(Te,Le))S(Te,Le,U,null,K,ee,le,se,ie);else break;te++}for(;te<=fe&&te<=Ee;){let Te=P[fe],Le=A[Ee]=ie?Cn(A[Ee]):fn(A[Ee]);if(hs(Te,Le))S(Te,Le,U,null,K,ee,le,se,ie);else break;fe--,Ee--}if(te>fe){if(te<=Ee){let Te=Ee+1,Le=TeEe)for(;te<=fe;)ze(P[te],K,ee,!0),te++;else{let Te=te,Le=te,Ke=new Map;for(te=Le;te<=Ee;te++){let dt=A[te]=ie?Cn(A[te]):fn(A[te]);dt.key!=null&&Ke.set(dt.key,te)}let He,ke=0,we=Ee-Le+1,it=!1,at=0,yt=new Array(we);for(te=0;te=we){ze(dt,K,ee,!0);continue}let ft;if(dt.key!=null)ft=Ke.get(dt.key);else for(He=Le;He<=Ee;He++)if(yt[He-Le]===0&&hs(dt,A[He])){ft=He;break}ft===void 0?ze(dt,K,ee,!0):(yt[ft-Le]=te+1,ft>=at?at=ft:it=!0,S(dt,A[ft],U,null,K,ee,le,se,ie),ke++)}let lt=it?Dm(yt):On;for(He=lt.length-1,te=we-1;te>=0;te--){let dt=Le+te,ft=A[dt],Lt=A[dt+1],Yn=dt+1{let{el:ee,type:le,transition:se,children:ie,shapeFlag:te}=P;if(te&6){We(P.component.subTree,A,U,x);return}if(te&128){P.suspense.move(A,U,x);return}if(te&64){le.move(P,A,U,pe);return}if(le===V){i(ee,A,U);for(let fe=0;fese.enter(ee),K));else{let{leave:fe,delayLeave:Ee,afterLeave:Te}=se,Le=()=>{P.ctx.isUnmounted?o(ee):i(ee,A,U)},Ke=()=>{let He=ee._isLeaving||!!ee[$r];ee._isLeaving&&ee[$r](!0),se.persisted&&!He?Le():fe(ee,()=>{Le(),Te&&Te()})};Ee?Ee(ee,Le,Ke):Ke()}else i(ee,A,U)},ze=(P,A,U,x=!1,K=!1)=>{let{type:ee,props:le,ref:se,children:ie,dynamicChildren:te,shapeFlag:Ce,patchFlag:fe,dirs:Ee,cacheIndex:Te,memo:Le}=P;if((fe===-2||te&&te.hasOnce)&&(K=!1),se!=null&&(Zt(),vs(se,null,U,P,!0),xt()),Te!=null&&(!P.ctx||P.ctx===A)&&(A.renderCache[Te]=void 0),Ce&256){A.ctx.deactivate(P);return}let Ke=Ce&1&&Ee,He=!ys(P),ke;if(He&&(ke=le&&le.onVnodeBeforeUnmount)&&cn(ke,A,P),Ce&6)Be(P.component,U,x);else{if(Ce&128){P.suspense.unmount(U,x);return}Ke&&to(P,null,A,"beforeUnmount"),Ce&64?P.type.remove(P,A,U,pe,x):te&&!te.hasOnce&&(ee!==V||fe>0&&fe&64)?X(te,A,U,!1,!0):(ee===V&&fe&384||!K&&Ce&16)&&X(ie,A,U),x&&tt(P)}let we=Le!=null&&Te==null;(He&&(ke=le&&le.onVnodeUnmounted)||Ke||we)&&Ot(()=>{ke&&cn(ke,A,P),Ke&&to(P,null,A,"unmounted"),we&&(P.el=null)},U)},tt=P=>{let{type:A,el:U,anchor:x,transition:K}=P,ee=A===V;if(ee&&!K){Re(U,x);return}if(A===ws){j(P),K&&!K.persisted&&K.afterLeave&&K.afterLeave();return}let le=ee?Br(P):P,se=()=>{ee?y(U)&&Re(U,x):o(U),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(le&&le.shapeFlag&1&&K&&!K.persisted){let{leave:ie,delayLeave:te}=K,Ce=le.el,fe=()=>ie(Ce,se);te?te(Ce,se,fe):fe()}else se()},Re=(P,A)=>{let U;for(;P!==A;)U=m(P),o(P),P=U;o(A)},Be=(P,A,U)=>{let{bum:x,scope:K,job:ee,subTree:le,um:se,m:ie,a:te}=P;jl(ie),jl(te),x&&Ao(x),K.stop(),ee?(ee.flags|=8,ze(le,P,A,U)):P.vnode.el&&le&&(le.transition=P.vnode.transition,ze(le,P,A,U)),se&&Ot(se,A),Ot(()=>{P.isUnmounted=!0},A)},X=(P,A,U,x=!1,K=!1,ee=0)=>{for(let le=ee;le{if(P.shapeFlag&6)return me(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();let A=m(P.anchor||P.el),U=A&&A[Kf];return U?m(U):A},de=(P,A,U)=>{let x=P&&A._vnode?void 0:P&&P.component?P.component.uid:Vm();zf(()=>{P==null?A._vnode&&ze(A._vnode,null,null,!0):S(A._vnode||null,P,A,null,null,null,U),A._vnode=P},x)},pe={p:S,um:ze,m:We,r:tt,mt:J,mc:I,pc:he,pbc:k,n:me,o:e},ye,Ve;return t&&([ye,Ve]=t(pe)),{render:de,hydrate:ye,createApp:cm(de,ye)}}function Ur({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function no({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Td(e,t,s=!1){let i=e.children,o=t.children;if(Ne(i)&&Ne(o))for(let r=0;r>1,e[s[p]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,u=s[r-1];r-- >0;)s[r]=u,u=t[u];return s}function Dd(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dd(t)}function jl(e){if(e)for(let t=0;te.__isSuspense;function Pm(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}var V=Symbol.for("v-fgt"),Ii=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),oo=[],Ut=null;function a(e=!1){oo.push(Ut=e?null:[])}function Ad(){oo.pop(),Ut=oo[oo.length-1]||null}var Ss=1;function Ei(e,t=!1){Ss+=e,e<0&&Ut&&t&&(Ut.hasOnce=!0)}function Id(e){return e.dynamicChildren=Ss>0?Ut||On:null,Ad(),Ss>0&&Ut&&Ut.push(e),e}function l(e,t,s,i,o,r){return Id(n(e,t,s,i,o,r,!0))}function Wt(e,t,s,i,o){return Id(Oe(e,t,s,i,o,!0))}function Es(e){return e?e.__v_isVNode===!0:!1}function hs(e,t){return e.type===t.type&&e.key===t.key}var Od=({key:e})=>e??null,bi=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||wt(e)||Ie(e)?{i:_t,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===V?0:1,u=!1,p=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Od(t),ref:t&&bi(t),scopeId:td,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:_t};return p?(Ni(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=rt(s)?8:16),Ss>0&&!u&&Ut&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ut.push(c),c}var Oe=Am;function Am(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===om)&&(e=tn),Es(e)){let p=qo(e,t,!0);return s&&Ni(p,s),Ss>0&&!r&&Ut&&(p.shapeFlag&6?Ut[Ut.indexOf(e)]=p:Ut.push(p)),p.patchFlag=-2,p}if(Bm(e)&&(e=e.__vccOpts),t){t=Im(t);let{class:p,style:c}=t;p&&!rt(p)&&(t.class=R(p)),Xe(c)&&(ms(c)&&!Ne(c)&&(c=pt({},c)),t.style=Ae(c))}let u=rt(e)?1:Pd(e)?128:Ti(e)?64:Xe(e)?4:Ie(e)?2:0;return n(e,t,s,i,o,u,r,!0)}function Im(e){return e?ms(e)||wd(e)?pt({},e):e:null}function qo(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:u,children:p,transition:c}=e,v=t?Om(o||{},t):o,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&Od(v),ref:t&&t.ref?s&&r?Ne(r)?r.concat(bi(t)):[r,bi(t)]:bi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&i&&Cs(g,c.clone(g)),g}function h(e=" ",t=0){return Oe(Ii,null,e,t)}function Se(e,t){let s=Oe(ws,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Wt(tn,null,e)):Oe(tn,null,e)}function fn(e){return e==null||typeof e=="boolean"?Oe(tn):Ne(e)?Oe(V,null,e.slice()):Es(e)?Cn(e):Oe(Ii,null,String(e))}function Cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function Ni(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ne(t))s=16;else if(typeof t=="object")if(i&65){let o=t.default;o&&(o._c&&(o._d=!1),Ni(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!wd(t)?t._ctx=_t:o===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Ni(e,{default:t});return}t={default:t,_ctx:_t},s=32}else t=String(t),i&64?(s=16,t=[h(t)]):s=8;e.children=t,e.shapeFlag|=s}function Om(...e){let t={};for(let s=0;sEt||_t,Ri,Ns;{let e=ss(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(u=>u(r)):o[0](r)}};Ri=t("__VUE_INSTANCE_SETTERS__",s=>Et=s),Ns=t("__VUE_SSR_SETTERS__",s=>$o=s)}var As=e=>{let t=Et;return Ri(e),e.scope.on(),()=>{e.scope.off(),Ri(t)}},Gl=()=>{Et&&Et.scope.off(),Ri(null)};function Vd(e){return e.vnode.shapeFlag&4}var $o=!1;function qm(e,t=!1,s=!1){t&&Ns(t);let{props:i,children:o}=e.vnode,r=Vd(e);bm(e,i,r,t),Sm(e,o,s||t);let u=r?$m(e,t):void 0;return t&&Ns(!1),u}function $m(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sm);let{setup:i}=s;if(i){Zt();let o=e.setupContext=i.length>1?_m(e):null,r=As(e),u=Rs(i,e,0,[e.props,o]),p=yr(u);if(xt(),r(),(p||e.sp)&&!ys(e)&&Yr(e),p){if(u.then(Gl,Gl),t)return u.then(c=>{Ns(!0);try{Wl(e,c,t)}finally{Ns(!1)}}).catch(c=>{Ts(c,e,0)});e.asyncDep=u}else Wl(e,u,t)}else Ld(e,t)}function Wl(e,t,s){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=vi(t)),Ld(e,s)}var Kl,Yl;function Ld(e,t,s){let i=e.type;if(!e.render){if(!t&&Kl&&!i.render){let o=i.template||Jr(e).template;if(o){let{isCustomElement:r,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:c}=i,v=pt(pt({isCustomElement:r,delimiters:p},u),c);i.render=Kl(o,v)}}e.render=i.render||At,Yl&&Yl(e)}{let o=As(e);Zt();try{im(e)}finally{xt(),o()}}}var Fm={get(e,t){return Ct(e,"get",""),e[t]}};function _m(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Fm),slots:e.slots,emit:e.emit,expose:t}}function Oi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vi(un(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in bs)return bs[s](e)},has(t,s){return s in t||s in bs}})):e.proxy}function Um(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Bm(e){return Ie(e)&&"__vccOpts"in e}var Nt=(e,t)=>Il(e,t,$o);function Pe(e,t,s){try{Ei(-1);let i=arguments.length;return i===2?Xe(t)&&!Ne(t)?Es(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&Es(s)&&(s=[s]),Oe(e,t,s))}finally{Ei(1)}}var zm="3.5.44";var na,qd=typeof window<"u"&&window.trustedTypes;if(qd)try{na=qd.createPolicy("vue",{createHTML:e=>e})}catch{}var Yd=na?e=>na.createHTML(e):e=>e,Hm="http://www.w3.org/2000/svg",jm="http://www.w3.org/1998/Math/MathML",En=typeof document<"u"?document:null,$d=En&&En.createElement("template"),Gm={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let o=t==="svg"?En.createElementNS(Hm,e):t==="mathml"?En.createElementNS(jm,e):s?En.createElement(e,{is:s}):En.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>En.createTextNode(e),createComment:e=>En.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>En.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let u=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{$d.innerHTML=Yd(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=$d.content;if(i==="svg"||i==="mathml"){let c=p.firstChild;for(;c.firstChild;)p.appendChild(c.firstChild);p.removeChild(c)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Wm=Symbol("_vtc");function Km(e,t,s){let i=e[Wm];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var Li=Symbol("_vod"),Jd=Symbol("_vsh"),Z={name:"show",beforeMount(e,{value:t},{transition:s}){e[Li]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),Is(e,!0),i.enter(e)):i.leave(e,()=>{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e[Li]:"none",e[Jd]=!t}var Ym=Symbol("");var Jm=/(?:^|;)\s*display\s*:/;function Xm(e,t,s){let i=e.style,o=rt(s),r=!1;if(s&&!o){if(t)if(rt(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Os(i,p,"")}else for(let u in t)s[u]==null&&Os(i,u,"");for(let u in s){u==="display"&&(r=!0);let p=s[u];p!=null?Zm(e,u,!rt(t)&&t?t[u]:void 0,p)||Os(i,u,p):Os(i,u,"")}}else if(o){if(t!==s){let u=i[Ym];u&&(s+=";"+u),i.cssText=s,r=Jm.test(s)}}else t&&e.removeAttribute("style");Li in e&&((!o||t!==s)&&(e[Li]=r?i.display:""),e[Jd]&&(i.display="none"))}var Mi=/\s*!important$/;function Os(e,t,s){if(Ne(s))s.forEach(i=>Os(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Mi.test(s)?e.setProperty(t,s.replace(Mi,""),"important"):e.setProperty(t,s);else{let i=Qm(e,t);Mi.test(s)?e.setProperty(sn(i),s.replace(Mi,""),"important"):e[i]=s}}var Fd=["Webkit","Moz","ms"],xr={};function Qm(e,t){let s=xr[t];if(s)return s;let i=mt(t);if(i!=="filter"&&i in e)return xr[t]=i;i=Qn(i);for(let o=0;oea||(sh.then(()=>ea=0),ea=Date.now());function rh(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(Ne(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let u=o.slice(),p=[i];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ah=(e,t,s,i,o,r)=>{let u=o==="svg";t==="class"?Km(e,i,u):t==="style"?Xm(e,s,i):To(t)?Do(t)||eh(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):lh(e,t,i,u))?(Bd(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ud(e,t,i,u,r,t!=="value")):e._isVueCE&&(dh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!rt(i)))?Bd(e,mt(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ud(e,t,i,u))};function lh(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hd(t)&&Ie(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Hd(t)&&rt(s)?!1:t in e}function dh(e,t){let s=e._def.props;if(!s)return!1;let i=mt(t);return Array.isArray(s)?s.some(o=>mt(o)===i):Object.keys(s).some(o=>mt(o)===i)}var Fo=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?s=>Ao(t,s):t};function uh(e){e.target.composing=!0}function jd(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var hn=Symbol("_assign"),Vi=Symbol("_initialValue");function ta(e,t,s){return t&&(e=e.trim()),s&&(e=Io(e)),e}var nt={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Vi]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Vi]=e.defaultValue.replace(/\r\n?/g,` -`))),e[hn]=Fo(o);let r=i||o.props&&o.props.type==="number";Vn(e,t?"change":"input",u=>{u.target.composing||e[hn](ta(e.value,s,r))}),(s||r)&&Vn(e,"change",()=>{e.value=ta(e.value,s,r)}),t||(Vn(e,"compositionstart",uh),Vn(e,"compositionend",jd),Vn(e,"change",jd))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Vi];delete e[Vi],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[hn](ta(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[hn]=Fo(u),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?Io(e.value):e.value,c=t??"";if(p===c)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===c)||(e.value=c)}},oa={deep:!0,created(e,t,s){e[hn]=Fo(s),Vn(e,"change",()=>{let i=e._modelValue,o=Ms(e),r=e.checked,u=e[hn];if(Ne(i)){let p=li(i,o),c=p!==-1;if(r&&!c)u(i.concat(o));else if(!r&&c){let v=[...i];v.splice(p,1),u(v)}}else if(Jt(i)){let p=new Set(i);r?p.add(o):p.delete(o),u(p)}else u(Xd(e,r))})},mounted:Gd,beforeUpdate(e,t,s){e[hn]=Fo(s),Gd(e,t,s)}};function Gd(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ne(t))o=li(t,i.props.value)>-1;else if(Jt(t))o=t.has(i.props.value);else{if(t===s)return;o=Xt(t,Xd(e,!0))}e.checked!==o&&(e.checked=o)}var Rt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Vn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>s?Io(Ms(c)):Ms(c)),r=e.multiple,u=r?Jt(e._modelValue)?new Set(o):o:o[0],p=e._pendingValue=[r,r?Ne(u)?o.slice():o:u];try{e[hn](u)}finally{je(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[hn]=Fo(i)},mounted(e,{value:t}){Wd(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[hn]=Fo(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!ch(t,s[1],s[0]))&&Wd(e,t)}};function ch(e,t,s){if(!s)return Xt(e,t);if(Ne(e))return Xt(e,t);if(Jt(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function Wd(e,t){let s=e.multiple,i=Ne(t);if(!(s&&!i&&!Jt(t))){for(let o=0,r=e.options.length;oString(v)===String(p)):u.selected=li(t,p)>-1}else u.selected=t.has(p);else if(Xt(Ms(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ms(e){return"_value"in e?e._value:e.value}function Xd(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var ph=["ctrl","shift","alt","meta"],fh={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)=>ph.some(s=>e[`${s}Key`]&&!t.includes(s))},ae=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=sn(o.key);if(t.some(u=>u===r||mh[u]===r))return e(o)}))},hh=pt({patchProp:ah},Gm),Kd;function gh(){return Kd||(Kd=Rd(hh))}var Qd=((...e)=>{let t=gh().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=yh(i);if(!o)return;let r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,vh(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function vh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yh(e){return rt(e)?document.querySelector(e):e}var lo=typeof document<"u";function xd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&xd(e.default)}var Ze=Object.assign;function qi(e,t){let s={};for(let i in t){let o=t[i];s[i]=Kt(o)?o.map(e):e(o)}return s}var Uo=()=>{},Kt=Array.isArray;function ra(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var eu=/#/g,wh=/&/g,kh=/\//g,Ch=/=/g,Sh=/\?/g,tu=/\+/g,Eh=/%5B/g,Nh=/%5D/g,nu=/%5E/g,Rh=/%60/g,ou=/%7B/g,Th=/%7C/g,su=/%7D/g,Dh=/%20/g;function aa(e){return e==null?"":encodeURI(""+e).replace(Th,"|").replace(Eh,"[").replace(Nh,"]")}function iu(e){return aa(e).replace(ou,"{").replace(su,"}").replace(nu,"^")}function sa(e){return aa(e).replace(tu,"%2B").replace(Dh,"+").replace(eu,"%23").replace(wh,"%26").replace(Rh,"`").replace(ou,"{").replace(su,"}").replace(nu,"^")}function Ph(e){return sa(e).replace(Ch,"%3D")}function Ah(e){return aa(e).replace(eu,"%23").replace(Sh,"%3F")}function ru(e){return Ah(e).replace(kh,"%2F")}function _o(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Ih=/\/$/,Oh=e=>e.replace(Ih,"");function $i(e,t,s="/"){let i,o={},r="",u="",p=t.indexOf("#"),c=t.indexOf("?");return c=p>=0&&c>p?-1:c,c>=0&&(i=t.slice(0,c),r=t.slice(c,p>0?p:t.length),o=e(r.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Vh(i??t,s),{fullPath:i+r+u,path:i,query:o,hash:_o(u)}}function au(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function la(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lu(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&ro(t.matched[i],s.matched[o])&&da(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ro(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function da(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Mh(e[s],t[s]))return!1;return!0}function Mh(e,t){return Kt(e)?Zd(e,t):Kt(t)?Zd(t,e):e?.valueOf()===t?.valueOf()}function Zd(e,t){return Kt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Vh(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,u,p;for(u=0;u1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(u).join("/")}var Rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Fi=(function(e){return e.pop="pop",e.push="push",e})({}),_i=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function du(e){if(!e)if(lo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Oh(e)}var Lh=/^[^#]+#/;function uu(e,t){return e.replace(Lh,"#")+t}function qh(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var Vs=()=>({left:window.scrollX,top:window.scrollY});function cu(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=qh(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ua(e,t){return(history.state?history.state.position-t:-1)+e}var ia=new Map;function pu(e,t){ia.set(e,t)}function fu(e){let t=ia.get(e);return ia.delete(e),t}function $h(e){return typeof e=="string"||e&&typeof e=="object"}function ca(e){return typeof e=="string"||typeof e=="symbol"}var ct=(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})({}),mu=Symbol("");var rne={[ct.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for +"use strict";(()=>{var el=Object.defineProperty;var tl=e=>{throw TypeError(e)};var rf=(e,t,s)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var af=(e,t)=>{for(var s in t)el(e,s,{get:t[s],enumerable:!0})};var et=(e,t,s)=>rf(e,typeof t!="symbol"?t+"":t,s),hr=(e,t,s)=>t.has(e)||tl("Cannot "+s);var re=(e,t,s)=>(hr(e,t,"read from private field"),s?s.call(e):t.get(e)),qe=(e,t,s)=>t.has(e)?tl("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),Fe=(e,t,s,i)=>(hr(e,t,"write to private field"),i?i.call(e,s):t.set(e,s),s),$e=(e,t,s)=>(hr(e,t,"access private method"),s);var nl=(e,t,s,i)=>({set _(o){Fe(e,t,o,s)},get _(){return re(e,t,i)}});var ge=["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 ve={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 ol(e){let t=e.location.hash.slice(1);if(e.history.replaceState(null,"","/review-link"),t.length>2048)return null;let s=new URLSearchParams(t);if([...s.keys()].length!==3||[...s.keys()].some(u=>!["clientId","intentId","token"].includes(u)))return null;let i=s.get("clientId"),o=s.get("intentId"),r=s.get("token");return!/^[a-f0-9]{32}$/.test(i||"")||!/^[a-f0-9]{32}$/.test(o||"")||!/^[a-f0-9]{64}$/.test(r||"")?null:{contract:"4open.artifacts/1",clientId:i,intentId:o,token:r}}function sl(e,t){let{http:s,promises:i,window:o}=t,r=t.takeReviewHandoff(),u=r?{clientId:r.clientId,intentId:r.intentId}:null,p,c,v,g,y,m=!0,b,E=i.defer(),S=()=>[...o.crypto.getRandomValues(new Uint8Array(16))].map(F=>F.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:r?"":"Open a new artifact link from your submission. This link is missing or invalid."});let N=()=>m&&e.user?.username===y;function w(){m=!1,r=p=c=void 0,E.resolve(),o.clearTimeout(b)}e.on("dispose",w),e.on("routeLeave",w),e.watch(()=>e.user?.username,F=>{!y&&F?y=F:y&&F!==y&&(w(),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 D=()=>({timeout:E.promise,headers:{"Content-Type":"application/json","X-Review-CSRF":c}}),O=F=>F?.status===404?"Artifact linking is not available on this server.":F?.status===401?"Sign in, then open a new artifact link from your submission.":F?.status===403?"This account cannot approve this repository or this link.":"The request could not be completed. You can retry from this page.";e.loadPreview=async()=>{if(!m||!r||e.busy||e.uncertain||e.saved||!e.user?.username)return;y=e.user.username;let F=e.repositoryId.trim();if(!/^[A-Za-z0-9_-]{3,128}$/.test(F)){e.error="Enter the anonymous repository ID from its URL.";return}e.busy=!0,e.error="",e.preview=null,p=void 0,e.acceptAccess=e.acceptRetention=!1,e.expired=!1,o.clearTimeout(b),g||(g=S());try{let j=(await s.get("/api/review-consent/csrf",{timeout:E.promise})).data;if(!N())return;if(c=j.csrf,e.handoffEnabled=j.handoffEnabled===!0,!/^[a-f0-9]{64}$/.test(c||""))throw new Error("invalid_csrf");let oe=(await s.post("/api/review-consent/preview",{repositoryId:F,intent:{...r,requestId:g}},D())).data;if(!N())return;if(!oe||typeof oe.ticket!="string"||!oe.ticket||oe.ticket.length>8192||typeof oe.repositoryName!="string"||!["restricted-review","anonymous-link"].includes(oe.policy?.access)||!Number.isSafeInteger(oe.policy.version)||!Number.isFinite(Date.parse(oe.policy.retainUntil))||!Number.isFinite(Date.parse(oe.expiresAt))||Date.parse(oe.expiresAt)<=Date.now()||Date.parse(oe.expiresAt)>Date.now()+6e5)throw new Error("invalid_preview");p=oe.ticket,v=S(),e.preview={repositoryName:oe.repositoryName,policy:{...oe.policy},expiresAt:oe.expiresAt},b=o.setTimeout(()=>{m&&(e.expired=!0)},Math.max(0,Date.parse(oe.expiresAt)-Date.now()))}catch(j){N()&&(e.error=O(j))}finally{N()&&(e.busy=!1)}},e.confirmConsent=async()=>{if(!(!N()||e.busy||e.saved||!p||!e.acceptAccess||!e.acceptRetention)){if(Date.parse(e.preview.expiresAt)<=Date.now()){e.expired=!0;return}e.busy=!0,e.error="";try{let F=(await s.post("/api/review-consent/confirm",{ticket:p,requestId:v,acceptAccess:!0,acceptRetention:!0},D())).data;if(!N())return;if(F?.requestId!==v||!Number.isFinite(Date.parse(F.confirmedAt)))throw new Error("invalid_receipt");e.saved=!0,e.uncertain=!1,r=void 0,e.handoffEnabled||(p=void 0)}catch{N()&&(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{N()&&(e.busy=!1)}}},e.continueReview=async()=>{if(!N()||e.busy||!e.saved||!e.handoffEnabled||!p||!u)return;e.busy=!0,e.error="";let F,j=()=>{F?.remove(),o.removeEventListener("securitypolicyviolation",oe)},oe=_=>{_.violatedDirective?.startsWith("form-action")&&(j(),N()&&(e.busy=!1,e.error="The return address was blocked. Return to your submission to check the artifact status."))};try{let _=(await s.post("/api/review-consent/handoff",{ticket:p},D())).data;if(!N())return;let B=_?.completion,I=new URL(_?.callbackUrl);if(!B||Object.keys(B).sort().join(",")!=="clientId,code,contract,expiresAt,intentId"||B.contract!=="4open.artifacts/1"||B.clientId!==u.clientId||B.intentId!==u.intentId||!/^[a-f0-9]{64}$/.test(B.code||"")||!Number.isFinite(Date.parse(B.expiresAt))||Date.parse(B.expiresAt)<=Date.now()||Date.parse(B.expiresAt)>Date.now()+3e5||I.protocol!=="https:"||I.href!==_.callbackUrl||I.username||I.password||_.callbackUrl.includes("?")||_.callbackUrl.includes("#"))throw new Error("invalid_handoff");F=o.document.createElement("form"),F.method="POST",F.action=I.href;let L=o.document.createElement("input");L.type="hidden",L.name="completion",L.value=JSON.stringify(B),F.appendChild(L),o.document.body.appendChild(F),o.addEventListener("securitypolicyviolation",oe),e.on("dispose",j),F.submit()}catch{j(),N()&&(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 ti=new Map,uf=ve;function Xn(e){if(!ti.has(e)){let t=document.createElement("script");t.src=uf[e];let s=new Promise((i,o)=>{t.onload=i,t.onerror=()=>{ti.delete(e),t.remove(),o(new Error(`Unable to load ${e}. Please retry.`))}});ti.set(e,s),document.head.appendChild(t)}return ti.get(e)}async function ni(){await Xn("editor"),ace.config.set("basePath","/script/external/ace/")}function Ro(e){let t=Object.create(null);for(let s of e.split(","))t[s]=1;return s=>s in t}var xe={},On=[],At=()=>{},vr=()=>!1,To=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Do=e=>e.startsWith("onUpdate:"),pt=Object.assign,ts=(e,t)=>{let s=e.indexOf(t);s>-1&&e.splice(s,1)},cf=Object.prototype.hasOwnProperty,Ge=(e,t)=>cf.call(e,t),Ne=Array.isArray,yn=e=>ns(e)==="[object Map]",Jt=e=>ns(e)==="[object Set]",il=e=>ns(e)==="[object Date]";var Ie=e=>typeof e=="function",rt=e=>typeof e=="string",$t=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",yr=e=>(Xe(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),dl=Object.prototype.toString,ns=e=>dl.call(e),br=e=>ns(e).slice(8,-1),oi=e=>ns(e)==="[object Object]",si=e=>rt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Po=Ro(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var ii=e=>{let t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},pf=/-\w/g,mt=ii(e=>e.replace(pf,t=>t.slice(1).toUpperCase())),ff=/\B([A-Z])/g,sn=ii(e=>e.replace(ff,"-$1").toLowerCase()),Qn=ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=ii(e=>e?`on${Qn(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Ao=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:s})},Io=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var rl,ss=()=>rl||(rl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(Ne(e)){let t={};for(let s=0;ss.startsWith("/*")?"":s).split(mf).forEach(s=>{if(s){let i=s.split(hf);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function R(e){let t="";if(rt(e))t=e;else if(Ne(e))for(let s=0;sXt(s,t))}var pl=e=>!!(e&&e.__v_isRef===!0),d=e=>rt(e)?e:e==null?"":Ne(e)||Xe(e)&&(e.toString===dl||!Ie(e.toString))?pl(e)?d(e.value):JSON.stringify(e,fl,2):String(e),fl=(e,t)=>pl(t)?fl(e,t.value):yn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[i,o],r)=>(s[gr(i,r)+" =>"]=o,s),{})}:Jt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>gr(s))}:$t(t)?gr(t):Xe(t)&&!Ne(t)&&!oi(t)?String(t):t,gr=(e,t="")=>{var s;return $t(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};function kf(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var ht,ls=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&&ht&&(ht.active?(this.parent=ht,this.index=(ht.scopes||(ht.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes){let i=this.scopes.slice();for(t=0,s=i.length;t0&&--this._on===0){if(ht===this)ht=this.prevScope;else{let t=ht;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,i;for(s=0,i=this.effects.length;s0)return;if(as){let t=as;for(as=void 0;t;){let s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;rs;){let t=rs;for(rs=void 0;t;){let s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function wl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kl(e){let t,s=e.depsTail,i=s;for(;i;){let o=i.prevDep;i.version===-1?(i===s&&(s=o),Mr(i),Cf(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=o}e.deps=t,e.depsTail=s}function Sr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cl(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ds)||(e.globalVersion=ds,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sr(e))))return;e.flags|=2;let t=e.dep,s=ot,i=Qt;ot=e,Qt=!0;try{wl(e);let o=e.fn(e._value);(t.version===0||Ht(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{ot=s,Qt=i,kl(e),e.flags&=-3}}function Mr(e,t=!1){let{dep:s,prevSub:i,nextSub:o}=e;if(i&&(i.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)Mr(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Cf(e){let{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}var Qt=!0,Sl=[];function Zt(){Sl.push(Qt),Qt=!1}function xt(){let e=Sl.pop();Qt=e===void 0?!0:e}function ml(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let s=ot;ot=void 0;try{t()}finally{ot=s}}}var ds=0,Er=class{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},us=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(!ot||!Qt||ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ot)s=this.activeLink=new Er(ot,this),ot.deps?(s.prevDep=ot.depsTail,ot.depsTail.nextDep=s,ot.depsTail=s):ot.deps=ot.depsTail=s,El(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){let i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=ot.depsTail,s.nextDep=void 0,ot.depsTail.nextDep=s,ot.depsTail=s,ot.deps===s&&(ot.deps=i)}return s}trigger(t){this.version++,ds++,this.notify(t)}notify(t){Ir();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Or()}}};function El(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)El(i)}let s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}var Nr=new WeakMap,xn=Symbol(""),Rr=Symbol(""),cs=Symbol("");function Ct(e,t,s){if(Qt&&ot){let i=Nr.get(e);i||Nr.set(e,i=new Map);let o=i.get(s);o||(i.set(s,o=new us),o.map=i,o.key=s),o.track()}}function an(e,t,s,i,o,r){let u=Nr.get(e);if(!u){ds++;return}let p=c=>{c&&c.trigger()};if(Ir(),t==="clear")u.forEach(p);else{let c=Ne(e),v=c&&si(s);if(c&&s==="length"){let g=Number(i);u.forEach((y,m)=>{(m==="length"||m===cs||!$t(m)&&m>=g)&&p(y)})}else switch((s!==void 0||u.has(void 0))&&p(u.get(s)),v&&p(u.get(cs)),t){case"add":c?v&&p(u.get("length")):(p(u.get(xn)),yn(e)&&p(u.get(Rr)));break;case"delete":c||(p(u.get(xn)),yn(e)&&p(u.get(Rr)));break;case"set":yn(e)&&p(u.get(xn));break}}Or()}function Oo(e){let t=Ye(e);return t===e||(Ct(t,"iterate",cs),It(e))?t:jt(e)?dn(e)?t.map(s=>wn(_t(s))):t.map(wn):t.map(_t)}function ps(e){return Ct(e=Ye(e),"iterate",cs),e}function rn(e,t){return jt(e)?wn(dn(e)?_t(t):t):_t(t)}var Sf={__proto__:null,[Symbol.iterator](){return kr(this,Symbol.iterator,e=>rn(this,e))},concat(...e){return Oo(this).concat(...e.map(t=>Ne(t)?Oo(t):t))},entries(){return kr(this,"entries",e=>(e[1]=rn(this,e[1]),e))},every(e,t){return bn(this,"every",e,t,void 0,arguments)},filter(e,t){return bn(this,"filter",e,t,s=>s.map(i=>rn(this,i)),arguments)},find(e,t){return bn(this,"find",e,t,s=>rn(this,s),arguments)},findIndex(e,t){return bn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bn(this,"findLast",e,t,s=>rn(this,s),arguments)},findLastIndex(e,t){return bn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Cr(this,"includes",e)},indexOf(...e){return Cr(this,"indexOf",e)},join(e){return Oo(this).join(e)},lastIndexOf(...e){return Cr(this,"lastIndexOf",e)},map(e,t){return bn(this,"map",e,t,void 0,arguments)},pop(){return is(this,"pop")},push(...e){return is(this,"push",e)},reduce(e,...t){return gl(this,"reduce",e,t)},reduceRight(e,...t){return gl(this,"reduceRight",e,t)},shift(){return is(this,"shift")},some(e,t){return bn(this,"some",e,t,void 0,arguments)},splice(...e){return is(this,"splice",e)},toReversed(){return Oo(this).toReversed()},toSorted(e){return Oo(this).toSorted(e)},toSpliced(...e){return Oo(this).toSpliced(...e)},unshift(...e){return is(this,"unshift",e)},values(){return kr(this,"values",e=>rn(this,e))}};function kr(e,t,s){let i=ps(e),o=i[t],r=o.call(i);if(i!==e&&!It(e)){if(r[Symbol.toStringTag]==="Array Iterator"){let u=Object.create(Object.getPrototypeOf(r));return u.next=()=>hl(r.next(),s),o!==Nl[t]&&Object.defineProperties(u,{return:{get(){let p=r.return;return typeof p=="function"?p.bind(r):p}},throw:{get(){let p=r.throw;return typeof p=="function"?p.bind(r):p}}}),u}r._next=r.next,r.next=()=>hl(r._next(),s)}return r}function hl(e,t){return e.done||(e.value=t(e.value)),e}var Nl=Array.prototype;function bn(e,t,s,i,o,r){let u=ps(e),p=u!==e&&!It(e),c=u[t];if(c!==Nl[t]){let y=c.apply(e,r);return p?_t(y):y}let v=s;u!==e&&(p?v=function(y,m){return s.call(this,rn(e,y),m,e)}:s.length>2&&(v=function(y,m){return s.call(this,y,m,e)}));let g=c.call(u,v,i);return p&&o?o(g):g}function gl(e,t,s,i){let o=ps(e),r=o!==e&&!It(e),u=s,p=!1;o!==e&&(r?(p=i.length===0,u=function(v,g,y){return p&&(p=!1,v=rn(e,v)),s.call(this,v,rn(e,g),y,e)}):s.length>3&&(u=function(v,g,y){return s.call(this,v,g,y,e)}));let c=o[t](u,...i);return p?rn(e,c):c}function Cr(e,t,s){let i=Ye(e);Ct(i,"iterate",cs);let o=i[t](...s);return(o===-1||o===!1)&&ms(s[0])?(s[0]=Ye(s[0]),i[t](...s)):o}function is(e,t,s=[]){Zt(),Ir();let i=Ye(e)[t].apply(e,s);return Or(),xt(),i}var Ef=Ro("__proto__,__v_isRef,__isVue"),Rl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($t));function Nf(e){$t(e)||(e=String(e));let t=Ye(this);return Ct(t,"has",e),t.hasOwnProperty(e)}var pi=class{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;let o=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!o;if(s==="__v_isReadonly")return o;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(o?r?Vf:Pl:r?Dl:Tl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;let u=Ne(t);if(!o){let c;if(u&&(c=Sf[s]))return c;if(s==="hasOwnProperty")return Nf}let p=Reflect.get(t,s,wt(t)?t:i);if(($t(s)?Rl.has(s):Ef(s))||(o||Ct(t,"get",s),r))return p;if(wt(p)){let c=u&&si(s)?p:p.value;return o&&Xe(c)?mi(c):c}return Xe(p)?o?mi(p):st(p):p}},fi=class extends pi{constructor(t=!1){super(!1,t)}set(t,s,i,o){let r=t[s],u=Ne(t)&&si(s);if(!this._isShallow){let v=jt(r);if(!It(i)&&!jt(i)&&(r=Ye(r),i=Ye(i)),!u&&wt(r)&&!wt(i))return v||(r.value=i),!0}let p=u?Number(s)e,di=e=>Reflect.getPrototypeOf(e);function Pf(e,t,s){return function(...i){let o=this.__v_raw,r=Ye(o),u=yn(r),p=e==="entries"||e===Symbol.iterator&&u,c=e==="keys"&&u,v=o[e](...i),g=s?Dr:t?wn:_t;return!t&&Ct(r,"iterate",c?Rr:xn),pt(Object.create(v),{next(){let{value:y,done:m}=v.next();return m?{value:y,done:m}:{value:p?[g(y[0]),g(y[1])]:g(y),done:m}}})}}function ui(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Af(e,t){let s={get(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);e||(Ht(o,p)&&Ct(u,"get",o),Ct(u,"get",p));let{has:c}=di(u),v=t?Dr:e?wn:_t;if(c.call(u,o))return v(r.get(o));if(c.call(u,p))return v(r.get(p));r!==u&&r.get(o)},get size(){let o=this.__v_raw;return!e&&Ct(Ye(o),"iterate",xn),o.size},has(o){let r=this.__v_raw,u=Ye(r),p=Ye(o);return e||(Ht(o,p)&&Ct(u,"has",o),Ct(u,"has",p)),o===p?r.has(o):r.has(o)||r.has(p)},forEach(o,r){let u=this,p=u.__v_raw,c=Ye(p),v=t?Dr:e?wn:_t;return!e&&Ct(c,"iterate",xn),p.forEach((g,y)=>o.call(r,v(g),v(y),u))}};return pt(s,e?{add:ui("add"),set:ui("set"),delete:ui("delete"),clear:ui("clear")}:{add(o){let r=Ye(this),u=di(r),p=Ye(o),c=!t&&!It(o)&&!jt(o)?p:o;return u.has.call(r,c)||Ht(o,c)&&u.has.call(r,o)||Ht(p,c)&&u.has.call(r,p)||(r.add(c),an(r,"add",c,c)),this},set(o,r){!t&&!It(r)&&!jt(r)&&(r=Ye(r));let u=Ye(this),{has:p,get:c}=di(u),v=p.call(u,o);v||(o=Ye(o),v=p.call(u,o));let g=c.call(u,o);return u.set(o,r),v?Ht(r,g)&&an(u,"set",o,r,g):an(u,"add",o,r),this},delete(o){let r=Ye(this),{has:u,get:p}=di(r),c=u.call(r,o);c||(o=Ye(o),c=u.call(r,o));let v=p?p.call(r,o):void 0,g=r.delete(o);return c&&an(r,"delete",o,void 0,v),g},clear(){let o=Ye(this),r=o.size!==0,u=void 0,p=o.clear();return r&&an(o,"clear",void 0,void 0,u),p}}),["keys","values","entries",Symbol.iterator].forEach(o=>{s[o]=Pf(o,e,t)}),s}function Vr(e,t){let s=Af(e,t);return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_isShallow"?t:o==="__v_raw"?i:Reflect.get(Ge(s,o)&&o in i?s:i,o,r)}var If={get:Vr(!1,!1)},Of={get:Vr(!1,!0)},Mf={get:Vr(!0,!1)};var Tl=new WeakMap,Dl=new WeakMap,Pl=new WeakMap,Vf=new WeakMap;function Lf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function st(e){return jt(e)?e:Lr(e,!1,Rf,If,Tl)}function fs(e){return Lr(e,!1,Df,Of,Dl)}function mi(e){return Lr(e,!0,Tf,Mf,Pl)}function Lr(e,t,s,i,o){if(!Xe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let r=o.get(e);if(r)return r;let u=Lf(br(e));if(u===0)return e;let p=new Proxy(e,u===2?i:s);return o.set(e,p),p}function dn(e){return jt(e)?dn(e.__v_raw):!!(e&&e.__v_isReactive)}function jt(e){return!!(e&&e.__v_isReadonly)}function It(e){return!!(e&&e.__v_isShallow)}function ms(e){return e?!!e.__v_raw:!1}function Ye(e){let t=e&&e.__v_raw;return t?Ye(t):e}function un(e){return!Ge(e,"__v_skip")&&Object.isExtensible(e)&&ri(e,"__v_skip",!0),e}var _t=e=>Xe(e)?st(e):e,wn=e=>Xe(e)?mi(e):e;function wt(e){return e?e.__v_isRef===!0:!1}function St(e){return Al(e,!1)}function gi(e){return Al(e,!0)}function Al(e,t){return wt(e)?e:new Pr(e,t)}var Pr=class{constructor(t,s){this.dep=new us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Ye(t),this._value=s?t:_t(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){let s=this._rawValue,i=this.__v_isShallow||It(t)||jt(t);t=i?t:Ye(t),Ht(t,s)&&(this._rawValue=t,this._value=i?t:_t(t),this.dep.trigger())}};function kn(e){return wt(e)?e.value:e}var qf={get:(e,t,s)=>t==="__v_raw"?e:kn(Reflect.get(e,t,s)),set:(e,t,s,i)=>{let o=e[t];return wt(o)&&!wt(s)?(o.value=s,!0):Reflect.set(e,t,s,i)}};function vi(e){return dn(e)?e:new Proxy(e,qf)}var Ar=class{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ds-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return bl(this,!0),!0}get value(){let t=this.dep.track();return Cl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Il(e,t,s=!1){let i,o;return Ie(e)?i=e:(i=e.get,o=e.set),new Ar(i,o,s)}var ci={},hi=new WeakMap,Zn;function Ol(e,t=!1,s=Zn){if(s){let i=hi.get(s);i||hi.set(s,i=[]),i.push(e)}}function Ml(e,t,s=xe){let{immediate:i,deep:o,once:r,scheduler:u,augmentJob:p,call:c}=s,v=j=>{(s.onWarn||kf)("Invalid watch source: ",j,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},g=j=>o?j:It(j)||o===!1||o===0?ln(j,1):ln(j),y,m,b,E,S=!1,N=!1;if(wt(e)?(m=()=>e.value,S=It(e)):dn(e)?(m=()=>g(e),S=!0):Ne(e)?(N=!0,S=e.some(j=>dn(j)||It(j)),m=()=>e.map(j=>{if(wt(j))return j.value;if(dn(j))return g(j);if(Ie(j))return c?c(j,2):j()})):Ie(e)?t?m=c?()=>c(e,2):e:m=()=>{if(b){Zt();try{b()}finally{xt()}}let j=Zn;Zn=y;try{return c?c(e,3,[E]):e(E)}finally{Zn=j}}:m=At,t&&o){let j=m,oe=o===!0?1/0:o;m=()=>ln(j(),oe)}let w=vl(),D=()=>{y.stop(),w&&w.active&&ts(w.effects,y)};if(r&&t){let j=t;t=(...oe)=>{try{return j(...oe)}finally{D()}}}let O=N?new Array(e.length).fill(ci):ci,F=j=>{if(!(!(y.flags&1)||!y.dirty&&!j))if(t){let oe=y.run();if(j||o||S||(N?oe.some((_,B)=>Ht(_,O[B])):Ht(oe,O))){let _=Zn;Zt();try{b&&b(),Zn=y;let B=[oe,O===ci?void 0:N&&O[0]===ci?[]:O,E];O=oe,c?c(t,3,B):t(...B)}finally{Zn=_,xt()}}}else y.run()};return p&&p(F),y=new Mo(m),y.scheduler=u?()=>u(F,!1):F,E=j=>Ol(j,!1,y),b=y.onStop=()=>{let j=hi.get(y);if(j){if(c)c(j,4);else for(let oe of j)oe();hi.delete(y)}},t?i?F(!0):O=y.run():u?u(F.bind(null,!0),!0):y.run(),D.pause=y.pause.bind(y),D.resume=y.resume.bind(y),D.stop=D,D}function ln(e,t=1/0,s){if(t<=0||!Xe(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,wt(e))ln(e.value,t,s);else if(Ne(e))for(let i=0;i{ln(i,t,s)});else if(oi(e)){for(let i in e)ln(e[i],t,s);for(let i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&ln(e[i],t,s)}return e}function Rs(e,t,s,i){try{return i?e(...i):e()}catch(o){Ts(o,t,s)}}function Gt(e,t,s,i){if(Ie(e)){let o=Rs(e,t,s,i);return o&&yr(o)&&o.catch(r=>{Ts(r,t,s)}),o}if(Ne(e)){let o=[];for(let r=0;r>>1,o=Dt[i],r=ks(o);r=ks(s)?Dt.push(e):Dt.splice(Bf(t),0,e),e.flags|=1,Xl()}}function Xl(){wi||(wi=Jl.then(ed))}function Ql(e){if(!Ne(e))Mn&&e.id===-1?Mn.splice(Vo+1,0,e):e.flags&1||(pn.push(e),e.flags|=1);else for(let t=0;t=t))continue;Dt.splice(i,1),i=e?i-1:en,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function xl(e,t,s=0){if(pn.length){let i=pn,o=0;if(t){i=[];for(let u=0;uks(u)-ks(p));if(pn.length=o,Mn){for(let u=0;ue.id==null?e.flags&2?-1:1/0:e.id;function ed(e){let t=At;try{for(en=0;en{i._d&&Ei(-1);let r=ki(t),u=oo.length,p;try{p=e(...o)}finally{for(let c=oo.length;c>u;c--)Ad();ki(r),i._d&&Ei(1)}return p};return i._n=!0,i._c=!0,i._d=!0,i}function T(e,t){if(Ft===null)return e;let s=Oi(Ft),i=e.dirs||(e.dirs=[]);for(let o=0;o1)return s&&Ie(t)?t.call(i&&i.proxy):t}}var jf=Symbol.for("v-scx"),Gf=()=>{{let e=Mt(jf);return e}};function ut(e,t,s){return nd(e,t,s)}function nd(e,t,s=xe){let{immediate:i,deep:o,flush:r,once:u}=s,p=pt({},s),c=t&&i||!t&&r!=="post",v;if($o){if(r==="sync"){let b=Gf();v=b.__watcherHandles||(b.__watcherHandles=[])}else if(!c){let b=()=>{};return b.stop=At,b.resume=At,b.pause=At,b}}let g=Et;p.call=(b,E,S)=>Gt(b,g,E,S);let y=!1;r==="post"?p.scheduler=b=>{b.i=g,Ot(b,g&&g.suspense)}:r!=="sync"&&(y=!0,p.scheduler=(b,E)=>{E?b():Kr(b)}),p.augmentJob=b=>{t&&(b.flags|=4),y&&(b.flags|=2,g&&(b.id=g.uid,b.i=g))};let m=Ml(e,t,p);return $o&&(v?v.push(m):c&&m()),m}function Wf(e,t,s){let i=this.proxy,o=rt(e)?e.includes(".")?od(i,e):()=>i[e]:e.bind(i,i),r;Ie(t)?r=t:(r=t.handler,s=t);let u=As(this),p=nd(o,r.bind(i),s);return u(),p}function od(e,t){let s=t.split(".");return()=>{let i=e;for(let o=0;oe.__isTeleport;var $r=Symbol("_leaveCb");function Yf(e){let t=e[0];if(e.length>1){let s=!1;for(let i of e)if(i.type!==tn){t=i,s=!0;break}}return t}function sd(e){if(!Di(e))return Ti(e.type)&&e.children?Yf(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&Ie(s.default))return s.default()}}function Cs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let s=e.component.subTree;Cs(Ti(s.type)&&sd(s)||s,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===V&&Ne(e.children)){let s=gd(e.children,!1);s&&Cs(s,t)}}function Br(e){if(e.component)return Br(e.component.subTree);if(e.type===V){let t=Ne(e.children)&&gd(e.children,!1);return t?Br(t):void 0}if(e.type!==tn)return e}function Ds(e,t){return Ie(e)?pt({name:e.name},t,{setup:e}):e}function Yr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Vl(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}var Ci=new WeakMap;function vs(e,t,s,i,o=!1){if(Ne(e)){e.forEach((S,N)=>vs(S,t&&(Ne(t)?t[N]:t),s,i,o));return}if(ys(i)&&!o){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&vs(e,t,s,i.component.subTree);return}let r=i.shapeFlag&4?Oi(i.component):i.el,u=o?null:r,{i:p,r:c}=e,v=t&&t.r,g=p.refs===xe?p.refs={}:p.refs,y=p.setupState,m=Ye(y),b=y===xe?vr:S=>Vl(g,S)?!1:Ge(m,S),E=(S,N)=>!(N&&Vl(g,N));if(v!=null&&v!==c){if(Ll(t),rt(v))g[v]=null,b(v)&&(y[v]=null);else if(wt(v)){let S=t;E(v,S.k)&&(v.value=null),S.k&&(g[S.k]=null)}}if(Ie(c))Rs(c,p,12,[u,g]);else{let S=rt(c),N=wt(c);if(S||N){let w=()=>{if(e.f){let D=S?b(c)?y[c]:g[c]:E(c)||!e.k?c.value:g[e.k];if(o)Ne(D)&&ts(D,r);else if(Ne(D))D.includes(r)||D.push(r);else if(S)g[c]=[r],b(c)&&(y[c]=g[c]);else{let O=[r];E(c,e.k)&&(c.value=O),e.k&&(g[e.k]=O)}}else S?(g[c]=u,b(c)&&(y[c]=u)):N&&(E(c,e.k)&&(c.value=u),e.k&&(g[e.k]=u))};if(u){let D=()=>{w(),Ci.delete(e)};D.id=-1,Ci.set(e,D),Ot(D,s)}else Ll(e),w()}}}function Ll(e){let t=Ci.get(e);t&&(t.flags|=8,Ci.delete(e))}var ql=e=>e.nodeType===8;var Bte=ss().requestIdleCallback||(e=>setTimeout(e,1)),zte=ss().cancelIdleCallback||(e=>clearTimeout(e));function Jf(e,t){if(ql(e)&&e.data==="["){let s=1,i=e.nextSibling;for(;i;){if(i.nodeType===1){if(t(i)===!1)break}else if(ql(i))if(i.data==="]"){if(--s===0)break}else i.data==="["&&s++;i=i.nextSibling}}else t(e)}var ys=e=>!!e.type.__asyncLoader;function id(e){Ie(e)&&(e={loader:e});let{loader:t,loadingComponent:s,errorComponent:i,delay:o=200,hydrate:r,timeout:u,suspensible:p=!0,onError:c}=e,v=null,g,y=0,m=()=>(y++,v=null,b()),b=()=>{let E;return v||(E=v=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((N,w)=>{c(S,()=>N(m()),()=>w(S),y+1)});throw S}).then(S=>E!==v&&v?v:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),g=S,S)))};return Ds({name:"AsyncComponentWrapper",__asyncLoader:b,__asyncHydrate(E,S,N){let w=E.isConnected,D=!1;(S.bu||(S.bu=[])).push(()=>D=!0);let O=()=>{D||!E.parentNode||w&&!E.isConnected||N()},F=r?()=>{let j=r(O,oe=>Jf(E,oe));j&&(S.bum||(S.bum=[])).push(j)}:O;g?F():b().then(()=>!S.isUnmounted&&F())},get __asyncResolved(){return g},setup(){let E=Et;if(Yr(E),g)return()=>yi(g,E);let S=j=>{v=null,Ts(j,E,13,!i)};if(p&&E.suspense||$o)return b().then(j=>()=>yi(j,E)).catch(j=>(S(j),()=>i?Oe(i,{error:j}):null));let N=St(!1),w=St(),D=St(!!o),O,F;return Ps(()=>{O!=null&&clearTimeout(O),F!=null&&clearTimeout(F)}),o&&(F=setTimeout(()=>{E.isUnmounted||(D.value=!1)},o)),u!=null&&(O=setTimeout(()=>{if(!E.isUnmounted&&!N.value&&!w.value){let j=new Error(`Async component timed out after ${u}ms.`);S(j),w.value=j}},u)),b().then(()=>{E.isUnmounted||(N.value=!0,E.parent&&Di(E.parent.vnode)&&E.parent.update())}).catch(j=>{if(E.isUnmounted){v=null;return}S(j),w.value=j}),()=>{if(N.value&&g)return yi(g,E);if(w.value&&i)return Oe(i,{error:w.value});if(s&&!D.value)return yi(s,E)}}})}function yi(e,t){let{ref:s,props:i,children:o,ce:r}=t.vnode,u=Oe(e,i,o);return u.ref=s,u.ce=r,delete t.vnode.ce,u}var Di=e=>e.type.__isKeepAlive;function rd(e,t){ld(e,"a",t)}function ad(e,t){ld(e,"da",t)}function ld(e,t,s=Et){let i=e.__wdc||(e.__wdc=()=>{let o=s;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Pi(t,i,s),s){let o=s.parent;for(;o&&o.parent;)Di(o.parent.vnode)&&Xf(i,t,s,o),o=o.parent}}function Xf(e,t,s,i){let o=Pi(t,e,i,!0);Ps(()=>{ts(i[t],o)},s)}function Pi(e,t,s=Et,i=!1){if(s){let o=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...u)=>{Zt();let p=As(s),c=Gt(t,s,e,u);return p(),xt(),c});return i?o.unshift(r):o.push(r),r}}var Sn=e=>(t,s=Et)=>{(!$o||e==="sp")&&Pi(e,(...i)=>t(...i),s)},Qf=Sn("bm"),mn=Sn("m"),dd=Sn("bu"),ud=Sn("u"),io=Sn("bum"),Ps=Sn("um"),Zf=Sn("sp"),xf=Sn("rtg"),em=Sn("rtc");function tm(e,t=Et){Pi("ec",e,t)}var cd="components",nm="directives";function Qe(e,t){return pd(cd,e,!0,t)||e}var om=Symbol.for("v-ndc");function De(e){return pd(nm,e)}function pd(e,t,s=!0,i=!1){let o=Ft||Et;if(o){let r=o.type;if(e===cd){let p=Um(r,!1);if(p&&(p===t||p===mt(t)||p===Qn(mt(t))))return r}let u=$l(o[e]||r[e],t)||$l(o.appContext[e],t);return!u&&i?r:u}}function $l(e,t){return e&&(e[t]||e[mt(t)]||e[Qn(mt(t))])}function Q(e,t,s,i){let o,r=s&&s[i],u=Ne(e);if(u||rt(e)){let p=u&&dn(e),c=!1,v=!1;p&&(c=!It(e),v=jt(e),e=ps(e)),o=new Array(e.length);for(let g=0,y=e.length;gt(p,c,void 0,r&&r[c]));else{let p=Object.keys(e);o=new Array(p.length);for(let c=0,v=p.length;ce?Vd(e)?Oi(e):zr(e.parent):null;var bs=pt(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=>zr(e.parent),$root:e=>zr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Jr(e),$forceUpdate:e=>e.f||(e.f=()=>{Kr(e.update)}),$nextTick:e=>e.n||(e.n=je.bind(e.proxy)),$watch:e=>Wf.bind(e)});var _r=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ge(e,t),sm={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:s,setupState:i,data:o,props:r,accessCache:u,type:p,appContext:c}=e;if(t[0]!=="$"){let m=u[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return o[t];case 4:return s[t];case 3:return r[t]}else{if(_r(i,t))return u[t]=1,i[t];if(o!==xe&&Ge(o,t))return u[t]=2,o[t];if(Ge(r,t))return u[t]=3,r[t];if(s!==xe&&Ge(s,t))return u[t]=4,s[t];Hr&&(u[t]=0)}}let v=bs[t],g,y;if(v)return t==="$attrs"&&Ct(e.attrs,"get",""),v(e);if((g=p.__cssModules)&&(g=g[t]))return g;if(s!==xe&&Ge(s,t))return u[t]=4,s[t];if(y=c.config.globalProperties,Ge(y,t))return y[t]},set({_:e},t,s){let{data:i,setupState:o,ctx:r}=e;return _r(o,t)?(o[t]=s,!0):i!==xe&&Ge(i,t)?(i[t]=s,!0):Ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:i,appContext:o,props:r,type:u}},p){let c;return!!(s[p]||e!==xe&&p[0]!=="$"&&Ge(e,p)||_r(t,p)||Ge(r,p)||Ge(i,p)||Ge(bs,p)||Ge(o.config.globalProperties,p)||(c=u.__cssModules)&&c[p])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Ge(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function _l(e){return Ne(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}var Hr=!0;function im(e){let t=Jr(e),s=e.proxy,i=e.ctx;Hr=!1,t.beforeCreate&&Fl(t.beforeCreate,e,"bc");let{data:o,computed:r,methods:u,watch:p,provide:c,inject:v,created:g,beforeMount:y,mounted:m,beforeUpdate:b,updated:E,activated:S,deactivated:N,beforeDestroy:w,beforeUnmount:D,destroyed:O,unmounted:F,render:j,renderTracked:oe,renderTriggered:_,errorCaptured:B,serverPrefetch:I,expose:L,inheritAttrs:k,components:q,directives:W,filters:H}=t;if(v&&rm(v,i,null),u)for(let G in u){let ue=u[G];Ie(ue)&&(i[G]=ue.bind(s))}if(o){let G=o.call(s,s);Xe(G)&&(e.data=st(G))}if(Hr=!0,r)for(let G in r){let ue=r[G],he=Ie(ue)?ue.bind(s,s):Ie(ue.get)?ue.get.bind(s,s):At,Me=!Ie(ue)&&Ie(ue.set)?ue.set.bind(s):At,Ue=Nt({get:he,set:Me});Object.defineProperty(i,G,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:We=>Ue.value=We})}if(p)for(let G in p)fd(p[G],i,s,G);if(c){let G=Ie(c)?c.call(s):c;Reflect.ownKeys(G).forEach(ue=>{so(ue,G[ue])})}g&&Fl(g,e,"c");function ne(G,ue){Ne(ue)?ue.forEach(he=>G(he.bind(s))):ue&&G(ue.bind(s))}if(ne(Qf,y),ne(mn,m),ne(dd,b),ne(ud,E),ne(rd,S),ne(ad,N),ne(tm,B),ne(em,oe),ne(xf,_),ne(io,D),ne(Ps,F),ne(Zf,I),Ne(L))if(L.length){let G=e.exposed||(e.exposed={});L.forEach(ue=>{Object.defineProperty(G,ue,{get:()=>s[ue],set:he=>s[ue]=he,enumerable:!0})})}else e.exposed||(e.exposed={});j&&e.render===At&&(e.render=j),k!=null&&(e.inheritAttrs=k),q&&(e.components=q),W&&(e.directives=W),I&&Yr(e)}function rm(e,t,s=At){Ne(e)&&(e=jr(e));for(let i in e){let o=e[i],r;Xe(o)?"default"in o?r=Mt(o.from||i,o.default,!0):r=Mt(o.from||i):r=Mt(o),wt(r)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r.value,set:u=>r.value=u}):t[i]=r}}function Fl(e,t,s){Gt(Ne(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,s)}function fd(e,t,s,i){let o=i.includes(".")?od(s,i):()=>s[i];if(rt(e)){let r=t[e];Ie(r)&&ut(o,r)}else if(Ie(e))ut(o,e.bind(s));else if(Xe(e))if(Ne(e))e.forEach(r=>fd(r,t,s,i));else{let r=Ie(e.handler)?e.handler.bind(s):t[e.handler];Ie(r)&&ut(o,r,e)}}function Jr(e){let t=e.type,{mixins:s,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:u}}=e.appContext,p=r.get(t),c;return p?c=p:!o.length&&!s&&!i?c=t:(c={},o.length&&o.forEach(v=>Si(c,v,u,!0)),Si(c,t,u)),Xe(t)&&r.set(t,c),c}function Si(e,t,s,i=!1){let{mixins:o,extends:r}=t;r&&Si(e,r,s,!0),o&&o.forEach(u=>Si(e,u,s,!0));for(let u in t)if(!(i&&u==="expose")){let p=am[u]||s&&s[u];e[u]=p?p(e[u],t[u]):t[u]}return e}var am={data:Ul,props:Bl,emits:Bl,methods:gs,computed:gs,beforeCreate:Tt,created:Tt,beforeMount:Tt,mounted:Tt,beforeUpdate:Tt,updated:Tt,beforeDestroy:Tt,beforeUnmount:Tt,destroyed:Tt,unmounted:Tt,activated:Tt,deactivated:Tt,errorCaptured:Tt,serverPrefetch:Tt,components:gs,directives:gs,watch:dm,provide:Ul,inject:lm};function Ul(e,t){return t?e?function(){return pt(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function lm(e,t){return gs(jr(e),jr(t))}function jr(e){if(Ne(e)){let t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${sn(t)}Modifiers`];function fm(e,t,...s){if(e.isUnmounted)return;let i=e.vnode.props||xe,o=s,r=t.startsWith("update:"),u=r&&pm(i,t.slice(7));u&&(u.trim&&(o=s.map(g=>rt(g)?g.trim():g)),u.number&&(o=o.map(Io)));let p,c=i[p=os(t)]||i[p=os(mt(t))];!c&&r&&(c=i[p=os(sn(t))]),c&&Gt(c,e,6,o);let v=i[p+"Once"];if(v){if(!e.emitted)e.emitted={};else if(e.emitted[p])return;e.emitted[p]=!0,Gt(v,e,6,o)}}var mm=new WeakMap;function hd(e,t,s=!1){let i=s?mm:t.emitsCache,o=i.get(e);if(o!==void 0)return o;let r=e.emits,u={},p=!1;if(!Ie(e)){let c=v=>{let g=hd(v,t,!0);g&&(p=!0,pt(u,g))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!p?(Xe(e)&&i.set(e,null),null):(Ne(r)?r.forEach(c=>u[c]=null):pt(u,r),Xe(e)&&i.set(e,u),u)}function Ai(e,t){return!e||!To(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Ge(e,t[0].toLowerCase()+t.slice(1))||Ge(e,sn(t))||Ge(e,t))}function Fr(e){let{type:t,vnode:s,proxy:i,withProxy:o,propsOptions:[r],slots:u,attrs:p,emit:c,render:v,renderCache:g,props:y,data:m,setupState:b,ctx:E,inheritAttrs:S}=e,N=ki(e),w,D;try{if(s.shapeFlag&4){let j=o||i,oe=j;w=fn(v.call(oe,j,g,y,b,m,E)),D=p}else{let j=t;w=fn(j.length>1?j(y,{attrs:p,slots:u,emit:c}):j(y,null)),D=t.props?p:hm(p)}}catch(j){oo.length=0,Ts(j,e,1),w=Oe(tn)}let O=w,F;if(D&&S!==!1){let j=Object.keys(D),{shapeFlag:oe}=O;j.length&&oe&7&&(r&&j.some(Do)&&(D=gm(D,r)),O=qo(O,D,!1,!0))}if(s.dirs&&(O=qo(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(s.dirs):s.dirs),s.transition){let j=Ti(O.type)&&sd(O)||O;Cs(j,s.transition)}return w=O,ki(N),w}function gd(e,t=!0){let s;for(let i=0;i{let t;for(let s in e)(s==="class"||s==="style"||To(s))&&((t||(t={}))[s]=e[s]);return t},gm=(e,t)=>{let s={};for(let i in e)(!Do(i)||!(i.slice(9)in t))&&(s[i]=e[i]);return s};function vm(e,t,s){let{props:i,children:o,component:r}=e,{props:u,children:p,patchFlag:c}=t,v=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return i?zl(i,u,v):!!u;if(c&8){let g=t.dynamicProps;for(let y=0;yObject.create(yd),wd=e=>Object.getPrototypeOf(e)===yd;function bm(e,t,s,i=!1){let o={},r=bd();e.propsDefaults=Object.create(null),kd(e,t,o,r);for(let u in e.propsOptions[0])u in o||(o[u]=void 0);s?e.props=i?o:fs(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function wm(e,t,s,i){let{props:o,attrs:r,vnode:{patchFlag:u}}=e,p=Ye(o),[c]=e.propsOptions,v=!1;if((i||u>0)&&!(u&16)){if(u&8){let g=e.vnode.dynamicProps;for(let y=0;y{c=!0;let[m,b]=Cd(y,t,!0);pt(u,m),b&&p.push(...b)};!s&&t.mixins.length&&t.mixins.forEach(g),e.extends&&g(e.extends),e.mixins&&e.mixins.forEach(g)}if(!r&&!c)return Xe(e)&&i.set(e,On),On;if(Ne(r))for(let g=0;ge==="_"||e==="_ctx"||e==="$stable",Qr=e=>Ne(e)?e.map(fn):[fn(e)],Cm=(e,t,s)=>{if(t._n)return t;let i=Hf((...o)=>Qr(t(...o)),s);return i._c=!1,i},Sd=(e,t,s)=>{let i=e._ctx;for(let o in e){if(Xr(o))continue;let r=e[o];if(Ie(r))t[o]=Cm(o,r,i);else if(r!=null){let u=Qr(r);t[o]=()=>u}}},Ed=(e,t)=>{let s=Qr(t);e.slots.default=()=>s},Nd=(e,t,s)=>{for(let i in t)(s||!Xr(i))&&(e[i]=t[i])},Sm=(e,t,s)=>{let i=e.slots=bd();if(e.vnode.shapeFlag&32){let o=t._;o?(Nd(i,t,s),s&&ri(i,"_",o,!0)):Sd(t,i)}else t&&Ed(e,t)},Em=(e,t,s)=>{let{vnode:i,slots:o}=e,r=!0,u=xe;if(i.shapeFlag&32){let p=t._;p?s&&p===1?r=!1:Nd(o,t,s):(r=!t.$stable,Sd(t,o)),u=t}else t&&(Ed(e,t),u={default:1});if(r)for(let p in o)!Xr(p)&&u[p]==null&&delete o[p]};function Nm(){let e=[]}var Ot=Pm;function Rd(e){return Rm(e)}function Rm(e,t){Nm();let s=ss();s.__VUE__=!0;let{insert:i,remove:o,patchProp:r,createElement:u,createText:p,createComment:c,setText:v,setElementText:g,parentNode:y,nextSibling:m,setScopeId:b=At,insertStaticContent:E}=e,S=(P,A,U,x=null,K=null,ee=null,le=void 0,se=null,ie=!!A.dynamicChildren)=>{if(P===A)return;P&&!hs(P,A)&&(x=me(P),ze(P,K,ee,!0),P=null),A.patchFlag===-2&&(ie=!1,A.dynamicChildren=null),A.dynamicChildren&&P&&P.dynamicChildren&&P.dynamicChildren.hasOnce&&(A.dynamicChildren===On&&(A.dynamicChildren=[]),A.dynamicChildren.hasOnce=!0);let{type:te,ref:Ce,shapeFlag:fe}=A;switch(te){case Ii:N(P,A,U,x);break;case tn:w(P,A,U,x);break;case ws:P==null&&D(A,U,x,le);break;case V:W(P,A,U,x,K,ee,le,se,ie);break;default:fe&1?oe(P,A,U,x,K,ee,le,se,ie):fe&6?H(P,A,U,x,K,ee,le,se,ie):(fe&64||fe&128)&&te.process(P,A,U,x,K,ee,le,se,ie,pe)}Ce!=null&&K?vs(Ce,P&&P.ref,ee,A||P,!A):Ce==null&&P&&P.ref!=null&&vs(P.ref,null,ee,P,!0)},N=(P,A,U,x)=>{if(P==null)i(A.el=p(A.children),U,x);else{let K=A.el=P.el;A.children!==P.children&&v(K,A.children)}},w=(P,A,U,x)=>{P==null?i(A.el=c(A.children||""),U,x):A.el=P.el},D=(P,A,U,x)=>{[P.el,P.anchor]=E(P.children,A,U,x,P.el,P.anchor)},O=(P,A,U,x)=>{if(A.children!==P.children){let K=m(P.anchor);j(P),[A.el,A.anchor]=E(A.children,U,K,x)}else A.el=P.el,A.anchor=P.anchor},F=({el:P,anchor:A},U,x)=>{let K;for(;P&&P!==A;)K=m(P),i(P,U,x),P=K;i(A,U,x)},j=({el:P,anchor:A})=>{let U;for(;P&&P!==A;)U=m(P),o(P),P=U;o(A)},oe=(P,A,U,x,K,ee,le,se,ie)=>{if(A.type==="svg"?le="svg":A.type==="math"&&(le="mathml"),P==null)_(A,U,x,K,ee,le,se,ie);else{let te=P.el&&P.el._isVueCE?P.el:null;try{te&&te._beginPatch(),L(P,A,K,ee,le,se,ie)}finally{te&&te._endPatch()}}},_=(P,A,U,x,K,ee,le,se)=>{let ie,te,{props:Ce,shapeFlag:fe,transition:Ee,dirs:Te}=P;if(ie=P.el=u(P.type,ee,Ce&&Ce.is,Ce),fe&8?g(ie,P.children):fe&16&&I(P.children,ie,null,x,K,Ur(P,ee),le,se),Te&&to(P,null,x,"created"),B(ie,P,P.scopeId,le,x),Ce){for(let Ke in Ce)Ke!=="value"&&!Po(Ke)&&r(ie,Ke,null,Ce[Ke],ee,x);"value"in Ce&&r(ie,"value",null,Ce.value,ee),(te=Ce.onVnodeBeforeMount)&&cn(te,x,P)}Te&&to(P,null,x,"beforeMount");let Le=Tm(K,Ee);Le&&Ee.beforeEnter(ie),i(ie,A,U),((te=Ce&&Ce.onVnodeMounted)||Le||Te)&&Ot(()=>{let He;te&&cn(te,x,P),Le&&Ee.enter(ie),Te&&to(P,null,x,"mounted")},K)},B=(P,A,U,x,K)=>{if(U&&b(P,U),x)for(let ee=0;ee{for(let te=ie;te{let se=A.el=P.el,{patchFlag:ie,dynamicChildren:te,dirs:Ce}=A;ie|=P.patchFlag&16;let fe=P.props||xe,Ee=A.props||xe,Te;if(U&&no(U,!1),(Te=Ee.onVnodeBeforeUpdate)&&cn(Te,U,A,P),Ce&&to(A,P,U,"beforeUpdate"),U&&no(U,!0),te&&(!P.dynamicChildren||P.dynamicChildren.length!==te.length)&&(ie=0,le=!1,te=null),(fe.innerHTML&&Ee.innerHTML==null||fe.textContent&&Ee.textContent==null)&&g(se,""),te?k(P.dynamicChildren,te,se,U,x,Ur(A,K),ee):le||he(P,A,se,null,U,x,Ur(A,K),ee,!1),ie>0){if(ie&16)q(se,fe,Ee,U,K);else if(ie&2&&fe.class!==Ee.class&&r(se,"class",null,Ee.class,K),ie&4&&r(se,"style",fe.style,Ee.style,K),ie&8){let Le=A.dynamicProps;for(let Ke=0;Ke{Te&&cn(Te,U,A,P),Ce&&to(A,P,U,"updated")},x)},k=(P,A,U,x,K,ee,le)=>{for(let se=0;se{if(A!==U){if(A!==xe)for(let ee in A)!Po(ee)&&!(ee in U)&&r(P,ee,A[ee],null,K,x);for(let ee in U){if(Po(ee))continue;let le=U[ee],se=A[ee];le!==se&&ee!=="value"&&r(P,ee,se,le,K,x)}"value"in U&&r(P,"value",A.value,U.value,K)}},W=(P,A,U,x,K,ee,le,se,ie)=>{let te=A.el=P?P.el:p(""),Ce=A.anchor=P?P.anchor:p(""),{patchFlag:fe,dynamicChildren:Ee,slotScopeIds:Te}=A;Te&&(se=se?se.concat(Te):Te),P==null?(i(te,U,x),i(Ce,U,x),I(A.children||[],U,Ce,K,ee,le,se,ie)):fe>0&&fe&64&&Ee&&P.dynamicChildren&&P.dynamicChildren.length===Ee.length?(k(P.dynamicChildren,Ee,U,K,ee,le,se),(A.key!=null||K&&A===K.subTree)&&Td(P,A,!0)):he(P,A,U,Ce,K,ee,le,se,ie)},H=(P,A,U,x,K,ee,le,se,ie)=>{A.slotScopeIds=se,P==null?A.shapeFlag&512?K.ctx.activate(A,U,x,le,ie):J(A,U,x,K,ee,le,ie):ne(P,A,ie)},J=(P,A,U,x,K,ee,le)=>{let se=P.component=Lm(P,x,K);if(Di(P)&&(se.ctx.renderer=pe),qm(se,!1,le),se.asyncDep){if(K&&K.registerDep(se,G,le,ee),!P.el){let ie=se.subTree=Oe(tn);w(null,ie,A,U),P.placeholder=ie.el}}else G(se,P,A,U,K,ee,le)},ne=(P,A,U)=>{let x=A.component=P.component;if(vm(P,A,U))if(x.asyncDep&&!x.asyncResolved){A.el=P.el,A.placeholder=P.placeholder,ue(x,A,U);return}else x.next=A,x.update();else A.el=P.el,A.placeholder=P.placeholder,x.vnode=A},G=(P,A,U,x,K,ee,le)=>{let se=()=>{if(P.isMounted){let{next:fe,bu:Ee,u:Te,parent:Le,vnode:Ke}=P;{let at=Dd(P);if(at){fe&&(fe.el=Ke.el,ue(P,fe,le)),at.asyncDep.then(()=>{Ot(()=>{P.isUnmounted||te()},K)});return}}let He=fe,ke;no(P,!1),fe?(fe.el=Ke.el,ue(P,fe,le)):fe=Ke,Ee&&Ao(Ee),(ke=fe.props&&fe.props.onVnodeBeforeUpdate)&&cn(ke,Le,fe,Ke),no(P,!0);let we=Fr(P),it=P.subTree;P.subTree=we,S(it,we,y(it.el),me(it),P,K,ee),fe.el=we.el,He===null&&ym(P,we.el),Te&&Ot(Te,K),(ke=fe.props&&fe.props.onVnodeUpdated)&&Ot(()=>cn(ke,Le,fe,Ke),K)}else{let fe,{el:Ee,props:Te}=A,{bm:Le,m:Ke,parent:He,root:ke,type:we}=P,it=ys(A);if(no(P,!1),Le&&Ao(Le),!it&&(fe=Te&&Te.onVnodeBeforeMount)&&cn(fe,He,A),no(P,!0),Ee&&Ve){let at=()=>{P.subTree=Fr(P),Ve(Ee,P.subTree,P,K,null)};it&&we.__asyncHydrate?we.__asyncHydrate(Ee,P,at):at()}else{ke.ce&&ke.ce._hasShadowRoot()&&ke.ce._injectChildStyle(we,P.parent?P.parent.type:void 0);let at=P.subTree=Fr(P);S(null,at,U,x,P,K,ee),A.el=at.el}if(Ke&&Ot(Ke,K),!it&&(fe=Te&&Te.onVnodeMounted)){let at=A;Ot(()=>cn(fe,He,at),K)}(A.shapeFlag&256||He&&ys(He.vnode)&&He.vnode.shapeFlag&256)&&P.a&&Ot(P.a,K),P.isMounted=!0,A=U=x=null}};P.scope.on();let ie=P.effect=new Mo(se);P.scope.off();let te=P.update=ie.run.bind(ie),Ce=P.job=ie.runIfDirty.bind(ie);Ce.i=P,Ce.id=P.uid,ie.scheduler=()=>Kr(Ce),no(P,!0),te()},ue=(P,A,U)=>{A.component=P;let x=P.vnode.props;P.vnode=A,P.next=null,wm(P,A.props,x,U),Em(P,A.children,U),Zt(),Zl(P),xt()},he=(P,A,U,x,K,ee,le,se,ie=!1)=>{let te=P&&P.children,Ce=P?P.shapeFlag:0,fe=A.children,{patchFlag:Ee,shapeFlag:Te}=A;if(Ee>0){if(Ee&128){Ue(te,fe,U,x,K,ee,le,se,ie);return}else if(Ee&256){Me(te,fe,U,x,K,ee,le,se,ie);return}}Te&8?(Ce&16&&X(te,K,ee),fe!==te&&g(U,fe)):Ce&16?Te&16?Ue(te,fe,U,x,K,ee,le,se,ie):X(te,K,ee,!0):(Ce&8&&g(U,""),Te&16&&I(fe,U,x,K,ee,le,se,ie))},Me=(P,A,U,x,K,ee,le,se,ie)=>{P=P||On,A=A||On;let te=P.length,Ce=A.length,fe=Math.min(te,Ce),Ee;for(Ee=0;EeCe?X(P,K,ee,!0,!1,fe):I(A,U,x,K,ee,le,se,ie,fe)},Ue=(P,A,U,x,K,ee,le,se,ie)=>{let te=0,Ce=A.length,fe=P.length-1,Ee=Ce-1;for(;te<=fe&&te<=Ee;){let Te=P[te],Le=A[te]=ie?Cn(A[te]):fn(A[te]);if(hs(Te,Le))S(Te,Le,U,null,K,ee,le,se,ie);else break;te++}for(;te<=fe&&te<=Ee;){let Te=P[fe],Le=A[Ee]=ie?Cn(A[Ee]):fn(A[Ee]);if(hs(Te,Le))S(Te,Le,U,null,K,ee,le,se,ie);else break;fe--,Ee--}if(te>fe){if(te<=Ee){let Te=Ee+1,Le=TeEe)for(;te<=fe;)ze(P[te],K,ee,!0),te++;else{let Te=te,Le=te,Ke=new Map;for(te=Le;te<=Ee;te++){let dt=A[te]=ie?Cn(A[te]):fn(A[te]);dt.key!=null&&Ke.set(dt.key,te)}let He,ke=0,we=Ee-Le+1,it=!1,at=0,yt=new Array(we);for(te=0;te=we){ze(dt,K,ee,!0);continue}let ft;if(dt.key!=null)ft=Ke.get(dt.key);else for(He=Le;He<=Ee;He++)if(yt[He-Le]===0&&hs(dt,A[He])){ft=He;break}ft===void 0?ze(dt,K,ee,!0):(yt[ft-Le]=te+1,ft>=at?at=ft:it=!0,S(dt,A[ft],U,null,K,ee,le,se,ie),ke++)}let lt=it?Dm(yt):On;for(He=lt.length-1,te=we-1;te>=0;te--){let dt=Le+te,ft=A[dt],Lt=A[dt+1],Yn=dt+1{let{el:ee,type:le,transition:se,children:ie,shapeFlag:te}=P;if(te&6){We(P.component.subTree,A,U,x);return}if(te&128){P.suspense.move(A,U,x);return}if(te&64){le.move(P,A,U,pe);return}if(le===V){i(ee,A,U);for(let fe=0;fese.enter(ee),K));else{let{leave:fe,delayLeave:Ee,afterLeave:Te}=se,Le=()=>{P.ctx.isUnmounted?o(ee):i(ee,A,U)},Ke=()=>{let He=ee._isLeaving||!!ee[$r];ee._isLeaving&&ee[$r](!0),se.persisted&&!He?Le():fe(ee,()=>{Le(),Te&&Te()})};Ee?Ee(ee,Le,Ke):Ke()}else i(ee,A,U)},ze=(P,A,U,x=!1,K=!1)=>{let{type:ee,props:le,ref:se,children:ie,dynamicChildren:te,shapeFlag:Ce,patchFlag:fe,dirs:Ee,cacheIndex:Te,memo:Le}=P;if((fe===-2||te&&te.hasOnce)&&(K=!1),se!=null&&(Zt(),vs(se,null,U,P,!0),xt()),Te!=null&&(!P.ctx||P.ctx===A)&&(A.renderCache[Te]=void 0),Ce&256){A.ctx.deactivate(P);return}let Ke=Ce&1&&Ee,He=!ys(P),ke;if(He&&(ke=le&&le.onVnodeBeforeUnmount)&&cn(ke,A,P),Ce&6)Be(P.component,U,x);else{if(Ce&128){P.suspense.unmount(U,x);return}Ke&&to(P,null,A,"beforeUnmount"),Ce&64?P.type.remove(P,A,U,pe,x):te&&!te.hasOnce&&(ee!==V||fe>0&&fe&64)?X(te,A,U,!1,!0):(ee===V&&fe&384||!K&&Ce&16)&&X(ie,A,U),x&&tt(P)}let we=Le!=null&&Te==null;(He&&(ke=le&&le.onVnodeUnmounted)||Ke||we)&&Ot(()=>{ke&&cn(ke,A,P),Ke&&to(P,null,A,"unmounted"),we&&(P.el=null)},U)},tt=P=>{let{type:A,el:U,anchor:x,transition:K}=P,ee=A===V;if(ee&&!K){Re(U,x);return}if(A===ws){j(P),K&&!K.persisted&&K.afterLeave&&K.afterLeave();return}let le=ee?Br(P):P,se=()=>{ee?y(U)&&Re(U,x):o(U),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(le&&le.shapeFlag&1&&K&&!K.persisted){let{leave:ie,delayLeave:te}=K,Ce=le.el,fe=()=>ie(Ce,se);te?te(Ce,se,fe):fe()}else se()},Re=(P,A)=>{let U;for(;P!==A;)U=m(P),o(P),P=U;o(A)},Be=(P,A,U)=>{let{bum:x,scope:K,job:ee,subTree:le,um:se,m:ie,a:te}=P;jl(ie),jl(te),x&&Ao(x),K.stop(),ee?(ee.flags|=8,ze(le,P,A,U)):P.vnode.el&&le&&(le.transition=P.vnode.transition,ze(le,P,A,U)),se&&Ot(se,A),Ot(()=>{P.isUnmounted=!0},A)},X=(P,A,U,x=!1,K=!1,ee=0)=>{for(let le=ee;le{if(P.shapeFlag&6)return me(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();let A=m(P.anchor||P.el),U=A&&A[Kf];return U?m(U):A},de=(P,A,U)=>{let x=P&&A._vnode?void 0:P&&P.component?P.component.uid:Vm();zf(()=>{P==null?A._vnode&&ze(A._vnode,null,null,!0):S(A._vnode||null,P,A,null,null,null,U),A._vnode=P},x)},pe={p:S,um:ze,m:We,r:tt,mt:J,mc:I,pc:he,pbc:k,n:me,o:e},ye,Ve;return t&&([ye,Ve]=t(pe)),{render:de,hydrate:ye,createApp:cm(de,ye)}}function Ur({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function no({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Td(e,t,s=!1){let i=e.children,o=t.children;if(Ne(i)&&Ne(o))for(let r=0;r>1,e[s[p]]0&&(t[i]=s[r-1]),s[r]=i)}}for(r=s.length,u=s[r-1];r-- >0;)s[r]=u,u=t[u];return s}function Dd(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dd(t)}function jl(e){if(e)for(let t=0;te.__isSuspense;function Pm(e,t){t&&t.pendingBranch?Ne(e)?t.effects.push(...e):t.effects.push(e):Ql(e)}var V=Symbol.for("v-fgt"),Ii=Symbol.for("v-txt"),tn=Symbol.for("v-cmt"),ws=Symbol.for("v-stc"),oo=[],Ut=null;function a(e=!1){oo.push(Ut=e?null:[])}function Ad(){oo.pop(),Ut=oo[oo.length-1]||null}var Ss=1;function Ei(e,t=!1){Ss+=e,e<0&&Ut&&t&&(Ut.hasOnce=!0)}function Id(e){return e.dynamicChildren=Ss>0?Ut||On:null,Ad(),Ss>0&&Ut&&Ut.push(e),e}function l(e,t,s,i,o,r){return Id(n(e,t,s,i,o,r,!0))}function Wt(e,t,s,i,o){return Id(Oe(e,t,s,i,o,!0))}function Es(e){return e?e.__v_isVNode===!0:!1}function hs(e,t){return e.type===t.type&&e.key===t.key}var Od=({key:e})=>e??null,bi=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?rt(e)||wt(e)||Ie(e)?{i:Ft,r:e,k:t,f:!!s}:e:null);function n(e,t=null,s=null,i=0,o=null,r=e===V?0:1,u=!1,p=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Od(t),ref:t&&bi(t),scopeId:td,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ft};return p?(Ni(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=rt(s)?8:16),Ss>0&&!u&&Ut&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ut.push(c),c}var Oe=Am;function Am(e,t=null,s=null,i=0,o=null,r=!1){if((!e||e===om)&&(e=tn),Es(e)){let p=qo(e,t,!0);return s&&Ni(p,s),Ss>0&&!r&&Ut&&(p.shapeFlag&6?Ut[Ut.indexOf(e)]=p:Ut.push(p)),p.patchFlag=-2,p}if(Bm(e)&&(e=e.__vccOpts),t){t=Im(t);let{class:p,style:c}=t;p&&!rt(p)&&(t.class=R(p)),Xe(c)&&(ms(c)&&!Ne(c)&&(c=pt({},c)),t.style=Ae(c))}let u=rt(e)?1:Pd(e)?128:Ti(e)?64:Xe(e)?4:Ie(e)?2:0;return n(e,t,s,i,o,u,r,!0)}function Im(e){return e?ms(e)||wd(e)?pt({},e):e:null}function qo(e,t,s=!1,i=!1){let{props:o,ref:r,patchFlag:u,children:p,transition:c}=e,v=t?Om(o||{},t):o,g={__v_isVNode:!0,__v_skip:!0,type:e.type,props:v,key:v&&Od(v),ref:t&&t.ref?s&&r?Ne(r)?r.concat(bi(t)):[r,bi(t)]:bi(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:p,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==V?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&i&&Cs(g,c.clone(g)),g}function h(e=" ",t=0){return Oe(Ii,null,e,t)}function Se(e,t){let s=Oe(ws,null,e);return s.staticCount=t,s}function f(e="",t=!1){return t?(a(),Wt(tn,null,e)):Oe(tn,null,e)}function fn(e){return e==null||typeof e=="boolean"?Oe(tn):Ne(e)?Oe(V,null,e.slice()):Es(e)?Cn(e):Oe(Ii,null,String(e))}function Cn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function Ni(e,t){let s=0,{shapeFlag:i}=e;if(t==null)t=null;else if(Ne(t))s=16;else if(typeof t=="object")if(i&65){let o=t.default;o&&(o._c&&(o._d=!1),Ni(e,o()),o._c&&(o._d=!0));return}else{s=32;let o=t._;!o&&!wd(t)?t._ctx=Ft:o===3&&Ft&&(Ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(Ie(t)){if(i&65){Ni(e,{default:t});return}t={default:t,_ctx:Ft},s=32}else t=String(t),i&64?(s=16,t=[h(t)]):s=8;e.children=t,e.shapeFlag|=s}function Om(...e){let t={};for(let s=0;sEt||Ft,Ri,Ns;{let e=ss(),t=(s,i)=>{let o;return(o=e[s])||(o=e[s]=[]),o.push(i),r=>{o.length>1?o.forEach(u=>u(r)):o[0](r)}};Ri=t("__VUE_INSTANCE_SETTERS__",s=>Et=s),Ns=t("__VUE_SSR_SETTERS__",s=>$o=s)}var As=e=>{let t=Et;return Ri(e),e.scope.on(),()=>{e.scope.off(),Ri(t)}},Gl=()=>{Et&&Et.scope.off(),Ri(null)};function Vd(e){return e.vnode.shapeFlag&4}var $o=!1;function qm(e,t=!1,s=!1){t&&Ns(t);let{props:i,children:o}=e.vnode,r=Vd(e);bm(e,i,r,t),Sm(e,o,s||t);let u=r?$m(e,t):void 0;return t&&Ns(!1),u}function $m(e,t){let s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,sm);let{setup:i}=s;if(i){Zt();let o=e.setupContext=i.length>1?Fm(e):null,r=As(e),u=Rs(i,e,0,[e.props,o]),p=yr(u);if(xt(),r(),(p||e.sp)&&!ys(e)&&Yr(e),p){if(u.then(Gl,Gl),t)return u.then(c=>{Ns(!0);try{Wl(e,c,t)}finally{Ns(!1)}}).catch(c=>{Ts(c,e,0)});e.asyncDep=u}else Wl(e,u,t)}else Ld(e,t)}function Wl(e,t,s){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Xe(t)&&(e.setupState=vi(t)),Ld(e,s)}var Kl,Yl;function Ld(e,t,s){let i=e.type;if(!e.render){if(!t&&Kl&&!i.render){let o=i.template||Jr(e).template;if(o){let{isCustomElement:r,compilerOptions:u}=e.appContext.config,{delimiters:p,compilerOptions:c}=i,v=pt(pt({isCustomElement:r,delimiters:p},u),c);i.render=Kl(o,v)}}e.render=i.render||At,Yl&&Yl(e)}{let o=As(e);Zt();try{im(e)}finally{xt(),o()}}}var _m={get(e,t){return Ct(e,"get",""),e[t]}};function Fm(e){let t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,_m),slots:e.slots,emit:e.emit,expose:t}}function Oi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(vi(un(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in bs)return bs[s](e)},has(t,s){return s in t||s in bs}})):e.proxy}function Um(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Bm(e){return Ie(e)&&"__vccOpts"in e}var Nt=(e,t)=>Il(e,t,$o);function Pe(e,t,s){try{Ei(-1);let i=arguments.length;return i===2?Xe(t)&&!Ne(t)?Es(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(i>3?s=Array.prototype.slice.call(arguments,2):i===3&&Es(s)&&(s=[s]),Oe(e,t,s))}finally{Ei(1)}}var zm="3.5.44";var na,qd=typeof window<"u"&&window.trustedTypes;if(qd)try{na=qd.createPolicy("vue",{createHTML:e=>e})}catch{}var Yd=na?e=>na.createHTML(e):e=>e,Hm="http://www.w3.org/2000/svg",jm="http://www.w3.org/1998/Math/MathML",En=typeof document<"u"?document:null,$d=En&&En.createElement("template"),Gm={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,i)=>{let o=t==="svg"?En.createElementNS(Hm,e):t==="mathml"?En.createElementNS(jm,e):s?En.createElement(e,{is:s}):En.createElement(e);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>En.createTextNode(e),createComment:e=>En.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>En.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,i,o,r){let u=s?s.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),s),!(o===r||!(o=o.nextSibling)););else{$d.innerHTML=Yd(i==="svg"?`${e}`:i==="mathml"?`${e}`:e);let p=$d.content;if(i==="svg"||i==="mathml"){let c=p.firstChild;for(;c.firstChild;)p.appendChild(c.firstChild);p.removeChild(c)}t.insertBefore(p,s)}return[u?u.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}};var Wm=Symbol("_vtc");function Km(e,t,s){let i=e[Wm];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}var Li=Symbol("_vod"),Jd=Symbol("_vsh"),Z={name:"show",beforeMount(e,{value:t},{transition:s}){e[Li]=e.style.display==="none"?"":e.style.display,s&&t?s.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:s}){s&&t&&s.enter(e)},updated(e,{value:t,oldValue:s},{transition:i}){!t!=!s&&(i?t?(i.beforeEnter(e),Is(e,!0),i.enter(e)):i.leave(e,()=>{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e[Li]:"none",e[Jd]=!t}var Ym=Symbol("");var Jm=/(?:^|;)\s*display\s*:/;function Xm(e,t,s){let i=e.style,o=rt(s),r=!1;if(s&&!o){if(t)if(rt(t))for(let u of t.split(";")){let p=u.slice(0,u.indexOf(":")).trim();s[p]==null&&Os(i,p,"")}else for(let u in t)s[u]==null&&Os(i,u,"");for(let u in s){u==="display"&&(r=!0);let p=s[u];p!=null?Zm(e,u,!rt(t)&&t?t[u]:void 0,p)||Os(i,u,p):Os(i,u,"")}}else if(o){if(t!==s){let u=i[Ym];u&&(s+=";"+u),i.cssText=s,r=Jm.test(s)}}else t&&e.removeAttribute("style");Li in e&&((!o||t!==s)&&(e[Li]=r?i.display:""),e[Jd]&&(i.display="none"))}var Mi=/\s*!important$/;function Os(e,t,s){if(Ne(s))s.forEach(i=>Os(e,t,i));else if(s==null&&(s=""),t.startsWith("--"))Mi.test(s)?e.setProperty(t,s.replace(Mi,""),"important"):e.setProperty(t,s);else{let i=Qm(e,t);Mi.test(s)?e.setProperty(sn(i),s.replace(Mi,""),"important"):e[i]=s}}var _d=["Webkit","Moz","ms"],xr={};function Qm(e,t){let s=xr[t];if(s)return s;let i=mt(t);if(i!=="filter"&&i in e)return xr[t]=i;i=Qn(i);for(let o=0;o<_d.length;o++){let r=_d[o]+i;if(r in e)return xr[t]=r}return t}function Zm(e,t,s,i){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&rt(i)&&s===i}var Fd="http://www.w3.org/1999/xlink";function Ud(e,t,s,i,o,r=cl(t)){i&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(Fd,t.slice(6,t.length)):e.setAttributeNS(Fd,t,s):s==null||r&&!ai(s)?e.removeAttribute(t):e.setAttribute(t,r?"":$t(s)?String(s):s)}function Bd(e,t,s,i,o){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?Yd(s):s);return}let r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){let p=r==="OPTION"?e.getAttribute("value")||"":e.value,c=s==null?e.type==="checkbox"?"on":"":String(s);(p!==c||!("_value"in e))&&(e.value=c),s==null&&e.removeAttribute(t),e._value=s;return}let u=!1;if(s===""||s==null){let p=typeof e[t];p==="boolean"?s=ai(s):s==null&&p==="string"?(s="",u=!0):p==="number"&&(s=0,u=!0)}try{e[t]=s}catch{}u&&e.removeAttribute(o||t)}function Vn(e,t,s,i){e.addEventListener(t,s,i)}function xm(e,t,s,i){e.removeEventListener(t,s,i)}var zd=Symbol("_vei");function eh(e,t,s,i,o=null){let r=e[zd]||(e[zd]={}),u=r[t];if(i&&u)u.value=i;else{let[p,c]=oh(t);if(i){let v=r[t]=rh(i,o);Vn(e,p,v,c)}else u&&(xm(e,p,u,c),r[t]=void 0)}}var th=/(Once|Passive|Capture)$/,nh=/^on:?(?:Once|Passive|Capture)$/;function oh(e){let t,s;for(;(s=e.match(th))&&!nh.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}var ea=0,sh=Promise.resolve(),ih=()=>ea||(sh.then(()=>ea=0),ea=Date.now());function rh(e,t){let s=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=s.attached)return;let o=s.value;if(Ne(o)){let r=i.stopImmediatePropagation;i.stopImmediatePropagation=()=>{r.call(i),i._stopped=!0};let u=o.slice(),p=[i];for(let c=0;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ah=(e,t,s,i,o,r)=>{let u=o==="svg";t==="class"?Km(e,i,u):t==="style"?Xm(e,s,i):To(t)?Do(t)||eh(e,t,s,i,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):lh(e,t,i,u))?(Bd(e,t,i),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ud(e,t,i,u,r,t!=="value")):e._isVueCE&&(dh(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!rt(i)))?Bd(e,mt(t),i,r,t):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ud(e,t,i,u))};function lh(e,t,s,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hd(t)&&Ie(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Hd(t)&&rt(s)?!1:t in e}function dh(e,t){let s=e._def.props;if(!s)return!1;let i=mt(t);return Array.isArray(s)?s.some(o=>mt(o)===i):Object.keys(s).some(o=>mt(o)===i)}var _o=e=>{let t=e.props["onUpdate:modelValue"]||!1;return Ne(t)?s=>Ao(t,s):t};function uh(e){e.target.composing=!0}function jd(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}var hn=Symbol("_assign"),Vi=Symbol("_initialValue");function ta(e,t,s){return t&&(e=e.trim()),s&&(e=Io(e)),e}var nt={created(e,{modifiers:{lazy:t,trim:s,number:i}},o){e.parentNode&&(e.type==="text"?e[Vi]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Vi]=e.defaultValue.replace(/\r\n?/g,` +`))),e[hn]=_o(o);let r=i||o.props&&o.props.type==="number";Vn(e,t?"change":"input",u=>{u.target.composing||e[hn](ta(e.value,s,r))}),(s||r)&&Vn(e,"change",()=>{e.value=ta(e.value,s,r)}),t||(Vn(e,"compositionstart",uh),Vn(e,"compositionend",jd),Vn(e,"change",jd))},mounted(e,{value:t,modifiers:{trim:s,number:i}}){let o=t??"",r=e[Vi];delete e[Vi],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[hn](ta(e.value,s,i)):e.value=o},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:i,trim:o,number:r}},u){if(e[hn]=_o(u),e.composing)return;let p=(r||e.type==="number")&&!/^0\d/.test(e.value)?Io(e.value):e.value,c=t??"";if(p===c)return;let v=e.getRootNode();(v instanceof Document||v instanceof ShadowRoot)&&v.activeElement===e&&e.type!=="range"&&(i&&t===s||o&&e.value.trim()===c)||(e.value=c)}},oa={deep:!0,created(e,t,s){e[hn]=_o(s),Vn(e,"change",()=>{let i=e._modelValue,o=Ms(e),r=e.checked,u=e[hn];if(Ne(i)){let p=li(i,o),c=p!==-1;if(r&&!c)u(i.concat(o));else if(!r&&c){let v=[...i];v.splice(p,1),u(v)}}else if(Jt(i)){let p=new Set(i);r?p.add(o):p.delete(o),u(p)}else u(Xd(e,r))})},mounted:Gd,beforeUpdate(e,t,s){e[hn]=_o(s),Gd(e,t,s)}};function Gd(e,{value:t,oldValue:s},i){e._modelValue=t;let o;if(Ne(t))o=li(t,i.props.value)>-1;else if(Jt(t))o=t.has(i.props.value);else{if(t===s)return;o=Xt(t,Xd(e,!0))}e.checked!==o&&(e.checked=o)}var Rt={deep:!0,created(e,{value:t,modifiers:{number:s}},i){e._modelValue=t,Vn(e,"change",()=>{let o=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>s?Io(Ms(c)):Ms(c)),r=e.multiple,u=r?Jt(e._modelValue)?new Set(o):o:o[0],p=e._pendingValue=[r,r?Ne(u)?o.slice():o:u];try{e[hn](u)}finally{je(()=>{e._pendingValue===p&&(e._pendingValue=void 0)})}}),e[hn]=_o(i)},mounted(e,{value:t}){Wd(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[hn]=_o(s)},updated(e,{value:t}){let s=e._pendingValue;e._pendingValue=void 0,(!s||s[0]!==e.multiple||!ch(t,s[1],s[0]))&&Wd(e,t)}};function ch(e,t,s){if(!s)return Xt(e,t);if(Ne(e))return Xt(e,t);if(Jt(e)){if(e.size!==t.length)return!1;for(let i of t)if(!e.has(i))return!1;return!0}return!1}function Wd(e,t){let s=e.multiple,i=Ne(t);if(!(s&&!i&&!Jt(t))){for(let o=0,r=e.options.length;oString(v)===String(p)):u.selected=li(t,p)>-1}else u.selected=t.has(p);else if(Xt(Ms(u),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ms(e){return"_value"in e?e._value:e.value}function Xd(e,t){let s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}var ph=["ctrl","shift","alt","meta"],fh={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)=>ph.some(s=>e[`${s}Key`]&&!t.includes(s))},ae=(e,t)=>{if(!e)return e;let s=e._withMods||(e._withMods={}),i=t.join(".");return s[i]||(s[i]=((o,...r)=>{for(let u=0;u{let s=e._withKeys||(e._withKeys={}),i=t.join(".");return s[i]||(s[i]=(o=>{if(!("key"in o))return;let r=sn(o.key);if(t.some(u=>u===r||mh[u]===r))return e(o)}))},hh=pt({patchProp:ah},Gm),Kd;function gh(){return Kd||(Kd=Rd(hh))}var Qd=((...e)=>{let t=gh().createApp(...e),{mount:s}=t;return t.mount=i=>{let o=yh(i);if(!o)return;let r=t._component;!Ie(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");let u=s(o,!1,vh(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),u},t});function vh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function yh(e){return rt(e)?document.querySelector(e):e}var lo=typeof document<"u";function xd(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&xd(e.default)}var Ze=Object.assign;function qi(e,t){let s={};for(let i in t){let o=t[i];s[i]=Kt(o)?o.map(e):e(o)}return s}var Uo=()=>{},Kt=Array.isArray;function ra(e,t){let s={};for(let i in e)s[i]=i in t?t[i]:e[i];return s}var eu=/#/g,wh=/&/g,kh=/\//g,Ch=/=/g,Sh=/\?/g,tu=/\+/g,Eh=/%5B/g,Nh=/%5D/g,nu=/%5E/g,Rh=/%60/g,ou=/%7B/g,Th=/%7C/g,su=/%7D/g,Dh=/%20/g;function aa(e){return e==null?"":encodeURI(""+e).replace(Th,"|").replace(Eh,"[").replace(Nh,"]")}function iu(e){return aa(e).replace(ou,"{").replace(su,"}").replace(nu,"^")}function sa(e){return aa(e).replace(tu,"%2B").replace(Dh,"+").replace(eu,"%23").replace(wh,"%26").replace(Rh,"`").replace(ou,"{").replace(su,"}").replace(nu,"^")}function Ph(e){return sa(e).replace(Ch,"%3D")}function Ah(e){return aa(e).replace(eu,"%23").replace(Sh,"%3F")}function ru(e){return Ah(e).replace(kh,"%2F")}function Fo(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Ih=/\/$/,Oh=e=>e.replace(Ih,"");function $i(e,t,s="/"){let i,o={},r="",u="",p=t.indexOf("#"),c=t.indexOf("?");return c=p>=0&&c>p?-1:c,c>=0&&(i=t.slice(0,c),r=t.slice(c,p>0?p:t.length),o=e(r.slice(1))),p>=0&&(i=i||t.slice(0,p),u=t.slice(p,t.length)),i=Vh(i??t,s),{fullPath:i+r+u,path:i,query:o,hash:Fo(u)}}function au(e,t){let s=t.query?e(t.query):"";return t.path+(s&&"?")+s+(t.hash||"")}function la(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lu(e,t,s){let i=t.matched.length-1,o=s.matched.length-1;return i>-1&&i===o&&ro(t.matched[i],s.matched[o])&&da(t.params,s.params)&&e(t.query)===e(s.query)&&t.hash===s.hash}function ro(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function da(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var s in e)if(!Mh(e[s],t[s]))return!1;return!0}function Mh(e,t){return Kt(e)?Zd(e,t):Kt(t)?Zd(t,e):e?.valueOf()===t?.valueOf()}function Zd(e,t){return Kt(t)?e.length===t.length&&e.every((s,i)=>s===t[i]):e.length===1&&e[0]===t}function Vh(e,t){if(e.startsWith("/"))return e;if(!e)return t;let s=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let r=s.length-1,u,p;for(u=0;u1&&r--;else break;return s.slice(0,r).join("/")+"/"+i.slice(u).join("/")}var Rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_i=(function(e){return e.pop="pop",e.push="push",e})({}),Fi=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function du(e){if(!e)if(lo){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Oh(e)}var Lh=/^[^#]+#/;function uu(e,t){return e.replace(Lh,"#")+t}function qh(e,t){let s=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-s.left-(t.left||0),top:i.top-s.top-(t.top||0)}}var Vs=()=>({left:window.scrollX,top:window.scrollY});function cu(e){let t;if("el"in e){let s=e.el,i=typeof s=="string"&&s.startsWith("#"),o=typeof s=="string"?i?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!o)return;t=qh(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ua(e,t){return(history.state?history.state.position-t:-1)+e}var ia=new Map;function pu(e,t){ia.set(e,t)}function fu(e){let t=ia.get(e);return ia.delete(e),t}function $h(e){return typeof e=="string"||e&&typeof e=="object"}function ca(e){return typeof e=="string"||typeof e=="symbol"}var ct=(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})({}),mu=Symbol("");var bne={[ct.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for ${JSON.stringify(e)}${t?` while being at -`+JSON.stringify(t):""}`},[ct.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${_h(t)}" via a navigation guard.`},[ct.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[ct.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[ct.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ao(e,t){return Ze(new Error,{type:e,[mu]:!0},t)}function gn(e,t){return e instanceof Error&&mu in e&&(t==null||!!(e.type&t))}var Fh=["params","query","hash"];function _h(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let s of Fh)s in e&&(t[s]=e[s]);return JSON.stringify(t,null,2)}function hu(e){let t={};if(e===""||e==="?")return t;let s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;io&&sa(o)):[i&&sa(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function gu(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=Kt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var vu=Symbol(""),fa=Symbol(""),Ui=Symbol(""),Bi=Symbol(""),zi=Symbol("");function Bo(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Nn(e,t,s,i,o,r=u=>u()){let u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((p,c)=>{let v=m=>{m===!1?c(ao(ct.NAVIGATION_ABORTED,{from:s,to:t})):m instanceof Error?c(m):$h(m)?c(ao(ct.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(u&&i.enterCallbacks[o]===u&&typeof m=="function"&&u.push(m),p())},g=r(()=>e.call(i&&i.instances[o],t,s,v)),y=Promise.resolve(g);e.length<3&&(y=y.then(v)),y.catch(m=>c(m))})}function Hi(e,t,s,i,o=r=>r()){let r=[];for(let u of e)for(let p in u.components){let c=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(xd(c)){let v=(c.__vccOpts||c)[t];v&&r.push(Nn(v,s,i,u,p,o))}else{let v=c();r.push(()=>v.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let y=bh(g)?g.default:g;u.mods[p]=g,u.components[p]=y;let m=(y.__vccOpts||y)[t];return m&&Nn(m,s,i,u,p,o)()}))}}return r}function yu(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let u=0;uro(v,p))?i.push(p):s.push(p));let c=e.matched[u];c&&(t.matched.find(v=>ro(v,c))||o.push(c))}return[s,i,o]}var Uh=()=>location.protocol+"//"+location.host;function Pu(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let u=o.includes(e.slice(r))?e.slice(r).length:1,p=o.slice(u);return p[0]!=="/"&&(p="/"+p),la(p,"")}return la(s,e)+i+o}function Bh(e,t,s,i){let o=[],r=[],u=null,p=({state:m})=>{let b=Pu(e,location),E=s.value,S=t.value,N=0;if(m){if(s.value=b,t.value=m,u&&u===E){u=null;return}N=S?m.position-S.position:0}else i(b);o.forEach(w=>{w(s.value,E,{delta:N,type:Fi.pop,direction:N?N>0?_i.forward:_i.back:_i.unknown})})};function c(){u=s.value}function v(m){o.push(m);let b=()=>{let E=o.indexOf(m);E>-1&&o.splice(E,1)};return r.push(b),b}function g(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Ze({},m.state,{scroll:Vs()}),"")}}function y(){for(let m of r)m();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:c,listen:v,destroy:y}}function bu(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?Vs():null}}function zh(e){let{history:t,location:s}=window,i={value:Pu(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,v,g){let y=e.indexOf("#"),m=y>-1?(s.host&&document.querySelector("base")?e:e.slice(y))+c:Uh()+e+c;try{t[g?"replaceState":"pushState"](v,"",m),o.value=v}catch(b){console.error(b),s[g?"replace":"assign"](m)}}function u(c,v){r(c,Ze({},t.state,bu(o.value.back,c,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=c}function p(c,v){let g=Ze({},o.value,t.state,{forward:c,scroll:Vs()});r(g.current,g,!0),r(c,Ze({},bu(i.value,c,null),{position:g.position+1},v),!1),i.value=c}return{location:i,state:o,push:p,replace:u}}function Au(e){e=du(e);let t=zh(e),s=Bh(e,t.state,t.location,t.replace);function i(r,u=!0){u||s.pauseListeners(),history.go(r)}let o=Ze({location:"",base:e,go:i,createHref:uu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var uo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),gt=(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})(gt||{}),Hh={type:uo.Static,value:""},jh=/[a-zA-Z0-9_]/;function Gh(e){if(!e)return[[]];if(e==="/")return[[Hh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${s})/"${v}": ${b}`)}let s=gt.Static,i=s,o=[],r;function u(){r&&o.push(r),r=[]}let p=0,c,v="",g="";function y(){v&&(s===gt.Static?r.push({type:uo.Static,value:v}):s===gt.Param||s===gt.ParamRegExp||s===gt.ParamRegExpEnd?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:uo.Param,value:v,regexp:g,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),v="")}function m(){v+=c}for(;pt.length?t.length===1&&t[0]===Pt.Static+Pt.Segment?1:-1:0}function Iu(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var Xh={strict:!1,end:!0,sensitive:!1};function Qh(e,t,s){let i=Yh(Gh(e.path),s),o=Ze(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Zh(e,t){let s=[],i=new Map;t=ra(Xh,t);function o(y){return i.get(y)}function r(y,m,b){let E=!b,S=Su(y);S.aliasOf=b&&b.record;let N=ra(t,y),w=[S];if("alias"in y){let _=typeof y.alias=="string"?[y.alias]:y.alias;for(let j of _)w.push(Su(Ze({},S,{components:b?b.record.components:S.components,path:j,aliasOf:b?b.record:S})))}let D,O;for(let _ of w){let{path:j}=_;if(m&&j[0]!=="/"){let oe=m.record.path,F=oe[oe.length-1]==="/"?"":"/";_.path=m.record.path+(j&&F+j)}if(D=Qh(_,m,N),b?b.alias.push(D):(O=O||D,O!==D&&O.alias.push(D),E&&y.name&&!Eu(D)&&u(y.name)),Ou(D)&&c(D),S.children){let oe=S.children;for(let F=0;F{u(O)}:Uo}function u(y){if(ca(y)){let m=i.get(y);m&&(i.delete(y),s.splice(s.indexOf(m),1),m.children.forEach(u),m.alias.forEach(u))}else{let m=s.indexOf(y);m>-1&&(s.splice(m,1),y.record.name&&i.delete(y.record.name),y.children.forEach(u),y.alias.forEach(u))}}function p(){return s}function c(y){let m=tg(y,s);s.splice(m,0,y),y.record.name&&!Eu(y)&&i.set(y.record.name,y)}function v(y,m){let b,E={},S,N;if("name"in y&&y.name){if(b=i.get(y.name),!b)throw ao(ct.MATCHER_NOT_FOUND,{location:y});N=b.record.name,E=Ze(Cu(m.params,b.keys.filter(O=>!O.optional).concat(b.parent?b.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),y.params&&Cu(y.params,b.keys.map(O=>O.name))),S=b.stringify(E)}else if(y.path!=null)S=y.path,b=s.find(O=>O.re.test(S)),b&&(E=b.parse(S),N=b.record.name);else{if(b=m.name?i.get(m.name):s.find(O=>O.re.test(m.path)),!b)throw ao(ct.MATCHER_NOT_FOUND,{location:y,currentLocation:m});N=b.record.name,E=Ze({},m.params,y.params),S=b.stringify(E)}let w=[],D=b;for(;D;)w.unshift(D.record),D=D.parent;return{name:N,path:S,params:E,matched:w,meta:eg(w)}}e.forEach(y=>r(y));function g(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:u,clearRoutes:g,getRoutes:p,getRecordMatcher:o}}function Cu(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Su(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xh(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 xh(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function Eu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eg(e){return e.reduce((t,s)=>Ze(t,s.meta),{})}function tg(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;Iu(e,t[r])<0?i=r:s=r+1}let o=ng(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function ng(e){let t=e;for(;t=t.parent;)if(Ou(t)&&Iu(e,t)===0)return t}function Ou({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Nu(e){let t=Mt(Ui),s=Mt(Bi),i=!1,o=null,r=Nt(()=>{let g=kn(e.to);return t.resolve(g)}),u=Nt(()=>{let{matched:g}=r.value,{length:y}=g,m=g[y-1],b=s.matched;if(!m||!b.length)return-1;let E=b.findIndex(ro.bind(null,m));if(E>-1)return E;let S=Ru(g[y-2]);return y>1&&Ru(m)===S&&b[b.length-1].path!==S?b.findIndex(ro.bind(null,g[y-2])):E}),p=Nt(()=>u.value>-1&&ag(s.params,r.value.params)),c=Nt(()=>u.value>-1&&u.value===s.matched.length-1&&da(s.params,r.value.params));function v(g={}){if(rg(g)){let y=t[kn(e.replace)?"replace":"push"](kn(e.to)).catch(Uo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>y),y}return Promise.resolve()}return{route:r,href:Nt(()=>r.value.href),isActive:p,isExactActive:c,navigate:v}}function og(e){return e.length===1?e[0]:e}var sg=Ds({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:Nu,setup(e,{slots:t}){let s=st(Nu(e)),{options:i}=Mt(Ui),o=Nt(()=>({[Tu(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Tu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&og(t.default(s));return e.custom?r:Pe("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),ig=sg;function rg(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 ag(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!Kt(o)||o.length!==i.length||i.some((r,u)=>r.valueOf()!==o[u].valueOf()))return!1}return!0}function Ru(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Tu=(e,t,s)=>e??t??s,lg=Ds({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=Mt(zi),o=Nt(()=>e.route||i.value),r=Mt(fa,0),u=Nt(()=>{let v=kn(r),{matched:g}=o.value,y;for(;(y=g[v])&&!y.components;)v++;return v}),p=Nt(()=>o.value.matched[u.value]);so(fa,Nt(()=>u.value+1)),so(vu,p),so(zi,o);let c=St();return ut(()=>[c.value,p.value,e.name],([v,g,y],[m,b,E])=>{g&&(g.instances[y]=v,b&&b!==g&&v&&v===m&&(g.leaveGuards.size||(g.leaveGuards=b.leaveGuards),g.updateGuards.size||(g.updateGuards=b.updateGuards))),v&&g&&(!b||!ro(g,b)||!m)&&(g.enterCallbacks[y]||[]).forEach(S=>S(v))},{flush:"post"}),()=>{let v=o.value,g=e.name,y=p.value,m=y&&y.components[g];if(!m)return Du(s.default,{Component:m,route:v});let b=y.props[g],E=b?b===!0?v.params:typeof b=="function"?b(v):b:null,N=Pe(m,Ze({},E,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(y.instances[g]=null)},ref:c}));return Du(s.default,{Component:N,route:v})||N}}});function Du(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var ma=lg;function Mu(e){let t=Zh(e.routes,e),s=e.parseQuery||hu,i=e.stringifyQuery||pa,o=e.history,r=Bo(),u=Bo(),p=Bo(),c=gi(Rn),v=Rn;lo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=qi.bind(null,X=>""+X),y=qi.bind(null,ru),m=qi.bind(null,_o);function b(X,me){let de,pe;return ca(X)?(de=t.getRecordMatcher(X),pe=me):pe=X,t.addRoute(pe,de)}function E(X){let me=t.getRecordMatcher(X);me&&t.removeRoute(me)}function S(){return t.getRoutes().map(X=>X.record)}function N(X){return!!t.getRecordMatcher(X)}function w(X,me){if(me=Ze({},me||c.value),typeof X=="string"){let A=$i(s,X,me.path),U=t.resolve({path:A.path},me),x=o.createHref(A.fullPath);return Ze(A,U,{params:m(U.params),hash:_o(A.hash),redirectedFrom:void 0,href:x})}let de;if(X.path!=null)de=Ze({},X,{path:$i(s,X.path,me.path).path});else{let A=Ze({},X.params);for(let U in A)A[U]==null&&delete A[U];de=Ze({},X,{params:y(A)}),me.params=y(me.params)}let pe=t.resolve(de,me),ye=X.hash||"";pe.params=g(m(pe.params));let Ve=au(i,Ze({},X,{hash:iu(ye),path:pe.path})),P=o.createHref(Ve);return Ze({fullPath:Ve,hash:ye,query:i===pa?gu(X.query):X.query||{}},pe,{redirectedFrom:void 0,href:P})}function D(X){return typeof X=="string"?$i(s,X,c.value.path):Ze({},X)}function O(X,me){if(v!==X)return ao(ct.NAVIGATION_CANCELLED,{from:me,to:X})}function _(X){return F(X)}function j(X){return _(Ze(D(X),{replace:!0}))}function oe(X,me){let de=X.matched[X.matched.length-1];if(de&&de.redirect){let{redirect:pe}=de,ye=typeof pe=="function"?pe(X,me):pe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=D(ye):{path:ye},ye.params={}),Ze({query:X.query,hash:X.hash,params:ye.path!=null?{}:X.params},ye)}}function F(X,me){let de=v=w(X),pe=c.value,ye=X.state,Ve=X.force,P=X.replace===!0,A=oe(de,pe);if(A)return F(Ze(D(A),{state:typeof A=="object"?Ze({},ye,A.state):ye,force:Ve,replace:P}),me||de);let U=de;U.redirectedFrom=me;let x;return!Ve&&lu(i,pe,de)&&(x=ao(ct.NAVIGATION_DUPLICATED,{to:U,from:pe}),Ue(pe,pe,!0,!1)),(x?Promise.resolve(x):L(U,pe)).catch(K=>gn(K)?gn(K,ct.NAVIGATION_GUARD_REDIRECT)?K:Me(K):ue(K,U,pe)).then(K=>{if(K){if(gn(K,ct.NAVIGATION_GUARD_REDIRECT))return F(Ze({replace:P},D(K.to),{state:typeof K.to=="object"?Ze({},ye,K.to.state):ye,force:Ve}),me||U)}else K=q(U,pe,!0,P,ye);return k(U,pe,K),K})}function B(X,me){let de=O(X,me);return de?Promise.reject(de):Promise.resolve()}function I(X){let me=tt.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(X):X()}function L(X,me){let de,[pe,ye,Ve]=yu(X,me);de=Hi(pe.reverse(),"beforeRouteLeave",X,me);for(let A of pe)A.leaveGuards.forEach(U=>{de.push(Nn(U,X,me))});let P=B.bind(null,X,me);return de.push(P),Be(de).then(()=>{de=[];for(let A of r.list())de.push(Nn(A,X,me));return de.push(P),Be(de)}).then(()=>{de=Hi(ye,"beforeRouteUpdate",X,me);for(let A of ye)A.updateGuards.forEach(U=>{de.push(Nn(U,X,me))});return de.push(P),Be(de)}).then(()=>{de=[];for(let A of Ve)if(A.beforeEnter)if(Kt(A.beforeEnter))for(let U of A.beforeEnter)de.push(Nn(U,X,me));else de.push(Nn(A.beforeEnter,X,me));return de.push(P),Be(de)}).then(()=>(X.matched.forEach(A=>A.enterCallbacks={}),de=Hi(Ve,"beforeRouteEnter",X,me,I),de.push(P),Be(de))).then(()=>{de=[];for(let A of u.list())de.push(Nn(A,X,me));return de.push(P),Be(de)}).catch(A=>gn(A,ct.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function k(X,me,de){p.list().forEach(pe=>I(()=>pe(X,me,de)))}function q(X,me,de,pe,ye){let Ve=O(X,me);if(Ve)return Ve;let P=me===Rn,A=lo?history.state:{};de&&(pe||P?o.replace(X.fullPath,Ze({scroll:P&&A&&A.scroll},ye)):o.push(X.fullPath,ye)),c.value=X,Ue(X,me,de,P),Me()}let W;function H(){W||(W=o.listen((X,me,de)=>{if(!Re.listening)return;let pe=w(X),ye=oe(pe,Re.currentRoute.value);if(ye){F(Ze(ye,{replace:!0,force:!0}),pe).catch(Uo);return}v=pe;let Ve=c.value;lo&&pu(ua(Ve.fullPath,de.delta),Vs()),L(pe,Ve).catch(P=>gn(P,ct.NAVIGATION_ABORTED|ct.NAVIGATION_CANCELLED)?P:gn(P,ct.NAVIGATION_GUARD_REDIRECT)?(F(Ze(D(P.to),{force:!0}),pe).then(A=>{gn(A,ct.NAVIGATION_ABORTED|ct.NAVIGATION_DUPLICATED)&&!de.delta&&de.type===Fi.pop&&o.go(-1,!1)}).catch(Uo),Promise.reject()):(de.delta&&o.go(-de.delta,!1),ue(P,pe,Ve))).then(P=>{P=P||q(pe,Ve,!1),P&&(de.delta&&!gn(P,ct.NAVIGATION_CANCELLED)?o.go(-de.delta,!1):de.type===Fi.pop&&gn(P,ct.NAVIGATION_ABORTED|ct.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),k(pe,Ve,P)}).catch(Uo)}))}let J=Bo(),ne=Bo(),G;function ue(X,me,de){Me(X);let pe=ne.list();return pe.length?pe.forEach(ye=>ye(X,me,de)):console.error(X),Promise.reject(X)}function he(){return G&&c.value!==Rn?Promise.resolve():new Promise((X,me)=>{J.add([X,me])})}function Me(X){return G||(G=!X,H(),J.list().forEach(([me,de])=>X?de(X):me()),J.reset()),X}function Ue(X,me,de,pe){let{scrollBehavior:ye}=e;if(!lo||!ye)return Promise.resolve();let Ve=!de&&fu(ua(X.fullPath,0))||(pe||!de)&&history.state&&history.state.scroll||null;return je().then(()=>ye(X,me,Ve)).then(P=>P&&cu(P)).catch(P=>ue(P,X,me))}let We=X=>o.go(X),ze,tt=new Set,Re={currentRoute:c,listening:!0,addRoute:b,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:S,resolve:w,options:e,push:_,replace:j,go:We,back:()=>We(-1),forward:()=>We(1),beforeEach:r.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:he,install(X){X.component("RouterLink",ig),X.component("RouterView",ma),X.config.globalProperties.$router=Re,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>kn(c)}),lo&&!ze&&c.value===Rn&&(ze=!0,_(o.location).catch(pe=>{}));let me={};for(let pe in Rn)Object.defineProperty(me,pe,{get:()=>c.value[pe],enumerable:!0});X.provide(Ui,Re),X.provide(Bi,fs(me)),X.provide(zi,c);let de=X.unmount;tt.add(X),X.unmount=function(){tt.delete(X),tt.size<1&&(v=Rn,W&&W(),W=null,c.value=Rn,ze=!1,G=!1),de()}}};function Be(X){return X.reduce((me,de)=>me.then(()=>I(de)),Promise.resolve())}return Re}function Vu(e){return Mt(Bi)}function Gi(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var ji=new WeakMap;function Wi(e){if(!ji.has(e)){let t=e.get("/api/billing/").finally(()=>ji.delete(e));ji.set(e,t)}return ji.get(e)}function Ki(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success",e.billingRepository="";let r={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency,minimumFractionDigits:c.amount%100?2:0,maximumFractionDigits:2}).format(c.amount/100),e.billingPrice=c=>c.amount==null?"Price shown at checkout":e.billingAmount(c)+(c.interval?` / ${c.intervalCount>1?c.intervalCount+" ":""}${c.interval}`:" once"),e.billingPerMonth=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency}).format(c.amount/1200),e.billingBytes=c=>{let v=Number(c)||0;if(v<1024)return`${v} B`;let g=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**g)} ${["B","KB","MB","GB","TB"][g]}`},e.billingDate=c=>c?new Date(c).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,Wi(t).then(c=>{e.billing=c.data,e.emit?.("billing:updated",c.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(c,v,g=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let y=await t.post(`/api/billing/${c}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(g)window.location.assign(y.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!y.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=y.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",y.data}catch(y){e.billingError=r[y.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(c,v="",g={})=>u("checkout",{planId:c,target:v,...g}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let c=0;c<5;c++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(g=>window.setTimeout(g,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):o==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Lu(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function Ls(e=null,t=new Map){let s=st({}),i=[],o=!1,r=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(u,p,c=!1,v=!0)=>{let g=typeof u=="function"?()=>u(r):()=>Lu(r,u),y=ut(g,p,{deep:c,flush:"post"});return i.push(y),v&&je(()=>{o||p(g(),g())}),y},r.watchGroup=(u,p,c=!0)=>r.watch(()=>u.map(v=>Lu(r,v)),p,!0,c),r.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let c=()=>t.get(u)?.delete(p);return i.push(c),c},r.emit=(u,...p)=>{for(let c of[...t.get(u)||[]])c({},...p)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(u=>u())},eo(r.dispose),r}function kt(){let e=new Set,t=new Set,s=!1,i=(r,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),r()},u);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,u)=>{if(s)return;let p=setInterval(r,u);return t.add(p),p};return o.cancel=r=>{clearInterval(r),t.delete(r)},eo(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Bt(){let e=new Set;return eo(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}var ha=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(I,L)=>{e.aceOption&&(e.aceOption.theme=L?"nord_dark":"chrome")});let i=kt(),o=Bt();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let r={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],c=["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.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let g=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(g??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function y(){return window.document.querySelector(".reading-layout .markdown-body")}function m(){let I=y();I&&(I.querySelectorAll("mark.md-find").forEach(L=>{L.replaceWith(window.document.createTextNode(L.textContent))}),I.normalize())}e.runMdFind=function(){m(),e.mdFindTotal=0,e.mdFindIndex=0;let I=(e.mdFindQuery||"").trim(),L=y();if(!I||!L)return;let k=!!e.mdFindCase,q=k?I:I.toLowerCase(),W=window.document.createTreeWalker(L,4),H=[];for(;W.nextNode();)(k?W.currentNode.nodeValue:W.currentNode.nodeValue.toLowerCase()).includes(q)&&H.push(W.currentNode);let J=0;for(let ne of H){let G=ne.nodeValue,ue=k?G:G.toLowerCase(),he=window.document.createDocumentFragment(),Me=0,Ue;for(;(Ue=ue.indexOf(q,Me))!==-1;){he.appendChild(window.document.createTextNode(G.slice(Me,Ue)));let We=window.document.createElement("mark");We.className="md-find",We.textContent=G.slice(Ue,Ue+I.length),he.appendChild(We),J++,Me=Ue+I.length}he.appendChild(window.document.createTextNode(G.slice(Me))),ne.parentNode.replaceChild(he,ne)}e.mdFindTotal=J,J&&e.stepMdFind(0)},e.stepMdFind=function(I){let L=y();if(!L||!e.mdFindTotal)return;let k=L.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+I+k.length)%k.length,k.forEach((q,W)=>q.classList.toggle("is-current",W===e.mdFindIndex)),k[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(I){if(e.mdFindOpen=I===void 0?!e.mdFindOpen:I,!e.mdFindOpen){m(),e.mdFindTotal=0;return}je(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let I=e.codeEditor;if(!I)return;I.focus(),I.execCommand("find");let L=()=>{let k=I.searchBox?.element;k&&(I.renderer.setScrollMargin(52,12,0,0),!k._dockObserver&&(k._dockObserver=new MutationObserver(()=>{I.renderer.setScrollMargin(k.style.display!=="none"?52:12,12,0,0)}),k._dockObserver.observe(k,{attributes:!0,attributeFilter:["style"]})))};L(),setTimeout(L,150)};let b=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],E={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(E.content===e.content)return E.list;let I=[];return e.content.split(` -`).forEach((L,k)=>{for(let[q,W]of b){let H=q.exec(L);if(H&&!/^(if|for|while|switch|return|catch)$/.test(H[1])){I.push({name:H[1],kind:W,line:k+1});break}}}),E={content:e.content,list:I.slice(0,300)},E.list},e.goToSymbol=function(I){e.symbolsOpen=!1;let L=e.codeEditor;L&&(L.scrollToLine(I-1,!0,!0,()=>{}),L.gotoLine(I,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+I),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let I=window.document.getElementById("goto-input");I&&(I.focus(),I.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let I=e.codeEditor;if(!I)return;let L=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),k=I.session.getLength();if(!L||+L[1]<1||+L[1]>k){e.gotoError="Enter a line from 1 to "+k;return}I.gotoLine(+L[1],L[2]?Math.max(0,+L[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",I.focus()},e.rootEntries=function(){return[...e.files||[]].sort((I,L)=>{let k=I.size==null,q=L.size==null;return k!==q?k?-1:1:I.name.localeCompare(L.name)})},e.formatSize=function(I){if(I==null)return"";if(I<1024)return I+" B";let L=I/1024,k=q=>q.toFixed(1).replace(/\.0$/,"");return L<1024?k(L)+" KB":L<1024*1024?k(L/1024)+" MB":k(L/1024/1024)+" GB"},e.fileSize=function(I){if(!I)return null;let L=I.replace(/^\/+/,""),k=(e.files||[]).find(q=>(q.path?q.path+"/":"")+q.name===L);return k&&k.size!=null?k.size:null},e.revealFolder=function(I){e.sidebarHidden=!1,e.sidebarCollapsed=!1,je(()=>{let L=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(I):I)+'"]');L&&(L.closest("li")?.classList.contains("open")||L.click(),L.scrollIntoView({block:"nearest"}),L.focus())})};let S={content:null,n:0},N=I=>{if(S.content===I)return S.n;let L=I;if(typeof L=="string")try{L=JSON.parse(L)}catch{L=null}let k=[],q=H=>{Array.isArray(H)?k.push(H.join("")):typeof H=="string"&&k.push(H)};(L&&(L.cells||(L.worksheets||[]).flatMap(H=>H.cells||[]))||[]).forEach(H=>{q(H?.source??H?.input),(H?.outputs||[]).forEach(J=>{q(J?.text),J?.data&&(q(J.data["text/plain"]),q(J.data["text/markdown"]),q(J.data["text/html"])),q(J?.traceback)})});let W=k.reduce((H,J)=>H+(J.match(s)||[]).length,0);return S={content:I,n:W},W};e.redactionCount=function(){return e.type==="IPython"?N(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=qs;let w=I=>I.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(I){let L=e.renderRedacted(I);if(!L||typeof window.DOMParser!="function")return L;let k=new window.DOMParser().parseFromString("
"+L+"
","text/html"),q={};return k.querySelectorAll("h1, h2, h3").forEach(W=>{let H=W.id||w(W.textContent);q[H]?H+="-"+ ++q[H]:q[H]=1,W.id=H}),k.body.firstChild.innerHTML};let D={content:null,list:[]};e.readmeToc=function(){if(e.type!=="html"||typeof e.content!="string")return[];if(D.content===e.content)return D.list;let L=[...new window.DOMParser().parseFromString("
"+e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)+"
","text/html").querySelectorAll("h2, h3")].map(k=>({id:k.id,text:k.textContent.trim(),level:k.tagName==="H3"?3:2})).slice(0,40);return D={content:e.content,list:L},L},e.activeHeading=null,o(window,"scroll",()=>{let I=e.readmeToc?e.readmeToc():[];if(!I.length)return;let L=150,k="",q="";for(let W of I){let H=window.document.getElementById(W.id);if(!H)continue;let J=H.getBoundingClientRect().top;J{let k=[],q=[],W="",H=!1;for(let J=0;Jo&&sa(o)):[i&&sa(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+s,o!=null&&(t+="="+o))})}return t}function gu(e){let t={};for(let s in e){let i=e[s];i!==void 0&&(t[s]=Kt(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}var vu=Symbol(""),fa=Symbol(""),Ui=Symbol(""),Bi=Symbol(""),zi=Symbol("");function Bo(){let e=[];function t(i){return e.push(i),()=>{let o=e.indexOf(i);o>-1&&e.splice(o,1)}}function s(){e=[]}return{add:t,list:()=>e.slice(),reset:s}}function Nn(e,t,s,i,o,r=u=>u()){let u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((p,c)=>{let v=m=>{m===!1?c(ao(ct.NAVIGATION_ABORTED,{from:s,to:t})):m instanceof Error?c(m):$h(m)?c(ao(ct.NAVIGATION_GUARD_REDIRECT,{from:t,to:m})):(u&&i.enterCallbacks[o]===u&&typeof m=="function"&&u.push(m),p())},g=r(()=>e.call(i&&i.instances[o],t,s,v)),y=Promise.resolve(g);e.length<3&&(y=y.then(v)),y.catch(m=>c(m))})}function Hi(e,t,s,i,o=r=>r()){let r=[];for(let u of e)for(let p in u.components){let c=u.components[p];if(!(t!=="beforeRouteEnter"&&!u.instances[p]))if(xd(c)){let v=(c.__vccOpts||c)[t];v&&r.push(Nn(v,s,i,u,p,o))}else{let v=c();r.push(()=>v.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${p}" at "${u.path}"`);let y=bh(g)?g.default:g;u.mods[p]=g,u.components[p]=y;let m=(y.__vccOpts||y)[t];return m&&Nn(m,s,i,u,p,o)()}))}}return r}function yu(e,t){let s=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let u=0;uro(v,p))?i.push(p):s.push(p));let c=e.matched[u];c&&(t.matched.find(v=>ro(v,c))||o.push(c))}return[s,i,o]}var Uh=()=>location.protocol+"//"+location.host;function Pu(e,t){let{pathname:s,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let u=o.includes(e.slice(r))?e.slice(r).length:1,p=o.slice(u);return p[0]!=="/"&&(p="/"+p),la(p,"")}return la(s,e)+i+o}function Bh(e,t,s,i){let o=[],r=[],u=null,p=({state:m})=>{let b=Pu(e,location),E=s.value,S=t.value,N=0;if(m){if(s.value=b,t.value=m,u&&u===E){u=null;return}N=S?m.position-S.position:0}else i(b);o.forEach(w=>{w(s.value,E,{delta:N,type:_i.pop,direction:N?N>0?Fi.forward:Fi.back:Fi.unknown})})};function c(){u=s.value}function v(m){o.push(m);let b=()=>{let E=o.indexOf(m);E>-1&&o.splice(E,1)};return r.push(b),b}function g(){if(document.visibilityState==="hidden"){let{history:m}=window;if(!m.state)return;m.replaceState(Ze({},m.state,{scroll:Vs()}),"")}}function y(){for(let m of r)m();r=[],window.removeEventListener("popstate",p),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",p),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:c,listen:v,destroy:y}}function bu(e,t,s,i=!1,o=!1){return{back:e,current:t,forward:s,replaced:i,position:window.history.length,scroll:o?Vs():null}}function zh(e){let{history:t,location:s}=window,i={value:Pu(e,s)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,v,g){let y=e.indexOf("#"),m=y>-1?(s.host&&document.querySelector("base")?e:e.slice(y))+c:Uh()+e+c;try{t[g?"replaceState":"pushState"](v,"",m),o.value=v}catch(b){console.error(b),s[g?"replace":"assign"](m)}}function u(c,v){r(c,Ze({},t.state,bu(o.value.back,c,o.value.forward,!0),v,{position:o.value.position}),!0),i.value=c}function p(c,v){let g=Ze({},o.value,t.state,{forward:c,scroll:Vs()});r(g.current,g,!0),r(c,Ze({},bu(i.value,c,null),{position:g.position+1},v),!1),i.value=c}return{location:i,state:o,push:p,replace:u}}function Au(e){e=du(e);let t=zh(e),s=Bh(e,t.state,t.location,t.replace);function i(r,u=!0){u||s.pauseListeners(),history.go(r)}let o=Ze({location:"",base:e,go:i,createHref:uu.bind(null,e)},t,s);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}var uo=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),gt=(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})(gt||{}),Hh={type:uo.Static,value:""},jh=/[a-zA-Z0-9_]/;function Gh(e){if(!e)return[[]];if(e==="/")return[[Hh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${s})/"${v}": ${b}`)}let s=gt.Static,i=s,o=[],r;function u(){r&&o.push(r),r=[]}let p=0,c,v="",g="";function y(){v&&(s===gt.Static?r.push({type:uo.Static,value:v}):s===gt.Param||s===gt.ParamRegExp||s===gt.ParamRegExpEnd?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${v}) must be alone in its segment. eg: '/:ids+.`),r.push({type:uo.Param,value:v,regexp:g,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),v="")}function m(){v+=c}for(;pt.length?t.length===1&&t[0]===Pt.Static+Pt.Segment?1:-1:0}function Iu(e,t){let s=0,i=e.score,o=t.score;for(;s0&&t[t.length-1]<0}var Xh={strict:!1,end:!0,sensitive:!1};function Qh(e,t,s){let i=Yh(Gh(e.path),s),o=Ze(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Zh(e,t){let s=[],i=new Map;t=ra(Xh,t);function o(y){return i.get(y)}function r(y,m,b){let E=!b,S=Su(y);S.aliasOf=b&&b.record;let N=ra(t,y),w=[S];if("alias"in y){let F=typeof y.alias=="string"?[y.alias]:y.alias;for(let j of F)w.push(Su(Ze({},S,{components:b?b.record.components:S.components,path:j,aliasOf:b?b.record:S})))}let D,O;for(let F of w){let{path:j}=F;if(m&&j[0]!=="/"){let oe=m.record.path,_=oe[oe.length-1]==="/"?"":"/";F.path=m.record.path+(j&&_+j)}if(D=Qh(F,m,N),b?b.alias.push(D):(O=O||D,O!==D&&O.alias.push(D),E&&y.name&&!Eu(D)&&u(y.name)),Ou(D)&&c(D),S.children){let oe=S.children;for(let _=0;_{u(O)}:Uo}function u(y){if(ca(y)){let m=i.get(y);m&&(i.delete(y),s.splice(s.indexOf(m),1),m.children.forEach(u),m.alias.forEach(u))}else{let m=s.indexOf(y);m>-1&&(s.splice(m,1),y.record.name&&i.delete(y.record.name),y.children.forEach(u),y.alias.forEach(u))}}function p(){return s}function c(y){let m=tg(y,s);s.splice(m,0,y),y.record.name&&!Eu(y)&&i.set(y.record.name,y)}function v(y,m){let b,E={},S,N;if("name"in y&&y.name){if(b=i.get(y.name),!b)throw ao(ct.MATCHER_NOT_FOUND,{location:y});N=b.record.name,E=Ze(Cu(m.params,b.keys.filter(O=>!O.optional).concat(b.parent?b.parent.keys.filter(O=>O.optional):[]).map(O=>O.name)),y.params&&Cu(y.params,b.keys.map(O=>O.name))),S=b.stringify(E)}else if(y.path!=null)S=y.path,b=s.find(O=>O.re.test(S)),b&&(E=b.parse(S),N=b.record.name);else{if(b=m.name?i.get(m.name):s.find(O=>O.re.test(m.path)),!b)throw ao(ct.MATCHER_NOT_FOUND,{location:y,currentLocation:m});N=b.record.name,E=Ze({},m.params,y.params),S=b.stringify(E)}let w=[],D=b;for(;D;)w.unshift(D.record),D=D.parent;return{name:N,path:S,params:E,matched:w,meta:eg(w)}}e.forEach(y=>r(y));function g(){s.length=0,i.clear()}return{addRoute:r,resolve:v,removeRoute:u,clearRoutes:g,getRoutes:p,getRecordMatcher:o}}function Cu(e,t){let s={};for(let i of t)i in e&&(s[i]=e[i]);return s}function Su(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xh(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 xh(e){let t={},s=e.props||!1;if("component"in e)t.default=s;else for(let i in e.components)t[i]=typeof s=="object"?s[i]:s;return t}function Eu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function eg(e){return e.reduce((t,s)=>Ze(t,s.meta),{})}function tg(e,t){let s=0,i=t.length;for(;s!==i;){let r=s+i>>1;Iu(e,t[r])<0?i=r:s=r+1}let o=ng(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function ng(e){let t=e;for(;t=t.parent;)if(Ou(t)&&Iu(e,t)===0)return t}function Ou({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Nu(e){let t=Mt(Ui),s=Mt(Bi),i=!1,o=null,r=Nt(()=>{let g=kn(e.to);return t.resolve(g)}),u=Nt(()=>{let{matched:g}=r.value,{length:y}=g,m=g[y-1],b=s.matched;if(!m||!b.length)return-1;let E=b.findIndex(ro.bind(null,m));if(E>-1)return E;let S=Ru(g[y-2]);return y>1&&Ru(m)===S&&b[b.length-1].path!==S?b.findIndex(ro.bind(null,g[y-2])):E}),p=Nt(()=>u.value>-1&&ag(s.params,r.value.params)),c=Nt(()=>u.value>-1&&u.value===s.matched.length-1&&da(s.params,r.value.params));function v(g={}){if(rg(g)){let y=t[kn(e.replace)?"replace":"push"](kn(e.to)).catch(Uo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>y),y}return Promise.resolve()}return{route:r,href:Nt(()=>r.value.href),isActive:p,isExactActive:c,navigate:v}}function og(e){return e.length===1?e[0]:e}var sg=Ds({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:Nu,setup(e,{slots:t}){let s=st(Nu(e)),{options:i}=Mt(Ui),o=Nt(()=>({[Tu(e.activeClass,i.linkActiveClass,"router-link-active")]:s.isActive,[Tu(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{let r=t.default&&og(t.default(s));return e.custom?r:Pe("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:o.value},r)}}}),ig=sg;function rg(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 ag(e,t){for(let s in t){let i=t[s],o=e[s];if(typeof i=="string"){if(i!==o)return!1}else if(!Kt(o)||o.length!==i.length||i.some((r,u)=>r.valueOf()!==o[u].valueOf()))return!1}return!0}function Ru(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var Tu=(e,t,s)=>e??t??s,lg=Ds({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:s}){let i=Mt(zi),o=Nt(()=>e.route||i.value),r=Mt(fa,0),u=Nt(()=>{let v=kn(r),{matched:g}=o.value,y;for(;(y=g[v])&&!y.components;)v++;return v}),p=Nt(()=>o.value.matched[u.value]);so(fa,Nt(()=>u.value+1)),so(vu,p),so(zi,o);let c=St();return ut(()=>[c.value,p.value,e.name],([v,g,y],[m,b,E])=>{g&&(g.instances[y]=v,b&&b!==g&&v&&v===m&&(g.leaveGuards.size||(g.leaveGuards=b.leaveGuards),g.updateGuards.size||(g.updateGuards=b.updateGuards))),v&&g&&(!b||!ro(g,b)||!m)&&(g.enterCallbacks[y]||[]).forEach(S=>S(v))},{flush:"post"}),()=>{let v=o.value,g=e.name,y=p.value,m=y&&y.components[g];if(!m)return Du(s.default,{Component:m,route:v});let b=y.props[g],E=b?b===!0?v.params:typeof b=="function"?b(v):b:null,N=Pe(m,Ze({},E,t,{onVnodeUnmounted:w=>{w.component.isUnmounted&&(y.instances[g]=null)},ref:c}));return Du(s.default,{Component:N,route:v})||N}}});function Du(e,t){if(!e)return null;let s=e(t);return s.length===1?s[0]:s}var ma=lg;function Mu(e){let t=Zh(e.routes,e),s=e.parseQuery||hu,i=e.stringifyQuery||pa,o=e.history,r=Bo(),u=Bo(),p=Bo(),c=gi(Rn),v=Rn;lo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let g=qi.bind(null,X=>""+X),y=qi.bind(null,ru),m=qi.bind(null,Fo);function b(X,me){let de,pe;return ca(X)?(de=t.getRecordMatcher(X),pe=me):pe=X,t.addRoute(pe,de)}function E(X){let me=t.getRecordMatcher(X);me&&t.removeRoute(me)}function S(){return t.getRoutes().map(X=>X.record)}function N(X){return!!t.getRecordMatcher(X)}function w(X,me){if(me=Ze({},me||c.value),typeof X=="string"){let A=$i(s,X,me.path),U=t.resolve({path:A.path},me),x=o.createHref(A.fullPath);return Ze(A,U,{params:m(U.params),hash:Fo(A.hash),redirectedFrom:void 0,href:x})}let de;if(X.path!=null)de=Ze({},X,{path:$i(s,X.path,me.path).path});else{let A=Ze({},X.params);for(let U in A)A[U]==null&&delete A[U];de=Ze({},X,{params:y(A)}),me.params=y(me.params)}let pe=t.resolve(de,me),ye=X.hash||"";pe.params=g(m(pe.params));let Ve=au(i,Ze({},X,{hash:iu(ye),path:pe.path})),P=o.createHref(Ve);return Ze({fullPath:Ve,hash:ye,query:i===pa?gu(X.query):X.query||{}},pe,{redirectedFrom:void 0,href:P})}function D(X){return typeof X=="string"?$i(s,X,c.value.path):Ze({},X)}function O(X,me){if(v!==X)return ao(ct.NAVIGATION_CANCELLED,{from:me,to:X})}function F(X){return _(X)}function j(X){return F(Ze(D(X),{replace:!0}))}function oe(X,me){let de=X.matched[X.matched.length-1];if(de&&de.redirect){let{redirect:pe}=de,ye=typeof pe=="function"?pe(X,me):pe;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=D(ye):{path:ye},ye.params={}),Ze({query:X.query,hash:X.hash,params:ye.path!=null?{}:X.params},ye)}}function _(X,me){let de=v=w(X),pe=c.value,ye=X.state,Ve=X.force,P=X.replace===!0,A=oe(de,pe);if(A)return _(Ze(D(A),{state:typeof A=="object"?Ze({},ye,A.state):ye,force:Ve,replace:P}),me||de);let U=de;U.redirectedFrom=me;let x;return!Ve&&lu(i,pe,de)&&(x=ao(ct.NAVIGATION_DUPLICATED,{to:U,from:pe}),Ue(pe,pe,!0,!1)),(x?Promise.resolve(x):L(U,pe)).catch(K=>gn(K)?gn(K,ct.NAVIGATION_GUARD_REDIRECT)?K:Me(K):ue(K,U,pe)).then(K=>{if(K){if(gn(K,ct.NAVIGATION_GUARD_REDIRECT))return _(Ze({replace:P},D(K.to),{state:typeof K.to=="object"?Ze({},ye,K.to.state):ye,force:Ve}),me||U)}else K=q(U,pe,!0,P,ye);return k(U,pe,K),K})}function B(X,me){let de=O(X,me);return de?Promise.reject(de):Promise.resolve()}function I(X){let me=tt.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(X):X()}function L(X,me){let de,[pe,ye,Ve]=yu(X,me);de=Hi(pe.reverse(),"beforeRouteLeave",X,me);for(let A of pe)A.leaveGuards.forEach(U=>{de.push(Nn(U,X,me))});let P=B.bind(null,X,me);return de.push(P),Be(de).then(()=>{de=[];for(let A of r.list())de.push(Nn(A,X,me));return de.push(P),Be(de)}).then(()=>{de=Hi(ye,"beforeRouteUpdate",X,me);for(let A of ye)A.updateGuards.forEach(U=>{de.push(Nn(U,X,me))});return de.push(P),Be(de)}).then(()=>{de=[];for(let A of Ve)if(A.beforeEnter)if(Kt(A.beforeEnter))for(let U of A.beforeEnter)de.push(Nn(U,X,me));else de.push(Nn(A.beforeEnter,X,me));return de.push(P),Be(de)}).then(()=>(X.matched.forEach(A=>A.enterCallbacks={}),de=Hi(Ve,"beforeRouteEnter",X,me,I),de.push(P),Be(de))).then(()=>{de=[];for(let A of u.list())de.push(Nn(A,X,me));return de.push(P),Be(de)}).catch(A=>gn(A,ct.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function k(X,me,de){p.list().forEach(pe=>I(()=>pe(X,me,de)))}function q(X,me,de,pe,ye){let Ve=O(X,me);if(Ve)return Ve;let P=me===Rn,A=lo?history.state:{};de&&(pe||P?o.replace(X.fullPath,Ze({scroll:P&&A&&A.scroll},ye)):o.push(X.fullPath,ye)),c.value=X,Ue(X,me,de,P),Me()}let W;function H(){W||(W=o.listen((X,me,de)=>{if(!Re.listening)return;let pe=w(X),ye=oe(pe,Re.currentRoute.value);if(ye){_(Ze(ye,{replace:!0,force:!0}),pe).catch(Uo);return}v=pe;let Ve=c.value;lo&&pu(ua(Ve.fullPath,de.delta),Vs()),L(pe,Ve).catch(P=>gn(P,ct.NAVIGATION_ABORTED|ct.NAVIGATION_CANCELLED)?P:gn(P,ct.NAVIGATION_GUARD_REDIRECT)?(_(Ze(D(P.to),{force:!0}),pe).then(A=>{gn(A,ct.NAVIGATION_ABORTED|ct.NAVIGATION_DUPLICATED)&&!de.delta&&de.type===_i.pop&&o.go(-1,!1)}).catch(Uo),Promise.reject()):(de.delta&&o.go(-de.delta,!1),ue(P,pe,Ve))).then(P=>{P=P||q(pe,Ve,!1),P&&(de.delta&&!gn(P,ct.NAVIGATION_CANCELLED)?o.go(-de.delta,!1):de.type===_i.pop&&gn(P,ct.NAVIGATION_ABORTED|ct.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),k(pe,Ve,P)}).catch(Uo)}))}let J=Bo(),ne=Bo(),G;function ue(X,me,de){Me(X);let pe=ne.list();return pe.length?pe.forEach(ye=>ye(X,me,de)):console.error(X),Promise.reject(X)}function he(){return G&&c.value!==Rn?Promise.resolve():new Promise((X,me)=>{J.add([X,me])})}function Me(X){return G||(G=!X,H(),J.list().forEach(([me,de])=>X?de(X):me()),J.reset()),X}function Ue(X,me,de,pe){let{scrollBehavior:ye}=e;if(!lo||!ye)return Promise.resolve();let Ve=!de&&fu(ua(X.fullPath,0))||(pe||!de)&&history.state&&history.state.scroll||null;return je().then(()=>ye(X,me,Ve)).then(P=>P&&cu(P)).catch(P=>ue(P,X,me))}let We=X=>o.go(X),ze,tt=new Set,Re={currentRoute:c,listening:!0,addRoute:b,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:N,getRoutes:S,resolve:w,options:e,push:F,replace:j,go:We,back:()=>We(-1),forward:()=>We(1),beforeEach:r.add,beforeResolve:u.add,afterEach:p.add,onError:ne.add,isReady:he,install(X){X.component("RouterLink",ig),X.component("RouterView",ma),X.config.globalProperties.$router=Re,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>kn(c)}),lo&&!ze&&c.value===Rn&&(ze=!0,F(o.location).catch(pe=>{}));let me={};for(let pe in Rn)Object.defineProperty(me,pe,{get:()=>c.value[pe],enumerable:!0});X.provide(Ui,Re),X.provide(Bi,fs(me)),X.provide(zi,c);let de=X.unmount;tt.add(X),X.unmount=function(){tt.delete(X),tt.size<1&&(v=Rn,W&&W(),W=null,c.value=Rn,ze=!1,G=!1),de()}}};function Be(X){return X.reduce((me,de)=>me.then(()=>I(de)),Promise.resolve())}return Re}function Vu(e){return Mt(Bi)}function Gi(e){return["author_pass","repo_extend","repo_never","repo_slot","repo_pack"].includes(e)}var ji=new WeakMap;function Wi(e){if(!ji.has(e)){let t=e.get("/api/billing/").finally(()=>ji.delete(e));ji.set(e,t)}return ji.get(e)}function Ki(e,t,s=()=>{},i={}){let o=new URLSearchParams(window.location.search).get("billing");e.billing=null,e.billingLoading=!0,e.billingBusy=!1,e.billingError="",e.billingNotice="",e.billingPending=o==="success",e.billingRepository="";let r={billing_invalid_draft:"This draft could not be saved. Your form is unchanged. Try again.",billing_draft_not_found:"This checkout draft is unavailable or expired. Your local form is unchanged.",billing_recovery_required:"Your earlier payment needs verification. Please contact support before paying again.",billing_checkout_disabled:"New purchases are temporarily unavailable. You can still manage existing billing.",billing_unavailable:"Payments are not available yet. Please try again later.",billing_subscription_exists:"You already have a subscription. Use Manage billing to change or cancel it.",billing_checkout_in_progress:"You have another checkout open. Complete it, or wait up to 30 minutes for it to expire, before choosing a different option.",billing_busy:"Another billing request is processing. Please try again shortly.",billing_already_paid:"This repository or conference already has this paid option.",billing_invalid_review_window:"Conference packages cover up to 180 days. Check the review dates.",billing_invalid_conference:"Only a conference owner can pay for a conference awaiting payment.",repo_not_found:"Enter the ID of an existing repository that you own."};e.billingAmount=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency,minimumFractionDigits:c.amount%100?2:0,maximumFractionDigits:2}).format(c.amount/100),e.billingPrice=c=>c.amount==null?"Price shown at checkout":e.billingAmount(c)+(c.interval?` / ${c.intervalCount>1?c.intervalCount+" ":""}${c.interval}`:" once"),e.billingPerMonth=c=>c?.amount==null?"":new Intl.NumberFormat(void 0,{style:"currency",currency:c.currency}).format(c.amount/1200),e.billingBytes=c=>{let v=Number(c)||0;if(v<1024)return`${v} B`;let g=Math.min(4,Math.floor(Math.log2(v)/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(v/1024**g)} ${["B","KB","MB","GB","TB"][g]}`},e.billingDate=c=>c?new Date(c).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}):"",e.loadBilling=()=>(e.billingError="",e.billingLoading=!0,Wi(t).then(c=>{e.billing=c.data,e.emit?.("billing:updated",c.data)}).catch(()=>{e.billingError="Billing could not be loaded. Try again."}).finally(()=>{e.billingLoading=!1}));async function u(c,v,g=!0){if(!(e.billingBusy||!e.billing?.csrf)){e.billingBusy=!0,e.billingError="";try{let y=await t.post(`/api/billing/${c}`,v,{headers:{"x-csrf-token":e.billing.csrf}});if(g)window.location.assign(y.data.url);else return await e.loadBilling(),await s(),e.billingPending=!!y.data.pending,e.emit?.("billing:pending",e.billingPending),e.billingNotice=y.data.pending?"Your payment is still pending. Please do not pay again.":i.confirmedMessage||"Billing status refreshed. Your confirmed access appears below.",y.data}catch(y){e.billingError=r[y.data?.error]||"The billing request failed. Please try again."}finally{e.billingBusy=!1}}}e.checkout=(c,v="",g={})=>u("checkout",{planId:c,target:v,...g}),e.billingPortal=()=>u("portal",{}),e.refreshBilling=()=>u("refresh",{},!1);async function p(){for(let c=0;c<5;c++){let v=await e.refreshBilling();if(!v||!v.pending)return;await new Promise(g=>window.setTimeout(g,3e3))}e.billingNotice="Confirmation is taking longer than usual. You can refresh payment status later. Please do not pay again."}e.loadBilling().then(()=>{o==="success"?(e.billingNotice="Checking your payment. Paid access starts after confirmation.",p()):o==="portal"?e.refreshBilling().then(()=>{e.billingPending=!1,e.emit?.("billing:pending",!1),e.billingNotice=i.portalMessage?.(e.billing)||"Your billing details are up to date."}):o==="cancelled"&&(e.billingNotice="Checkout was closed. No new paid access has been activated.")})}function Lu(e,t){return t?.split(".").reduce((s,i)=>s?.[i],e)}function Ls(e=null,t=new Map){let s=st({}),i=[],o=!1,r=new Proxy(s,{get(u,p){return typeof p=="string"&&p.startsWith("__v_")||Reflect.has(u,p)?Reflect.get(u,p):e?.[p]}});return Object.defineProperty(s,"parent",{value:e,configurable:!0}),Object.defineProperty(s,"viewState",{get:()=>r}),r.watch=(u,p,c=!1,v=!0)=>{let g=typeof u=="function"?()=>u(r):()=>Lu(r,u),y=ut(g,p,{deep:c,flush:"post"});return i.push(y),v&&je(()=>{o||p(g(),g())}),y},r.watchGroup=(u,p,c=!0)=>r.watch(()=>u.map(v=>Lu(r,v)),p,!0,c),r.on=(u,p)=>{if(u==="dispose")return i.push(p),()=>{};t.has(u)||t.set(u,new Set),t.get(u).add(p);let c=()=>t.get(u)?.delete(p);return i.push(c),c},r.emit=(u,...p)=>{for(let c of[...t.get(u)||[]])c({},...p)},r.dispose=()=>{o=!0,i.splice(0).reverse().forEach(u=>u())},eo(r.dispose),r}function kt(){let e=new Set,t=new Set,s=!1,i=(r,u=0)=>{if(s)return;let p=setTimeout(()=>{e.delete(p),r()},u);return e.add(p),p};i.cancel=r=>{clearTimeout(r),e.delete(r)};let o=(r,u)=>{if(s)return;let p=setInterval(r,u);return t.add(p),p};return o.cancel=r=>{clearInterval(r),t.delete(r)},eo(()=>{s=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:i,interval:o}}function Bt(){let e=new Set;return eo(()=>{e.forEach(t=>t()),e.clear()}),(t,s,i,o)=>{t.addEventListener(s,i,o);let r=()=>{t.removeEventListener(s,i,o),e.delete(r)};return e.add(r),r}}var ha=function(e,t=e){let s=/\bXXXX-\d+\b/g;t.on("dark-mode",(I,L)=>{e.aceOption&&(e.aceOption.theme=L?"nord_dark":"chrome")});let i=kt(),o=Bt();e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent);let r={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},u=["license","txt"],p=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],c=["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.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};let g=(()=>{try{return window.localStorage?.getItem("wrapLines")}catch{return null}})();e.wrapLines=(g??(window.matchMedia?.("(max-width: 767px)").matches?"false":"true"))!=="false",e.toggleWrap=function(){e.wrapLines=!e.wrapLines;try{window.localStorage?.setItem("wrapLines",String(e.wrapLines))}catch{}e.codeEditor?.session.setUseWrapMode(e.wrapLines)};function y(){return window.document.querySelector(".reading-layout .markdown-body")}function m(){let I=y();I&&(I.querySelectorAll("mark.md-find").forEach(L=>{L.replaceWith(window.document.createTextNode(L.textContent))}),I.normalize())}e.runMdFind=function(){m(),e.mdFindTotal=0,e.mdFindIndex=0;let I=(e.mdFindQuery||"").trim(),L=y();if(!I||!L)return;let k=!!e.mdFindCase,q=k?I:I.toLowerCase(),W=window.document.createTreeWalker(L,4),H=[];for(;W.nextNode();)(k?W.currentNode.nodeValue:W.currentNode.nodeValue.toLowerCase()).includes(q)&&H.push(W.currentNode);let J=0;for(let ne of H){let G=ne.nodeValue,ue=k?G:G.toLowerCase(),he=window.document.createDocumentFragment(),Me=0,Ue;for(;(Ue=ue.indexOf(q,Me))!==-1;){he.appendChild(window.document.createTextNode(G.slice(Me,Ue)));let We=window.document.createElement("mark");We.className="md-find",We.textContent=G.slice(Ue,Ue+I.length),he.appendChild(We),J++,Me=Ue+I.length}he.appendChild(window.document.createTextNode(G.slice(Me))),ne.parentNode.replaceChild(he,ne)}e.mdFindTotal=J,J&&e.stepMdFind(0)},e.stepMdFind=function(I){let L=y();if(!L||!e.mdFindTotal)return;let k=L.querySelectorAll("mark.md-find");e.mdFindIndex=(e.mdFindIndex+I+k.length)%k.length,k.forEach((q,W)=>q.classList.toggle("is-current",W===e.mdFindIndex)),k[e.mdFindIndex]?.scrollIntoView({block:"center",behavior:"smooth"})},e.toggleMdFind=function(I){if(e.mdFindOpen=I===void 0?!e.mdFindOpen:I,!e.mdFindOpen){m(),e.mdFindTotal=0;return}je(()=>window.document.querySelector(".md-find-input")?.focus())},e.findInFile=function(){let I=e.codeEditor;if(!I)return;I.focus(),I.execCommand("find");let L=()=>{let k=I.searchBox?.element;k&&(I.renderer.setScrollMargin(52,12,0,0),!k._dockObserver&&(k._dockObserver=new MutationObserver(()=>{I.renderer.setScrollMargin(k.style.display!=="none"?52:12,12,0,0)}),k._dockObserver.observe(k,{attributes:!0,attributeFilter:["style"]})))};L(),setTimeout(L,150)};let b=[[/^\s*(?:export\s+)?(?:default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/,"class"],[/^\s*(?:export\s+)?(?:default\s+)?(?:async\s+)?function\s*\*?\s*([A-Za-z_$][\w$]*)/,"function"],[/^\s*(?:export\s+)?(?:const|let|var)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:async\s*)?(?:function|\([^)]*\)\s*=>|[A-Za-z_$][\w$]*\s*=>)/,"function"],[/^\s*(?:async\s+)?def\s+([A-Za-z_]\w*)/,"function"],[/^\s*class\s+([A-Za-z_]\w*)/,"class"],[/^\s*func\s+(?:\([^)]*\)\s*)?([A-Za-z_]\w*)/,"function"],[/^\s*(?:pub\s+)?fn\s+([A-Za-z_]\w*)/,"function"],[/^\s*(?:public|private|protected|static|\s)+[\w<>\[\],\s]+\s+([A-Za-z_]\w*)\s*\([^;]*\)\s*\{?\s*$/,"function"]],E={content:null,list:[]};e.symbolsOpen=!1,e.symbols=function(){if(typeof e.content!="string"||e.content.length>2e6)return[];if(E.content===e.content)return E.list;let I=[];return e.content.split(` +`).forEach((L,k)=>{for(let[q,W]of b){let H=q.exec(L);if(H&&!/^(if|for|while|switch|return|catch)$/.test(H[1])){I.push({name:H[1],kind:W,line:k+1});break}}}),E={content:e.content,list:I.slice(0,300)},E.list},e.goToSymbol=function(I){e.symbolsOpen=!1;let L=e.codeEditor;L&&(L.scrollToLine(I-1,!0,!0,()=>{}),L.gotoLine(I,0,!0),window.history.replaceState(null,"",window.location.pathname+window.location.search+"#L"+I),window.dispatchEvent(new HashChangeEvent("hashchange")))},e.gotoLine=function(){e.codeEditor&&(e.moreOpen=!1,e.gotoError="",e.gotoValue=String(e.codeEditor.getCursorPosition().row+1),e.gotoOpen=!0,setTimeout(()=>{let I=window.document.getElementById("goto-input");I&&(I.focus(),I.select())},0))},e.closeGoto=function(){e.gotoOpen=!1,e.gotoError="",e.codeEditor?.focus()},e.submitGoto=function(){let I=e.codeEditor;if(!I)return;let L=/^\s*:?\s*(\d+)\s*(?:[:,]\s*(\d+))?\s*$/.exec(e.gotoValue||""),k=I.session.getLength();if(!L||+L[1]<1||+L[1]>k){e.gotoError="Enter a line from 1 to "+k;return}I.gotoLine(+L[1],L[2]?Math.max(0,+L[2]-1):0,!0),e.gotoOpen=!1,e.gotoError="",I.focus()},e.rootEntries=function(){return[...e.files||[]].sort((I,L)=>{let k=I.size==null,q=L.size==null;return k!==q?k?-1:1:I.name.localeCompare(L.name)})},e.formatSize=function(I){if(I==null)return"";if(I<1024)return I+" B";let L=I/1024,k=q=>q.toFixed(1).replace(/\.0$/,"");return L<1024?k(L)+" KB":L<1024*1024?k(L/1024)+" MB":k(L/1024/1024)+" GB"},e.fileSize=function(I){if(!I)return null;let L=I.replace(/^\/+/,""),k=(e.files||[]).find(q=>(q.path?q.path+"/":"")+q.name===L);return k&&k.size!=null?k.size:null},e.revealFolder=function(I){e.sidebarHidden=!1,e.sidebarCollapsed=!1,je(()=>{let L=window.document.querySelector('.files a[data-path="/'+(window.CSS?.escape?window.CSS.escape(I):I)+'"]');L&&(L.closest("li")?.classList.contains("open")||L.click(),L.scrollIntoView({block:"nearest"}),L.focus())})};let S={content:null,n:0},N=I=>{if(S.content===I)return S.n;let L=I;if(typeof L=="string")try{L=JSON.parse(L)}catch{L=null}let k=[],q=H=>{Array.isArray(H)?k.push(H.join("")):typeof H=="string"&&k.push(H)};(L&&(L.cells||(L.worksheets||[]).flatMap(H=>H.cells||[]))||[]).forEach(H=>{q(H?.source??H?.input),(H?.outputs||[]).forEach(J=>{q(J?.text),J?.data&&(q(J.data["text/plain"]),q(J.data["text/markdown"]),q(J.data["text/html"])),q(J?.traceback)})});let W=k.reduce((H,J)=>H+(J.match(s)||[]).length,0);return S={content:I,n:W},W};e.redactionCount=function(){return e.type==="IPython"?N(e.content):typeof e.content!="string"?0:((e.type==="html"?e.content.replace(/<[^>]*>/g," "):e.content).match(s)||[]).length},e.renderRedacted=qs;let w=I=>I.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").slice(0,60)||"section";e.renderReadme=function(I){let L=e.renderRedacted(I);if(!L||typeof window.DOMParser!="function")return L;let k=new window.DOMParser().parseFromString("
"+L+"
","text/html"),q={};return k.querySelectorAll("h1, h2, h3").forEach(W=>{let H=W.id||w(W.textContent);q[H]?H+="-"+ ++q[H]:q[H]=1,W.id=H}),k.body.firstChild.innerHTML};let D={content:null,list:[]};e.readmeToc=function(){if(e.type!=="html"||typeof e.content!="string")return[];if(D.content===e.content)return D.list;let L=[...new window.DOMParser().parseFromString("
"+e.renderReadme(e.sanitize?e.sanitize(e.content):e.content)+"
","text/html").querySelectorAll("h2, h3")].map(k=>({id:k.id,text:k.textContent.trim(),level:k.tagName==="H3"?3:2})).slice(0,40);return D={content:e.content,list:L},L},e.activeHeading=null,o(window,"scroll",()=>{let I=e.readmeToc?e.readmeToc():[];if(!I.length)return;let L=150,k="",q="";for(let W of I){let H=window.document.getElementById(W.id);if(!H)continue;let J=H.getBoundingClientRect().top;J{let k=[],q=[],W="",H=!1;for(let J=0;JJ.length>1||J[0]!=="")};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(O.content!==e.content){let I=/\.tsv$/i.test(e.filePath||"")?" ":",";O={content:e.content,rows:_(e.content,I)}}return O.rows},e.csvNumCol=I=>{let L=e.csvRows().slice(1).map(k=>k[I]).filter(k=>k!=null&&String(k).trim()!=="");return L.length>0&&L.every(k=>e.csvNumeric(k))},e.csvNumeric=I=>/^\s*[-+]?(\d[\d,]*)?(\.\d+)?(e[-+]?\d+)?%?\s*$/i.test(I)&&/\d/.test(I),e.redactParts=function(I){let L=[],k=0,q,W=/\bXXXX-(\d+)\b/g;for(I=String(I||"");q=W.exec(I);)q.index>k&&L.push({t:I.slice(k,q.index)}),L.push({n:q[1]}),k=q.index+q[0].length;return k{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let I=e.content;if(e.type==="html"&&e.url)if(e.preview)I=e.sourceContent;else try{I=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(I),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function j(I){return r[I]?r[I]:I}function oe(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(I)?"md":I=="org"?"org":I=="ipynb"?"IPython":u.indexOf(I)>-1?"text":p.indexOf(I)>-1?"image":v.indexOf(I)>-1?"media":c.indexOf(I)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(I){e.showSource=!1,e.allowScripts=!1,e.imageSize="",e.filePath=I,e.paths=I.split("/").filter(Boolean);let L=e.filePath.toLowerCase(),k=L.lastIndexOf(".");k>-1&&(L=L.substring(k+1));let q={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},W=j(L);e.languageName=q[W]??(W?W.charAt(0).toUpperCase()+W.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:j(L),onLoad:function(H){e.codeEditor=un(H);{let Re=H.session,Be=Re.getTokens.bind(Re),X=/\bXXXX-\d+\b/g;if(Re.getTokens=function(me){let de=Be(me);if(!de.some(ye=>ye.value.indexOf("XXXX-")!==-1))return de;let pe=[];for(let ye of de){if(ye.value.indexOf("XXXX-")===-1){pe.push(ye);continue}let Ve=0;X.lastIndex=0;let P;for(;P=X.exec(ye.value);)P.index>Ve&&pe.push({type:ye.type,value:ye.value.slice(Ve,P.index)}),pe.push({type:"redacted.n"+P[0].slice(5),value:P[0]}),Ve=P.index+P[0].length;Ve`.ace_redacted.ace_n${pe+1}::after{content:"${pe+1}"}`).join(""),window.document.head.appendChild(me)}H.renderer.updateFull(!0)}H.session.setUseWrapMode(e.wrapLines!==!1);let J=H.container.closest?.(".file-card"),ne=()=>{if(!J)return;let Re=H.renderer,Be=(Re.layerConfig?.width||0)-(Re.$size?.scrollerWidth||0);J.classList.toggle("at-right-edge",Be<=2||Re.getScrollLeft()>=Be-2)};H.session.on("changeScrollLeft",ne),H.renderer.on("afterRender",ne),window.matchMedia?.("(max-width: 767px)").matches&&H.setOption("hScrollBarAlwaysVisible",!0);let G=ace.require("ace/range").Range,ue=null;function he(Re,Be){ue!==null&&(H.session.removeMarker(ue),ue=null),Re!=null&&(ue=H.session.addMarker(new G(Re,0,Be,1),"highlighted-line","fullLine"))}function Me(Re){let Be=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Be){he(null);return}let X=parseInt(Be[1])-1,me=Be[2]?parseInt(Be[2])-1:X;he(X,me),Re&&i.timeout(()=>{H.scrollToLine(X,!0,!0,function(){})},100)}Me(!0);let Ue=null;H.on("guttermousedown",function(Re){let Be=Re.getDocumentPosition().row,X=Re.domEvent&&Re.domEvent.shiftKey,me=Be,de=Be;X&&Ue!==null?(me=Math.min(Ue,Be),de=Math.max(Ue,Be)):Ue=Be;let pe=me===de?`#L${me+1}`:`#L${me+1}-L${de+1}`,ye=window.location.pathname+window.location.search+pe;e.preview||window.history.replaceState(null,"",ye),he(me,de),Re.stop()});let We=o(window,"hashchange",()=>Me(!1));H.setFontSize(e.aceOption.fontSize),H.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),H.container.style.lineHeight="20px",H.renderer.setPadding(16),H.renderer.setScrollMargin(12,12,0,0),H.renderer.updateFontSize(),H.setReadOnly(e.aceOption.readOnly),H.setKeyboardHandler(e.aceOption.keyBinding),H.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),H.setOption("displayIndentGuides",!1),H.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(H.renderer.$cursorLayer.element.style.display="none"),H.setHighlightGutterLine(e.aceOption.highlightGutterLine),H.setShowInvisibles(e.aceOption.showInvisibles),H.setDisplayIndentGuides(e.aceOption.showIndentGuides),H.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),H.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),H.session.setUseSoftTabs(e.aceOption.useSoftTab),H.session.setTabSize(e.aceOption.tabSize),H.setBehavioursEnabled(e.aceOption.enableBehaviours),H.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let ze=()=>!e.preview||H.isFocused(),tt=o(window,"keydown",Re=>{if((Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="g"&&document.body.contains(H.container)&&ze()){Re.preventDefault(),e.gotoLine();return}if(Re.altKey&&!Re.ctrlKey&&!Re.metaKey&&Re.key.toLowerCase()==="z"&&document.body.contains(H.container)&&ze()){Re.preventDefault(),e.toggleWrap();return}(Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="f"&&document.body.contains(H.container)&&ze()&&(Re.preventDefault(),e.findInFile())});return()=>{We(),tt()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=oe(L)},e.renderFileContent=function(I,L,k,q){if(e.type=L,e.content=I,e.sourceContent=I,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(I,k),e.type="html"),e.type=="org"){let H=contentAbs2Relative(I);var W=new Org.Parser().parse(H).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(W.toString()),e.type="html"}e.type=="code"&&q=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let F=["image","media","audio","pdf","IPython","binary"],B=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?F.includes(e.type)?e.content!=null:e.type==="error"?B.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let I=(e.paths||[])[(e.paths||[]).length-1]||"",L=I.lastIndexOf("."),k=L>0?I.slice(L+1).toUpperCase():"";if(e.type==="image")return(k==="JPG"?"JPEG":k)+" image";let q={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(q[k]||k)+" video":e.type==="audio"?k+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(k?k+" file":"File")},e.imageSize="",e.onImageLoad=I=>{let L=I.target;L?.naturalWidth&&(e.imageSize=`${L.naturalWidth} \xD7 ${L.naturalHeight}`)},o(document,"click",I=>{e.preview&&(I.target.closest?.(".symbols")||(e.symbolsOpen=!1),I.target.closest?.(".tb-more")||(e.moreOpen=!1),I.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};function ga(e,t,s){let i,o=!1,r="form-draft:"+s,u=()=>Object.fromEntries(t.map(m=>[m,e[m]])),p=()=>JSON.stringify(u()),c=m=>{for(let b of t)Object.prototype.hasOwnProperty.call(m,b)&&(e[b]=m[b]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},g=(m=!1)=>{if(i!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(b=>{b._field?.binding.state===e&&b._field.timer&&b._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},y=()=>g(!0);return e.on("routeLeave",y),window.addEventListener("beforeunload",y),e.on("dispose",()=>window.removeEventListener("beforeunload",y)),{restore(){i=p();let m;try{m=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let b=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return b&&(c(m.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>u(),()=>g(),!0)),e.unsavedChanges=p()!==i,!!b},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state===e&&m._field.timer&&m._field.commit()}),JSON.parse(p())},accept(m){i=JSON.stringify(m),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),i!==void 0&&c(JSON.parse(i)),e.draftRestored=!1,g()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function qu(e,t){e.errorSource="central",e.logView={search:"",severity:"",sort:"recent"},e.selectedLog=null,e.logDetailTab="overview",e.logSeverity=y=>Number(y?.status||y?.httpStatus)>=500||["error","fatal"].includes(y?.severity)?"error":y?.severity==="warn"?"warn":"info",e.filteredLogGroups=()=>{let y=e.logView.search.trim().toLowerCase();return(e.logData?.groups||[]).filter(m=>(!e.logView.severity||e.logSeverity(m.sample)===e.logView.severity)&&(!y||Object.values(m.sample).join(" ").toLowerCase().includes(y))).slice().sort((m,b)=>e.logView.sort==="count"?b.count-m.count:Date.parse(b.last)-Date.parse(m.last))},e.shortLogId=y=>y?y.slice(0,8):"",e.isLogIdentifier=(y,m)=>typeof m=="string"&&m.length>16&&/(?:id|sha|release)$/i.test(y),e.compactLogValue=y=>String(y).slice(0,8)+"\u2026"+String(y).slice(-4),e.logCopyStatus="",e.copyLogValue=async y=>{try{await navigator.clipboard.writeText(String(y)),e.logCopyStatus="Full value copied"}catch{e.logCopyStatus="Copy unavailable. Expand the value to select it."}},e.logExplanation=y=>{let m=y.service||"The application",b={job_failed:"reported a failed job",request_failed:"reported a failed request",request_aborted:"reported an aborted request",edge_request:"recorded an edge request",http_access:"recorded an HTTP request"}[y.event]||"recorded \u201C"+(y.event||"application event")+"\u201D",E=Number(y.status||y.httpStatus),S={502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"}[E];return m+" "+b+(E?" with HTTP "+E+(S?" ("+S+")":""):"")+"."},e.logEvidence=y=>[y.errorCode?"Recorded error code: "+y.errorCode+".":"No error code was included in this sample.",y.ms!==void 0?"Recorded duration: "+y.ms+" ms.":"",y.attempt!==void 0?"Recorded attempt: "+y.attempt+".":"",y.queue?"Queue: "+y.queue+".":""].filter(Boolean).join(" "),e.historyDetailFields=y=>{try{let m=JSON.parse(y?._detailJson||"{}");return m&&typeof m=="object"?Object.entries(m):[["value",m]]}catch{return[["record",y?._detailJson||""]]}},e.logFieldText=y=>typeof y=="object"?JSON.stringify(y):String(y??""),e.captureErrorScroll=y=>{let m=[];for(let b=y?.parentElement;b;b=b.parentElement)m.push({element:b,top:b.scrollTop,left:b.scrollLeft});return m},e.restoreErrorScroll=y=>y.forEach(({element:m,top:b,left:E})=>{m.isConnected&&(m.scrollTop=b,m.scrollLeft=E)});let s=null,i=null,o=null,r=[];e.selectLog=async(y,m)=>{if(i=m||document.activeElement,r=e.captureErrorScroll(i),c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.logDetailTab="overview",e.selectedLog=y,await je(),v||e.selectedLog!==y||e.errorSource!=="central")return;document.getElementById("log-detail-title")?.focus({preventScroll:!0}),document.querySelector(".log-inspector")?.scrollIntoView?.({block:"start"});let b=["requestId","jobId"].find(E=>e.logTraceId(y,E));b&&e.lookupTrace(b,y.sample[b],document.getElementById("trace-selector-"+b),y.sample,!0)},e.closeLogDetail=async()=>{e.selectedLog=null,c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await je(),i?.isConnected?(i.focus({preventScroll:!0}),e.restoreErrorScroll(r)):document.getElementById("error-source-central")?.focus()},e.logFilters={window:"1h",service:"",release:""},e.logAppliedFilters={...e.logFilters},e.logData=null,e.logLoading=!1,e.logFailure="",e.logSnapshotStale=!1,e.trace=null,e.traceLoading=!1,e.traceSelection=null;let u=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,p=0,c=0,v=!1;e.logStateText=y=>({ready:"Central logs available",empty:"No warnings, errors or HTTP 5xx returned in this window",disabled:"Central lookup is not configured. Application history is available in the other source.",misconfigured:"Central lookup configuration is invalid. Ask an operator to check it.",unreachable:"Central logging is unreachable. Application history is available in the other source.",busy:"Central lookup is busy. Retry shortly.",partial:"Partial results: a result limit or invalid record reduced coverage.",stale:"Central logging responds, but expected application telemetry is stale or missing."})[y]||"Central log status has not been checked",e.refreshLogs=async()=>{let y=++p,m={...e.logFilters};e.logLoading=!0,e.logFailure="",e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,c++;try{let b=await t.get("/api/admin/errors/investigation",{params:m});if(v||y!==p)return;e.logData=b.data,e.logAppliedFilters=m,e.logSnapshotStale=!!b.data?.end&&Date.now()-Date.parse(b.data.end)>9e4}catch(b){if(v||y!==p)return;e.logData=null,e.logFailure=b?.status===400?"Use a Git release SHA or \u2018unknown\u2019 and retry.":"Could not load central log status. Retry or open Application history."}finally{!v&&y===p&&(e.logLoading=!1)}},e.lookupTrace=async(y,m,b,E,S=!1)=>{if(!["requestId","jobId"].includes(y)||!u.test(m||""))return;e.errorSource==="central"&&e.selectedLog&&(e.logDetailTab="timeline"),e.errorSource==="history"&&(e.historyView="timeline"),o=e.errorSource,s=b||document.activeElement;let N=++c;if(e.traceSelection={kind:y,id:m,context:E?{event:E.errorCode||E.event||E.displayMessage||E.message,service:E.service||E.module}:null},e.trace=null,e.traceLoading=!0,await je(),v||N!==c)return;let w=document.getElementById("log-timeline-title");S||(w?.focus(),w?.scrollIntoView?.({block:"nearest"}));try{let D=await t.get("/api/admin/errors/correlation",{params:{kind:y,id:m,window:e.logData?.window||e.logAppliedFilters.window}});!v&&N===c&&(e.trace=D.data)}catch{!v&&N===c&&(e.trace={state:"unreachable",events:[]})}finally{!v&&N===c&&(e.traceLoading=!1)}},e.showLogTimeline=y=>{if(e.logDetailTab="timeline",e.traceSelection)return;let m=["requestId","jobId"].find(b=>e.logTraceId(e.selectedLog,b));m&&e.lookupTrace(m,e.selectedLog.sample[m],y,e.selectedLog.sample)},e.closeTrace=async()=>{e.logDetailTab="overview",e.historyView="overview",c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await je(),s?.isConnected&&o===e.errorSource?s.focus():document.getElementById("error-source-"+e.errorSource)?.focus()},e.logTraceId=(y,m)=>{let b=y?.sample?.[m]||y?.raw?.find(E=>E&&typeof E=="object")?.[m];return u.test(b||"")?b:null},e.watch("errorSource",()=>{c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,e.historySelected=null,e.historyView="overview",e.expanded={}},!1,!1);let g=window.setInterval(()=>{e.logSnapshotStale=!!e.logData?.end&&Date.now()-Date.parse(e.logData.end)>9e4},15e3);e.on("dispose",()=>{v=!0,p++,c++,window.clearInterval(g)}),e.refreshLogs()}var wa={};af(wa,{bigNum:()=>ug,date:()=>wg,dateEcho:()=>ya,diff:()=>fg,duration:()=>Ln,filter:()=>yg,humanFileSize:()=>dg,humanTime:()=>va,limitTo:()=>vg,money:()=>hg,number:()=>mg,orderBy:()=>bg,plural:()=>kg,shortDate:()=>ba,statusLabel:()=>pg,statusMsg:()=>Yi,title:()=>cg,uppercase:()=>gg});var dg=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),ug=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),va=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});t=Math.abs(t);for(var o=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],r=["year","month","week","day","hour","minute","second"],u=0;u1&&(c+="s"),p>=1)return p+" "+c+" "+i}return"0 seconds "+i}})(),cg=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),pg=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),Yi=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var c=t.replace(/_/g," ");return c.charAt(0).toUpperCase()+c.slice(1)}return t}})(),fg=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",u=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+u+"
"),o.lines.length){i.push('');for(let p of o.lines)i.push('");i.push("
'+(p.oldNo||"")+''+(p.newNo||"")+''+(p.kind==="add"?"+":p.kind==="remove"?"-":"")+''+t(p.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,u=0,p=0,c=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},g=i.split(` -`);for(let y=0;ye});function mg(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function hg(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function gg(e){return String(e??"").toUpperCase()}function vg(e,t,s=0){return(e||[]).slice(s,s+t)}function yg(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function bg(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let u=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((v,g)=>v?.[g],i),c=r.split(".").reduce((v,g)=>v?.[g],o);if(typeof p=="string"&&(p=p.toLowerCase()),typeof c=="string"&&(c=c.toLowerCase()),p!==c)return(p==null?-1:c==null?1:pi[o])}function kg(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function ya(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),o=new Date;o.setHours(0,0,0,0);let r=Math.round((s-o)/864e5),u;if(r===0)u="today";else if(r===1)u="tomorrow";else if(r===-1)u="yesterday";else{let p=Math.abs(r),c=Math.round(p/30.44),v=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:c<18?[c,"month"]:[Math.round(p/365.25),"year"],g=v[0]+" "+v[1]+(v[0]===1?"":"s");u=r>0?"in "+g:g+" ago"}return i+" \xB7 "+u}function Ln(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=r=>String(r).padStart(2,"0"),o=Math.round(s);return o<3600?Math.floor(o/60)+"m "+i(o%60)+"s":Math.floor(o/3600)+"h "+i(Math.floor(o%3600/60))+"m"}function ba(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}var Ji=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function Xi(e,{flags:t,keys:s,count:i,onChange:o=()=>{}}){if(e.segView=()=>{let r=t()||{};if(s.every(p=>!!r[p]))return"all";let u=s.filter(p=>!!r[p]);return u.length===1?u[0]:"custom"},e.setSegView=r=>{let u=t();if(u){for(let p of s)u[p]=r==="all"?!0:p===r;o()}},e.segCount=r=>r==="all"?s.reduce((u,p)=>u+i(p),0):i(r),t()&&e.segView()==="custom")for(let r of s)t()[r]=!0}var _u=function(e,t,s){let i=kt(),o=Bt();Wu(i,o),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let N=document.querySelector('.admin-filter-toolbar input[type="search"]');N&&N.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let u=()=>{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 N=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,N)},e.fetchGithubInfo=S=>{let N=window.open("","_blank");N&&N.document.write("
Loading GitHub info for "+S.repoId+"...
"),t.get("/api/admin/repos/"+S.repoId+"/github").then(w=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,D=>D==="<"?"<":">")+"
"),N.document.close())},w=>{let D=w&&w.data?JSON.stringify(w.data,null,2):String(w);N&&(N.document.body.innerHTML='
'+D+"
")})},e.statusCountFor=S=>{let N=(e.statusCounts||[]).find(w=>w._id===S);return N?N.count:0},e.statusStorageFor=S=>{let N=(e.statusCounts||[]).find(w=>w._id===S);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let g=s.search();g.owner&&(e.query.owner=g.owner),g.conference&&(e.query.conference=g.conference),g.search&&(e.query.search=g.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(w=>w.name!==S),e.presets.push({name:S,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(N=>N.name!==S.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(S=>{e.selected[S.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(S=>e.selected[S.repoId]),e.bulkRefresh=()=>{let S=e.selectedRepos();S.length&&confirm(`Force refresh ${S.length} repositories?`)&&S.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let S=e.selectedRepos();S.length&&confirm(`Purge cache for ${S.length} repositories?`)&&S.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/repos?"+S.toString(),"_blank")},e.removeCache=S=>{confirm("Remove cached files for "+S.repoId+"?")&&t.delete("/api/admin/repos/"+S.repoId).then(()=>m(),N=>console.error(N))},e.removeRepository=S=>{confirm("Remove repository "+S.repoId+"?")&&t.delete("/api/repo/"+S.repoId+"/").then(()=>m(),N=>console.error(N))},e.updateRepository=S=>{let N=st({title:`Refreshing ${S.repoId}...`,date:new Date,body:`The repository ${S.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${S.repoId}/refresh`).then(w=>{w.data.status=="ready"?N.title=`${S.repoId} is refreshed.`:N.title=`Refreshing of ${S.repoId}.`},w=>{N.title=`Error during the refresh of ${S.repoId}.`,N.body=w.body})},e.filtersOpen=!1,e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.repositories=S.data.results,e.allSelected=!1},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load repositories",console.error(S)})}function b(){let S=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:S}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),Xi(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:S=>S==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):S==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):S==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(S),onChange:()=>{e.query.page=1}}),m(),b();let E=null;e.watch("query",()=>{i.timeout.cancel(E),E=i.timeout(()=>{m(),b()},500);let{page:S,search:N,...w}=e.query;saveFilterPrefs(p,w),u()},!0),u()},Uu=function(e,t,s){let i=kt(),o=Bt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let u=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let b=(e.statusCounts||[]).find(E=>E._id===m);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(g,b=>console.error(b))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(g,b=>console.error(b))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(b=>e.banUser(b))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}g();let y=null;e.watch("query",()=>{i.timeout.cancel(y),y=i.timeout(g,500);let{page:m,search:b,...E}=e.query;saveFilterPrefs(p,E),u()},!0),u()},Bu=function(e,t,s,i){let o=kt();Wu(o,Bt()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(b=>Ji(b.status)===m).length,Xi(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:m=>e.statusCountFor(m)}),e.repoFiler=m=>e.filters.status[Ji(m.status)]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,E=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),S=m.map(D=>[D.repoId,D.status,D.statusMessage||"",D.pageView||0,D.anonymizeDate||"",D.source&&D.source.fullName||"",D.conference||"",D.size&&D.size.storage||0].map(O=>{let _=String(O??"");return/[",\n\r]/.test(_)?'"'+_.replace(/"/g,'""')+'"':_}).join(",")),N=new Blob([E+` +`&&J++,q.push(W),k.push(q),q=[],W=""):W+=ne}return(W!==""||q.length)&&(q.push(W),k.push(q)),k.filter(J=>J.length>1||J[0]!=="")};e.isCsv=()=>typeof e.content=="string"&&e.type!=="html"&&/\.(csv|tsv)$/i.test(e.filePath||"")&&e.content.length<=1024*1024,e.csvRows=()=>{if(O.content!==e.content){let I=/\.tsv$/i.test(e.filePath||"")?" ":",";O={content:e.content,rows:F(e.content,I)}}return O.rows},e.csvNumCol=I=>{let L=e.csvRows().slice(1).map(k=>k[I]).filter(k=>k!=null&&String(k).trim()!=="");return L.length>0&&L.every(k=>e.csvNumeric(k))},e.csvNumeric=I=>/^\s*[-+]?(\d[\d,]*)?(\.\d+)?(e[-+]?\d+)?%?\s*$/i.test(I)&&/\d/.test(I),e.redactParts=function(I){let L=[],k=0,q,W=/\bXXXX-(\d+)\b/g;for(I=String(I||"");q=W.exec(I);)q.index>k&&L.push({t:I.slice(k,q.index)}),L.push({n:q[1]}),k=q.index+q[0].length;return k{e.pathCopied=!1},1600))},e.contentCopied=!1,e.copyContent=async function(){if(typeof e.content!="string"||!window.navigator.clipboard?.writeText)return;let I=e.content;if(e.type==="html"&&e.url)if(e.preview)I=e.sourceContent;else try{I=await(await window.fetch(e.url,{credentials:"same-origin"})).text()}catch{return}await window.navigator.clipboard.writeText(I),e.contentCopied=!0,setTimeout(()=>{e.contentCopied=!1},1600)};function j(I){return r[I]?r[I]:I}function oe(I){return I=="pdf"?"pdf":I=="html"||I=="htm"?"html-doc":["md","markdown","mdown","mkdn","mdx"].includes(I)?"md":I=="org"?"org":I=="ipynb"?"IPython":u.indexOf(I)>-1?"text":p.indexOf(I)>-1?"image":v.indexOf(I)>-1?"media":c.indexOf(I)>-1?"audio":"code"}e.downloadUrl=()=>e.preview?e.url:e.url+"&download=true",e.prepareFile=function(I){e.showSource=!1,e.allowScripts=!1,e.imageSize="",e.filePath=I,e.paths=I.split("/").filter(Boolean);let L=e.filePath.toLowerCase(),k=L.lastIndexOf(".");k>-1&&(L=L.substring(k+1));let q={javascript:"JavaScript",typescript:"TypeScript",tsx:"TSX",jsx:"JSX",python:"Python",java:"Java",c_cpp:"C/C++",csharp:"C#",golang:"Go",rust:"Rust",ruby:"Ruby",php:"PHP",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",yaml:"YAML",markdown:"Markdown",sh:"Shell",dockerfile:"Dockerfile",xml:"XML",sql:"SQL",kotlin:"Kotlin",swift:"Swift",scala:"Scala",r:"R",julia:"Julia",latex:"LaTeX",toml:"TOML",csv:"CSV",tsv:"TSV",text:""},W=j(L);e.languageName=q[W]??(W?W.charAt(0).toUpperCase()+W.slice(1):""),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:window.matchMedia?.("(max-width: 767px)").matches?12:13,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!1,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:j(L),onLoad:function(H){e.codeEditor=un(H);{let Re=H.session,Be=Re.getTokens.bind(Re),X=/\bXXXX-\d+\b/g;if(Re.getTokens=function(me){let de=Be(me);if(!de.some(ye=>ye.value.indexOf("XXXX-")!==-1))return de;let pe=[];for(let ye of de){if(ye.value.indexOf("XXXX-")===-1){pe.push(ye);continue}let Ve=0;X.lastIndex=0;let P;for(;P=X.exec(ye.value);)P.index>Ve&&pe.push({type:ye.type,value:ye.value.slice(Ve,P.index)}),pe.push({type:"redacted.n"+P[0].slice(5),value:P[0]}),Ve=P.index+P[0].length;Ve`.ace_redacted.ace_n${pe+1}::after{content:"${pe+1}"}`).join(""),window.document.head.appendChild(me)}H.renderer.updateFull(!0)}H.session.setUseWrapMode(e.wrapLines!==!1);let J=H.container.closest?.(".file-card"),ne=()=>{if(!J)return;let Re=H.renderer,Be=(Re.layerConfig?.width||0)-(Re.$size?.scrollerWidth||0);J.classList.toggle("at-right-edge",Be<=2||Re.getScrollLeft()>=Be-2)};H.session.on("changeScrollLeft",ne),H.renderer.on("afterRender",ne),window.matchMedia?.("(max-width: 767px)").matches&&H.setOption("hScrollBarAlwaysVisible",!0);let G=ace.require("ace/range").Range,ue=null;function he(Re,Be){ue!==null&&(H.session.removeMarker(ue),ue=null),Re!=null&&(ue=H.session.addMarker(new G(Re,0,Be,1),"highlighted-line","fullLine"))}function Me(Re){let Be=!e.preview&&window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!Be){he(null);return}let X=parseInt(Be[1])-1,me=Be[2]?parseInt(Be[2])-1:X;he(X,me),Re&&i.timeout(()=>{H.scrollToLine(X,!0,!0,function(){})},100)}Me(!0);let Ue=null;H.on("guttermousedown",function(Re){let Be=Re.getDocumentPosition().row,X=Re.domEvent&&Re.domEvent.shiftKey,me=Be,de=Be;X&&Ue!==null?(me=Math.min(Ue,Be),de=Math.max(Ue,Be)):Ue=Be;let pe=me===de?`#L${me+1}`:`#L${me+1}-L${de+1}`,ye=window.location.pathname+window.location.search+pe;e.preview||window.history.replaceState(null,"",ye),he(me,de),Re.stop()});let We=o(window,"hashchange",()=>Me(!1));H.setFontSize(e.aceOption.fontSize),H.setOptions({fontFamily:"'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace"}),H.container.style.lineHeight="20px",H.renderer.setPadding(16),H.renderer.setScrollMargin(12,12,0,0),H.renderer.updateFontSize(),H.setReadOnly(e.aceOption.readOnly),H.setKeyboardHandler(e.aceOption.keyBinding),H.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),H.setOption("displayIndentGuides",!1),H.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(H.renderer.$cursorLayer.element.style.display="none"),H.setHighlightGutterLine(e.aceOption.highlightGutterLine),H.setShowInvisibles(e.aceOption.showInvisibles),H.setDisplayIndentGuides(e.aceOption.showIndentGuides),H.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),H.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),H.session.setUseSoftTabs(e.aceOption.useSoftTab),H.session.setTabSize(e.aceOption.tabSize),H.setBehavioursEnabled(e.aceOption.enableBehaviours),H.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets);let ze=()=>!e.preview||H.isFocused(),tt=o(window,"keydown",Re=>{if((Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="g"&&document.body.contains(H.container)&&ze()){Re.preventDefault(),e.gotoLine();return}if(Re.altKey&&!Re.ctrlKey&&!Re.metaKey&&Re.key.toLowerCase()==="z"&&document.body.contains(H.container)&&ze()){Re.preventDefault(),e.toggleWrap();return}(Re.ctrlKey||Re.metaKey)&&!Re.altKey&&Re.key.toLowerCase()==="f"&&document.body.contains(H.container)&&ze()&&(Re.preventDefault(),e.findInFile())});return()=>{We(),tt()}}},e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=oe(L)},e.renderFileContent=function(I,L,k,q){if(e.type=L,e.content=I,e.sourceContent=I,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(I,k),e.type="html"),e.type=="org"){let H=contentAbs2Relative(I);var W=new Org.Parser().parse(H).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(W.toString()),e.type="html"}e.type=="code"&&q=="application/octet-stream"&&(e.type="binary",e.content="binary"),i.timeout(()=>{Prism.highlightAll()},50)};let _=["image","media","audio","pdf","IPython","binary"],B=["file_too_big","file_not_found","file_not_accessible","file_not_supported","folder_not_supported"];e.fileFrame=()=>e.filePath?_.includes(e.type)?e.content!=null:e.type==="error"?B.includes(e.content):e.content==null&&["code","text"].includes(e.type):!1,e.fileKind=()=>{let I=(e.paths||[])[(e.paths||[]).length-1]||"",L=I.lastIndexOf("."),k=L>0?I.slice(L+1).toUpperCase():"";if(e.type==="image")return(k==="JPG"?"JPEG":k)+" image";let q={WEBM:"WebM",OGG:"Ogg",OGV:"Ogg",MOV:"QuickTime",M4V:"M4V",MKV:"Matroska"};return e.type==="media"?(q[k]||k)+" video":e.type==="audio"?k+" audio":e.type==="pdf"?"PDF":e.type==="IPython"?"Jupyter notebook":e.type==="binary"?"Binary file":e.languageName||(k?k+" file":"File")},e.imageSize="",e.onImageLoad=I=>{let L=I.target;L?.naturalWidth&&(e.imageSize=`${L.naturalWidth} \xD7 ${L.naturalHeight}`)},o(document,"click",I=>{e.preview&&(I.target.closest?.(".symbols")||(e.symbolsOpen=!1),I.target.closest?.(".tb-more")||(e.moreOpen=!1),I.target.closest?.(".tb-toc-m")||(e.tocOpen=!1),I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1))})};function ga(e,t,s){let i,o=!1,r="form-draft:"+s,u=()=>Object.fromEntries(t.map(m=>[m,e[m]])),p=()=>JSON.stringify(u()),c=m=>{for(let b of t)Object.prototype.hasOwnProperty.call(m,b)&&(e[b]=m[b]);e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate))},v=()=>{try{window.sessionStorage.removeItem(r)}catch{}},g=(m=!1)=>{if(i!==void 0){if(m&&document.querySelectorAll("input, select, textarea").forEach(b=>{b._field?.binding.state===e&&b._field.timer&&b._field.commit()}),e.unsavedChanges=p()!==i,e.draftSaved=!1,!e.unsavedChanges){v();return}try{window.sessionStorage.setItem(r,JSON.stringify({account:e.user?.username||null,savedAt:Date.now(),values:u()})),e.draftSaved=!0}catch{}}},y=()=>g(!0);return e.on("routeLeave",y),window.addEventListener("beforeunload",y),e.on("dispose",()=>window.removeEventListener("beforeunload",y)),{restore(){i=p();let m;try{m=JSON.parse(window.sessionStorage.getItem(r)||"null")}catch{}let b=m&&m.account===(e.user?.username||null)&&Date.now()-m.savedAt<30*6e4&&m.values;return b&&(c(m.values),e.draftRestored=!0),o||(o=!0,e.watch(()=>u(),()=>g(),!0)),e.unsavedChanges=p()!==i,!!b},checkpoint(){return document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state===e&&m._field.timer&&m._field.commit()}),JSON.parse(p())},accept(m){i=JSON.stringify(m),e.draftRestored=!1,g()},discard(){document.querySelectorAll("input, select, textarea").forEach(m=>{m._field?.binding.state!==e||!m._field.timer||(clearTimeout(m._field.timer),m._field.timer=null,m.value=m._field.binding.value??"")}),i!==void 0&&c(JSON.parse(i)),e.draftRestored=!1,g()},clear(){i=p(),e.unsavedChanges=!1,e.draftRestored=!1,e.draftSaved=!1,v()}}}function qu(e,t){e.errorSource="central",e.logView={search:"",severity:"",sort:"recent"},e.selectedLog=null,e.logDetailTab="overview",e.logSeverity=y=>Number(y?.status||y?.httpStatus)>=500||["error","fatal"].includes(y?.severity)?"error":y?.severity==="warn"?"warn":"info",e.filteredLogGroups=()=>{let y=e.logView.search.trim().toLowerCase();return(e.logData?.groups||[]).filter(m=>(!e.logView.severity||e.logSeverity(m.sample)===e.logView.severity)&&(!y||Object.values(m.sample).join(" ").toLowerCase().includes(y))).slice().sort((m,b)=>e.logView.sort==="count"?b.count-m.count:Date.parse(b.last)-Date.parse(m.last))},e.shortLogId=y=>y?y.slice(0,8):"",e.isLogIdentifier=(y,m)=>typeof m=="string"&&m.length>16&&/(?:id|sha|release)$/i.test(y),e.compactLogValue=y=>String(y).slice(0,8)+"\u2026"+String(y).slice(-4),e.logCopyStatus="",e.copyLogValue=async y=>{try{await navigator.clipboard.writeText(String(y)),e.logCopyStatus="Full value copied"}catch{e.logCopyStatus="Copy unavailable. Expand the value to select it."}},e.logExplanation=y=>{let m=y.service||"The application",b={job_failed:"reported a failed job",request_failed:"reported a failed request",request_aborted:"reported an aborted request",edge_request:"recorded an edge request",http_access:"recorded an HTTP request"}[y.event]||"recorded \u201C"+(y.event||"application event")+"\u201D",E=Number(y.status||y.httpStatus),S={502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout"}[E];return m+" "+b+(E?" with HTTP "+E+(S?" ("+S+")":""):"")+"."},e.logEvidence=y=>[y.errorCode?"Recorded error code: "+y.errorCode+".":"No error code was included in this sample.",y.ms!==void 0?"Recorded duration: "+y.ms+" ms.":"",y.attempt!==void 0?"Recorded attempt: "+y.attempt+".":"",y.queue?"Queue: "+y.queue+".":""].filter(Boolean).join(" "),e.occurrenceTime=y=>Number.isFinite(Date.parse(y))?new Date(y).toLocaleString(void 0,{dateStyle:"medium",timeStyle:"medium"}):"Time not captured",e.historyOccurrences=y=>(y?._related||[]).slice().sort((m,b)=>Date.parse(b.ts)-Date.parse(m.ts)),e.historyDetailFields=y=>{try{let m=JSON.parse(y?._detailJson||"{}");return m&&typeof m=="object"?Object.entries(m):[["value",m]]}catch{return[["record",y?._detailJson||""]]}},e.logFieldText=y=>typeof y=="object"?JSON.stringify(y):String(y??""),e.captureErrorScroll=y=>{let m=[];for(let b=y?.parentElement;b;b=b.parentElement)m.push({element:b,top:b.scrollTop,left:b.scrollLeft});return m},e.restoreErrorScroll=y=>y.forEach(({element:m,top:b,left:E})=>{m.isConnected&&(m.scrollTop=b,m.scrollLeft=E)});let s=null,i=null,o=null,r=[];e.selectLog=async(y,m)=>{if(i=m||document.activeElement,r=e.captureErrorScroll(i),c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.logDetailTab="overview",e.selectedLog=y,await je(),v||e.selectedLog!==y||e.errorSource!=="central")return;document.getElementById("log-detail-title")?.focus({preventScroll:!0}),document.querySelector(".log-inspector")?.scrollIntoView?.({block:"start"});let b=["requestId","jobId"].find(E=>e.logTraceId(y,E));b&&e.lookupTrace(b,y.sample[b],document.getElementById("trace-selector-"+b),y.sample,!0)},e.closeLogDetail=async()=>{e.selectedLog=null,c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await je(),i?.isConnected?(i.focus({preventScroll:!0}),e.restoreErrorScroll(r)):document.getElementById("error-source-central")?.focus()},e.logFilters={window:"1h",service:"",release:""},e.logAppliedFilters={...e.logFilters},e.logData=null,e.logLoading=!1,e.logFailure="",e.logSnapshotStale=!1,e.trace=null,e.traceLoading=!1,e.traceSelection=null;let u=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/i,p=0,c=0,v=!1;e.logStateText=y=>({ready:"Central logs available",empty:"No warnings, errors or HTTP 5xx returned in this window",disabled:"Central lookup is not configured. Application history is available in the other source.",misconfigured:"Central lookup configuration is invalid. Ask an operator to check it.",unreachable:"Central logging is unreachable. Application history is available in the other source.",busy:"Central lookup is busy. Retry shortly.",partial:"Partial results: a result limit or invalid record reduced coverage.",stale:"Central logging responds, but expected application telemetry is stale or missing."})[y]||"Central log status has not been checked",e.refreshLogs=async()=>{let y=++p,m={...e.logFilters};e.logLoading=!0,e.logFailure="",e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,c++;try{let b=await t.get("/api/admin/errors/investigation",{params:m});if(v||y!==p)return;e.logData=b.data,e.logAppliedFilters=m,e.logSnapshotStale=!!b.data?.end&&Date.now()-Date.parse(b.data.end)>9e4}catch(b){if(v||y!==p)return;e.logData=null,e.logFailure=b?.status===400?"Use a Git release SHA or \u2018unknown\u2019 and retry.":"Could not load central log status. Retry or open Application history."}finally{!v&&y===p&&(e.logLoading=!1)}},e.lookupTrace=async(y,m,b,E,S=!1)=>{if(!["requestId","jobId"].includes(y)||!u.test(m||""))return;e.errorSource==="central"&&e.selectedLog&&(e.logDetailTab="timeline"),e.errorSource==="history"&&(e.historyView="timeline"),o=e.errorSource,s=b||document.activeElement;let N=++c;if(e.traceSelection={kind:y,id:m,context:E?{event:E.errorCode||E.event||E.displayMessage||E.message,service:E.service||E.module}:null},e.trace=null,e.traceLoading=!0,await je(),v||N!==c)return;let w=document.getElementById("log-timeline-title");S||(w?.focus(),w?.scrollIntoView?.({block:"nearest"}));try{let D=await t.get("/api/admin/errors/correlation",{params:{kind:y,id:m,window:e.logData?.window||e.logAppliedFilters.window}});!v&&N===c&&(e.trace=D.data)}catch{!v&&N===c&&(e.trace={state:"unreachable",events:[]})}finally{!v&&N===c&&(e.traceLoading=!1)}},e.showLogTimeline=y=>{if(e.logDetailTab="timeline",e.traceSelection)return;let m=["requestId","jobId"].find(b=>e.logTraceId(e.selectedLog,b));m&&e.lookupTrace(m,e.selectedLog.sample[m],y,e.selectedLog.sample)},e.closeTrace=async()=>{e.logDetailTab="overview",e.historyView="overview",c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,await je(),s?.isConnected&&o===e.errorSource?s.focus():document.getElementById("error-source-"+e.errorSource)?.focus()},e.logTraceId=(y,m)=>{let b=y?.sample?.[m]||y?.raw?.find(E=>E&&typeof E=="object")?.[m];return u.test(b||"")?b:null},e.watch("errorSource",()=>{c++,e.trace=null,e.traceSelection=null,e.traceLoading=!1,e.selectedLog=null,e.historySelected=null,e.historyView="overview",e.expanded={}},!1,!1);let g=window.setInterval(()=>{e.logSnapshotStale=!!e.logData?.end&&Date.now()-Date.parse(e.logData.end)>9e4},15e3);e.on("dispose",()=>{v=!0,p++,c++,window.clearInterval(g)}),e.refreshLogs()}var wa={};af(wa,{bigNum:()=>ug,date:()=>wg,dateEcho:()=>ya,diff:()=>fg,duration:()=>Ln,filter:()=>yg,humanFileSize:()=>dg,humanTime:()=>va,limitTo:()=>vg,money:()=>hg,number:()=>mg,orderBy:()=>bg,plural:()=>kg,shortDate:()=>ba,statusLabel:()=>pg,statusMsg:()=>Yi,title:()=>cg,uppercase:()=>gg});var dg=e=>String(window.humanFileSize(e)).replace(/([KMGTPEZY])iB$/,"$1B").replace(/\.0 ([KMGTPEZY]?B)$/," $1"),ug=(function(){return function(t){let s=Number(t)||0,i=Math.abs(s);return i<1e3?String(s):i<1e4?(s/1e3).toFixed(1).replace(/\.0$/,"")+"k":i<1e6?Math.round(s/1e3)+"k":i<1e7?(s/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(s/1e6)+"M"}})(),va=(function(){return function(t){if(!t)return"never";var s=null;t instanceof Date&&(s=t,t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(s=new Date(t),t=Math.round((Date.now()-s)/1e3));var i=t<0?"from now":"ago";if(Math.abs(t)>7200*24)return(s&&!isNaN(s)?s:new Date(Date.now()-t*1e3)).toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"});t=Math.abs(t);for(var o=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],r=["year","month","week","day","hour","minute","second"],u=0;u1&&(c+="s"),p>=1)return p+" "+c+" "+i}return"0 seconds "+i}})(),cg=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),s=t.map(function(i){return i.charAt(0).toUpperCase()+i.substring(1,i.length)});return s.join(" ")}})(),pg=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var s=String(t).replace(/[_-]+/g," ").toLowerCase();return s.charAt(0).toUpperCase()+s.slice(1)}})(),Yi=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",repository_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var s=t.match(/^rate_limited:(\d+)$/);if(s){var i=Math.max(0,Math.ceil((parseInt(s[1],10)-Date.now())/1e3));if(i<=0)return"Rate limited \u2014 resuming soon";var o=Math.floor(i/60),r=i%60;return"Rate limited \u2014 retrying in "+(o>0?o+"m "+r+"s":r+"s")}if(e[t])return e[t];var u=/^([a-z0-9]+(?:_[a-z0-9]+)+):\s*\S/.exec(t);if(u){if(e[u[1]])return e[u[1]];var p=u[1].replace(/_/g," ");return p.charAt(0).toUpperCase()+p.slice(1)}if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var c=t.replace(/_/g," ");return c.charAt(0).toUpperCase()+c.slice(1)}return t}})(),fg=(function(e){let t=i=>i.replace(/&/g,"&").replace(//g,">");function s(i,o){if(!o)return;let r=o.newPath&&o.newPath!=="/dev/null"?o.newPath:o.oldPath||"",u=o.oldPath==="/dev/null"?"added":o.newPath==="/dev/null"?"deleted":o.oldPath&&o.newPath&&o.oldPath!==o.newPath?"renamed":"modified";if(i.push('
'),i.push('
'+t(r)+''+u+"
"),o.lines.length){i.push('');for(let p of o.lines)i.push('");i.push("
'+(p.oldNo||"")+''+(p.newNo||"")+''+(p.kind==="add"?"+":p.kind==="remove"?"-":"")+''+t(p.text)+"
")}i.push("
")}return function(i){if(!i)return i;let o=[],r=null,u=0,p=0,c=()=>(r||(r={oldPath:"",newPath:"",lines:[]}),r),v=()=>{r&&(r.lines.length||r.oldPath||r.newPath)&&(s(o,r),r=null)},g=i.split(` +`);for(let y=0;ye});function mg(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function hg(e,t="EUR"){let s=Number(e)||0;return new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:s%1?2:0,maximumFractionDigits:2}).format(s)}function gg(e){return String(e??"").toUpperCase()}function vg(e,t,s=0){return(e||[]).slice(s,s+t)}function yg(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function bg(e,t){if(!t)return e||[];let s=Array.isArray(t)?t:[t];return[...e||[]].sort((i,o)=>{for(let r of s){let u=r[0]==="-"?-1:1;r=r.replace(/^[+-]/,"");let p=r.split(".").reduce((v,g)=>v?.[g],i),c=r.split(".").reduce((v,g)=>v?.[g],o);if(typeof p=="string"&&(p=p.toLowerCase()),typeof c=="string"&&(c=c.toLowerCase()),p!==c)return(p==null?-1:c==null?1:pi[o])}function kg(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}function ya(e){if(!e)return"";let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e)),s=t?new Date(+t[1],+t[2]-1,+t[3]):new Date(e);if(isNaN(s))return"";let i=s.toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"}),o=new Date;o.setHours(0,0,0,0);let r=Math.round((s-o)/864e5),u;if(r===0)u="today";else if(r===1)u="tomorrow";else if(r===-1)u="yesterday";else{let p=Math.abs(r),c=Math.round(p/30.44),v=p<14?[p,"day"]:p<60?[Math.round(p/7),"week"]:c<18?[c,"month"]:[Math.round(p/365.25),"year"],g=v[0]+" "+v[1]+(v[0]===1?"":"s");u=r>0?"in "+g:g+" ago"}return i+" \xB7 "+u}function Ln(e){if(e==null||e===""||isNaN(e))return"";e=Number(e);let t="\u202F";if(e<1e3)return+(e<10?e.toFixed(2):e<100?e.toFixed(1):Math.round(e))+t+"ms";let s=e/1e3;if(s<60)return+(s<10?s.toFixed(2):s.toFixed(1))+t+"s";let i=r=>String(r).padStart(2,"0"),o=Math.round(s);return o<3600?Math.floor(o/60)+"m "+i(o%60)+"s":Math.floor(o/3600)+"h "+i(Math.floor(o%3600/60))+"m"}function ba(e){if(!e)return"";let t=new Date(e);if(isNaN(t))return"";let s={day:"numeric",month:"short"};return t.getFullYear()!==new Date().getFullYear()&&(s.year="numeric"),t.toLocaleDateString(void 0,s)}var Ji=e=>["preparing","download","downloading","downloaded","queue","anonymizing"].includes(e)?"preparing":e==="expiring"?"expired":e==="removing"?"removed":e;function Xi(e,{flags:t,keys:s,count:i,onChange:o=()=>{}}){if(e.segView=()=>{let r=t()||{};if(s.every(p=>!!r[p]))return"all";let u=s.filter(p=>!!r[p]);return u.length===1?u[0]:"custom"},e.setSegView=r=>{let u=t();if(u){for(let p of s)u[p]=r==="all"?!0:p===r;o()}},e.segCount=r=>r==="all"?s.reduce((u,p)=>u+i(p),0):i(r),t()&&e.segView()==="custom")for(let r of s)t()[r]=!0}var Fu=function(e,t,s){let i=kt(),o=Bt();Wu(i,o),e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let r=S=>{if(S.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){S.preventDefault();let N=document.querySelector('.admin-filter-toolbar input[type="search"]');N&&N.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=S=>{S==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[S]="",e.query.page=1},e.chips=[];let u=()=>{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 N=S.statusMessage||"(no message)";window.prompt(`Status message for ${S.repoId} (${S.status}):`,N)},e.fetchGithubInfo=S=>{let N=window.open("","_blank");N&&N.document.write("
Loading GitHub info for "+S.repoId+"...
"),t.get("/api/admin/repos/"+S.repoId+"/github").then(w=>{N&&(N.document.open(),N.document.write('
'+JSON.stringify(w.data,null,2).replace(/[<>]/g,D=>D==="<"?"<":">")+"
"),N.document.close())},w=>{let D=w&&w.data?JSON.stringify(w.data,null,2):String(w);N&&(N.document.body.innerHTML='
'+D+"
")})},e.statusCountFor=S=>{let N=(e.statusCounts||[]).find(w=>w._id===S);return N?N.count:0},e.statusStorageFor=S=>{let N=(e.statusCounts||[]).find(w=>w._id===S);return N?N.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=S=>{e.query.sort===S?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=S,e.query.direction="desc"),e.query.page=1},e.sortIcon=S=>e.query.sort===S?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.repos.filterPrefs",c={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let g=s.search();g.owner&&(e.query.owner=g.owner),g.conference&&(e.query.conference=g.conference),g.search&&(e.query.search=g.search);let y="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let S=window.prompt("Preset name:");if(!S)return;let N=Object.assign({},e.query);delete N.page,e.presets=(e.presets||[]).filter(w=>w.name!==S),e.presets.push({name:S,query:N}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=S=>{Object.assign(e.query,S.query,{page:1})},e.deletePreset=S=>{e.presets=(e.presets||[]).filter(N=>N.name!==S.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(S=>{e.selected[S.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(S=>e.selected[S.repoId]),e.bulkRefresh=()=>{let S=e.selectedRepos();S.length&&confirm(`Force refresh ${S.length} repositories?`)&&S.forEach(N=>e.updateRepository(N))},e.bulkRemoveCache=()=>{let S=e.selectedRepos();S.length&&confirm(`Purge cache for ${S.length} repositories?`)&&S.forEach(N=>e.removeCache(N))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let S=new URLSearchParams(Object.entries(e.query).filter(([,N])=>N!==""&&N!==!1&&N!=null));S.set("format","csv"),S.set("limit","10000"),window.open("/api/admin/repos?"+S.toString(),"_blank")},e.removeCache=S=>{confirm("Remove cached files for "+S.repoId+"?")&&t.delete("/api/admin/repos/"+S.repoId).then(()=>m(),N=>console.error(N))},e.removeRepository=S=>{confirm("Remove repository "+S.repoId+"?")&&t.delete("/api/repo/"+S.repoId+"/").then(()=>m(),N=>console.error(N))},e.updateRepository=S=>{let N=st({title:`Refreshing ${S.repoId}...`,date:new Date,body:`The repository ${S.repoId} is going to be refreshed.`});e.toasts.push(N),t.post(`/api/repo/${S.repoId}/refresh`).then(w=>{w.data.status=="ready"?N.title=`${S.repoId} is refreshed.`:N.title=`Refreshing of ${S.repoId}.`},w=>{N.title=`Error during the refresh of ${S.repoId}.`,N.body=w.body})},e.filtersOpen=!1,e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(S=>{e.total=S.data.total,e.totalPage=Math.ceil(S.data.total/e.query.limit),e.repositories=S.data.results,e.allSelected=!1},S=>{e.fetchError=S&&S.data&&S.data.error||"Failed to load repositories",console.error(S)})}function b(){let S=Object.assign({},e.query,{page:1,limit:1,ready:!0,expired:!0,removed:!0,error:!0,preparing:!0});t.get("/api/admin/repos",{params:S}).then(N=>{e.statusCounts=N.data.statusCounts||[],e.totalSize=N.data.totalSize||0},()=>{})}e.showAllStatuses=()=>Object.assign(e.query,{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0,page:1}),Xi(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:S=>S==="preparing"?e.statusCountFor("preparing")+e.statusCountFor("download"):S==="expired"?e.statusCountFor("expired")+e.statusCountFor("expiring"):S==="removed"?e.statusCountFor("removed")+e.statusCountFor("removing"):e.statusCountFor(S),onChange:()=>{e.query.page=1}}),m(),b();let E=null;e.watch("query",()=>{i.timeout.cancel(E),E=i.timeout(()=>{m(),b()},500);let{page:S,search:N,...w}=e.query;saveFilterPrefs(p,w),u()},!0),u()},Uu=function(e,t,s){let i=kt(),o=Bt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let r=m=>{if(m.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){m.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=m=>{m==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[m]="",e.query.page=1},e.chips=[];let u=()=>{let m=[];e.query.role&&m.push({key:"role",label:"Role",value:e.query.role}),e.chips=m};e.statusCountFor=m=>{let b=(e.statusCounts||[]).find(E=>E._id===m);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.users.filterPrefs",c={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(m=>{e.selected[m.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(m=>e.selected[m.username]),e.banUser=m=>{confirm(`Ban user ${m.username}?`)&&t.post(`/api/admin/users/${m.username}/ban`).then(g,b=>console.error(b))},e.activateUser=m=>{t.post(`/api/admin/users/${m.username}/activate`).then(g,b=>console.error(b))},e.bulkBan=()=>{let m=e.selectedUsers();m.length&&confirm(`Ban ${m.length} users?`)&&m.forEach(b=>e.banUser(b))},e.exportCsv=()=>{let m=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));m.set("format","csv"),m.set("limit","10000"),window.open("/api/admin/users?"+m.toString(),"_blank")},e.fetchError=null;function g(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(m=>{e.total=m.data.total,e.totalPage=Math.ceil(m.data.total/e.query.limit),e.users=m.data.results,e.statusCounts=m.data.statusCounts||[],e.allSelected=!1},m=>{e.fetchError=m&&m.data&&m.data.error||"Failed to load users",console.error(m)})}g();let y=null;e.watch("query",()=>{i.timeout.cancel(y),y=i.timeout(g,500);let{page:m,search:b,...E}=e.query;saveFilterPrefs(p,E),u()},!0),u()},Bu=function(e,t,s,i){let o=kt();Wu(o,Bt()),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let r="admin.user.filterPrefs",u={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},p=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},u.filters.status,p.filters&&p.filters.status||{})},e.query={sort:p.sort||u.sort,direction:p.direction||u.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=m=>(e.repositories||[]).filter(b=>Ji(b.status)===m).length,Xi(e,{flags:()=>e.filters.status,keys:["ready","preparing","error","expired","removed"],count:m=>e.statusCountFor(m)}),e.repoFiler=m=>e.filters.status[Ji(m.status)]==!1?!1:!!(e.search.trim().length==0||m.source.fullName.indexOf(e.search)>-1||m.repoId.indexOf(e.search)>-1||m.statusMessage&&m.statusMessage.indexOf(e.search)>-1||m.conference&&m.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(m=>{e.selected[m.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(m=>e.selected[m.repoId]),e.bulkRefresh=()=>{let m=e.selectedRepos();m.length&&confirm(`Force refresh ${m.length} repositories?`)&&m.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let m=e.selectedRepos();m.length&&confirm(`Purge cache for ${m.length} repositories?`)&&m.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let m=e.filteredRepositories||e.repositories,E=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),S=m.map(D=>[D.repoId,D.status,D.statusMessage||"",D.pageView||0,D.anonymizeDate||"",D.source&&D.source.fullName||"",D.conference||"",D.size&&D.size.storage||0].map(O=>{let F=String(O??"");return/[",\n\r]/.test(F)?'"'+F.replace(/"/g,'""')+'"':F}).join(",")),N=new Blob([E+` `+S.join(` -`)],{type:"text/csv"}),w=document.createElement("a");w.href=URL.createObjectURL(N),w.download=i.username+"-repositories.csv",w.click()},e.showStatusMessage=m=>{let b=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,b)},e.fetchGithubInfo=m=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+m.repoId+"...
"),t.get("/api/admin/repos/"+m.repoId+"/github").then(E=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(E.data,null,2).replace(/[<>]/g,S=>S==="<"?"<":">")+"
"),b.document.close())},E=>{let S=E&&E.data?JSON.stringify(E.data,null,2):String(E);b&&(b.document.body.innerHTML='
'+S+"
")})};function c(m){t.get("/api/admin/users/"+m+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function v(m){t.get("/api/admin/users/"+m,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}v(i.username),c(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function g(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}g(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",g()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>g(),b=>console.error(b))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>c(i.username),b=>console.error(b))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>c(i.username),b=>console.error(b))},e.updateRepository=m=>{let b=st({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${m.repoId}/refresh`).then(E=>{E.data.status=="ready"?b.title=`${m.repoId} is refreshed.`:b.title=`Refreshing of ${m.repoId}.`},E=>{b.title=`Error during the refresh of ${m.repoId}.`,b.body=E.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{c(i.username)},500)},!0)},zu=function(e,t,s){let i=kt(),o=Bt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=E=>{if(E.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){E.preventDefault();let S=document.querySelector('.admin-filter-toolbar input[type="search"]');S&&S.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=E=>{E==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[E]="",e.query.page=1},e.chips=[];let u=()=>{let E=[];(e.query.dateFrom||e.query.dateTo)&&E.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=E};e.statusCountFor=E=>{let S=(e.statusCounts||[]).find(N=>N._id===E);return S?S.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=E=>{e.query.sort===E?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=E,e.query.direction="desc"),e.query.page=1},e.sortIcon=E=>e.query.sort===E?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let g=s.search();g.search&&(e.query.search=g.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let E=window.prompt("Preset name:");if(!E)return;let S=Object.assign({},e.query);delete S.page,e.presets=(e.presets||[]).filter(N=>N.name!==E),e.presets.push({name:E,query:S}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=E=>{Object.assign(e.query,E.query,{page:1})},e.deletePreset=E=>{e.presets=(e.presets||[]).filter(S=>S.name!==E.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=E=>{confirm("Remove conference "+E.conferenceID+"?")&&t.delete("/api/admin/conferences/"+E.conferenceID).then(()=>m(),S=>console.error(S))},e.exportCsv=()=>{let E=new URLSearchParams(Object.entries(e.query).filter(([,S])=>S!==""&&S!==!1&&S!=null));E.set("format","csv"),E.set("limit","10000"),window.open("/api/admin/conferences?"+E.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(E=>{e.total=E.data.total,e.totalPage=Math.ceil(E.data.total/e.query.limit),e.conferences=E.data.results,e.statusCounts=E.data.statusCounts||[]},E=>{e.fetchError=E&&E.data&&E.data.error||"Failed to load conferences",console.error(E)})}Xi(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:E=>e.statusCountFor(E),onChange:()=>{e.query.page=1}}),m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:E,search:S,...N}=e.query;saveFilterPrefs(p,N),u()},!0),u()},Hu=function(e,t,s,i,o){let r=kt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},Xi(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(w=>w._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return Yi(N.failedReason||"")||"Failed";let w=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&w?u[w]||Yi(w):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let w=N.finishedOn||Date.now();return Ln(w-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(w=>{e.queueList=w.data.queues||[],e.jobs=w.data.jobs||[],e.selectedStats=e.queueList.find(D=>D.key===e.selectedQueue)||e.queueList[0]||null},w=>console.error(w))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],o(b,0)},N=>console.error(N))}p(),c();let v=i(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>i.cancel(v)),e.refreshNow=function(){p(),c()};function g(N){let w=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=w,o(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,g)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,g)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,w=>console.error(w))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let w=new Date(N);return w.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+w.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var w=Math.max(0,Math.ceil((N-Date.now())/1e3));if(w<=0)return"resuming soon";var D=Math.floor(w/60),O=w%60;return"in "+(D>0?D+"m "+O+"s":O+"s")};function m(N){if(N<=0)return{ticks:[0],niceMax:1};let w=Math.pow(10,Math.floor(Math.log10(N))),D=w;N/D<2?D=w/2:N/D>5&&(D=w*2);let O=Math.ceil(N/D)*D,_=[];for(let j=0;j<=O;j+=D)_.push(j);return{ticks:_,niceMax:O}}function b(){var N=document.getElementById("q-throughput-chart");if(!N)return;var w=N.getContext("2d"),D=window.devicePixelRatio||1,O=N.parentElement.getBoundingClientRect(),_=44,j=44,oe=22,F=Math.max(200,Math.round(O.width)),B=Math.max(180,Math.min(420,Math.round(O.height)||180)),I=F-_-j,L=B-oe;N.width=F*D,N.height=B*D,N.style.width=F+"px",N.style.height=B+"px",w.setTransform(D,0,0,D,0,0);var k=document.body.classList.contains("dark-mode"),q="#8A857C",W=k?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",H=k?"#6FBF8A":"#2F7D4F",J=k?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=k?"#F08A82":"#B42318",G=k?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ue=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(k?"#E0A94A":"#946512"),he=e.metricsPoints||[];if(he.length===0){w.fillStyle=q,w.font="13px Inter, system-ui, sans-serif",w.textAlign="center",w.fillText("No metrics data yet",F/2,B/2),E=null;return}var Me=he.map(function(ke){return ke.completed}),Ue=he.map(function(ke){return ke.failed}),We=he.map(function(ke){return ke.avgMs});if(!Me.some(Boolean)&&!Ue.some(Boolean)){w.strokeStyle=k?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",w.beginPath(),w.moveTo(0,B-18.5),w.lineTo(F,B-18.5),w.stroke(),w.fillStyle=k?"#CFC8BD":"#4F4A42",w.font="500 14px Inter, system-ui, sans-serif",w.textAlign="center",w.fillText("No jobs processed in this window",F/2,B/2-6),w.fillStyle=q,w.font="12.5px Inter, system-ui, sans-serif",w.fillText("Completed and failed jobs will chart here",F/2,B/2+16),E=null;return}var ze=he.length,tt=I/(ze-1||1),Re=Math.max(1,Math.max.apply(null,Me),Math.max.apply(null,Ue)),Be=m(Re),X=Math.max.apply(null,We),me=X>0?m(X):{ticks:[0],niceMax:1},de=function(ke){return L-ke/Be.niceMax*(L-10)},pe=function(ke){return L-ke/me.niceMax*(L-10)},ye=function(ke){return _+ke*tt};w.textAlign="right",w.textBaseline="middle",w.font="11px Inter, system-ui, sans-serif",Be.ticks.forEach(function(ke){var we=de(ke);w.strokeStyle=W,w.lineWidth=1,w.beginPath(),w.moveTo(_,we),w.lineTo(F-j,we),w.stroke(),w.fillStyle=q,ke!==0&&w.fillText(ke>=1e3?(ke/1e3).toFixed(1)+"k":String(ke),_-6,we)}),X>0&&(w.textAlign="left",me.ticks.forEach(function(ke){var we=pe(ke);w.fillStyle=ue,ke!==0&&w.fillText(Ln(ke),F-j+6,we)}));var Ve=he[ze-1].ts,P=he[0].ts,A=Math.max(0,(Ve-P)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],x=U.find(function(ke){return A/ke<=4})||U[U.length-1],K=function(ke){return ke<60?ke+"m":ke<1440?ke/60+"h":ke/1440+"d"},ee=function(ke){for(var we=0,it=1;it0&&Math.abs(he[Ce].ts-(Ve-te*6e4))>le+1)){var fe=ye(Ce),Ee=te===0?"now":K(te)+" ago",Te=w.measureText(Ee).width,Le=ie===0?"right":Ce===0?"left":"center",Ke=Le==="right"?fe:Le==="left"?fe+Te:fe+Te/2;Ke>se-12||(w.textAlign=Le,w.fillText(Ee,fe,L+6),se=Le==="right"?fe-Te:Le==="left"?fe:fe-Te/2)}}function He(ke,we,it,at){ke.length!==0&&(w.beginPath(),w.moveTo(ye(0),L),ke.forEach(function(yt,lt){var dt=ye(lt),ft=we(yt);if(lt===0)w.lineTo(dt,ft);else{var Lt=(ye(lt-1)+dt)/2;w.bezierCurveTo(Lt,we(ke[lt-1]),Lt,ft,dt,ft)}}),w.lineTo(ye(ke.length-1),L),w.closePath(),w.fillStyle=it,w.fill(),w.beginPath(),ke.forEach(function(yt,lt){var dt=ye(lt),ft=we(yt);if(lt===0)w.moveTo(dt,ft);else{var Lt=(ye(lt-1)+dt)/2;w.bezierCurveTo(Lt,we(ke[lt-1]),Lt,ft,dt,ft)}}),w.strokeStyle=at,w.lineWidth=1.5,w.stroke())}He(Me,de,J,H),He(Ue,de,G,ne),X>0&&(w.beginPath(),We.forEach(function(ke,we){var it=ye(we),at=pe(ke);if(we===0)w.moveTo(it,at);else{var yt=(ye(we-1)+it)/2;w.bezierCurveTo(yt,pe(We[we-1]),yt,at,it,at)}}),w.strokeStyle=ue,w.lineWidth=1,w.setLineDash([4,3]),w.stroke(),w.setLineDash([])),E={pts:he,maxLen:ze,marginLeft:_,step:tt,totalW:F,toX:ye}}var E=null;function S(){var N=document.getElementById("q-throughput-chart");if(!(!N||N._tipBound)){N._tipBound=!0;var w=document.getElementById("q-chart-tooltip"),D=document.getElementById("q-chart-crosshair");N.addEventListener("mousemove",function(O){if(!(!E||!w||!D)){var _=E,j=N.getBoundingClientRect(),oe=O.clientX-j.left,F=Math.round((oe-_.marginLeft)/_.step);if(F<0||F>=_.maxLen){w.style.display="none",D.style.display="none";return}var B=_.pts[F],I=_.pts[_.pts.length-1].ts,L=Math.round((I-B.ts)/6e4),k;if(L<=0)k="now";else if(L<60)k=L+"m ago";else if(L<1440){var q=Math.floor(L/60),W=L%60;k=q+"h"+(W?" "+W+"m":"")+" ago"}else k=Math.round(L/1440)+"d ago";var H='
'+k+'
● completed: '+B.completed+'/min
● failed: '+B.failed+"/min
";if(B.avgMs>0){var J=Ln(B.avgMs);H+='
● avg time: '+J+"
"}w.innerHTML=H;var ne=_.toX(F),G=w.offsetWidth,ue=ne+10;ue+G>_.totalW&&(ue=ne-G-10),w.style.display="block",w.style.left=ue+"px",w.style.top="8px",D.style.display="block",D.style.left=ne+"px"}}),N.addEventListener("mouseleave",function(){w&&(w.style.display="none"),D&&(D.style.display="none")})}}e.watch("metricsPoints",function(){o(S,50)})},ju=function(e,t,s,i){qu(e,t),e.redisCollecting=null,e.redisLoading=!1;let o=0,r=0,u=!1,p=!1;e.redisStatsState="loading";let c=kt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=null,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.historySelected=null,e.historyView="overview";let v=null,g=[];e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=F=>{if(!F)return"";let B=new Date(F).getTime();if(isNaN(B))return F;let I=Math.max(0,Date.now()-B),L=Math.floor(I/1e3);if(L<5)return"just now";if(L<60)return`${L}s ago`;let k=Math.floor(L/60);if(k<60)return`${k}m ago`;let q=Math.floor(k/60);if(q<24)return`${q}h ago`;let W=Math.floor(q/24);return W<7?`${W}d ago`:new Date(F).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},e.absTime=F=>{if(!F)return"";let B=new Date(F);return isNaN(B.getTime())?F:B.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.absTimeShort=F=>{if(!F)return"";let B=new Date(F);return isNaN(B.getTime())?F:B.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let y=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function m(F,B){let I=F&&(F.httpStatus||F.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return B==="error"?"error":B==="warn"?"warn":"info"}function b(F){F._rawJson=JSON.stringify(F,null,2);let B=(F.raw||[]).find(q=>q&&typeof q=="object"&&!Array.isArray(q));if(B){B.message&&y.test(B.message)?(F.displayMessage=B.message,F.displayContext=F.message):B.code&&y.test(String(B.code))?(F.displayMessage=String(B.code),F.displayContext=F.message):B.name&&B.name!=="AnonymousError"&&B.name!=="Error"?(F.displayMessage=B.name,F.displayContext=B.message||F.message):F.displayMessage=F.message,F._status=B.httpStatus||B.status||null,F._url=B.url||null,F._method=B.method||null,F._repoId=B.repoId||B.detail||null,F._detail=B.detail&&B.detail!==F._repoId?B.detail:null;let q=B.errorStack||B.causeStack?[B.errorType,B.errorStack,B.causeType?"Caused by "+B.causeType:null,B.causeStack].filter(Boolean).join(` -`):typeof B.stack=="string"?B.stack:null;for(var I=[B.cause,B.err].filter(Boolean),L=0;!q&&L{J==null||J===""||I.push([H,J])};for(let H of["service","event","severity","requestId","jobId"])L(H,B&&B[H]);L("name",B&&B.name),L("code",F.displayMessage||B&&B.message),F._bucket&&L("kind",F._bucket),L("httpStatus",B&&B.httpStatus),B&&B.status&&!B.httpStatus&&L("status",B.status),L("module",F.module);let k=B&&B.detail;if(typeof k=="string"){let H=k.trim();if(H[0]==="{"||H[0]==="[")try{k=JSON.parse(k)}catch{}}if(L("detail",k),L("repoId",B&&B.repoId),L("filePath",B&&B.filePath),L("upstreamStatus",B&&B.upstreamStatus),L("upstreamBody",B&&B.upstreamBody),L("url",F._url),L("err",B&&B.err),L("cause",B&&!B.err&&B.cause),L("ts",F.ts),!I.length)return JSON.stringify(F,null,2);let q=I.reduce((H,J)=>Math.max(H,J[0].length),0),W=["{"];return I.forEach(([H,J],ne)=>{let ue=` ${`"${H}":`.padEnd(q+3," ")} `,he=ne{let b=m.statusMessage||"(no message)";window.prompt(`Status message for ${m.repoId} (${m.status}):`,b)},e.fetchGithubInfo=m=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+m.repoId+"...
"),t.get("/api/admin/repos/"+m.repoId+"/github").then(E=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(E.data,null,2).replace(/[<>]/g,S=>S==="<"?"<":">")+"
"),b.document.close())},E=>{let S=E&&E.data?JSON.stringify(E.data,null,2):String(E);b&&(b.document.body.innerHTML='
'+S+"
")})};function c(m){t.get("/api/admin/users/"+m+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function v(m){t.get("/api/admin/users/"+m,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}v(i.username),c(i.username),e.banUser=()=>{confirm(`Ban user ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/ban`).then(()=>v(i.username),m=>console.error(m))},e.activateUser=()=>{t.post(`/api/admin/users/${i.username}/activate`).then(()=>v(i.username),m=>console.error(m))},e.promoteUser=()=>{confirm(`Promote ${i.username} to admin?`)&&t.post(`/api/admin/users/${i.username}/promote`).then(()=>v(i.username),m=>console.error(m))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${i.username}?`)&&t.post(`/api/admin/users/${i.username}/demote`).then(()=>v(i.username),m=>console.error(m))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function g(){t.get("/api/admin/tokens").then(m=>{e.tokens=m.data||[]},m=>{m.status!==401&&m.status!==403&&console.error(m)})}g(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(m=>{e.tokenForm.plaintext=m.data.token,e.tokenForm.name="",g()},m=>console.error(m))},e.revokeToken=m=>{confirm(`Revoke token "${m.name}"?`)&&t.delete("/api/admin/tokens/"+m.id).then(()=>g(),b=>console.error(b))},e.removeCache=m=>{confirm("Remove cached files for "+m.repoId+"?")&&t.delete("/api/admin/repos/"+m.repoId).then(()=>c(i.username),b=>console.error(b))},e.removeRepository=m=>{confirm("Remove repository "+m.repoId+"?")&&t.delete("/api/repo/"+m.repoId+"/").then(()=>c(i.username),b=>console.error(b))},e.updateRepository=m=>{let b=st({title:`Refreshing ${m.repoId}...`,date:new Date,body:`The repository ${m.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${m.repoId}/refresh`).then(E=>{E.data.status=="ready"?b.title=`${m.repoId} is refreshed.`:b.title=`Refreshing of ${m.repoId}.`},E=>{b.title=`Error during the refresh of ${m.repoId}.`,b.body=E.body})},e.getGitHubRepositories=m=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let y=null;e.watch("query",()=>{o.timeout.cancel(y),y=o.timeout(()=>{c(i.username)},500)},!0)},zu=function(e,t,s){let i=kt(),o=Bt();e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let r=E=>{if(E.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){E.preventDefault();let S=document.querySelector('.admin-filter-toolbar input[type="search"]');S&&S.focus()}};o(document,"keydown",r),e.on("dispose",()=>document.removeEventListener("keydown",r)),e.clearFilter=E=>{E==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[E]="",e.query.page=1},e.chips=[];let u=()=>{let E=[];(e.query.dateFrom||e.query.dateTo)&&E.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=E};e.statusCountFor=E=>{let S=(e.statusCounts||[]).find(N=>N._id===E);return S?S.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=E=>{e.query.sort===E?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=E,e.query.direction="desc"),e.query.page=1},e.sortIcon=E=>e.query.sort===E?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let p="admin.conferences.filterPrefs",c={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!0,expired:!0,removed:!0,error:!0,preparing:!0},v=loadFilterPrefs(p)||{};e.query=Object.assign({},c,v,{page:1,search:""});let g=s.search();g.search&&(e.query.search=g.search);let y="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(y)||"[]"),e.savePreset=()=>{let E=window.prompt("Preset name:");if(!E)return;let S=Object.assign({},e.query);delete S.page,e.presets=(e.presets||[]).filter(N=>N.name!==E),e.presets.push({name:E,query:S}),localStorage.setItem(y,JSON.stringify(e.presets))},e.applyPreset=E=>{Object.assign(e.query,E.query,{page:1})},e.deletePreset=E=>{e.presets=(e.presets||[]).filter(S=>S.name!==E.name),localStorage.setItem(y,JSON.stringify(e.presets))},e.removeConference=E=>{confirm("Remove conference "+E.conferenceID+"?")&&t.delete("/api/admin/conferences/"+E.conferenceID).then(()=>m(),S=>console.error(S))},e.exportCsv=()=>{let E=new URLSearchParams(Object.entries(e.query).filter(([,S])=>S!==""&&S!==!1&&S!=null));E.set("format","csv"),E.set("limit","10000"),window.open("/api/admin/conferences?"+E.toString(),"_blank")},e.fetchError=null;function m(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(E=>{e.total=E.data.total,e.totalPage=Math.ceil(E.data.total/e.query.limit),e.conferences=E.data.results,e.statusCounts=E.data.statusCounts||[]},E=>{e.fetchError=E&&E.data&&E.data.error||"Failed to load conferences",console.error(E)})}Xi(e,{flags:()=>e.query,keys:["ready","preparing","error","expired","removed"],count:E=>e.statusCountFor(E),onChange:()=>{e.query.page=1}}),m();let b=null;e.watch("query",()=>{i.timeout.cancel(b),b=i.timeout(m,500);let{page:E,search:S,...N}=e.query;saveFilterPrefs(p,N),u()},!0),u()},Hu=function(e,t,s,i,o){let r=kt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},Xi(e,{flags:()=>e.stateFilter,keys:e.allStates,count:N=>(e.jobs||[]).filter(w=>w._state===N).length}),e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(N=>e.stateFilter[N._state]),e.jobProgressPct=N=>N?._state==="completed"?100:N&&N.progress&&typeof N.progress=="object"&&typeof N.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(N.progress.percent))):typeof N.progress=="number"?Math.max(0,Math.min(100,Math.round(N.progress))):null;let u={get_files:"Fetching files",download:"Downloading",downloading:"Downloading",anonymize:"Anonymizing",anonymizing:"Anonymizing",ready:"Ready",removing:"Removing",preparing:"Preparing"};e.jobDetail=N=>{if(N?._state==="failed")return Yi(N.failedReason||"")||"Failed";let w=N?.progress&&typeof N.progress=="object"?N.progress.status:null;return N?._state==="active"&&w?u[w]||Yi(w):"\u2014"},e.jobDuration=N=>{if(!N.processedOn)return"\u2014";let w=N.finishedOn||Date.now();return Ln(w-N.processedOn)},e.metricsPoints=[],e.selectQueue=N=>{e.selectedQueue=N,p(),c()},e.setRange=N=>{e.range=N,c()};function p(){let N={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:N}).then(w=>{e.queueList=w.data.queues||[],e.jobs=w.data.jobs||[],e.selectedStats=e.queueList.find(D=>D.key===e.selectedQueue)||e.queueList[0]||null},w=>console.error(w))}function c(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(N=>{e.metricsPoints=N.data.points||[],o(b,0)},N=>console.error(N))}p(),c();let v=i(()=>{e.query.autoRefresh&&(p(),c())},15e3);e.on("dispose",()=>i.cancel(v)),e.refreshNow=function(){p(),c()};function g(N){let w=N&&N.data&&(N.data.message||N.data.error)||"Request failed";e.actionError=w,o(()=>{e.actionError=null},5e3),console.error(N)}e.actionError=null,e.removeJob=N=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,g)},e.retryJob=N=>{t.post(`/api/admin/queue/${e.selectedQueue}/${N.id}`).then(p,g)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(p,N=>console.error(N))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(p,N=>console.error(N))},e.togglePause=()=>{let N=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${N}`).then(p,w=>console.error(w))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(p,N=>console.error(N))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(p,N=>console.error(N))};let y=null;e.watch("query.search",()=>{r.timeout.cancel(y),y=r.timeout(p,350)}),e.expanded={},e.toggleJob=N=>{e.expanded[N.id]=!e.expanded[N.id]},e.humanTime=N=>{if(!N)return"";let w=new Date(N);return w.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+w.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=N=>{if(!N)return"";var w=Math.max(0,Math.ceil((N-Date.now())/1e3));if(w<=0)return"resuming soon";var D=Math.floor(w/60),O=w%60;return"in "+(D>0?D+"m "+O+"s":O+"s")};function m(N){if(N<=0)return{ticks:[0],niceMax:1};let w=Math.pow(10,Math.floor(Math.log10(N))),D=w;N/D<2?D=w/2:N/D>5&&(D=w*2);let O=Math.ceil(N/D)*D,F=[];for(let j=0;j<=O;j+=D)F.push(j);return{ticks:F,niceMax:O}}function b(){var N=document.getElementById("q-throughput-chart");if(!N)return;var w=N.getContext("2d"),D=window.devicePixelRatio||1,O=N.parentElement.getBoundingClientRect(),F=44,j=44,oe=22,_=Math.max(200,Math.round(O.width)),B=Math.max(180,Math.min(420,Math.round(O.height)||180)),I=_-F-j,L=B-oe;N.width=_*D,N.height=B*D,N.style.width=_+"px",N.style.height=B+"px",w.setTransform(D,0,0,D,0,0);var k=document.body.classList.contains("dark-mode"),q="#8A857C",W=k?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",H=k?"#6FBF8A":"#2F7D4F",J=k?"rgba(111,191,138,0.12)":"rgba(47,125,79,0.08)",ne=k?"#F08A82":"#B42318",G=k?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",ue=getComputedStyle(document.body).getPropertyValue("--q-time-series").trim()||(k?"#E0A94A":"#946512"),he=e.metricsPoints||[];if(he.length===0){w.fillStyle=q,w.font="13px Inter, system-ui, sans-serif",w.textAlign="center",w.fillText("No metrics data yet",_/2,B/2),E=null;return}var Me=he.map(function(ke){return ke.completed}),Ue=he.map(function(ke){return ke.failed}),We=he.map(function(ke){return ke.avgMs});if(!Me.some(Boolean)&&!Ue.some(Boolean)){w.strokeStyle=k?"rgba(255,255,255,0.14)":"rgba(0,0,0,0.12)",w.beginPath(),w.moveTo(0,B-18.5),w.lineTo(_,B-18.5),w.stroke(),w.fillStyle=k?"#CFC8BD":"#4F4A42",w.font="500 14px Inter, system-ui, sans-serif",w.textAlign="center",w.fillText("No jobs processed in this window",_/2,B/2-6),w.fillStyle=q,w.font="12.5px Inter, system-ui, sans-serif",w.fillText("Completed and failed jobs will chart here",_/2,B/2+16),E=null;return}var ze=he.length,tt=I/(ze-1||1),Re=Math.max(1,Math.max.apply(null,Me),Math.max.apply(null,Ue)),Be=m(Re),X=Math.max.apply(null,We),me=X>0?m(X):{ticks:[0],niceMax:1},de=function(ke){return L-ke/Be.niceMax*(L-10)},pe=function(ke){return L-ke/me.niceMax*(L-10)},ye=function(ke){return F+ke*tt};w.textAlign="right",w.textBaseline="middle",w.font="11px Inter, system-ui, sans-serif",Be.ticks.forEach(function(ke){var we=de(ke);w.strokeStyle=W,w.lineWidth=1,w.beginPath(),w.moveTo(F,we),w.lineTo(_-j,we),w.stroke(),w.fillStyle=q,ke!==0&&w.fillText(ke>=1e3?(ke/1e3).toFixed(1)+"k":String(ke),F-6,we)}),X>0&&(w.textAlign="left",me.ticks.forEach(function(ke){var we=pe(ke);w.fillStyle=ue,ke!==0&&w.fillText(Ln(ke),_-j+6,we)}));var Ve=he[ze-1].ts,P=he[0].ts,A=Math.max(0,(Ve-P)/6e4),U=[1,2,5,10,15,30,60,120,180,360,720,1440,2880,10080],x=U.find(function(ke){return A/ke<=4})||U[U.length-1],K=function(ke){return ke<60?ke+"m":ke<1440?ke/60+"h":ke/1440+"d"},ee=function(ke){for(var we=0,it=1;it0&&Math.abs(he[Ce].ts-(Ve-te*6e4))>le+1)){var fe=ye(Ce),Ee=te===0?"now":K(te)+" ago",Te=w.measureText(Ee).width,Le=ie===0?"right":Ce===0?"left":"center",Ke=Le==="right"?fe:Le==="left"?fe+Te:fe+Te/2;Ke>se-12||(w.textAlign=Le,w.fillText(Ee,fe,L+6),se=Le==="right"?fe-Te:Le==="left"?fe:fe-Te/2)}}function He(ke,we,it,at){ke.length!==0&&(w.beginPath(),w.moveTo(ye(0),L),ke.forEach(function(yt,lt){var dt=ye(lt),ft=we(yt);if(lt===0)w.lineTo(dt,ft);else{var Lt=(ye(lt-1)+dt)/2;w.bezierCurveTo(Lt,we(ke[lt-1]),Lt,ft,dt,ft)}}),w.lineTo(ye(ke.length-1),L),w.closePath(),w.fillStyle=it,w.fill(),w.beginPath(),ke.forEach(function(yt,lt){var dt=ye(lt),ft=we(yt);if(lt===0)w.moveTo(dt,ft);else{var Lt=(ye(lt-1)+dt)/2;w.bezierCurveTo(Lt,we(ke[lt-1]),Lt,ft,dt,ft)}}),w.strokeStyle=at,w.lineWidth=1.5,w.stroke())}He(Me,de,J,H),He(Ue,de,G,ne),X>0&&(w.beginPath(),We.forEach(function(ke,we){var it=ye(we),at=pe(ke);if(we===0)w.moveTo(it,at);else{var yt=(ye(we-1)+it)/2;w.bezierCurveTo(yt,pe(We[we-1]),yt,at,it,at)}}),w.strokeStyle=ue,w.lineWidth=1,w.setLineDash([4,3]),w.stroke(),w.setLineDash([])),E={pts:he,maxLen:ze,marginLeft:F,step:tt,totalW:_,toX:ye}}var E=null;function S(){var N=document.getElementById("q-throughput-chart");if(!(!N||N._tipBound)){N._tipBound=!0;var w=document.getElementById("q-chart-tooltip"),D=document.getElementById("q-chart-crosshair");N.addEventListener("mousemove",function(O){if(!(!E||!w||!D)){var F=E,j=N.getBoundingClientRect(),oe=O.clientX-j.left,_=Math.round((oe-F.marginLeft)/F.step);if(_<0||_>=F.maxLen){w.style.display="none",D.style.display="none";return}var B=F.pts[_],I=F.pts[F.pts.length-1].ts,L=Math.round((I-B.ts)/6e4),k;if(L<=0)k="now";else if(L<60)k=L+"m ago";else if(L<1440){var q=Math.floor(L/60),W=L%60;k=q+"h"+(W?" "+W+"m":"")+" ago"}else k=Math.round(L/1440)+"d ago";var H='
'+k+'
● completed: '+B.completed+'/min
● failed: '+B.failed+"/min
";if(B.avgMs>0){var J=Ln(B.avgMs);H+='
● avg time: '+J+"
"}w.innerHTML=H;var ne=F.toX(_),G=w.offsetWidth,ue=ne+10;ue+G>F.totalW&&(ue=ne-G-10),w.style.display="block",w.style.left=ue+"px",w.style.top="8px",D.style.display="block",D.style.left=ne+"px"}}),N.addEventListener("mouseleave",function(){w&&(w.style.display="none"),D&&(D.style.display="none")})}}e.watch("metricsPoints",function(){o(S,50)})},ju=function(e,t,s,i){qu(e,t),e.redisCollecting=null,e.redisLoading=!1;let o=0,r=0,u=!1,p=!1;e.redisStatsState="loading";let c=kt();e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.entries=[],e.visible=[],e.available=null,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.historySelected=null,e.historyView="overview";let v=null,g=[];e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=_=>{if(!_)return"";let B=new Date(_).getTime();if(isNaN(B))return _;let I=Math.max(0,Date.now()-B),L=Math.floor(I/1e3);if(L<5)return"just now";if(L<60)return`${L}s ago`;let k=Math.floor(L/60);if(k<60)return`${k}m ago`;let q=Math.floor(k/60);if(q<24)return`${q}h ago`;let W=Math.floor(q/24);return W<7?`${W}d ago`:new Date(_).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})},e.absTime=_=>{if(!_)return"";let B=new Date(_);return isNaN(B.getTime())?_:B.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.absTimeShort=_=>{if(!_)return"";let B=new Date(_);return isNaN(B.getTime())?_:B.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let y=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function m(_,B){let I=_&&(_.httpStatus||_.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return B==="error"?"error":B==="warn"?"warn":"info"}function b(_){_._rawJson=JSON.stringify(_,null,2);let B=(_.raw||[]).find(q=>q&&typeof q=="object"&&!Array.isArray(q));if(B){B.message&&y.test(B.message)?(_.displayMessage=B.message,_.displayContext=_.message):B.code&&y.test(String(B.code))?(_.displayMessage=String(B.code),_.displayContext=_.message):B.name&&B.name!=="AnonymousError"&&B.name!=="Error"?(_.displayMessage=B.name,_.displayContext=B.message||_.message):_.displayMessage=_.message,_._status=B.httpStatus||B.status||null,_._url=B.url||null,_._method=B.method||null,_._repoId=B.repoId||B.detail||null,_._detail=B.detail&&B.detail!==_._repoId?B.detail:null;let q=B.errorStack||B.causeStack?[B.errorType,B.errorStack,B.causeType?"Caused by "+B.causeType:null,B.causeStack].filter(Boolean).join(` +`):typeof B.stack=="string"?B.stack:null;for(var I=[B.cause,B.err].filter(Boolean),L=0;!q&&L{J==null||J===""||I.push([H,J])};for(let H of["service","event","severity","requestId","jobId"])L(H,B&&B[H]);L("name",B&&B.name),L("code",_.displayMessage||B&&B.message),_._bucket&&L("kind",_._bucket),L("httpStatus",B&&B.httpStatus),B&&B.status&&!B.httpStatus&&L("status",B.status),L("module",_.module);let k=B&&B.detail;if(typeof k=="string"){let H=k.trim();if(H[0]==="{"||H[0]==="[")try{k=JSON.parse(k)}catch{}}if(L("detail",k),L("repoId",B&&B.repoId),L("filePath",B&&B.filePath),L("upstreamStatus",B&&B.upstreamStatus),L("upstreamBody",B&&B.upstreamBody),L("url",_._url),L("err",B&&B.err),L("cause",B&&!B.err&&B.cause),L("ts",_.ts),!I.length)return JSON.stringify(_,null,2);let q=I.reduce((H,J)=>Math.max(H,J[0].length),0),W=["{"];return I.forEach(([H,J],ne)=>{let ue=` ${`"${H}":`.padEnd(q+3," ")} `,he=neze===0?We:Ue+We).join(` `)}else typeof J=="number"||typeof J=="boolean"?Me=String(J):Me=JSON.stringify(J);W.push(`${ue}${Me}${he}`)}),W.push("}"),W.join(` -`)}function S(F){let B=[],I="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,k=0,q;for(;q=L.exec(F);)I+=F.slice(k,q.index),k=L.lastIndex,B.push({key:q[1],op:q[2]||"=",val:q[3]});return I+=F.slice(k),{filters:B,free:I.trim().toLowerCase()}}function N(F,B){for(let I of B.filters){let L=(q,W,H)=>{let J=parseFloat(q),ne=parseFloat(W);return H==="="?String(q)===String(W):H==="!="?String(q)!==String(W):H===">="?J>=ne:H==="<="?J<=ne:H===">"?J>ne:H==="<"?JB&&H._bucket!==B?!1:N(H,F)),L=e.query.group;if(L){let H=G=>JSON.stringify(L==="module"?[G.module,G._bucket]:[G.raw?.[0]?.service||"unknown",G.module,G.displayMessage||G.message||"_",G._bucket,G._status]),J=new Map;for(let G of I){let ue=H(G);if(J.has(ue)){let he=J.get(ue);he.count++,he._related.push(G),new Date(G.ts)>new Date(he.ts)&&(he.ts=G.ts,he._url=G._url,he._status=G._status),new Date(G.ts)new Date(ue.ts).getTime()>=ne).length;I=Array.from(J.values())}else I=I.map((H,J)=>(H._key="row:"+J+":"+H.ts,H._related=[H],H._firstSeen=H.ts,H._lastHourCount=0,H.count=1,H));let k=H=>({error:0,warn:1,info:2})[H._bucket]??1;e.query.sort==="count"?I.sort((H,J)=>k(H)-k(J)||J.count-H.count||new Date(J.ts)-new Date(H.ts)):I.sort((H,J)=>k(H)-k(J)||new Date(J.ts)-new Date(H.ts)),e.visible=I;let q=!!(e.query.bucket||(e.query.search||"").trim()),W=!q&&(e.stats?.severity?.error||0)>0&&!I.some(H=>H._bucket==="error")&&e.entries.length<1500;(q&&!I.length||W)&&e.canLoadMore?.()&&!e._autoLoading&&e.entries.length<2500&&(e._autoLoading=!0,D(!0))}function D(F){if(F&&e.redisLoading)return;let B=++o;e.redisLoading=!0;let I=F?e.redisNextOffset||e.entries.length:0,L=F?e.pageSize:Math.max(e.pageSize,e.redisNextOffset||e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:I,limit:L}}).then(k=>{if(p||B!==o)return;e.redisLoading=!1;let q=(k.data.entries||[]).map(b);e.entries=F?e.entries.concat(q):q,e.redisRedacted=(F&&e.redisRedacted||0)+(k.data.redactedEntries||0),e.redisNextOffset=k.data.nextOffset??I+(k.data.entries||[]).length,e.available=!!k.data.available,e.redisCollecting=k.data.redisCollecting!==!1,e.cap=k.data.max||e.cap,e.total=k.data.total||e.entries.length,e._autoLoading=!1,w()},()=>{p||B!==o||(e.redisLoading=!1,e._autoLoading=!1,e.available=!1)})}e.loadMore=()=>D(!0),e.canLoadMore=()=>(e.redisNextOffset||e.entries.length){if(p||B!==r)return;u=!1;let L=I.data||{};e.redisStatsState=L.available===!1?"unavailable":"ready";let k=L.prev24h?Math.round((L.last24h-L.prev24h)/L.prev24h*100):0;e.stats={last24h:L.last24h||0,prev24h:L.prev24h||0,delta:k,severity:L.severity||{error:0,warn:0,info:0},unique:L.unique||{error:0,warn:0,info:0},buckets:L.buckets||[],dropped:L.dropped||0},w()},()=>{!p&&B===r&&(u=!1,e.redisStatsState="unavailable")})}function _(F=!1){(!F||!e.redisLoading)&&D(),O(F)}e.barPx=(F,B)=>{let I=e.stats.buckets||[],L=0,k=0;for(let J of I)L=Math.max(L,(J.error||0)+(J.warn||0)),k=Math.max(k,J.info||0);let q=F[B]||0;if(!q)return 0;if(B==="info")return k?Math.max(2,Math.round(q/k*(L?16:60))):0;let W=(F.error||0)+(F.warn||0),H=Math.round(W/L*44);return Math.max(4,Math.round(q/W*H))},e.bucketTitle=F=>`${new Date(F.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${F.error||0} err \xB7 ${F.warn||0} warn \xB7 ${F.info||0} info`,e.toggle=async(F,B)=>{v=B||document.activeElement,g=e.captureErrorScroll(v),e.historySelected=F,e.historyView="overview",e.expanded={[F._key]:!0},await je(),document.getElementById("history-inspector-title")?.focus({preventScroll:!0}),document.getElementById("history-inspector-title")?.scrollIntoView?.({block:"nearest"})},e.showHistoryTimeline=F=>{if(e.historyView="timeline",e.traceSelection)return;let B=["requestId","jobId"].find(I=>e.logTraceId(e.historySelected,I));B&&e.lookupTrace(B,e.logTraceId(e.historySelected,B),F,e.historySelected)},e.closeHistory=async()=>{let F=e.historySelected?._key;e.historySelected=null,e.expanded={},e.traceSelection&&await e.closeTrace(),await je(),(v?.isConnected?v:[...document.querySelectorAll("[data-history-key]")].find(I=>I.dataset.historyKey===F))?.focus({preventScroll:!0}),e.restoreErrorScroll(g)},e.setBucket=F=>{e.query.bucket=F},e.refreshNow=()=>{e.historySelected=null,e.historyView="overview",e.expanded={},e.traceSelection&&e.closeTrace(),_()},e.clearAll=()=>{confirm("Clear Redis error history? Central logs are unaffected.")&&t.delete("/api/admin/errors").then(()=>e.refreshNow(),F=>console.error(F))},e.exportCsv=()=>{let F=["ts","level","module","displayMessage","_status","_url","_repoId"],B=[F.join(",")];for(let q of e.visible)B.push(F.map(W=>{let H=q[W]==null?"":String(q[W]);return/[",\n]/.test(H)?`"${H.replace(/"/g,'""')}"`:H}).join(","));let I=new Blob([B.join(` -`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(I),k=document.createElement("a");k.href=L,k.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(L)};function j(F){e.copyHint=`${F} copied`,c.timeout(()=>{e.copyHint=""},1500)}e.copyJson=F=>{navigator.clipboard.writeText(F._rawJson).then(()=>j("JSON"))},e.copyCurl=F=>{if(!F._url)return;let I=`curl -X ${F._method||"GET"} '${window.location.origin}${F._url}'`;navigator.clipboard.writeText(I).then(()=>j("curl"))},_();let oe=i(()=>{e.query.autoRefresh&&_(!0)},15e3);e.on("dispose",()=>{p=!0,o++,r++,i.cancel(oe)}),e.watch("query.search",w),e.watch("query.bucket",w),e.watch("query.sort",w),e.watch("query.group",w)},Gu=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(w){e.ovView=w;try{window.history.replaceState(null,"",w==="summary"?window.location.pathname:"#"+w)}catch{}};var o=!1;e.loadCache=function(){if(!o){o=!0;var w=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:w}}).then(function(D){w===e.cacheMinutes&&(e.cacheReport=D.data,e.cacheError=D.data.available?null:D.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){o=!1,w!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(w){return e.cacheTraffic==="all"||w.traffic===e.cacheTraffic})},e.cacheRate=function(w,D){var O=e.cacheRows(),_=function(F){return O.filter(function(B){return B.name===F}).reduce(function(B,I){return B+I[D]},0)},j=_(w+"_hit"),oe=_(w+"_miss");return j+oe?(100*j/(j+oe)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(w){return w.replaceAll("_"," ")},e.cacheP95=function(w){var D=0,O=e.cacheReport?.latencyBucketsMs||[];if(!w.count)return"No samples";if(!w.ms)return"Not timed";for(var _=0;_<=O.length;_++)if(D+=w["b"+_]||0,D>=Math.ceil(w.count*.95))return _ 10\u202Fs";return"No samples"},e.healthAlert=function(){let w=e.data&&e.data.system||{},D=[["Memory",w.memPercent],["Disk",w.diskPercent]].filter(([,_])=>_>90);return D.length?D.map(([_,j])=>_+" is at "+j+"%").join(" and ")+". New anonymizations may fail until "+(D.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(w){return w==null?"":Ln(w)},e.latencyBound=function(w,D){return w.count?w[D]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(w[D]):"No samples"},e.firstByteBound=function(w){return e.latencyBound({count:w.firstByteCount,p95UpperMs:w.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(w){return Math.max(0,Math.round((Date.now()-w.sampledAt)/1e3))},e.peakRss=function(w){return(e.performance.runtimeSeries||[]).filter(function(D){return D.instance===w.instance}).reduce(function(D,O){return Math.max(D,O.rss)},w.memory.rss)},e.performanceWarning=function(w){return e.sampleAge(w)>45||w.droppedBatches||w.droppedMetrics||w.sockets?.closeWait>0||w.eventLoop?.p95Ms>100||w.memoryLimitBytes&&w.memory.rss>w.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var w=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==w&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:w}}).then(function(D){w===e.performanceMinutes&&(e.performance=D.data,e.performanceError=D.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){w===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,w!==e.performanceMinutes&&e.loadPerformance()}))};function u(w){if(w==null)return"\u2014";for(var D=["B","KB","MB","GB","TB"],O=0,_=w;_>=1024&&O0?1:0).replace(/\.0$/,"")+" "+D[O]}e.humanBytes=u;function p(w){if(!w)return"\u2014";var D=Math.floor(w/86400),O=Math.floor(w%86400/3600),_=Math.floor(w%3600/60);return D>0?D+"d "+(O<10?"0":"")+O+"h":O>0?O+"h "+(_<10?"0":"")+_+"m":_+"m"}e.humanDuration=p;function c(w){return w==null?"\u2014":w>=1e6?(w/1e6).toFixed(1)+"M":w>=1e3?(w/1e3).toFixed(1)+"K":String(w)}e.humanNum=c,e.queueTotal=function(w){return w?(w.waiting||0)+(w.active||0)+(w.delayed||0)+(w.failed||0):0},e.statusCount=function(w){if(!e.data||!e.data.repos)return 0;for(var D=e.data.repos.statusBreakdown||[],O=0;O0,zero:!_,title:String(j.getHours()).padStart(2,"0")+":00 \xB7 "+(O.error||0)+" 5xx, "+(O.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var w=e.errorStats&&e.errorStats.buckets||[];return w.reduce(function(D,O){return Math.max(D,(O.error||0)+(O.warn||0))},0)};function v(w){var D=w||[];return D.map(function(O,_){var j=D[_-1]||{},oe=Object.assign({},O);return oe.dailyRepositories=_?Math.max(0,(O.nbRepositories||0)-(j.nbRepositories||0)):0,oe.dailyUsers=_?Math.max(0,(O.nbUsers||0)-(j.nbUsers||0)):0,oe.dailyPageViews=_?Math.max(0,(O.nbPageViews||0)-(j.nbPageViews||0)):0,oe})}function g(w){var D=w&&w.length?w[w.length-1]:{};return{repositories:D.dailyRepositories||0,users:D.dailyUsers||0,pageViews:D.dailyPageViews||0}}function y(w,D){if(!w||!w.length)return w;var O=new Date(w[w.length-1].date);if(isNaN(O))return w;var _={};w.forEach(function(I){_[new Date(I.date).toISOString().slice(0,10)]=I});for(var j=[],oe=D-1;oe>=0;oe--){var F=new Date(O.getTime()-oe*864e5),B=F.toISOString().slice(0,10);j.push(_[B]||{date:F.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return j}var m={};e.historyMax=function(w){return m[w]||0};var b={};e.axisMax=function(w){var D=m[w]||0;if(D<=2)return 2;if(D<=10)return Math.ceil(D/2)*2;var O=Math.pow(10,Math.floor(Math.log10(D)));return Math.ceil(D/O)*O},e.historyBarH=function(w,D){return!w||!m[D]||!w[D]?0:Math.max(1,Math.round(w[D]/e.axisMax(D)*140))},e.historyRange=function(w){return{min:b[w],max:m[w]}};var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(w){if(!w||!w.date)return"";var D=new Date(w.date);return E[D.getUTCMonth()]+" "+D.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(w){return w&&w._empty})},e.firstDataIndex=function(){for(var w=e.data&&e.data.history||[],D=0;D=O)return{lo:B,hi:B+2*oe[F]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(w){var D=e.data&&e.data.history||[],O=e.userAxis(),_=m.nbUsers?O.hi-O.lo:0,j=e.firstDataIndex();if(!_||j>=D.length)return"";for(var oe=function(L){return(140-((L||0)-O.lo)/_*140).toFixed(2)},F=w?"M"+j+" 140":"",B=j;Bm[O])&&(m[O]=D[O]),(b[O]==null||D[O] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(o=>{o.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let o=s.length-1;o>=0&&e.scrollWidth>e.clientWidth+1;o--)if(s[o].setAttribute("data-meta-hidden",""),i.unshift(s[o]),t){let r=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=r.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+r.join(", "))}e.classList.remove("is-fitting")}function Wu(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,o=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Cg),i.takeRecords())},r=()=>{!s&&i&&(s=!0,e.timeout(o,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&r()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),eo(()=>{i.disconnect(),i=null}),t(window,"resize",r),document.fonts?.ready&&document.fonts.ready.then(r),r()}var Sg=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],$u=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository purchases"},{id:"conference",label:"Conferences"}],Eg={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function Fu(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Sg.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var Ku=function(e,t,s){let i=kt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=$u,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let o=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(m=>m.id===o)?o:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(m=>m.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=m=>Fu(m),e.moneyText=(m,b="\u2014")=>Fu(m).join(" \xB7 ")||b,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=m=>((e.summary?.plans||[]).find(b=>b.planId===m)||{}).name||Eg[m]||m,e.bucketTotal=m=>m?m.subscription+m.repository+m.conference:0,e.chartMax=()=>{let m=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(m<=4)return 4;let b=Math.pow(10,Math.floor(Math.log10(m)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(E=>E*b).find(E=>E>=m&&E%2===0)||10*b},e.segmentPct=(m,b)=>m&&m[b]?m[b]/e.chartMax()*100:0,e.familyTotal=m=>(e.summary?.series||[]).reduce((b,E)=>b+E[m],0),e.bucketLabel=m=>{if(!m)return"";let b=new Date(m.date),E={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?b.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||b.getUTCFullYear()!==new Date().getUTCFullYear())&&(E.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+b.toLocaleDateString(void 0,E))},e.bucketTip=m=>{let b=e.bucketTotal(m);if(!b)return e.bucketLabel(m)+": no sales";let E=$u.filter(S=>m[S.id]).map(S=>m[S.id]+" "+S.label.toLowerCase());return e.bucketLabel(m)+": "+b+(b===1?" sale":" sales")+" ("+E.join(", ")+")"},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((m,b)=>m+e.bucketTotal(b),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(m=>m.active||m.allTimeSales||m.sales),e.planTotals=()=>{let m=b=>(e.summary?.plans||[]).reduce((E,S)=>E+(S[b]||0),0);return{active:m("active"),sales:m("sales"),allTimeSales:m("allTimeSales")}},e.webhookState=()=>{let m=e.summary?.webhooks;return m?m.failed||m.reconciliationFailed?"bad":m.oldestPendingSeconds>900||m.unreviewedRevocations?"warn":"ok":"ok"},e.age=m=>m?Ln(m*1e3):"\u2014";let r=0;e.loadSummary=()=>{let m=++r;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(b=>{if(m!==r)return;e.summaryLoading=!1;let E=b.data;if(!E||!E.subscriptions||!E.sales||!Array.isArray(E.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=E},b=>{m===r&&(e.summaryLoading=!1,e.summaryError=b&&b.data&&b.data.error||"Could not load billing figures.")})},e.setPeriod=m=>{if(e.period!==m){e.period=m;try{localStorage.setItem("admin.billing.period",m)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",sort:"purchasedAt",direction:"desc"};let u=s.search();u.search&&(e.query.search=u.search),e.stateView=()=>e.query.state||"all",e.setStateView=m=>{e.query.state=m==="all"?"":m,e.query.page=1},e.stateCount=m=>m==="all"?["active","expired","revoked"].reduce((b,E)=>b+(e.stateCounts[E]||0),0):e.stateCounts[m]||0,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let p=()=>{let m=[];e.query.plan&&m.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&m.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.chips=m};e.clearFilter=m=>{e.query[m]="",e.query.page=1},e.filterPlan=m=>{Object.assign(e.query,{plan:m,page:1});let b=document.getElementById("bl-grants");b&&b.scrollIntoView&&b.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state),e.statusText=m=>(m.status||"unknown").replace(/_/g," "),e.revocationText=m=>m==="dispute"?"Disputed":m==="full_refund"?"Refunded":"Revoked",e.scopeHref=m=>m?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(m.id):m?.kind==="conference"?"/conference/"+encodeURIComponent(m.id):null;let c=0;function v(){let m=++c;e.grantsError=null;let b=Object.fromEntries(Object.entries(e.query).filter(([,E])=>E!==""&&E!=null));t.get("/api/admin/billing/grants",{params:b}).then(E=>{m===c&&(e.total=E.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=E.data?.results||[],e.stateCounts=E.data.stateCounts||{},e.statuses=E.data.statuses||[])},E=>{m===c&&(e.grantsError=E&&E.data&&E.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=v,e.loadSummary(),v(),p();let g=null,y=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let m=JSON.stringify({...e.query,page:0});if(m!==y&&e.query.page!==1){y=m,e.query.page=1;return}y=m,i.timeout.cancel(g),g=i.timeout(v,300),p()},!0)},Yu=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,o=i?new URLSearchParams(i.location.search):null,r=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(o?.get("state"))?o.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(o?.get("kind"))?o.get("kind"):"",e.emailPeriod=r.includes(o?.get("period"))?o.get("period"):"7d",e.emailSearch=o?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=O=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[O]||O,e.emailKindLabel=O=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[O]||O,e.emailTime=O=>O?new Date(O).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=O=>{if(!O)return"Not recorded";let _=new Date(O);return _.toLocaleString(void 0,{...e.emailPeriod==="all"||_.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=O=>O.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":O.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":O.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[O.httpStatus]||(O.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=O=>{e.selectedEmailId=e.selectedEmailId===O._id?null:O._id,e.emailCopyMessage="",e.emailCopiedValue=null};let c=!1,v=0,g=0,y="",m="",b=!1,E=null;e.copyEmail=async O=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(O)),c||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(O))}catch{c||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let S=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),N=()=>{if(i)try{let O=new URL(i.location.href);for(let[_,j]of Object.entries({...S(),state:e.emailState}))j?O.searchParams.set(_,j):O.searchParams.delete(_);i.history.replaceState(null,"",O.pathname+O.search+O.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=O=>u.reduce((_,j)=>_+(Number(O[j])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((O,_)=>O+e.emailDayTotal(_),0),e.jumpToEmailHistory=()=>{let O=i?.document?.querySelector("#email-history-title");O&&(O.focus({preventScroll:!0}),O.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=O=>{let _=typeof O=="string"?O:O?.date;if(!_)return"";let j=new Date(_+"T12:00:00Z");return Number.isNaN(j.getTime())?"":j.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let w=O=>{e.emailPage=O,e.selectedEmailId=null,E=null;let _=(O-1)*25+1,j=Math.min(O*25,e.emailRows.length);e.emailAnnouncement=`Page ${O}. Showing attempts ${_} to ${j}.`;let oe=i?.document?.querySelector("#email-history-title");oe&&(oe.setAttribute("tabindex","-1"),oe.focus({preventScroll:!0}),oe.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let O=JSON.stringify(S());O!==m&&(e.emailSummary=null),m=O;let _=++g;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let j=await t.get("/api/admin/emails/summary",{params:S()});_===g&&(e.emailSummary=j.data)}catch{_===g&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{_===g&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(b),e.loadEmails=async(O=!1)=>{let _=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),j=_!==y;if(y=_,j&&(O=!1),O&&(e.emailLoading||!e.emailNextCursor))return;let oe=++v;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=O?"Loading older emails.":"Loading email history.",j&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,E=null),O||(E=null),N();try{let F=await t.get("/api/admin/emails",{params:{...S(),state:e.emailState||void 0,before:O?e.emailNextCursor:void 0}});return oe!==v?void 0:(e.emailRows=O?e.emailRows.concat(F.data.entries):F.data.entries,e.emailNextCursor=F.data.nextCursor,O||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,O&&E&&e.emailRows.length>(E-1)*25&&w(E),!0)}catch{oe===v&&(b=O,e.emailError=O?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{oe===v&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&w(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let O=e.emailPage+1,_=y;e.emailRows.length<=(O-1)*25&&e.emailNextCursor&&(E=O,await e.loadEmails(!0)),!c&&_===y&&e.emailPage!==O&&e.emailRows.length>(O-1)*25&&w(O)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=O=>(e.emailState=u.includes(O)?O:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let D;i?.setTimeout&&(D=i.setTimeout(()=>{let O=i.document?.querySelector(".emails-page .admin-nav"),_=O?.querySelector('[aria-current="page"]');O&&_&&(O.scrollLeft=Math.max(0,_.offsetLeft-O.offsetLeft-(O.clientWidth-_.offsetWidth)/2))},0)),e.on("dispose",()=>{c=!0,v++,g++,D!=null&&i.clearTimeout(D)}),e.refreshEmails()};var ka=(e,t,s)=>{let i=e instanceof RegExp?Ju(e,s):e,o=t instanceof RegExp?Ju(t,s):t,r=i!==null&&o!=null&&Rg(i,o,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+i.length,r[1]),post:s.slice(r[1]+o.length)}},Ju=(e,t)=>{let s=t.match(e);return s?s[0]:null},Rg=(e,t,s)=>{let i,o,r,u,p,c=s.indexOf(e),v=s.indexOf(t,c+1),g=c;if(c>=0&&v>0){if(e===t)return[c,v];for(i=[],r=s.length;g>=0&&!p;){if(g===c)i.push(g),c=s.indexOf(e,g+1);else if(i.length===1){let y=i.pop();y!==void 0&&(p=[y,v])}else o=i.pop(),o!==void 0&&o=0?c:v}i.length&&u!==void 0&&(p=[r,u])}return p};var Xu="\0SLASH"+Math.random()+"\0",Qu="\0OPEN"+Math.random()+"\0",Na="\0CLOSE"+Math.random()+"\0",Zu="\0COMMA"+Math.random()+"\0",xu="\0PERIOD"+Math.random()+"\0",Tg=new RegExp(Xu,"g"),Dg=new RegExp(Qu,"g"),Pg=new RegExp(Na,"g"),Ag=new RegExp(Zu,"g"),Ig=new RegExp(xu,"g"),Og=/\\\\/g,Mg=/\\{/g,Vg=/\\}/g,Lg=/\\,/g,qg=/\\\./g,$g=1e5,Fg=4e6,_g=1e3,Ug=1e3;function Ca(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Bg(e){return e.replace(Og,Xu).replace(Mg,Qu).replace(Vg,Na).replace(Lg,Zu).replace(qg,xu)}function zg(e){return e.replace(Tg,"\\").replace(Dg,"{").replace(Pg,"}").replace(Ag,",").replace(Ig,".")}function Sa(e,t){for(let s=0;s=t}function $s(e,t,s,i,o,r){let u=[],p=0;for(let c=0;c=i)return u;let g=e[c]+t+s[v];if(!(r&&!g)){if(p+g.length>o)return u;u.push(g),p+=g.length}}return u}function Yg(e,t,s,i){let o=e.split(/\.\./),r=[];if(o[0]===void 0||o[1]===void 0)return r;let u=Ca(o[0]),p=Ca(o[1]),c=Math.max(o[0].length,o[1].length),v=o.length===3&&o[2]!==void 0?Math.max(Math.abs(Ca(o[2])),1):1,g=Wg;p0){let w=new Array(N+1).join("0");E<0?S="-"+w+S.slice(1):S=w+S}}if(b+S.length>i)break;r.push(S),b+=S.length}return r}function Ea(e,t,s,i,o,r,u){if(o>i)return[e];let p=[""],c=0,v=!1,g=!0;for(;;){let y=ka("{","}",e);if(!y)return $s(p,e,[""],t,s,v);let m=y.pre;if(/\$$/.test(m)){if(p=$s(p,m+"{"+y.body+"}",[""],t,s,v&&!y.post.length),g=!1,!y.post.length)break;e=y.post;continue}let b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),S=b||E,N=y.body.indexOf(",")>=0;if(!S&&!N){if(c=t||_+B.length>s)break e;w.push(B),_+=B.length}}}}if(p=$s(p,m,w,t,s,v&&!y.post.length),!y.post.length)break;e=y.post}return p}var Jg={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},Fs=e=>e.replace(/[[\]\\-]/g,"\\$&"),Ra=/$./,tc=(e,t,s=!1,i)=>{let o=w=>{let D=i?w.normalize(i):w;return[...D].length===1?D:w},r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let u=[],p=[],c=r+1,v=!1,g=!1,y=!1,m=r,b="";e:for(;cb.codePointAt(0)?u.push(Fs(b)+"-"+Fs(D)):D===b&&u.push(Fs(D)),b="",c+=w.length;continue}if(e.startsWith("-]",c+w.length)){u.push(Fs(D+"-")),c+=w.length+1;continue}if(e.startsWith("-",c+w.length)){b=D,c+=w.length+1;continue}u.push(Fs(D)),c+=w.length}if(m({t:"lit",ch:e}),Qg=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),ic=e=>new RegExp(`^${Qg(e)}$`,"iu"),Qi=new Map,rc=e=>{let t=Qi.get(e);return t||(t=ic(e),Qi.size>=1e3&&Qi.clear(),Qi.set(e,t)),t},Ma=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},Zg=(e,t,s,i)=>{let o=[];for(let r=0;r{let t=new Map,s=[];return e.forEach((i,o)=>{i.t==="open"?s.push(o):i.t==="close"&&s.length&&t.set(s.pop(),o)}),t},ac=(e,t,s,i,o)=>{let r=[],u=[r];for(let p=s;p{let s=[],i="",o=()=>{for(let r of i.normalize(t))s.push(co(r));i=""};for(let r of e){if(r.t==="lit"){i+=r.ch;continue}o(),s.push(r.t==="ext"?{...r,alts:r.alts.map(u=>lc(u,t))}:r)}return o(),s},ev=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),o=(p,c)=>p.reduceRight((v,g)=>r(g,v),c),r=(p,c)=>{switch(p.t){case"lit":let m=t?rc(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:m,next:c};case"any":case"star":return{t:p.t,id:s++,next:c};case"class":return{t:"class",id:s++,re:p.re,next:c}}let v=m=>p.alts.map(b=>o(b,m));switch(p.type){case"@":return i(v(c));case"?":return i([c,...v(c)]);case"!":return{t:"neg",id:s++,sub:i(v(Ta)),next:c}}let g=i([]),y=i(v(g));return g.out.push(c,y),p.type==="*"?g:y};return[o(e,Ta),s]},tv=e=>{let t=[],s=new Set,i=r=>r.t==="match"?"match":String(r.id),o=(r,u)=>{if(r.t==="match"||s.has(r))return;s.add(r);let p=c=>t.push(`${u}${r.id}: ${c}`);switch(r.t){case"split":p(`split -> ${r.out.map(i).join(", ")}`);for(let c of r.out)o(c,u);return;case"neg":return p(`!(${i(r.sub)}) -> ${i(r.next)}`),o(r.sub,u+" "),o(r.next,u);case"lit":p(`${JSON.stringify(r.ch)} -> ${i(r.next)}`);break;case"class":p(`${r.re} -> ${i(r.next)}`);break;default:p(`${r.t==="any"?"?":"*"} -> ${i(r.next)}`)}o(r.next,u)};return o(e,""),[`start -> ${i(e)}`,...t].join(` -`)},Da=class{constructor(t){et(this,"gen");et(this,"threads",[]);et(this,"match",!1);et(this,"runs",[]);et(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},dc=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&dc(i.state,s.state))),nc=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),po,Bn,Pa,Aa,Us=class{constructor(t,s,i){qe(this,Bn);et(this,"dots");et(this,"dotStart");qe(this,po);this.dots=t,this.dotStart=s,_e(this,po,i)}state(){return new Da(++re(this,po).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Ta.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!$e(this,Bn,Pa).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!$e(this,Bn,Pa).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;$e(this,Bn,Aa).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:$e(this,Bn,Aa).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&dc(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":Ma(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};po=new WeakMap,Bn=new WeakSet,Pa=function(t,s){let{seen:i}=re(this,po);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Aa=function(t,s){let{has:i}=re(this,po);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var uc=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${uc(i.state)})`);return`${t}|${s.sort().join("|")}`},nv=1<<18,zo,Ho,qn,fo,$n,Fn,_n,on,Oa,xi,cc,Ia=class{constructor(t,s){qe(this,on);qe(this,zo);qe(this,Ho,new Map);qe(this,qn,0);qe(this,fo);qe(this,$n);qe(this,Fn);qe(this,_n);_e(this,zo,t),_e(this,Fn,new Us(!1,!1,s)),_e(this,_n,new Us(!1,!0,s))}start(t){if(t){if(re(this,$n))return re(this,$n);let i=re(this,_n).state();return re(this,_n).add(i,re(this,zo),0,!0),_e(this,$n,$e(this,on,Oa).call(this,re(this,_n).done(i)))}if(re(this,fo))return re(this,fo);let s=re(this,Fn).state();return re(this,Fn).add(s,re(this,zo),0,!0),_e(this,fo,$e(this,on,xi).call(this,re(this,Fn).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===re(this,$n)?$e(this,on,xi).call(this,re(this,_n).step(t.state,s,0,!0)):$e(this,on,xi).call(this,re(this,Fn).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),_e(this,qn,re(this,qn)+128)),t.ascii[i]=r):t.next.set(s,r),nl(this,qn)._++,r}};zo=new WeakMap,Ho=new WeakMap,qn=new WeakMap,fo=new WeakMap,$n=new WeakMap,Fn=new WeakMap,_n=new WeakMap,on=new WeakSet,Oa=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},xi=function(t){let s=uc(t),i=re(this,Ho).get(s);if(i)return i;re(this,qn)>nv&&$e(this,on,cc).call(this);let o=$e(this,on,Oa).call(this,t);return re(this,Ho).set(s,o),_e(this,qn,re(this,qn)+(s.length+1)),o},cc=function(){re(this,Ho).clear(),_e(this,qn,0),_e(this,fo,void 0),_e(this,$n,void 0)};var ov=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},sv=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r{let t=0,s=0;for(let i of e){let[o,r]=iv(i);t+=o,s+=r}return[t,s]},iv=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(pc),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},oc=(e,t,s)=>{for(let i=0;iav.test(e)?[...e]:e,sc=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},Un,jo,mo,er,ho,zs,tr,go,Hs,js,Gs,Tn,vn,Go,Wo,Ws,nr,nn,vo,_s,Bs=class{constructor(t,s={}){qe(this,vo);et(this,"pattern");et(this,"options");qe(this,Un);qe(this,jo);qe(this,mo);qe(this,er);qe(this,ho);qe(this,zs,!1);qe(this,tr);qe(this,go);qe(this,Hs,!1);qe(this,js,0);qe(this,Gs,1/0);qe(this,Tn,[]);qe(this,vn,[]);qe(this,Go);qe(this,Wo);qe(this,Ws,!1);qe(this,nr);qe(this,nn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:o=!1,normalize:r}=s;_e(this,nn,r===!0?"NFC":r||void 0);let u=/^[?*+@]\(\)$/.test(t),p=Zg(t,i,o||u,re(this,nn)),[c]=ac(p,xg(p),0,p.length,!0);re(this,nn)&&(c=lc(c,re(this,nn)));let[v,g]=ev(c,i);if(_e(this,Un,v),_e(this,jo,g),c.every(y=>y.t==="lit"))_e(this,ho,c.map(y=>y.ch).join("")),_e(this,zs,i);else{let y=E=>E.t!=="lit"?void 0:i?{ch:E.ch,re:rc(E.ch)}:{ch:E.ch};for(let E of c){let S=y(E);if(!S)break;re(this,Tn).push(S)}for(let E=c.length-1;E>=0;E--){let S=y(c[E]);if(!S)break;re(this,vn).unshift(S)}_e(this,Ws,!!(re(this,Tn).length||re(this,vn).length)),i||(_e(this,Go,re(this,Tn).map(E=>E.ch).join("")),_e(this,Wo,re(this,vn).map(E=>E.ch).join(""))),_e(this,go,ov(re(this,Un))?.slice(re(this,Tn).length,-re(this,vn).length||void 0)),_e(this,Hs,!!re(this,go)?.every(E=>E.t==="star"||E.t==="any"));let[m,b]=pc(c);_e(this,js,m),_e(this,Gs,b)}}test(t){return re(this,nn)?(sc(t),$e(this,vo,_s).call(this,t.normalize(re(this,nn)))):rv.test(t)?(sc(t),$e(this,vo,_s).call(this,t,[...t])):$e(this,vo,_s).call(this,t,t)}testUnchecked(t){return $e(this,vo,_s).call(this,re(this,nn)?t.normalize(re(this,nn)):t)}toString(){return tv(re(this,Un))}};Un=new WeakMap,jo=new WeakMap,mo=new WeakMap,er=new WeakMap,ho=new WeakMap,zs=new WeakMap,tr=new WeakMap,go=new WeakMap,Hs=new WeakMap,js=new WeakMap,Gs=new WeakMap,Tn=new WeakMap,vn=new WeakMap,Go=new WeakMap,Wo=new WeakMap,Ws=new WeakMap,nr=new WeakMap,nn=new WeakMap,vo=new WeakSet,_s=function(t,s){if(re(this,ho)!==void 0)return re(this,zs)?(re(this,tr)??_e(this,tr,ic(re(this,ho)))).test(t):t===re(this,ho);let i=re(this,js),o=re(this,Gs);if(s===void 0){let g=t.length,y=g+1>>1;if(go)return!1;(yo)&&(s=Zi(t))}if(s!==void 0&&(s.lengtho))return!1;let r=re(this,Tn).length;if(re(this,Ws))if(re(this,Go)!==void 0&&re(this,Wo)!==void 0){if(!t.startsWith(re(this,Go))||!t.endsWith(re(this,Wo)))return!1}else{s??(s=Zi(t));let g=s.length-re(this,vn).length;if(!oc(re(this,Tn),s,0)||!oc(re(this,vn),s,g))return!1}let u=!this.options.dot&&t.startsWith(".");if(re(this,go)){if(t==="."||t===".."||u&&!r)return!1;if(re(this,Hs))return!0;s??(s=Zi(t));let g=s.length-re(this,vn).length;return sv(re(this,go),s,r,g)}if(s??(s=Zi(t)),t==="."||t===".."){re(this,mo)??_e(this,mo,nc(re(this,jo)));let g=re(this,er)??_e(this,er,new Us(!0,!1,re(this,mo))),y=g.state();g.add(y,re(this,Un),0,!0);let m=g.done(y);for(let b=0;b{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var zn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var yo=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var zt=(e,t,s={})=>(Ks(t),!s.nocomment&&t.charAt(0)==="#"?!1:dv(t,s).match(e)),Ko=new Map,lv=256,dv=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=Ko.get(s);return i?Ko.delete(s):(i=new bo(e,{...t}),Ko.size>=lv&&Ko.delete(Ko.keys().next().value)),Ko.set(s,i),i},yc=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",fc={win32:{sep:"\\"},posix:{sep:"/"}},uv=yc==="win32"?fc.win32.sep:fc.posix.sep;zt.sep=uv;var vt=Symbol("globstar **");zt.GLOBSTAR=vt;var cv=(e,t={})=>s=>zt(s,e,t);zt.filter=cv;var Dn=(e,t={})=>Object.assign({},e,t),pv=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return zt;let t=zt;return Object.assign((i,o,r={})=>t(i,o,Dn(e,r)),{Minimatch:class extends t.Minimatch{constructor(o,r={}){super(o,Dn(e,r))}static defaults(o){return t.defaults(Dn(e,o)).Minimatch}},unescape:(i,o={})=>t.unescape(i,Dn(e,o)),escape:(i,o={})=>t.escape(i,Dn(e,o)),filter:(i,o={})=>t.filter(i,Dn(e,o)),defaults:i=>t.defaults(Dn(e,i)),braceExpand:(i,o={})=>t.braceExpand(i,Dn(e,o)),match:(i,o,r={})=>t.match(i,o,Dn(e,r)),sep:t.sep,GLOBSTAR:vt})};zt.defaults=pv;var bc=(e,t={})=>(Ks(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ec(e,{max:t.braceExpandMax}));zt.braceExpand=bc;var fv=(e,t,s={})=>{let i=new bo(t,s);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};zt.match=fv;var mc=/[?*]|[+@!]\(.*?\)|\[|\]/,wc=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),gc=(e,t,s,i,o)=>Hn(e,t)?s:i!==void 0&&Hn(e,i)?o:-1,Fa=e=>e==="."||e==="..",La=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),sr=e=>typeof e=="string"&&/^unc$/i.test(e),qa=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:sr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==vt&&i!==void 0&&i!==""&&i!==vt?t:-1},or=(e,t)=>!Fa(e)&&(t||!e.startsWith(".")),Ys=(e,t,s,i,o)=>{for(let r=t;r=s||rr(e.charCodeAt(p),o))return!0}let u=_a(e,r,o);if(u===-1)return!1;for(r=u+1;rt==="/"?e===47:t==="\\"?e===92:e===47||e===92,_a=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),o=e.indexOf("\\",t);return i===-1?o:o===-1?i:Math.min(i,o)},vc=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),$a={},jn,Jo,Gn,Pn,Xo,Qo,Wn,Xs,Zo,Qs,Fe,ir,Js,kc,Cc,Sc,Ec,Nc,Rc,Ua,Tc,Dc,Ba,Yo,za,bo=class{constructor(t,s={}){qe(this,Fe);et(this,"options");et(this,"set");et(this,"pattern");et(this,"windowsPathsNoEscape");et(this,"nonegate");et(this,"negate");et(this,"comment");et(this,"empty");et(this,"preserveMultipleSlashes");et(this,"partial");et(this,"globSet");et(this,"globParts");et(this,"nocase");et(this,"isWindows");et(this,"platform");et(this,"windowsNoMagicRoot");et(this,"maxGlobstarRecursion");qe(this,jn);qe(this,Jo);qe(this,Gn);qe(this,Pn);qe(this,Xo,[]);qe(this,Qo,[]);qe(this,Wn,[]);qe(this,Xs,new Map);qe(this,Zo,!1);qe(this,Qs,new WeakMap);Ks(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||yc,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],_e(this,jn,!this.preserveMultipleSlashes),_e(this,Gn,(s.optimizationLevel??1)>=2);let o=s.normalize;_e(this,Pn,o===!0?"NFC":o||void 0),this.make();let r=this.set.map(u=>$e(this,Fe,Js).call(this,u));_e(this,Wn,this.set.map((u,p)=>re(this,jn)&&u.length-1>r[p])),_e(this,Xo,this.set.map((u,p)=>{let c=re(this,Wn)[p]?u.length-1:u.length,v=u.slice(r[p]+1,c).filter(g=>typeof g=="string"&&!!g);return[...new Set(v)]})),_e(this,Jo,re(this,Xo).some(u=>u.length)),_e(this,Qo,this.set.map((u,p)=>{let[c,v,g]=u;if(re(this,Wn)[p]&&u.length===2&&c===vt&&v!==vt)return"tail";if(re(this,Wn)[p]&&s.matchBase&&u.length===1&&c!==vt&&c!=="")return"base";if(!(!re(this,jn)||r[p]!==-1)){if(u.length===3&&c===vt&&g===vt&&v!==vt&&v!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&v===vt&&c!==vt&&c!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(r=>$e(this,Fe,za).call(this,r));this.globParts=this.preprocess(i),_e(this,Zo,!0);let o=this.globParts.map((r,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&sr(r[3])?6:4,v=r[0]===""&&r[1]===""&&(r[2]==="?"||!mc.test(r[2]))&&r.slice(3,c).every(y=>!mc.test(y)),g=/^[a-z]:/i.test(r[0]);if(v)return[...r.slice(0,c).map(y=>$e(this,Fe,ir).call(this,y)),...r.slice(c).map(y=>this.parse(y))];if(g)return[$e(this,Fe,ir).call(this,r[0]),...r.slice(1).map(y=>this.parse(y))]}return r.map(c=>this.parse(c))});if(this.set=o.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof Bs||u[i]===$a)||!hv(this.globParts[p][i]))return;let c=[...this.globParts[p]];c[i]="";let v=`${u.length}/${c.join("/")}`,g=o.get(v);g?g.push(p):o.set(v,[p])});let r=new Set;for(let u of o.values()){if(u.length<2)continue;let[p,...c]=u,g=`@(${u.map(y=>this.globParts[y][i]).join("|")})`;this.globParts[p][i]=g,this.set[p][i]=this.parse(g);for(let y of c)r.add(y)}r.size&&(t=!0,this.set=this.set.filter((u,p)=>!r.has(p)),this.globParts=this.globParts.filter((u,p)=>!r.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let o=0;o=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let o=i;for(;s[o+1]==="**";)o++;o!==i&&s.splice(i,o-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=$e(this,Fe,Js).call(this,s)+1;return s=s.reduce((o,r)=>{let u=o[o.length-1];return r==="**"&&u==="**"?o:r===".."&&o.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(r),o)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let o of t){let r=-1;for(;(r=o.indexOf("**",r+1))!==-1;){let c=r;for(;o[c+1]==="**";)c++;c>r&&o.splice(r+1,c-r);let v=o[r+1],g=o[r+2],y=o[r+3];if(v!==".."||!g||g==="."||g===".."||!y||y==="."||y===".."||t.length>=s)continue;i=!0,o.splice(r,1);let m=o.slice(0);m[r]="**",t.push(m),r--}if(!this.preserveMultipleSlashes){for(let c=1;c1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let o=0,r=0,u=[],p="";for(;o=0;v--)c=r[v];for(let v=0;v=0){let w=S;for(;w>0&&rr(t.charCodeAt(w-1),s);)w--;p=w===0?0:vc(t,w-1,s)+1,u=t.slice(p,w)}let N=re(this,Gn)&&(Fa(o)||o===""&&u!==void 0&&Fa(u));i=N?-1:1,m=!N}let b=-1;if(m&&typeof y=="string"&&(b=gc(y,o,r,u,p),b===-1))continue;if(re(this,Jo)){for(let S of re(this,Xo)[v])if(!t.includes(S))continue e}if(m&&typeof y=="object"&&(b=gc(y,o,r,u,p),b===-1))continue;let E=re(this,Qo)[v];if(E==="base"&&m)return"yes";if(E==="tail"&&m){if(re(this,Gn)&&Ys(t,0,b,!0,s))return"maybe";if(!Ys(t,0,b,c,s))return"yes";continue}if(E==="mid"||E==="head"){let S=$e(this,Fe,Sc).call(this,t,g,E==="head",c,s);if(S!=="no")return S;continue}return"maybe"}return"no"},Cc=function(t,s,i){let o=!!this.options.dot,r=t.length;if(i==="head"){if(r<2||!Hn(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,c)))&&!Ys(t,v,t.length,o,r))return"yes";if(i||Ys(t,p,v,o,r))return"no";p=v}return"no"},Ec=function(t){let s=Va;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===re(this,Pn)?s:void 0},Nc=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,o=$e(this,Fe,za).call(this,s?t.split("\\").join("/"):t),r=re(this,Pn);return r&&(o=o.map(u=>u.normalize(r))),Va={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:r,parts:o},Va},Rc=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let y=t.length-c.length;if($e(this,Fe,Yo).call(this,t,c,i,y,0))g=c.length;else{if(t[t.length-1]!==""||o+c.length===t.length||(y--,!$e(this,Fe,Yo).call(this,t,c,i,y,0)))return!1;g=c.length+1}}if(!p.length){let y=!!g;for(let m=o;m{w[1]=E-S[D]});let N={head:v,body:g,tail:y,segments:m};return o[r]=N,N},Ba=function(t,s,i,o,r,u,p,c,v){let g=s[r];if(!g){if(u)return o>=i||o===i-1&&t[o]==="";for(let E=o;Ee.lastIndexOf(t)===s)}function ja(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:o,directoryOnly:r,body:u}=gv(s);return{negated:i,directoryOnly:r,matcher:new bo(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!o&&!u.includes("/")})}});return(s,i=!1)=>{let o=(s||"").replace(/^\/+/,"");if(!o)return!1;let r=o.split("/"),u=r.slice(0,-1).map((c,v)=>r.slice(0,v+1).join("/")),p=i;for(let c of t){if(c.negated?!p:p)continue;(c.directoryOnly?u:[...u,o]).some(g=>c.matcher.match(g))&&(p=!c.negated)}return p}}var Foe=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function Ga(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var Pc=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function Ac(e){let t=[];return String(e||"").split(` +`)}function S(_){let B=[],I="",L=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,k=0,q;for(;q=L.exec(_);)I+=_.slice(k,q.index),k=L.lastIndex,B.push({key:q[1],op:q[2]||"=",val:q[3]});return I+=_.slice(k),{filters:B,free:I.trim().toLowerCase()}}function N(_,B){for(let I of B.filters){let L=(q,W,H)=>{let J=parseFloat(q),ne=parseFloat(W);return H==="="?String(q)===String(W):H==="!="?String(q)!==String(W):H===">="?J>=ne:H==="<="?J<=ne:H===">"?J>ne:H==="<"?JB&&H._bucket!==B?!1:N(H,_)),L=e.query.group;if(L){let H=G=>JSON.stringify(L==="module"?[G.module,G._bucket]:[G.raw?.[0]?.service||"unknown",G.module,G.displayMessage||G.message||"_",G._bucket,G._status]),J=new Map;for(let G of I){let ue=H(G);if(J.has(ue)){let he=J.get(ue);he.count++,he._related.push(G),new Date(G.ts)>new Date(he.ts)&&(he.ts=G.ts,he._url=G._url,he._status=G._status),new Date(G.ts)new Date(ue.ts).getTime()>=ne).length;I=Array.from(J.values())}else I=I.map((H,J)=>(H._key="row:"+J+":"+H.ts,H._related=[H],H._firstSeen=H.ts,H._lastHourCount=0,H.count=1,H));let k=H=>({error:0,warn:1,info:2})[H._bucket]??1;e.query.sort==="count"?I.sort((H,J)=>k(H)-k(J)||J.count-H.count||new Date(J.ts)-new Date(H.ts)):I.sort((H,J)=>k(H)-k(J)||new Date(J.ts)-new Date(H.ts)),e.visible=I;let q=!!(e.query.bucket||(e.query.search||"").trim()),W=!q&&(e.stats?.severity?.error||0)>0&&!I.some(H=>H._bucket==="error")&&e.entries.length<1500;(q&&!I.length||W)&&e.canLoadMore?.()&&!e._autoLoading&&e.entries.length<2500&&(e._autoLoading=!0,D(!0))}function D(_){if(_&&e.redisLoading)return;let B=++o;e.redisLoading=!0;let I=_?e.redisNextOffset||e.entries.length:0,L=_?e.pageSize:Math.max(e.pageSize,e.redisNextOffset||e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:I,limit:L}}).then(k=>{if(p||B!==o)return;e.redisLoading=!1;let q=(k.data.entries||[]).map(b);e.entries=_?e.entries.concat(q):q,e.redisRedacted=(_&&e.redisRedacted||0)+(k.data.redactedEntries||0),e.redisNextOffset=k.data.nextOffset??I+(k.data.entries||[]).length,e.available=!!k.data.available,e.redisCollecting=k.data.redisCollecting!==!1,e.cap=k.data.max||e.cap,e.total=k.data.total||e.entries.length,e._autoLoading=!1,w()},()=>{p||B!==o||(e.redisLoading=!1,e._autoLoading=!1,e.available=!1)})}e.loadMore=()=>D(!0),e.canLoadMore=()=>(e.redisNextOffset||e.entries.length){if(p||B!==r)return;u=!1;let L=I.data||{};e.redisStatsState=L.available===!1?"unavailable":"ready";let k=L.prev24h?Math.round((L.last24h-L.prev24h)/L.prev24h*100):0;e.stats={last24h:L.last24h||0,prev24h:L.prev24h||0,delta:k,severity:L.severity||{error:0,warn:0,info:0},unique:L.unique||{error:0,warn:0,info:0},buckets:L.buckets||[],dropped:L.dropped||0},w()},()=>{!p&&B===r&&(u=!1,e.redisStatsState="unavailable")})}function F(_=!1){(!_||!e.redisLoading)&&D(),O(_)}e.barPx=(_,B)=>{let I=e.stats.buckets||[],L=0,k=0;for(let J of I)L=Math.max(L,(J.error||0)+(J.warn||0)),k=Math.max(k,J.info||0);let q=_[B]||0;if(!q)return 0;if(B==="info")return k?Math.max(2,Math.round(q/k*(L?16:60))):0;let W=(_.error||0)+(_.warn||0),H=Math.round(W/L*44);return Math.max(4,Math.round(q/W*H))},e.bucketTitle=_=>`${new Date(_.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${_.error||0} err \xB7 ${_.warn||0} warn \xB7 ${_.info||0} info`,e.toggle=async(_,B)=>{v=B||document.activeElement,g=e.captureErrorScroll(v),e.historySelected=_,e.historyView="overview",e.expanded={[_._key]:!0},await je(),document.getElementById("history-inspector-title")?.focus({preventScroll:!0}),document.getElementById("history-inspector-title")?.scrollIntoView?.({block:"nearest"})},e.showHistoryTimeline=_=>{if(e.historyView="timeline",e.traceSelection)return;let B=["requestId","jobId"].find(I=>e.logTraceId(e.historySelected,I));B&&e.lookupTrace(B,e.logTraceId(e.historySelected,B),_,e.historySelected)},e.closeHistory=async()=>{let _=e.historySelected?._key;e.historySelected=null,e.expanded={},e.traceSelection&&await e.closeTrace(),await je(),(v?.isConnected?v:[...document.querySelectorAll("[data-history-key]")].find(I=>I.dataset.historyKey===_))?.focus({preventScroll:!0}),e.restoreErrorScroll(g)},e.setBucket=_=>{e.query.bucket=_},e.refreshNow=()=>{e.historySelected=null,e.historyView="overview",e.expanded={},e.traceSelection&&e.closeTrace(),F()},e.clearAll=()=>{confirm("Clear Redis error history? Central logs are unaffected.")&&t.delete("/api/admin/errors").then(()=>e.refreshNow(),_=>console.error(_))},e.exportCsv=()=>{let _=["ts","level","module","displayMessage","_status","_url","_repoId"],B=[_.join(",")];for(let q of e.visible)B.push(_.map(W=>{let H=q[W]==null?"":String(q[W]);return/[",\n]/.test(H)?`"${H.replace(/"/g,'""')}"`:H}).join(","));let I=new Blob([B.join(` +`)],{type:"text/csv;charset=utf-8"}),L=URL.createObjectURL(I),k=document.createElement("a");k.href=L,k.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(k),k.click(),document.body.removeChild(k),URL.revokeObjectURL(L)};function j(_){e.copyHint=`${_} copied`,c.timeout(()=>{e.copyHint=""},1500)}e.copyJson=_=>{navigator.clipboard.writeText(_._rawJson).then(()=>j("JSON"))},e.copyCurl=_=>{if(!_._url)return;let I=`curl -X ${_._method||"GET"} '${window.location.origin}${_._url}'`;navigator.clipboard.writeText(I).then(()=>j("curl"))},F();let oe=i(()=>{e.query.autoRefresh&&F(!0)},15e3);e.on("dispose",()=>{p=!0,o++,r++,i.cancel(oe)}),e.watch("query.search",w),e.watch("query.bucket",w),e.watch("query.sort",w),e.watch("query.group",w)},Gu=function(e,t,s,i){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.data=null,e.loading=!0,e.error=null,e.performance=null,e.performanceMinutes=15,e.performanceTab="routes",e.cacheReport=null,e.cacheError=null,e.cacheMinutes=60,e.cacheTraffic="all",e.ovView=["performance","cache"].includes((window.location.hash||"").slice(1))?window.location.hash.slice(1):"summary",e.setOvView=function(w){e.ovView=w;try{window.history.replaceState(null,"",w==="summary"?window.location.pathname:"#"+w)}catch{}};var o=!1;e.loadCache=function(){if(!o){o=!0;var w=e.cacheMinutes;t.get("/api/admin/cache",{params:{minutes:w}}).then(function(D){w===e.cacheMinutes&&(e.cacheReport=D.data,e.cacheError=D.data.available?null:D.data.reason||"Cache monitoring is unavailable.")},function(){e.cacheError="Could not refresh cache monitoring. Displayed values may be stale."}).finally(function(){o=!1,w!==e.cacheMinutes&&e.loadCache()})}},e.cacheRows=function(){return(e.cacheReport?.rows||[]).filter(function(w){return e.cacheTraffic==="all"||w.traffic===e.cacheTraffic})},e.cacheRate=function(w,D){var O=e.cacheRows(),F=function(_){return O.filter(function(B){return B.name===_}).reduce(function(B,I){return B+I[D]},0)},j=F(w+"_hit"),oe=F(w+"_miss");return j+oe?(100*j/(j+oe)).toFixed(1)+"%":"No samples"},e.cacheEventName=function(w){return w.replaceAll("_"," ")},e.cacheP95=function(w){var D=0,O=e.cacheReport?.latencyBucketsMs||[];if(!w.count)return"No samples";if(!w.ms)return"Not timed";for(var F=0;F<=O.length;F++)if(D+=w["b"+F]||0,D>=Math.ceil(w.count*.95))return F 10\u202Fs";return"No samples"},e.healthAlert=function(){let w=e.data&&e.data.system||{},D=[["Memory",w.memPercent],["Disk",w.diskPercent]].filter(([,F])=>F>90);return D.length?D.map(([F,j])=>F+" is at "+j+"%").join(" and ")+". New anonymizations may fail until "+(D.length>1?"they drop.":"it drops."):""},e.performanceError=null,e.formatMs=function(w){return w==null?"":Ln(w)},e.latencyBound=function(w,D){return w.count?w[D]==null?"> 60\u202Fs":"\u2264 "+e.formatMs(w[D]):"No samples"},e.firstByteBound=function(w){return e.latencyBound({count:w.firstByteCount,p95UpperMs:w.firstByteP95UpperMs},"p95UpperMs")},e.sampleAge=function(w){return Math.max(0,Math.round((Date.now()-w.sampledAt)/1e3))},e.peakRss=function(w){return(e.performance.runtimeSeries||[]).filter(function(D){return D.instance===w.instance}).reduce(function(D,O){return Math.max(D,O.rss)},w.memory.rss)},e.performanceWarning=function(w){return e.sampleAge(w)>45||w.droppedBatches||w.droppedMetrics||w.sockets?.closeWait>0||w.eventLoop?.p95Ms>100||w.memoryLimitBytes&&w.memory.rss>w.memoryLimitBytes*.8};var r=!1;e.loadPerformance=function(){var w=e.performanceMinutes;e.performance?.windowMinutes&&e.performance.windowMinutes!==w&&(e.performance=null),!r&&(r=!0,t.get("/api/admin/performance",{params:{minutes:w}}).then(function(D){w===e.performanceMinutes&&(e.performance=D.data,e.performanceError=D.data.available?null:"Performance monitoring is unavailable. Request history may be incomplete.")},function(){w===e.performanceMinutes&&(e.performanceError="Could not refresh performance monitoring. Displayed samples may be stale.")}).finally(function(){r=!1,w!==e.performanceMinutes&&e.loadPerformance()}))};function u(w){if(w==null)return"\u2014";for(var D=["B","KB","MB","GB","TB"],O=0,F=w;F>=1024&&O0?1:0).replace(/\.0$/,"")+" "+D[O]}e.humanBytes=u;function p(w){if(!w)return"\u2014";var D=Math.floor(w/86400),O=Math.floor(w%86400/3600),F=Math.floor(w%3600/60);return D>0?D+"d "+(O<10?"0":"")+O+"h":O>0?O+"h "+(F<10?"0":"")+F+"m":F+"m"}e.humanDuration=p;function c(w){return w==null?"\u2014":w>=1e6?(w/1e6).toFixed(1)+"M":w>=1e3?(w/1e3).toFixed(1)+"K":String(w)}e.humanNum=c,e.queueTotal=function(w){return w?(w.waiting||0)+(w.active||0)+(w.delayed||0)+(w.failed||0):0},e.statusCount=function(w){if(!e.data||!e.data.repos)return 0;for(var D=e.data.repos.statusBreakdown||[],O=0;O0,zero:!F,title:String(j.getHours()).padStart(2,"0")+":00 \xB7 "+(O.error||0)+" 5xx, "+(O.warn||0)+" 4xx"}})},e.errorHoursPeak=function(){var w=e.errorStats&&e.errorStats.buckets||[];return w.reduce(function(D,O){return Math.max(D,(O.error||0)+(O.warn||0))},0)};function v(w){var D=w||[];return D.map(function(O,F){var j=D[F-1]||{},oe=Object.assign({},O);return oe.dailyRepositories=F?Math.max(0,(O.nbRepositories||0)-(j.nbRepositories||0)):0,oe.dailyUsers=F?Math.max(0,(O.nbUsers||0)-(j.nbUsers||0)):0,oe.dailyPageViews=F?Math.max(0,(O.nbPageViews||0)-(j.nbPageViews||0)):0,oe})}function g(w){var D=w&&w.length?w[w.length-1]:{};return{repositories:D.dailyRepositories||0,users:D.dailyUsers||0,pageViews:D.dailyPageViews||0}}function y(w,D){if(!w||!w.length)return w;var O=new Date(w[w.length-1].date);if(isNaN(O))return w;var F={};w.forEach(function(I){F[new Date(I.date).toISOString().slice(0,10)]=I});for(var j=[],oe=D-1;oe>=0;oe--){var _=new Date(O.getTime()-oe*864e5),B=_.toISOString().slice(0,10);j.push(F[B]||{date:_.toISOString(),_empty:!0,dailyPageViews:0,dailyRepositories:0,dailyUsers:0,nbUsers:0})}return j}var m={};e.historyMax=function(w){return m[w]||0};var b={};e.axisMax=function(w){var D=m[w]||0;if(D<=2)return 2;if(D<=10)return Math.ceil(D/2)*2;var O=Math.pow(10,Math.floor(Math.log10(D)));return Math.ceil(D/O)*O},e.historyBarH=function(w,D){return!w||!m[D]||!w[D]?0:Math.max(1,Math.round(w[D]/e.axisMax(D)*140))},e.historyRange=function(w){return{min:b[w],max:m[w]}};var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.historyLabel=function(w){if(!w||!w.date)return"";var D=new Date(w.date);return E[D.getUTCMonth()]+" "+D.getUTCDate()},e.historyHasMissing=function(){return!!(e.data&&e.data.history||[]).some(function(w){return w&&w._empty})},e.firstDataIndex=function(){for(var w=e.data&&e.data.history||[],D=0;D=O)return{lo:B,hi:B+2*oe[_]}}return{lo:0,hi:e.axisMax("nbUsers")}},e.userStepPath=function(w){var D=e.data&&e.data.history||[],O=e.userAxis(),F=m.nbUsers?O.hi-O.lo:0,j=e.firstDataIndex();if(!F||j>=D.length)return"";for(var oe=function(L){return(140-((L||0)-O.lo)/F*140).toFixed(2)},_=w?"M"+j+" 140":"",B=j;Bm[O])&&(m[O]=D[O]),(b[O]==null||D[O] .meta-more"),s=[...e.querySelectorAll(":scope > .meta-item")];if(s.forEach(o=>{o.removeAttribute("data-meta-hidden")}),t&&(t.hidden=!0,t.textContent="",t.removeAttribute("title"),t.removeAttribute("aria-label")),!e.clientWidth)return;if(e.classList.add("is-fitting"),e.scrollWidth<=e.clientWidth+1){e.classList.remove("is-fitting");return}let i=[];for(let o=s.length-1;o>=0&&e.scrollWidth>e.clientWidth+1;o--)if(s[o].setAttribute("data-meta-hidden",""),i.unshift(s[o]),t){let r=i.map(u=>u.dataset.metaLabel||u.textContent.trim().replace(/\s+/g," "));t.hidden=!1,t.textContent="+"+i.length,t.title=r.join(" \xB7 "),t.setAttribute("aria-label",i.length+" more: "+r.join(", "))}e.classList.remove("is-fitting")}function Wu(e,t){if(typeof document>"u"||typeof MutationObserver>"u"||!document.body)return;let s=!1,i=null,o=()=>{s=!1,i&&(document.querySelectorAll("[data-meta-fit]").forEach(Cg),i.takeRecords())},r=()=>{!s&&i&&(s=!0,e.timeout(o,30))};i=new MutationObserver(u=>{u.some(p=>!(p.target.closest&&p.target.closest(".meta-more")))&&r()}),i.observe(document.body,{childList:!0,subtree:!0,characterData:!0}),eo(()=>{i.disconnect(),i=null}),t(window,"resize",r),document.fonts?.ready&&document.fonts.ready.then(r),r()}var Sg=["bif","clp","djf","gnf","jpy","kmf","krw","mga","pyg","rwf","ugx","vnd","vuv","xaf","xof","xpf"],$u=[{id:"subscription",label:"Subscriptions"},{id:"repository",label:"Repository purchases"},{id:"conference",label:"Conferences"}],Eg={author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference_workshop:"Workshop",conference:"Conference",conference_large:"Large conference"};function _u(e){return Object.entries(e||{}).filter(([,t])=>t).sort((t,s)=>s[1]-t[1]).map(([t,s])=>{let i=Sg.includes(t)?s:s/100;try{return new Intl.NumberFormat(void 0,{style:"currency",currency:t.toUpperCase(),minimumFractionDigits:i%1?2:0,maximumFractionDigits:2}).format(i)}catch{return i+" "+t.toUpperCase()}})}var Ku=function(e,t,s){let i=kt();if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null){s.url("/");return}e.families=$u,e.periods=[{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"12m",label:"12 months"},{id:"all",label:"All time"}];let o=(()=>{try{return localStorage.getItem("admin.billing.period")}catch{return null}})();e.period=e.periods.some(m=>m.id===o)?o:"30d",e.summary=null,e.summaryError=null,e.summaryLoading=!0,e.periodLabel=()=>(e.periods.find(m=>m.id===e.period)||{}).label||"",e.periodPhrase=()=>e.period==="all"?"all time":"last "+e.periodLabel(),e.money=m=>_u(m),e.moneyText=(m,b="\u2014")=>_u(m).join(" \xB7 ")||b,e.revenueOn=()=>!!e.summary?.revenue?.available,e.planName=m=>((e.summary?.plans||[]).find(b=>b.planId===m)||{}).name||Eg[m]||m,e.bucketTotal=m=>m?m.subscription+m.repository+m.conference:0,e.chartMax=()=>{let m=Math.max(0,...(e.summary?.series||[]).map(e.bucketTotal));if(m<=4)return 4;let b=Math.pow(10,Math.floor(Math.log10(m)));return[1,1.2,1.5,2,2.5,3,4,5,6,8,10].map(E=>E*b).find(E=>E>=m&&E%2===0)||10*b},e.segmentPct=(m,b)=>m&&m[b]?m[b]/e.chartMax()*100:0,e.familyTotal=m=>(e.summary?.series||[]).reduce((b,E)=>b+E[m],0),e.bucketLabel=m=>{if(!m)return"";let b=new Date(m.date),E={timeZone:"UTC",day:"numeric",month:"short"};return e.summary?.bucket==="month"?b.toLocaleDateString(void 0,{timeZone:"UTC",month:"short",year:"numeric"}):((e.period==="12m"||e.period==="all"||b.getUTCFullYear()!==new Date().getUTCFullYear())&&(E.year="numeric"),(e.summary?.bucket==="week"?"Week of ":"")+b.toLocaleDateString(void 0,E))},e.bucketTip=m=>{let b=e.bucketTotal(m);if(!b)return e.bucketLabel(m)+": no sales";let E=$u.filter(S=>m[S.id]).map(S=>m[S.id]+" "+S.label.toLowerCase());return e.bucketLabel(m)+": "+b+(b===1?" sale":" sales")+" ("+E.join(", ")+")"},e.bucketName=()=>({day:"day",week:"week",month:"month"})[e.summary?.bucket]||"day",e.seriesSales=()=>(e.summary?.series||[]).reduce((m,b)=>m+e.bucketTotal(b),0),e.plansWithActivity=()=>(e.summary?.plans||[]).filter(m=>m.active||m.allTimeSales||m.sales),e.planTotals=()=>{let m=b=>(e.summary?.plans||[]).reduce((E,S)=>E+(S[b]||0),0);return{active:m("active"),sales:m("sales"),allTimeSales:m("allTimeSales")}},e.webhookState=()=>{let m=e.summary?.webhooks;return m?m.failed||m.reconciliationFailed?"bad":m.oldestPendingSeconds>900||m.unreviewedRevocations?"warn":"ok":"ok"},e.age=m=>m?Ln(m*1e3):"\u2014";let r=0;e.loadSummary=()=>{let m=++r;e.summaryLoading=!0,e.summaryError=null,t.get("/api/admin/billing/summary",{params:{period:e.period}}).then(b=>{if(m!==r)return;e.summaryLoading=!1;let E=b.data;if(!E||!E.subscriptions||!E.sales||!Array.isArray(E.plans)){e.summaryError="The billing summary had an unexpected format.";return}e.summary=E},b=>{m===r&&(e.summaryLoading=!1,e.summaryError=b&&b.data&&b.data.error||"Could not load billing figures.")})},e.setPeriod=m=>{if(e.period!==m){e.period=m;try{localStorage.setItem("admin.billing.period",m)}catch{}e.loadSummary()}},e.grants=[],e.total=-1,e.totalPage=0,e.stateCounts={},e.statuses=[],e.grantsError=null,e.filtersOpen=!1,e.query={page:1,limit:25,search:"",plan:"",status:"",state:"",sort:"purchasedAt",direction:"desc"};let u=s.search();u.search&&(e.query.search=u.search),e.stateView=()=>e.query.state||"all",e.setStateView=m=>{e.query.state=m==="all"?"":m,e.query.page=1},e.stateCount=m=>m==="all"?["active","expired","revoked"].reduce((b,E)=>b+(e.stateCounts[E]||0),0):e.stateCounts[m]||0,e.sortBy=m=>{e.query.sort===m?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=m,e.query.direction="desc"),e.query.page=1},e.sortIcon=m=>e.query.sort===m?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.chips=[];let p=()=>{let m=[];e.query.plan&&m.push({key:"plan",label:"Plan",value:e.planName(e.query.plan)}),e.query.status&&m.push({key:"status",label:"Stripe status",value:e.query.status.replace(/_/g," ")}),e.chips=m};e.clearFilter=m=>{e.query[m]="",e.query.page=1},e.filterPlan=m=>{Object.assign(e.query,{plan:m,page:1});let b=document.getElementById("bl-grants");b&&b.scrollIntoView&&b.scrollIntoView({behavior:"smooth",block:"start"})},e.clearFilters=()=>Object.assign(e.query,{search:"",plan:"",status:"",state:"",page:1}),e.hasFilters=()=>!!(e.query.search||e.query.plan||e.query.status||e.query.state),e.statusText=m=>(m.status||"unknown").replace(/_/g," "),e.revocationText=m=>m==="dispute"?"Disputed":m==="full_refund"?"Refunded":"Revoked",e.scopeHref=m=>m?.kind==="repo"?"/admin/repositories?search="+encodeURIComponent(m.id):m?.kind==="conference"?"/conference/"+encodeURIComponent(m.id):null;let c=0;function v(){let m=++c;e.grantsError=null;let b=Object.fromEntries(Object.entries(e.query).filter(([,E])=>E!==""&&E!=null));t.get("/api/admin/billing/grants",{params:b}).then(E=>{m===c&&(e.total=E.data?.total??0,e.totalPage=Math.ceil(e.total/e.query.limit),e.grants=E.data?.results||[],e.stateCounts=E.data.stateCounts||{},e.statuses=E.data.statuses||[])},E=>{m===c&&(e.grantsError=E&&E.data&&E.data.error||"Could not load subscriptions and purchases.")})}e.reloadGrants=v,e.loadSummary(),v(),p();let g=null,y=JSON.stringify({...e.query,page:0});e.watch("query",()=>{let m=JSON.stringify({...e.query,page:0});if(m!==y&&e.query.page!==1){y=m,e.query.page=1;return}y=m,i.timeout.cancel(g),g=i.timeout(v,300),p()},!0)},Yu=function(e,t,s){if(e.user==null){s.url("/");return}e.Math=Math;let i=typeof window<"u"?window:null,o=i?new URLSearchParams(i.location.search):null,r=["7d","30d","90d","all"],u=["accepted","rejected","unknown","sending"];e.emailRows=[],e.emailState=u.includes(o?.get("state"))?o.get("state"):"",e.emailKind=["repository-expiration","owner-access"].includes(o?.get("kind"))?o.get("kind"):"",e.emailPeriod=r.includes(o?.get("period"))?o.get("period"):"7d",e.emailSearch=o?.get("search")||"";let p=e.emailSearch.trim();e.emailLoading=!1,e.emailError="",e.emailAnnouncement="",e.emailNextCursor=null,e.emailSummary=null,e.emailSummaryError="",e.emailSummaryLoading=!1,e.emailUpdated=null,e.emailPage=1,e.selectedEmailId=null,e.emailCopyMessage="",e.emailCopiedValue=null,e.emailTimezone=Intl.DateTimeFormat().resolvedOptions().timeZone,e.emailStatusLabel=O=>({sending:"Pending",accepted:"Accepted",rejected:"Rejected",unknown:"Unknown"})[O]||O,e.emailKindLabel=O=>({"repository-expiration":"Repository expiration","owner-access":"GitHub access"})[O]||O,e.emailTime=O=>O?new Date(O).toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}):"Not recorded",e.emailShortTime=O=>{if(!O)return"Not recorded";let F=new Date(O);return F.toLocaleString(void 0,{...e.emailPeriod==="all"||F.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{},month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})},e.emailExplanation=O=>O.state==="accepted"?"The provider accepted this request. Inbox delivery is not confirmed.":O.state==="sending"?"The attempt was recorded, but no final outcome has been recorded. Check the provider before sending again.":O.state==="unknown"?"The provider outcome could not be confirmed. Check the provider before sending again to avoid duplicates.":{400:"The provider rejected the request as invalid.",401:"The provider rejected authentication.",403:"The provider denied this request.",404:"The provider could not find the requested endpoint or resource.",422:"The provider could not process the request.",429:"The provider rejected the request because of rate limiting."}[O.httpStatus]||(O.httpStatus>=500?"The provider reported a server error.":"The provider rejected this request."),e.toggleEmail=O=>{e.selectedEmailId=e.selectedEmailId===O._id?null:O._id,e.emailCopyMessage="",e.emailCopiedValue=null};let c=!1,v=0,g=0,y="",m="",b=!1,E=null;e.copyEmail=async O=>{e.emailCopiedValue=null;try{if(!i?.navigator?.clipboard)throw new Error("Clipboard unavailable");await i.navigator.clipboard.writeText(String(O)),c||(e.emailCopyMessage="Copied.",e.emailCopiedValue=String(O))}catch{c||(e.emailCopyMessage="Could not copy. Select and copy the text manually.")}};let S=()=>({period:e.emailPeriod,search:p||void 0,kind:e.emailKind||void 0}),N=()=>{if(i)try{let O=new URL(i.location.href);for(let[F,j]of Object.entries({...S(),state:e.emailState}))j?O.searchParams.set(F,j):O.searchParams.delete(F);i.history.replaceState(null,"",O.pathname+O.search+O.hash)}catch{}};e.hasEmailFilters=()=>!!(e.emailState||e.emailKind||p||e.emailPeriod!=="7d"),e.emailVisibleRows=()=>e.emailRows.slice((e.emailPage-1)*25,e.emailPage*25),e.emailTotal=()=>e.emailSummary?e.emailState?e.emailSummary.counts[e.emailState]:e.emailSummary.total:null,e.emailPageCount=()=>e.emailTotal()==null?null:Math.max(1,Math.ceil(e.emailTotal()/25)),e.emailDayTotal=O=>u.reduce((F,j)=>F+(Number(O[j])||0),0),e.emailChartTotal=()=>(e.emailSummary?.series||[]).reduce((O,F)=>O+e.emailDayTotal(F),0),e.jumpToEmailHistory=()=>{let O=i?.document?.querySelector("#email-history-title");O&&(O.focus({preventScroll:!0}),O.scrollIntoView({block:"start"}))},e.emailChartMax=()=>Math.max(1,...(e.emailSummary?.series||[]).map(e.emailDayTotal)),e.emailDayLabel=O=>{let F=typeof O=="string"?O:O?.date;if(!F)return"";let j=new Date(F+"T12:00:00Z");return Number.isNaN(j.getTime())?"":j.toLocaleDateString(void 0,{month:"short",day:"numeric",timeZone:"UTC"})};let w=O=>{e.emailPage=O,e.selectedEmailId=null,E=null;let F=(O-1)*25+1,j=Math.min(O*25,e.emailRows.length);e.emailAnnouncement=`Page ${O}. Showing attempts ${F} to ${j}.`;let oe=i?.document?.querySelector("#email-history-title");oe&&(oe.setAttribute("tabindex","-1"),oe.focus({preventScroll:!0}),oe.scrollIntoView({block:"start",behavior:"auto"}))};e.loadEmailSummary=async()=>{let O=JSON.stringify(S());O!==m&&(e.emailSummary=null),m=O;let F=++g;e.emailSummaryLoading=!0,e.emailSummaryError="";try{let j=await t.get("/api/admin/emails/summary",{params:S()});F===g&&(e.emailSummary=j.data)}catch{F===g&&(e.emailSummaryError=e.emailSummary?"Could not refresh the summary. Previously loaded totals are still shown.":"Email summary is unavailable.")}finally{F===g&&(e.emailSummaryLoading=!1)}},e.retryEmails=()=>e.loadEmails(b),e.loadEmails=async(O=!1)=>{let F=JSON.stringify([e.emailState,e.emailKind,e.emailPeriod,p]),j=F!==y;if(y=F,j&&(O=!1),O&&(e.emailLoading||!e.emailNextCursor))return;let oe=++v;e.emailLoading=!0,e.emailError="",e.emailAnnouncement=O?"Loading older emails.":"Loading email history.",j&&(e.emailRows=[],e.emailNextCursor=null,e.emailPage=1,e.selectedEmailId=null,E=null),O||(E=null),N();try{let _=await t.get("/api/admin/emails",{params:{...S(),state:e.emailState||void 0,before:O?e.emailNextCursor:void 0}});return oe!==v?void 0:(e.emailRows=O?e.emailRows.concat(_.data.entries):_.data.entries,e.emailNextCursor=_.data.nextCursor,O||(e.emailPage=1),e.emailUpdated=new Date().toISOString(),e.emailAnnouncement=`Email history loaded. ${e.emailRows.length} attempts loaded.`,O&&E&&e.emailRows.length>(E-1)*25&&w(E),!0)}catch{oe===v&&(b=O,e.emailError=O?"Could not load older emails. Your loaded history is still shown.":e.emailRows.length?"Could not refresh email history. Previously loaded results are still shown.":"Could not load email history.",e.emailAnnouncement="")}finally{oe===v&&(e.emailLoading=!1)}},e.emailPreviousPage=()=>{!e.emailLoading&&e.emailPage>1&&w(e.emailPage-1)},e.emailNextPage=async()=>{if(e.emailLoading)return;let O=e.emailPage+1,F=y;e.emailRows.length<=(O-1)*25&&e.emailNextCursor&&(E=O,await e.loadEmails(!0)),!c&&F===y&&e.emailPage!==O&&e.emailRows.length>(O-1)*25&&w(O)},e.refreshEmails=()=>Promise.all([e.loadEmails(),e.loadEmailSummary()]),e.applyEmailFilters=()=>(p=e.emailSearch.trim(),e.refreshEmails()),e.setEmailStatus=O=>(e.emailState=u.includes(O)?O:"",e.loadEmails()),e.clearEmailFilters=()=>(e.emailState="",e.emailKind="",e.emailSearch="",e.emailPeriod="7d",e.applyEmailFilters());let D;i?.setTimeout&&(D=i.setTimeout(()=>{let O=i.document?.querySelector(".emails-page .admin-nav"),F=O?.querySelector('[aria-current="page"]');O&&F&&(O.scrollLeft=Math.max(0,F.offsetLeft-O.offsetLeft-(O.clientWidth-F.offsetWidth)/2))},0)),e.on("dispose",()=>{c=!0,v++,g++,D!=null&&i.clearTimeout(D)}),e.refreshEmails()};var ka=(e,t,s)=>{let i=e instanceof RegExp?Ju(e,s):e,o=t instanceof RegExp?Ju(t,s):t,r=i!==null&&o!=null&&Rg(i,o,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+i.length,r[1]),post:s.slice(r[1]+o.length)}},Ju=(e,t)=>{let s=t.match(e);return s?s[0]:null},Rg=(e,t,s)=>{let i,o,r,u,p,c=s.indexOf(e),v=s.indexOf(t,c+1),g=c;if(c>=0&&v>0){if(e===t)return[c,v];for(i=[],r=s.length;g>=0&&!p;){if(g===c)i.push(g),c=s.indexOf(e,g+1);else if(i.length===1){let y=i.pop();y!==void 0&&(p=[y,v])}else o=i.pop(),o!==void 0&&o=0?c:v}i.length&&u!==void 0&&(p=[r,u])}return p};var Xu="\0SLASH"+Math.random()+"\0",Qu="\0OPEN"+Math.random()+"\0",Na="\0CLOSE"+Math.random()+"\0",Zu="\0COMMA"+Math.random()+"\0",xu="\0PERIOD"+Math.random()+"\0",Tg=new RegExp(Xu,"g"),Dg=new RegExp(Qu,"g"),Pg=new RegExp(Na,"g"),Ag=new RegExp(Zu,"g"),Ig=new RegExp(xu,"g"),Og=/\\\\/g,Mg=/\\{/g,Vg=/\\}/g,Lg=/\\,/g,qg=/\\\./g,$g=1e5,_g=4e6,Fg=1e3,Ug=1e3;function Ca(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Bg(e){return e.replace(Og,Xu).replace(Mg,Qu).replace(Vg,Na).replace(Lg,Zu).replace(qg,xu)}function zg(e){return e.replace(Tg,"\\").replace(Dg,"{").replace(Pg,"}").replace(Ag,",").replace(Ig,".")}function Sa(e,t){for(let s=0;s=t}function $s(e,t,s,i,o,r){let u=[],p=0;for(let c=0;c=i)return u;let g=e[c]+t+s[v];if(!(r&&!g)){if(p+g.length>o)return u;u.push(g),p+=g.length}}return u}function Yg(e,t,s,i){let o=e.split(/\.\./),r=[];if(o[0]===void 0||o[1]===void 0)return r;let u=Ca(o[0]),p=Ca(o[1]),c=Math.max(o[0].length,o[1].length),v=o.length===3&&o[2]!==void 0?Math.max(Math.abs(Ca(o[2])),1):1,g=Wg;p0){let w=new Array(N+1).join("0");E<0?S="-"+w+S.slice(1):S=w+S}}if(b+S.length>i)break;r.push(S),b+=S.length}return r}function Ea(e,t,s,i,o,r,u){if(o>i)return[e];let p=[""],c=0,v=!1,g=!0;for(;;){let y=ka("{","}",e);if(!y)return $s(p,e,[""],t,s,v);let m=y.pre;if(/\$$/.test(m)){if(p=$s(p,m+"{"+y.body+"}",[""],t,s,v&&!y.post.length),g=!1,!y.post.length)break;e=y.post;continue}let b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),E=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),S=b||E,N=y.body.indexOf(",")>=0;if(!S&&!N){if(c=t||F+B.length>s)break e;w.push(B),F+=B.length}}}}if(p=$s(p,m,w,t,s,v&&!y.post.length),!y.post.length)break;e=y.post}return p}var Jg={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},_s=e=>e.replace(/[[\]\\-]/g,"\\$&"),Ra=/$./,tc=(e,t,s=!1,i)=>{let o=w=>{let D=i?w.normalize(i):w;return[...D].length===1?D:w},r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let u=[],p=[],c=r+1,v=!1,g=!1,y=!1,m=r,b="";e:for(;cb.codePointAt(0)?u.push(_s(b)+"-"+_s(D)):D===b&&u.push(_s(D)),b="",c+=w.length;continue}if(e.startsWith("-]",c+w.length)){u.push(_s(D+"-")),c+=w.length+1;continue}if(e.startsWith("-",c+w.length)){b=D,c+=w.length+1;continue}u.push(_s(D)),c+=w.length}if(m({t:"lit",ch:e}),Qg=e=>e.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),ic=e=>new RegExp(`^${Qg(e)}$`,"iu"),Qi=new Map,rc=e=>{let t=Qi.get(e);return t||(t=ic(e),Qi.size>=1e3&&Qi.clear(),Qi.set(e,t)),t},Ma=(e,t)=>{if(t===e.ch)return!0;if(!e.re)return!1;let s=t.charCodeAt(0);if(s>=128)return e.re.test(t);let i=e.ascii??(e.ascii=new Uint8Array(128));return i[s]||(i[s]=e.re.test(t)?1:2),i[s]===1},Zg=(e,t,s,i)=>{let o=[];for(let r=0;r{let t=new Map,s=[];return e.forEach((i,o)=>{i.t==="open"?s.push(o):i.t==="close"&&s.length&&t.set(s.pop(),o)}),t},ac=(e,t,s,i,o)=>{let r=[],u=[r];for(let p=s;p{let s=[],i="",o=()=>{for(let r of i.normalize(t))s.push(co(r));i=""};for(let r of e){if(r.t==="lit"){i+=r.ch;continue}o(),s.push(r.t==="ext"?{...r,alts:r.alts.map(u=>lc(u,t))}:r)}return o(),s},ev=(e,t)=>{let s=1,i=p=>({t:"split",id:s++,out:p}),o=(p,c)=>p.reduceRight((v,g)=>r(g,v),c),r=(p,c)=>{switch(p.t){case"lit":let m=t?rc(p.ch):void 0;return{t:"lit",id:s++,ch:p.ch,re:m,next:c};case"any":case"star":return{t:p.t,id:s++,next:c};case"class":return{t:"class",id:s++,re:p.re,next:c}}let v=m=>p.alts.map(b=>o(b,m));switch(p.type){case"@":return i(v(c));case"?":return i([c,...v(c)]);case"!":return{t:"neg",id:s++,sub:i(v(Ta)),next:c}}let g=i([]),y=i(v(g));return g.out.push(c,y),p.type==="*"?g:y};return[o(e,Ta),s]},tv=e=>{let t=[],s=new Set,i=r=>r.t==="match"?"match":String(r.id),o=(r,u)=>{if(r.t==="match"||s.has(r))return;s.add(r);let p=c=>t.push(`${u}${r.id}: ${c}`);switch(r.t){case"split":p(`split -> ${r.out.map(i).join(", ")}`);for(let c of r.out)o(c,u);return;case"neg":return p(`!(${i(r.sub)}) -> ${i(r.next)}`),o(r.sub,u+" "),o(r.next,u);case"lit":p(`${JSON.stringify(r.ch)} -> ${i(r.next)}`);break;case"class":p(`${r.re} -> ${i(r.next)}`);break;default:p(`${r.t==="any"?"?":"*"} -> ${i(r.next)}`)}o(r.next,u)};return o(e,""),[`start -> ${i(e)}`,...t].join(` +`)},Da=class{constructor(t){et(this,"gen");et(this,"threads",[]);et(this,"match",!1);et(this,"runs",[]);et(this,"ids",[]);this.gen=t}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},dc=(e,t)=>e.ids.length!==t.ids.length||e.runs.length!==t.runs.length||e.ids.some((s,i)=>s!==t.ids[i])?!1:e.runs.every(s=>t.runs.some(i=>i.neg===s.neg&&dc(i.state,s.state))),nc=e=>({has:new Float64Array(e),seen:new Float64Array(e),gen:0}),po,Bn,Pa,Aa,Us=class{constructor(t,s,i){qe(this,Bn);et(this,"dots");et(this,"dotStart");qe(this,po);this.dots=t,this.dotStart=s,Fe(this,po,i)}state(){return new Da(++re(this,po).gen)}done(t){return t.ids=t.threads.map(s=>s.id).sort((s,i)=>s-i),t.match&&t.ids.unshift(Ta.id),t}restricted(t,s){return s&&(this.dots||this.dotStart&&t===0)}add(t,s,i,o){switch(s.t){case"split":if(!$e(this,Bn,Pa).call(this,t,s))return;for(let u of s.out)this.add(t,u,i,o);return;case"neg":if(!$e(this,Bn,Pa).call(this,t,s))return;let r=this.state();return this.add(r,s.sub,i,!1),this.done(r),this.addRun(t,{t:"run",neg:s,state:r},i,o);case"star":if(this.restricted(i,o))return;$e(this,Bn,Aa).call(this,t,s)&&this.add(t,s.next,i,o);return;case"match":t.match=!0;return;default:$e(this,Bn,Aa).call(this,t,s)}}addRun(t,s,i,o){for(let r of t.runs)if(r.neg===s.neg&&dc(r.state,s.state))return;t.runs.push(s),s.state.match||this.add(t,s.neg.next,i,o)}step(t,s,i,o){let r=this.state();for(let u of t.threads)switch(u.t){case"lit":Ma(u,s)&&this.add(r,u.next,i+1,o);break;case"any":this.restricted(i,o)||this.add(r,u.next,i+1,o);break;case"class":!this.restricted(i,o)&&u.re.test(s)&&this.add(r,u.next,i+1,o);break;case"star":this.restricted(i,o)||this.add(r,u,i+1,o)}if(!this.restricted(i,o))for(let u of t.runs){if(u.state.dead){this.addRun(r,u,i+1,o);continue}let p=this.step(u.state,s,i,!1);this.addRun(r,{t:"run",neg:u.neg,state:p},i+1,o)}return this.done(r)}};po=new WeakMap,Bn=new WeakSet,Pa=function(t,s){let{seen:i}=re(this,po);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,!0)},Aa=function(t,s){let{has:i}=re(this,po);return i[s.id]===t.gen?!1:(i[s.id]=t.gen,t.threads.push(s),!0)};var uc=e=>{let t=e.ids.join();if(!e.runs.length)return t;let s=e.runs.map(i=>`${i.neg.id}(${uc(i.state)})`);return`${t}|${s.sort().join("|")}`},nv=1<<18,zo,Ho,qn,fo,$n,_n,Fn,on,Oa,xi,cc,Ia=class{constructor(t,s){qe(this,on);qe(this,zo);qe(this,Ho,new Map);qe(this,qn,0);qe(this,fo);qe(this,$n);qe(this,_n);qe(this,Fn);Fe(this,zo,t),Fe(this,_n,new Us(!1,!1,s)),Fe(this,Fn,new Us(!1,!0,s))}start(t){if(t){if(re(this,$n))return re(this,$n);let i=re(this,Fn).state();return re(this,Fn).add(i,re(this,zo),0,!0),Fe(this,$n,$e(this,on,Oa).call(this,re(this,Fn).done(i)))}if(re(this,fo))return re(this,fo);let s=re(this,_n).state();return re(this,_n).add(s,re(this,zo),0,!0),Fe(this,fo,$e(this,on,xi).call(this,re(this,_n).done(s)))}next(t,s){let i=s.charCodeAt(0),o=i<128?void 0:t.next.get(s);if(o)return o;let r=t===re(this,$n)?$e(this,on,xi).call(this,re(this,Fn).step(t.state,s,0,!0)):$e(this,on,xi).call(this,re(this,_n).step(t.state,s,1,!0));return i<128?(t.ascii||(t.ascii=new Array(128),Fe(this,qn,re(this,qn)+128)),t.ascii[i]=r):t.next.set(s,r),nl(this,qn)._++,r}};zo=new WeakMap,Ho=new WeakMap,qn=new WeakMap,fo=new WeakMap,$n=new WeakMap,_n=new WeakMap,Fn=new WeakMap,on=new WeakSet,Oa=function(t){return{state:t,match:t.match,dead:t.dead,next:new Map}},xi=function(t){let s=uc(t),i=re(this,Ho).get(s);if(i)return i;re(this,qn)>nv&&$e(this,on,cc).call(this);let o=$e(this,on,Oa).call(this,t);return re(this,Ho).set(s,o),Fe(this,qn,re(this,qn)+(s.length+1)),o},cc=function(){re(this,Ho).clear(),Fe(this,qn,0),Fe(this,fo,void 0),Fe(this,$n,void 0)};var ov=e=>{let t=[];for(let s=e;s.t!=="match";s=s.next){if(s.t==="split"||s.t==="neg")return;t.push(s)}return t},sv=(e,t,s,i)=>{let o=0,r=s,u=-1,p=0;for(;r{let t=0,s=0;for(let i of e){let[o,r]=iv(i);t+=o,s+=r}return[t,s]},iv=e=>{if(e.t==="star")return[0,1/0];if(e.t!=="ext")return[1,1];if(e.type==="!")return[0,1/0];let t=e.alts.map(pc),s=Math.min(...t.map(r=>r[0])),i=Math.max(...t.map(r=>r[1])),o=i===0?0:1/0;return e.type==="@"?[s,i]:e.type==="?"?[0,i]:e.type==="*"?[0,o]:[s,o]},oc=(e,t,s)=>{for(let i=0;iav.test(e)?[...e]:e,sc=e=>{if(e.includes("/"))throw new Error("can only match a single path portion, got: "+e)},Un,jo,mo,er,ho,zs,tr,go,Hs,js,Gs,Tn,vn,Go,Wo,Ws,nr,nn,vo,Fs,Bs=class{constructor(t,s={}){qe(this,vo);et(this,"pattern");et(this,"options");qe(this,Un);qe(this,jo);qe(this,mo);qe(this,er);qe(this,ho);qe(this,zs,!1);qe(this,tr);qe(this,go);qe(this,Hs,!1);qe(this,js,0);qe(this,Gs,1/0);qe(this,Tn,[]);qe(this,vn,[]);qe(this,Go);qe(this,Wo);qe(this,Ws,!1);qe(this,nr);qe(this,nn);if(t.includes("/"))throw new Error("can only match a single path portion, got pattern: "+t);this.pattern=t,this.options=s;let{nocase:i=!1,noext:o=!1,normalize:r}=s;Fe(this,nn,r===!0?"NFC":r||void 0);let u=/^[?*+@]\(\)$/.test(t),p=Zg(t,i,o||u,re(this,nn)),[c]=ac(p,xg(p),0,p.length,!0);re(this,nn)&&(c=lc(c,re(this,nn)));let[v,g]=ev(c,i);if(Fe(this,Un,v),Fe(this,jo,g),c.every(y=>y.t==="lit"))Fe(this,ho,c.map(y=>y.ch).join("")),Fe(this,zs,i);else{let y=E=>E.t!=="lit"?void 0:i?{ch:E.ch,re:rc(E.ch)}:{ch:E.ch};for(let E of c){let S=y(E);if(!S)break;re(this,Tn).push(S)}for(let E=c.length-1;E>=0;E--){let S=y(c[E]);if(!S)break;re(this,vn).unshift(S)}Fe(this,Ws,!!(re(this,Tn).length||re(this,vn).length)),i||(Fe(this,Go,re(this,Tn).map(E=>E.ch).join("")),Fe(this,Wo,re(this,vn).map(E=>E.ch).join(""))),Fe(this,go,ov(re(this,Un))?.slice(re(this,Tn).length,-re(this,vn).length||void 0)),Fe(this,Hs,!!re(this,go)?.every(E=>E.t==="star"||E.t==="any"));let[m,b]=pc(c);Fe(this,js,m),Fe(this,Gs,b)}}test(t){return re(this,nn)?(sc(t),$e(this,vo,Fs).call(this,t.normalize(re(this,nn)))):rv.test(t)?(sc(t),$e(this,vo,Fs).call(this,t,[...t])):$e(this,vo,Fs).call(this,t,t)}testUnchecked(t){return $e(this,vo,Fs).call(this,re(this,nn)?t.normalize(re(this,nn)):t)}toString(){return tv(re(this,Un))}};Un=new WeakMap,jo=new WeakMap,mo=new WeakMap,er=new WeakMap,ho=new WeakMap,zs=new WeakMap,tr=new WeakMap,go=new WeakMap,Hs=new WeakMap,js=new WeakMap,Gs=new WeakMap,Tn=new WeakMap,vn=new WeakMap,Go=new WeakMap,Wo=new WeakMap,Ws=new WeakMap,nr=new WeakMap,nn=new WeakMap,vo=new WeakSet,Fs=function(t,s){if(re(this,ho)!==void 0)return re(this,zs)?(re(this,tr)??Fe(this,tr,ic(re(this,ho)))).test(t):t===re(this,ho);let i=re(this,js),o=re(this,Gs);if(s===void 0){let g=t.length,y=g+1>>1;if(go)return!1;(yo)&&(s=Zi(t))}if(s!==void 0&&(s.lengtho))return!1;let r=re(this,Tn).length;if(re(this,Ws))if(re(this,Go)!==void 0&&re(this,Wo)!==void 0){if(!t.startsWith(re(this,Go))||!t.endsWith(re(this,Wo)))return!1}else{s??(s=Zi(t));let g=s.length-re(this,vn).length;if(!oc(re(this,Tn),s,0)||!oc(re(this,vn),s,g))return!1}let u=!this.options.dot&&t.startsWith(".");if(re(this,go)){if(t==="."||t===".."||u&&!r)return!1;if(re(this,Hs))return!0;s??(s=Zi(t));let g=s.length-re(this,vn).length;return sv(re(this,go),s,r,g)}if(s??(s=Zi(t)),t==="."||t===".."){re(this,mo)??Fe(this,mo,nc(re(this,jo)));let g=re(this,er)??Fe(this,er,new Us(!0,!1,re(this,mo))),y=g.state();g.add(y,re(this,Un),0,!0);let m=g.done(y);for(let b=0;b{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var zn=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!1}={})=>s?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var yo=(e,{windowsPathsNoEscape:t=!1,magicalBraces:s=!0}={})=>s?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var zt=(e,t,s={})=>(Ks(t),!s.nocomment&&t.charAt(0)==="#"?!1:dv(t,s).match(e)),Ko=new Map,lv=256,dv=(e,t)=>{let s=e+"\0"+JSON.stringify(t),i=Ko.get(s);return i?Ko.delete(s):(i=new bo(e,{...t}),Ko.size>=lv&&Ko.delete(Ko.keys().next().value)),Ko.set(s,i),i},yc=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",fc={win32:{sep:"\\"},posix:{sep:"/"}},uv=yc==="win32"?fc.win32.sep:fc.posix.sep;zt.sep=uv;var vt=Symbol("globstar **");zt.GLOBSTAR=vt;var cv=(e,t={})=>s=>zt(s,e,t);zt.filter=cv;var Dn=(e,t={})=>Object.assign({},e,t),pv=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return zt;let t=zt;return Object.assign((i,o,r={})=>t(i,o,Dn(e,r)),{Minimatch:class extends t.Minimatch{constructor(o,r={}){super(o,Dn(e,r))}static defaults(o){return t.defaults(Dn(e,o)).Minimatch}},unescape:(i,o={})=>t.unescape(i,Dn(e,o)),escape:(i,o={})=>t.escape(i,Dn(e,o)),filter:(i,o={})=>t.filter(i,Dn(e,o)),defaults:i=>t.defaults(Dn(e,i)),braceExpand:(i,o={})=>t.braceExpand(i,Dn(e,o)),match:(i,o,r={})=>t.match(i,o,Dn(e,r)),sep:t.sep,GLOBSTAR:vt})};zt.defaults=pv;var bc=(e,t={})=>(Ks(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ec(e,{max:t.braceExpandMax}));zt.braceExpand=bc;var fv=(e,t,s={})=>{let i=new bo(t,s);return e=e.filter(o=>i.match(o)),i.options.nonull&&!e.length&&e.push(t),e};zt.match=fv;var mc=/[?*]|[+@!]\(.*?\)|\[|\]/,wc=(e,t)=>{let s=t+1;(e.charAt(s)==="!"||e.charAt(s)==="^")&&s++;let i=!1;for(;s{if(!t&&(e==="+()"||e==="@()"))return e;let s="";for(let i=0;i{if(/^[?*+@]\(\)$/.test(e)||e.includes("[:"))return!1;let t=0;for(let s=0;stypeof e=="string"?t===e:t!==""&&e.testUnchecked(t),gc=(e,t,s,i,o)=>Hn(e,t)?s:i!==void 0&&Hn(e,i)?o:-1,_a=e=>e==="."||e==="..",La=e=>typeof e=="string"&&/^[a-z]:$/i.test(e),sr=e=>typeof e=="string"&&/^unc$/i.test(e),qa=e=>{if(e[0]!==""||e[1]!=="")return-1;let t=e[2]!=="?"?2:sr(e[3])?4:-1,s=e[t],i=e[t+1];return t!==-1&&s!==void 0&&s!==""&&s!==vt&&i!==void 0&&i!==""&&i!==vt?t:-1},or=(e,t)=>!_a(e)&&(t||!e.startsWith(".")),Ys=(e,t,s,i,o)=>{for(let r=t;r=s||rr(e.charCodeAt(p),o))return!0}let u=Fa(e,r,o);if(u===-1)return!1;for(r=u+1;rt==="/"?e===47:t==="\\"?e===92:e===47||e===92,Fa=(e,t,s)=>{if(s!=="both")return e.indexOf(s,t);let i=e.indexOf("/",t),o=e.indexOf("\\",t);return i===-1?o:o===-1?i:Math.min(i,o)},vc=(e,t,s)=>s!=="both"?e.lastIndexOf(s,t):Math.max(e.lastIndexOf("/",t),e.lastIndexOf("\\",t)),$a={},jn,Jo,Gn,Pn,Xo,Qo,Wn,Xs,Zo,Qs,_e,ir,Js,kc,Cc,Sc,Ec,Nc,Rc,Ua,Tc,Dc,Ba,Yo,za,bo=class{constructor(t,s={}){qe(this,_e);et(this,"options");et(this,"set");et(this,"pattern");et(this,"windowsPathsNoEscape");et(this,"nonegate");et(this,"negate");et(this,"comment");et(this,"empty");et(this,"preserveMultipleSlashes");et(this,"partial");et(this,"globSet");et(this,"globParts");et(this,"nocase");et(this,"isWindows");et(this,"platform");et(this,"windowsNoMagicRoot");et(this,"maxGlobstarRecursion");qe(this,jn);qe(this,Jo);qe(this,Gn);qe(this,Pn);qe(this,Xo,[]);qe(this,Qo,[]);qe(this,Wn,[]);qe(this,Xs,new Map);qe(this,Zo,!1);qe(this,Qs,new WeakMap);Ks(t),s=s||{},this.options=s,this.maxGlobstarRecursion=s.maxGlobstarRecursion??200,this.pattern=t,this.platform=s.platform||yc,this.isWindows=this.platform==="win32";let i="allowWindowsEscape";this.windowsPathsNoEscape=!!s.windowsPathsNoEscape||s[i]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!s.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!s.nonegate,this.comment=!1,this.empty=!1,this.partial=!!s.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=s.windowsNoMagicRoot!==void 0?s.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],Fe(this,jn,!this.preserveMultipleSlashes),Fe(this,Gn,(s.optimizationLevel??1)>=2);let o=s.normalize;Fe(this,Pn,o===!0?"NFC":o||void 0),this.make();let r=this.set.map(u=>$e(this,_e,Js).call(this,u));Fe(this,Wn,this.set.map((u,p)=>re(this,jn)&&u.length-1>r[p])),Fe(this,Xo,this.set.map((u,p)=>{let c=re(this,Wn)[p]?u.length-1:u.length,v=u.slice(r[p]+1,c).filter(g=>typeof g=="string"&&!!g);return[...new Set(v)]})),Fe(this,Jo,re(this,Xo).some(u=>u.length)),Fe(this,Qo,this.set.map((u,p)=>{let[c,v,g]=u;if(re(this,Wn)[p]&&u.length===2&&c===vt&&v!==vt)return"tail";if(re(this,Wn)[p]&&s.matchBase&&u.length===1&&c!==vt&&c!=="")return"base";if(!(!re(this,jn)||r[p]!==-1)){if(u.length===3&&c===vt&&g===vt&&v!==vt&&v!==""&&this.maxGlobstarRecursion>0)return"mid";if(u.length===2&&v===vt&&c!==vt&&c!=="")return"head"}}))}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let s of t)if(typeof s!="string")return!0;return!1}make(){let t=this.pattern,s=this.options;if(!s.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())];let i=this.globSet.map(r=>$e(this,_e,za).call(this,r));this.globParts=this.preprocess(i),Fe(this,Zo,!0);let o=this.globParts.map((r,u,p)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[2]==="?"&&sr(r[3])?6:4,v=r[0]===""&&r[1]===""&&(r[2]==="?"||!mc.test(r[2]))&&r.slice(3,c).every(y=>!mc.test(y)),g=/^[a-z]:/i.test(r[0]);if(v)return[...r.slice(0,c).map(y=>$e(this,_e,ir).call(this,y)),...r.slice(c).map(y=>this.parse(y))];if(g)return[$e(this,_e,ir).call(this,r[0]),...r.slice(1).map(y=>this.parse(y))]}return r.map(c=>this.parse(c))});if(this.set=o.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r{for(let p=0;pi.length));for(let i=0;i{if(!(u[i]instanceof Bs||u[i]===$a)||!hv(this.globParts[p][i]))return;let c=[...this.globParts[p]];c[i]="";let v=`${u.length}/${c.join("/")}`,g=o.get(v);g?g.push(p):o.set(v,[p])});let r=new Set;for(let u of o.values()){if(u.length<2)continue;let[p,...c]=u,g=`@(${u.map(y=>this.globParts[y][i]).join("|")})`;this.globParts[p][i]=g,this.set[p][i]=this.parse(g);for(let y of c)r.add(y)}r.size&&(t=!0,this.set=this.set.filter((u,p)=>!r.has(p)),this.globParts=this.globParts.filter((u,p)=>!r.has(p)))}}}preprocess(t){if(this.options.noglobstar)for(let i of t)for(let o=0;o=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):s>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(s=>{let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let o=i;for(;s[o+1]==="**";)o++;o!==i&&s.splice(i,o-i)}return s})}levelOneOptimize(t){return t.map(s=>{let i=$e(this,_e,Js).call(this,s)+1;return s=s.reduce((o,r)=>{let u=o[o.length-1];return r==="**"&&u==="**"?o:r===".."&&o.length>i&&u&&u!==".."&&u!=="."&&u!=="**"?(o.pop(),o):(o.push(r),o)},[]),s.length===0?[""]:s})}firstPhasePreProcess(t){let{braceExpandMax:s=1e5}=this.options,i=!1;do{i=!1;for(let o of t){let r=-1;for(;(r=o.indexOf("**",r+1))!==-1;){let c=r;for(;o[c+1]==="**";)c++;c>r&&o.splice(r+1,c-r);let v=o[r+1],g=o[r+2],y=o[r+3];if(v!==".."||!g||g==="."||g===".."||!y||y==="."||y===".."||t.length>=s)continue;i=!0,o.splice(r,1);let m=o.slice(0);m[r]="**",t.push(m),r--}if(!this.preserveMultipleSlashes){for(let c=1;c1e3)return t;for(let s=0;ss.length)}partsMatch(t,s,i=!1){let o=0,r=0,u=[],p="";for(;o=0;v--)c=r[v];for(let v=0;v=0){let w=S;for(;w>0&&rr(t.charCodeAt(w-1),s);)w--;p=w===0?0:vc(t,w-1,s)+1,u=t.slice(p,w)}let N=re(this,Gn)&&(_a(o)||o===""&&u!==void 0&&_a(u));i=N?-1:1,m=!N}let b=-1;if(m&&typeof y=="string"&&(b=gc(y,o,r,u,p),b===-1))continue;if(re(this,Jo)){for(let S of re(this,Xo)[v])if(!t.includes(S))continue e}if(m&&typeof y=="object"&&(b=gc(y,o,r,u,p),b===-1))continue;let E=re(this,Qo)[v];if(E==="base"&&m)return"yes";if(E==="tail"&&m){if(re(this,Gn)&&Ys(t,0,b,!0,s))return"maybe";if(!Ys(t,0,b,c,s))return"yes";continue}if(E==="mid"||E==="head"){let S=$e(this,_e,Sc).call(this,t,g,E==="head",c,s);if(S!=="no")return S;continue}return"maybe"}return"no"},Cc=function(t,s,i){let o=!!this.options.dot,r=t.length;if(i==="head"){if(r<2||!Hn(s[0],t[0]))return!1;for(let p=1;pp&&u.testUnchecked(t.slice(p,c)))&&!Ys(t,v,t.length,o,r))return"yes";if(i||Ys(t,p,v,o,r))return"no";p=v}return"no"},Ec=function(t){let s=Va;return s?.f===t&&s.isWindows===this.isWindows&&s.preserveMultipleSlashes===this.preserveMultipleSlashes&&s.normalize===re(this,Pn)?s:void 0},Nc=function(t){let{isWindows:s,preserveMultipleSlashes:i}=this,o=$e(this,_e,za).call(this,s?t.split("\\").join("/"):t),r=re(this,Pn);return r&&(o=o.map(u=>u.normalize(r))),Va={f:t,isWindows:s,preserveMultipleSlashes:i,normalize:r,parts:o},Va},Rc=function(t){let s=[...t],i=!1;do{if(i=!1,!this.preserveMultipleSlashes){for(let u=1;ut.length)return!1;let y=t.length-c.length;if($e(this,_e,Yo).call(this,t,c,i,y,0))g=c.length;else{if(t[t.length-1]!==""||o+c.length===t.length||(y--,!$e(this,_e,Yo).call(this,t,c,i,y,0)))return!1;g=c.length+1}}if(!p.length){let y=!!g;for(let m=o;m{w[1]=E-S[D]});let N={head:v,body:g,tail:y,segments:m};return o[r]=N,N},Ba=function(t,s,i,o,r,u,p,c,v){let g=s[r];if(!g){if(u)return o>=i||o===i-1&&t[o]==="";for(let E=o;Ee.lastIndexOf(t)===s)}function ja(e){let t=(e||[]).filter(s=>typeof s=="string"&&s.length>0).map(s=>{let{negated:i,anchored:o,directoryOnly:r,body:u}=gv(s);return{negated:i,directoryOnly:r,matcher:new bo(u,{dot:!0,nonegate:!0,nocomment:!0,matchBase:!o&&!u.includes("/")})}});return(s,i=!1)=>{let o=(s||"").replace(/^\/+/,"");if(!o)return!1;let r=o.split("/"),u=r.slice(0,-1).map((c,v)=>r.slice(0,v+1).join("/")),p=i;for(let c of t){if(c.negated?!p:p)continue;(c.directoryOnly?u:[...u,o]).some(g=>c.matcher.match(g))&&(p=!c.negated)}return p}}var Qoe=new Set("^$\\.*+?()[]{}|/dDsSwWbBnrtvf0cxupP".split(""));function Ga(e){let t=e.indexOf("=>");if(t<0)return{term:e,replacement:null};let s=e.slice(0,t).replace(/\s+$/,""),i=e.slice(t+2).replace(/^\s+/,"");return s?{term:s,replacement:i}:{term:e,replacement:null}}var Pc=new Set(["*","+","?","(",")","[","]","{","}","|","^","$"]);function Ac(e){let t=[];return String(e||"").split(` `).forEach((s,i)=>{let{term:o}=Ga(s.trim());if(!o)return;let r=[];for(let u=0;u{let t=e.target;if(!t||t.tagName!=="IMG"||t.dataset.failed||!t.closest?.(".markdown-body, .anonymize-preview-body"))return;t.dataset.failed="1";let s=window.document.createElement("span"),i=parseInt(t.getAttribute("width"),10)||0,o=parseInt(t.getAttribute("height"),10)||0;s.className=i>=200||o>=120?"img-unavailable is-large":"img-unavailable",s.textContent="Image unavailable",s.title=t.alt?"Image unavailable: "+t.alt.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]"):"Image unavailable",s.setAttribute("role","img"),s.setAttribute("aria-label",s.title),t.replaceWith(s)},!0);function ar(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(Kn.ERRORS,t.error)?t.error:e?.status===-1||e?.status===0?"request_error":[502,503,504].includes(e?.status)?"unreachable":"unknown_error"}var lr="XXXX",yv=e=>{lr=e||"XXXX"},bv=(e=lr)=>{if(!e)return null;let t=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return new RegExp(t+"(?:-\\d+)?","g")},Oc=(e,t=lr)=>{let s=bv(t);if(!s||!e||!e.textContent.includes(t))return;let i=e.ownerDocument,o=i.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=[];for(;o.nextNode();)r.push(o.currentNode);for(let u of r){let p=u.nodeValue,c=u.parentElement;if(!p.includes(t)||!c||c.closest("script, style, mark.redaction, .mermaid"))continue;let v=c.closest('code[class*="language-"]');if(v&&!v.contains(e))continue;let g=i.createDocumentFragment(),y=0;for(let m of p.matchAll(s)){g.append(p.slice(y,m.index));let b=i.createElement("mark");b.className="redaction",b.title="Redacted by Anonymous GitHub",b.textContent=m[0],g.append(b),y=m.index+m[0].length}g.append(p.slice(y)),u.replaceWith(g)}},Zs=/\bXXXX-\d+\b/g,qs=function(e){if(!e||e.indexOf("XXXX-")===-1||typeof window.DOMParser!="function")return e;let t=new window.DOMParser().parseFromString("
"+e+"
","text/html"),s=t.createTreeWalker(t.body,4),i=[];for(;s.nextNode();)Zs.lastIndex=0,!s.currentNode.parentElement?.closest("pre code")&&Zs.test(s.currentNode.nodeValue)&&i.push(s.currentNode);for(let o of i){Zs.lastIndex=0;let r=t.createDocumentFragment(),u=0,p,c=o.nodeValue;for(;p=Zs.exec(c);){r.appendChild(t.createTextNode(c.slice(u,p.index)));let v=t.createElement("mark");v.className="redact-chip",v.setAttribute("title","Redacted term "+p[0].slice(5)+" \u2014 the same term everywhere in this snapshot");let g=p[0].slice(5);v.textContent="";let y=t.createElement("i");y.textContent=g,v.appendChild(y),v.dataset.term=p[0],v.setAttribute("aria-label","Redacted term "+g);let m=/^[.,;:!?)\]]+/.exec(c.slice(p.index+p[0].length));if(m){let b=t.createElement("span");b.className="redact-glue",b.appendChild(v),b.appendChild(t.createTextNode(m[0])),r.appendChild(b),u=p.index+p[0].length+m[0].length}else r.appendChild(v),u=p.index+p[0].length}r.appendChild(t.createTextNode(c.slice(u))),o.parentNode.replaceChild(r,o)}return t.body.firstChild.innerHTML},Mc=()=>{window.Prism?.hooks&&!window.Prism.redactionHook&&(window.Prism.hooks.add("complete",e=>{Oc(e.element),e.element.querySelectorAll?.("mark.redaction").forEach(t=>{let s=/^XXXX-(\d+)$/.exec(t.textContent);if(!s)return;t.className="redact-chip",t.setAttribute("title","Redacted term "+s[1]+" \u2014 the same term everywhere in this snapshot"),t.setAttribute("aria-label","Redacted term "+s[1]),t.dataset.term=s[0],t.style.setProperty("--slot-ch",s[0].length+"ch"),t.textContent="";let i=t.ownerDocument.createElement("span");i.className="redact-src",i.textContent=s[0].slice(0,s[0].length-s[1].length),t.appendChild(i);let o=t.ownerDocument.createElement("i");o.textContent=s[1],t.appendChild(o)})}),window.Prism.redactionHook=!0)},Vc=(e,t=lr)=>{if(!e||!t||!e.includes(t))return e;let s=new DOMParser().parseFromString(""+e+"","text/html");return Oc(s.body,t),s.body.innerHTML};async function Wa(e){if(window.navigator.clipboard?.writeText){await window.navigator.clipboard.writeText(e);return}let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0";let s=document.activeElement;document.body.appendChild(t);try{if(t.select(),!document.execCommand?.("copy"))throw Error("Copy unavailable")}finally{t.remove(),s?.focus()}}function wv(e){if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=[...e.currentTarget.closest('[role="tablist"]').querySelectorAll('[role="tab"]')],s=t.indexOf(e.currentTarget),i=e.key==="Home"?0:e.key==="End"?t.length-1:(s+(e.key==="ArrowRight"?1:-1)+t.length)%t.length;e.preventDefault(),t[i]?.focus(),t[i]?.click()}var Lc=function(e,t,s,i){e.previewTabKeydown=wv,e.headerCanUpgrade=!1,e.headerShowSupport=!1,e.headerBillingPending=new URLSearchParams(window.location.search).get("billing")==="success";let o=N=>{e.headerShowSupport=!(N?.grants||[]).some(D=>["active","paid","past_due"].includes(D.status)&&new Date(D.until).getTime()>Date.now());let w=(N?.grants||[]).some(D=>["author_monthly","author_annual"].includes(D.planId)&&["active","paid","past_due"].includes(D.status)&&new Date(D.until).getTime()>Date.now());e.headerCanUpgrade=!!N?.enabled&&N.checkoutEnabled!==!1&&!w&&(N.plans||[]).some(D=>["author_monthly","author_annual"].includes(D.id))};e.on("billing:updated",(N,w)=>o(w)),e.on("billing:pending",(N,w)=>{e.headerBillingPending=w}),e.openHeaderUpgrade=()=>{s.path()==="/profile"?e.emit("settings:upgrade"):s.url("/profile?upgrade=1")};let r=Bt(),u=kt(),p=!1,c=()=>{p=!1;let N=document.querySelector("nav.navbar.navbar-expand-lg");if(!N||(N.classList.remove("nav-fit-1","nav-fit-2"),window.innerWidth<992))return;let w=N.querySelector(".navbar-collapse"),D=()=>N.scrollWidth>N.clientWidth+1||!!w&&w.scrollWidth>w.clientWidth+1;D()&&N.classList.add("nav-fit-1"),D()&&N.classList.add("nav-fit-2")},v=()=>{p||(p=!0,je(()=>u.timeout(c,0)))};r(window,"resize",v),e.on("routeChange",v),e.on("billing:updated",v),document.fonts?.ready&&document.fonts.ready.then(v).catch(()=>{}),e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(N){let w=e.toasts.indexOf(N);w!==-1&&e.toasts.splice(w,1)},e.addToast=function(N){return e.toasts.push(N),i(function(){e.removeToast(N)},8e3),N};let g=/^\/(r|repository|pr|gist)\//;e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=g.test(s.path()),e.darkMode=function(N){localStorage.setItem("darkMode",N),e.isDarkMode=N;let w="/css/prism.css";if($("link[href='/css/prism-okaidia.css']").remove(),N)$("body").addClass("dark-mode"),$(`link[href='${w}']`).remove();else if($("body").removeClass("dark-mode"),!document.querySelector(`link[href='${w}']`)){let D=document.createElement("link");D.href=w,D.rel="stylesheet",document.head.append(D)}e.emit("dark-mode",N)},e.darkMode(localStorage.getItem("darkMode")=="true"),e.emailPromptOpen=!1,e.emailPromptAddress="",e.emailPromptBusy=!1,e.emailPromptError="";let y;e.respondToEmailPrompt=async N=>{if(!e.emailPromptBusy){e.emailPromptBusy=!0,e.emailPromptError="";try{let w=await t.post("/github/connections/email",{action:N,email:e.emailPromptAddress},{headers:{"X-CSRF-Token":e.user.emailPromptCSRF}});N==="save"&&(e.user.notificationEmail=w.data.notificationEmail),e.emailPromptOpen=!1,e.user.showEmailPrompt=!1,y?.focus()}catch(w){e.emailPromptError=w.data?.error||"Unable to save your preference. Please try again."}finally{e.emailPromptBusy=!1}}};function m(){t.get("/api/user").then(N=>{N&&(e.user=N.data),v(),e.user?.username?Wi(t).then(w=>o(w.data)).catch(()=>{}):e.headerShowSupport=!0,e.user?.emailNotificationsEnabled&&e.user.showEmailPrompt&&!e.user.notificationEmail&&(y=document.activeElement,e.emailPromptOpen=!0,i(()=>{let w=document.getElementById("email-prompt");w?.showModal?w.showModal():w?.setAttribute("open",""),document.getElementById("email-prompt-address")?.focus()},0))},()=>{e.user=null,e.headerShowSupport=!0})}m();function b(){t.get("/api/options").then(N=>{N&&(e.site_options=N.data),yv(N?.data?.ANONYMIZATION_MASK),e.emit("site-options")},()=>{e.site_options=null})}b();function E(){t.get("/api/message").then(N=>{N&&(e.generalMessage=N.data)},()=>{e.generalMessage=null})}E();function S(N,w){w&&(e.title=w.title),e.path=s.url(),e.paths=s.path().substring(1).split("/"),e.isReviewerRoute=g.test(s.path())}e.on("routeChange",S),e.on("routeUpdate",S)},qc=function(e,t){let s=Bt(),i=kt();e.faqQuery="",e.faqResults=0;let o=u=>(u||"").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g," ");e.filterFaq=()=>{let u=o(e.faqQuery).trim().split(" ").filter(Boolean),p=0;document.querySelectorAll(".faq-section .panel-group").forEach(c=>{let v=0;c.querySelectorAll(":scope > .panel").forEach(m=>{let b=m.dataset.faqText||(m.dataset.faqText=o(m.textContent)),E=u.every(S=>b.includes(S));m.classList.toggle("faq-hit",u.length>0&&E),m.hidden=u.length>0&&!E,E&&v++});let g=u.length>0&&v===0;c.hidden=g;let y=c.previousElementSibling;y?.classList.contains("faq-cat")&&(y.hidden=g),p+=v}),e.faqResults=u.length?p:0},e.clearFaqSearch=()=>{e.faqQuery="",e.filterFaq(),document.getElementById("faq-search-input")?.focus()};let r=()=>{let u=window.location.hash.slice(1),p=document.getElementById(u);if(!p?.classList.contains("panel-collapse"))return;$(p).collapse("show");let c=document.getElementById(p.getAttribute("aria-labelledby"));c?.setAttribute("tabindex","-1"),c?.focus({preventScroll:!0}),c?.scrollIntoView?.({block:"start"})};e.on("routeUpdate",()=>i.timeout(r,0)),s(window,"hashchange",r),i.timeout(r,0)},$c=function(e,t,s,i,o){e.settingsTab=/(?:billing|upgrade)=/.test(window.location.search)?"billing":"defaults",e.confirmDeleteAccount=!1,e.deleteUsername="",e.profilePastSubscription=()=>!e.profileAuthorGrant()&&(e.billing?.grants||[]).some(g=>["author_monthly","author_annual"].includes(g.planId)),e.showAuthorPlans=new URLSearchParams(window.location.search).get("upgrade")==="1",e.showRepositoryPass=!1,e.profilePlan="author_annual",e.openProfileUpgrade=()=>{e.settingsTab="billing",e.showAuthorPlans=!0,je(()=>document.getElementById("settings-plan-comparison")?.focus())},e.on("settings:upgrade",()=>e.openProfileUpgrade()),e.profileAuthorPlans=()=>(e.billing?.plans||[]).filter(g=>["author_monthly","author_annual"].includes(g.id)),e.profileSelectedPlan=()=>e.profileAuthorPlans().find(g=>g.id===e.profilePlan)||e.profileAuthorPlans()[0],e.profilePassPlan=()=>(e.billing?.plans||[]).find(g=>g.id==="author_pass"),e.profileAddonPlans=()=>(e.billing?.plans||[]).filter(g=>Gi(g.id)).sort((g,y)=>+(y.id==="repo_pack")-+(g.id==="repo_pack")),e.profileAddonId="repo_pack",e.profilePackPlan=()=>(e.billing?.plans||[]).find(g=>g.id==="repo_pack"),e.profileSlotPlan=()=>(e.billing?.plans||[]).find(g=>g.id==="repo_slot"),e.profileRepositories=()=>(e.billing?.repositories||[]).filter(g=>g.status!=="removed"),e.openProfileAddon=g=>{g&&(e.profileAddonId=g),e.showRepositoryPass=!0,e.billingRepository="",je(()=>{let y=document.getElementById("settings-addons-title");y?.scrollIntoView?.({block:"nearest",behavior:"smooth"}),y?.focus?.({preventScroll:!0})})};let r=["repo_slot","author_pass","repo_extend","repo_never"];e.profileSingleAddons=()=>e.profileAddonPlans().filter(g=>g.id!=="repo_pack").sort((g,y)=>r.indexOf(g.id)-r.indexOf(y.id)),e.profileSingleId="repo_slot",e.profileSingleAddon=()=>e.profileSingleAddons().find(g=>g.id===e.profileSingleId)||e.profileSingleAddons()[0],e.profileCheapestAddon=()=>[...e.profileSingleAddons()].sort((g,y)=>(g.amount??1/0)-(y.amount??1/0))[0],e.profileAuthorPlansByValue=()=>[...e.profileAuthorPlans()].sort((g,y)=>+(g.interval==="year")-+(y.interval==="year")),e.profilePackSummary=g=>g.parts.map(y=>y.planId==="repo_slot"?"Extra repository":`${e.profileGrantName(y)} until ${e.billingDate(y.until)}`).join(" \xB7 "),e.profileAddonFeatures=g=>({repo_pack:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage)} of storage`,"Automatic updates for 180 days","Online for up to a year","No subscription"],repo_slot:["One more repository, outside your free ones",`Its own ${e.billingBytes(e.profileSlotPlan()?.storage)} of storage`,"Valid while the repository exists","Refresh it by hand"],author_pass:["Automatic updates for 180 days",`Its own ${e.billingBytes(e.profilePassPlan()?.storage)} of storage`,"No subscription"],repo_extend:["Online for up to one more year","Buy again to add another year","No subscription"],repo_never:["The link never expires","No subscription","Ends only if the payment is refunded"]})[g]||[],e.profileAddonBlurb=g=>({repo_slot:"One more repository",author_pass:"Auto-updates for 180 days",repo_extend:"Online one more year",repo_never:"The link never expires"})[g]||"",e.profileAuthorPurchase=()=>(e.billing?.purchases||[]).find(g=>g.recurring&&["active","overdue"].includes(g.status)),e.profileRepositoryExpiry=g=>g.status==="expired"?"expired":g.expirationMode==="never"?"never expires":g.expirationDate?"expires "+e.billingDate(g.expirationDate):"no date",e.profileAnnualSavings=()=>{let g=e.profileAuthorPlans().find(m=>m.interval==="month")?.amount,y=e.profileAuthorPlans().find(m=>m.interval==="year")?.amount;return g&&y&&y(e.billing?.purchases||[]).filter(y=>["active","overdue"].includes(y.status)===g),e.profilePurchaseStatus=g=>({active:"Active",overdue:"Payment overdue",ended:"Ended",refunded:"Refunded",disputed:"Disputed"})[g.status]||g.status,e.profilePurchaseTerm=g=>{let y=g.status&&!["active","overdue"].includes(g.status);if(g.recurring)return y?g.until?"Ended "+e.billingDate(g.until):"":(g.cancelAtPeriodEnd?"Ends ":"Renews ")+e.billingDate(g.until);if(g.planId==="repo_pack"){let m=g.parts.map(b=>b.until).filter(Boolean).map(b=>new Date(b).getTime());return y||!m.length?"":"Until "+e.billingDate(new Date(Math.max(...m)))}return g.until?(y||new Date(g.until).getTime()e.profileAddonPlans().find(g=>g.id===e.profileAddonId)||e.profileAddonPlans()[0],e.profileAuthorGrant=()=>(e.billing?.grants||[]).find(g=>["author_monthly","author_annual"].includes(g.planId)&&["active","paid","past_due"].includes(g.status)&&new Date(g.until).getTime()>Date.now()),e.profileConferencePlan=()=>(e.billing?.plans||[]).filter(g=>["conference_workshop","conference","conference_large"].includes(g.id)&&g.amount!=null).sort((g,y)=>g.amount-y.amount)[0],e.profileGrantName=g=>({author_monthly:"Author monthly",author_annual:"Author annual",author_pass:"Live updates",repo_extend:"Extended expiration",repo_never:"Never expire",repo_slot:"Extra repository",repo_pack:"Paper pack",conference:"Conference package",conference_workshop:"Workshop package",conference_large:"Large conference package"})[g.planId]||g.planId,Ki(e,t,()=>o.load().then(g=>{e.quota=g},console.error),{portalMessage:()=>{let g=e.profileAuthorGrant();return g?g.cancelAtPeriodEnd?`Renewal cancelled. Your access continues until ${e.billingDate(g.until)}.`:`Your subscription renews on ${e.billingDate(g.until)}.`:"Your billing details are up to date."}}),e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,e.accountEmail="",e.emailLoading=!0,e.emailCSRFReady=!1,e.emailSaving=!1,e.emailSaved=!1,e.emailError="";let u="";e.loadAccountEmail=async()=>{e.emailLoading=!0,e.emailError="";try{let g=await t.get("/github/connections/email");e.accountEmail=g.data.notificationEmail||"",u=g.data.csrf,e.emailCSRFReady=!!u}catch{e.emailError="Unable to load your email address. Please try again."}finally{e.emailLoading=!1}},e.saveAccountEmail=async()=>{if(!(e.emailSaving||e.emailLoading||!u)){e.emailSaving=!0,e.emailSaved=!1,e.emailError="";try{let g=await t.post("/github/connections/email",{email:e.accountEmail},{headers:{"X-CSRF-Token":u}});e.accountEmail=g.data.notificationEmail,e.user&&(e.user.notificationEmail=g.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(),o.load().then(g=>{e.quota=g},console.error);let p=ga(e,["terms","options"],"profile");e.discardDraft=()=>p.discard();function c(){t.get("/api/user/default").then(g=>{let y=g.data||{};y.terms&&(e.terms=y.terms.join(` `)),e.options=Object.assign({},e.options,y.options),p.restore()})}c();let v=null;e.saveDefault=g=>{if(g&&g.preventDefault&&g.preventDefault(),e.saving)return;let y=p.checkpoint(),m={terms:e.terms.split(` -`).map(b=>b.trim()).filter(b=>b.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",m).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",v&&i.cancel(v),v=i(()=>{e.message=null},2500)},b=>{e.saving=!1;let E=b&&b.data&&b.data.error,S="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+E),s("ERRORS.unknown_error")]).then(([N,w])=>{e.error=E&&N!==w?N:S},()=>{e.error=S})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Fc=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},_c=function(e,t,s,i,o){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,c){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(v===void 0)return;p.preventDefault();let g=e.features.length,y=v==="first"?0:v==="last"?g-1:(c+v+g)%g;e.feature=e.features[y].key,o(()=>{let m=i.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.demoText=`# DeepLearnUtils +`).map(b=>b.trim()).filter(b=>b.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",m).then(()=>{p.accept(y),e.saving=!1,e.message=e.unsavedChanges?null:"Saved",v&&i.cancel(v),v=i(()=>{e.message=null},2500)},b=>{e.saving=!1;let E=b&&b.data&&b.data.error,S="Unable to save your defaults. Please try again.";Promise.all([s("ERRORS."+E),s("ERRORS.unknown_error")]).then(([N,w])=>{e.error=E&&N!==w?N:S},()=>{e.error=S})})},e.deleteAccount=()=>{e.deletingAccount||!e.confirmDeleteAccount||e.deleteUsername!==e.user?.username||(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},_c=function(e,t,s){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(i=>{s.url("/dashboard")},i=>{e.error=i.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Fc=function(e,t,s,i,o){e.user&&!e.user.status&&s.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&s.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(p){e.feature=p},e.featureHref=function(p){return p.needsUser&&!e.user?"/signin":p.href},e.featureTarget=function(p){return p.needsUser&&!e.user?"_self":p.target||void 0},e.featureKeydown=function(p,c){let v={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[p.key];if(v===void 0)return;p.preventDefault();let g=e.features.length,y=v==="first"?0:v==="last"?g-1:(c+v+g)%g;e.feature=e.features[y].key,o(()=>{let m=i.document.getElementById("feature-tab-"+e.feature);m&&m.focus()})},e.demoText=`# DeepLearnUtils Developed by Jane Smith at MIT CSAIL. See Smith et al., "Attention That Works," 2026. -Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(m=>m.trim()).filter(Boolean).sort((m,b)=>b.length-m.length),c=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let v=new RegExp("("+p.map(c).join("|")+")","gi"),g={},y=0;return(e.demoText||"").split(v).filter(m=>m!=="").map(m=>{let b=p.find(E=>E.toLowerCase()===m.toLowerCase());return b?(g[b.toLowerCase()]||(g[b.toLowerCase()]=++y),{text:String(g[b.toLowerCase()]),redacted:!0,original:m}):{text:m}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function u(p){let c={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return c;let v=new Array(p.length-1);for(let S=1;S=2){let S=v[g-2];S&&(c.pctChange=(c.deltaToday-S)/S*100)}return c.pctAbs=Math.round(Math.abs(c.pctChange)),c.isUp=c.pctChange>=0,c}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let c=p.data||[];e.history={repositories:u(c.map(v=>v.nbRepositories||0)),users:u(c.map(v=>v.nbUsers||0)),pageViews:u(c.map(v=>v.nbPageViews||0)),pullRequests:u(c.map(v=>v.nbPullRequests||0))}}).catch(()=>{})},Uc=function(e,t,s,i,o,r){let u=kt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,je(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Bt()(document,"click",k=>{e.quotaExpanded&&!k.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=k=>k.status==="error"||k._broken||c(k.status)==="progress"&&k._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=k=>{e.projectView=k,k==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=k=>{let q=va(k?.anonymizeDate||k?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=k=>"project-details-"+encodeURIComponent(k._type+":"+(k._id||k._source||"unknown")),e.showProjectDetails=async k=>{e.selectedProject=k,e.projectName=k.projectName||"",e.nameError="",e.nameMessage="",await je();let q=document.getElementById(e.projectDetailsId(k));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=k=>{e.selectedProject=null,je(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(k._type+":"+k._id)}"]`)?.focus())},e.saveProjectName=async k=>{if(e.nameSaving||!k._id)return;let q=e.projectName.trim();if(q.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let W=await t.post("/api/user/project-name",{type:k._type,id:k._id,name:q});k.projectName=W.data.name,k._label=k.projectName||k._fallbackLabel,e.selectedProject===k&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),D||(e.dashboardCursor=null,await _(),e.selectedProject===k&&(e.selectedProject=e.items.find(H=>H._type===k._type&&H._id===k._id)||null))}catch{e.selectedProject===k&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async k=>{if(!k._viewUrl||e.copyingId)return;let q=new URL(k._viewUrl,o.location.origin).href;e.copyingId=k._type+":"+k._id;try{await Wa(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function c(k){return k==="ready"||k==="error"?k:k==="expired"||k==="expiring"?"expired":k==="removed"||k==="removing"?"removed":(p.indexOf(k)>-1,"progress")}let v=7200*1e3,g="dashboard.filterPrefs",y={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(g)||{};e.typeFilter=m.typeFilter||y.typeFilter,e.filters={status:Object.assign({},y.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||y.orderBy;let b={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=b,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let k=b[e.sortField()];return k?k.label:"Custom"},e.isSortedBy=k=>e.sortField()===k,e.setSort=(k,q)=>{typeof q!="boolean"&&(q=e.isSortedBy(k)?!e.sortDesc():!!(b[k]&&b[k].defaultDesc)),e.orderBy=(q?"-":"")+k},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(k=>{e.quota=k},console.error);function E(k,q,W,H,J,ne){k.pageView||(k.pageView=0),k.lastView||(k.lastView=""),k.options=k.options||{},k.options.terms=(k.options.terms||[]).filter(ue=>ue),k._id=q||"",k._source=H,k._broken=!q,k._name=q||H||"(unnamed)",k._fallbackLabel=k._type==="gist"?"Gist "+(q||H||"without an ID"):H||W||k._name,k._label=k.projectName||k._fallbackLabel,k._editUrl=q?J:null,k._viewUrl=q?ne:null,k._broken&&(k.status="error",k.statusMessage="incomplete_record"),k._statusKey=c(k.status);let G=k.anonymizeDate||k.lastView;if(k._stale=k._statusKey==="progress"&&!!G&&Date.now()-new Date(G).getTime()>v,k.status==="expired"||k.status==="expiring")k._expiry={kind:"expired",date:k.options.expirationDate},k._expiry.label=ba(k.options.expirationDate)||void 0;else if(k.status!=="ready")k._expiry={kind:"none"};else if(k.options.expirationMode==="never"||!k.options.expirationDate)k._expiry={kind:"never"};else{k._expiry={kind:"date",date:k.options.expirationDate};let ue=new Date(k.options.expirationDate).getTime()-Date.now();if(ue>0&&ue<=168*3600*1e3){let he=Math.max(1,Math.round(ue/36e5)),Me=Math.round(ue/864e5);k._expiry.soon=he<48?"in "+he+(he===1?" hour":" hours"):"in "+Me+" days"}}return k}function S(k){return t.get(k).then(q=>q.data||[],q=>(console.error(q),[]))}function N(){return e.loading=!0,i.all([S("/api/user/anonymized_repositories"),S("/api/user/anonymized_pull_requests"),S("/api/user/anonymized_gists")]).then(k=>{let q=k[0],W=k[1],H=k[2],J=[];q.forEach(ne=>{ne._type="repo";let G=ne.source||{};J.push(E(ne,ne.repoId,ne.repoId,G.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),W.forEach(ne=>{ne._type="pr";let G=ne.source||{};J.push(E(ne,ne.pullRequestId,ne.pullRequestId,G.repositoryFullName?G.repositoryFullName+"#"+G.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),H.forEach(ne=>{ne._type="gist";let G=ne.source||{};J.push(E(ne,ne.gistId,ne.gistId,G.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=J,e.removedCount=J.filter(ne=>ne._statusKey==="removed").length,e.loading=!1})}let w=0,D=!1;e.dashboardCursor=null,e.dashboardError="";function O(k){let q=k.source||{};return k._type==="repo"?E(k,k.repoId,k.repoId,q.fullName,"/anonymize/"+k.repoId,"/r/"+k.repoId+"/"):k._type==="pr"?E(k,k.pullRequestId,k.pullRequestId,q.repositoryFullName?q.repositoryFullName+"#"+q.pullRequestId:void 0,"/pull-request-anonymize/"+k.pullRequestId,"/pr/"+k.pullRequestId+"/"):E(k,k.gistId,k.gistId,q.gistId,"/gist-anonymize/"+k.gistId,"/gist/"+k.gistId+"/")}function _(k=!1){if(D)return N();let q=++w;return e.loading=!k,e.loadingMore=k,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(W=>e.filters.status[W]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:k?e.dashboardCursor:void 0}}).then(W=>{if(q===w){if(!Array.isArray(W.data?.items))return D=!0,N();e.items=(k?e.items:[]).concat(W.data.items.map(O)),e.dashboardCursor=W.data.cursor,e.dashboardTotals=W.data,k||F()}},W=>{if(q===w){if(W.status===404)return D=!0,N();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{q===w&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>_(!0);let j;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{D||(j&&u.timeout.cancel(j),j=u.timeout(()=>_(),150))},!1),e.watch("filters",()=>{D||_()},!0,!1),e.on("dispose",()=>{w++}),_(),e.openItem=(k,q)=>{if(!k._viewUrl)return;let W=q&&q.target;W&&W.closest&&W.closest("a, button, .dropdown, input")||(o.location.href=k._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(k=>e.filters.status[k]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let oe=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>oe().every(k=>k==="removed"==(e.filters.status[k]!==!1)),e.isActiveDefault=()=>oe().every(k=>k==="removed"==(e.filters.status[k]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=k=>{if(k==="attention")return e.setProjectView("attention");e.projectView="all",oe().forEach(q=>{e.filters.status[q]=k==="removed"?q==="removed":q!=="removed"})},e.statusChipKeys=()=>{let k=e.statusView();return k==="removed"?[]:oe().filter(q=>e.filters.status[q]===!1&&!(q==="removed"&&k!=="custom"))},e.removedCount=null;function F(){if(D){e.removedCount=e.items.filter(q=>q._statusKey==="removed").length;return}let k=e.dashboardTotals;!k||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,k.total-k.filtered):e.onlyRemovedShown()&&(e.removedCount=k.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(k=>e.filters.status[k]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let k=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(k==="removed"?"removed":"active")};function B(k,q,W,H){t.get("/api/repo/"+k).then(async J=>{let ne=H!==void 0&&H!==J.data.status;for(let G of e.items)if(G._type==="repo"&&G.repoId==k){ne=ne||G.status!==J.data.status;let ue=e.needsAttention(G);G.status=J.data.status,G.statusMessage=J.data.statusMessage,G._statusKey=c(G.status),G._statusKey!=="progress"&&(G._stale=!1);let he=e.needsAttention(G);e.dashboardTotals&&ue!==he&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(he?1:-1)));break}if(ne&&!D){e.dashboardCursor=null;let G=e.selectedProject;await _(),G&&e.selectedProject===G&&(e.selectedProject=e.items.find(ue=>ue._type===G._type&&ue._id===G._id)||null)}if(J.data.status=="ready"||J.data.status=="error"||J.data.status=="removed"||J.data.status=="expired"){q(J.data);return}u.timeout(()=>B(k,q,W,J.data.status),2500)},W)}let I=k=>k==="repo"?"repository":k==="gist"?"gist":"pull request",L=k=>k==="repo"?"/api/repo":k==="gist"?"/api/gist":"/api/pr";e.removeItem=k=>{let q=I(k._type);if(confirm(`Are you sure that you want to remove the ${q} ${k._id}?`)){let W=st({title:`Removing ${k._id}...`,date:new Date,body:`The ${q} ${k._id} is going to be removed.`});e.addToast(W);let H=`${L(k._type)}/${k._id}`;t.delete(H).then(()=>{k._type==="repo"?B(k._id,()=>{W.title=`${k._id} is removed.`,W.body=`The ${q} ${k._id} is removed.`},void 0,k.status):(W.title=`${k._id} is removed.`,W.body=`The ${q} ${k._id} is removed.`,_())},J=>{W.title=`Error during the removal of ${k._id}.`,W.body=J.body,_()})}},e.refreshItem=k=>{let q=I(k._type),W=st({title:`Refreshing ${k._id}...`,date:new Date,body:`The ${q} ${k._id} is going to be refreshed.`});e.addToast(W);let H=ne=>{W.title=`Error during the refresh of ${k._id}.`,W.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",_()},J=`${L(k._type)}/${k._id}/refresh`;t.post(J).then(()=>{k._type==="repo"?B(k._id,ne=>{if(ne.status!=="ready"){H({body:ne.statusMessage||`The repository is ${ne.status}.`});return}W.title=`${k._id} is refreshed.`,W.body=`The ${q} ${k._id} is refreshed.`},H,k.status):(W.title=`${k._id} is refreshed.`,W.body=`The ${q} ${k._id} is refreshed.`,_())},H)},e.extendItem=k=>{let q=I(k._type),W=st({title:`Extending ${k._id}...`,date:new Date,body:`The expiration of ${q} ${k._id} is being extended.`});e.addToast(W);let H=`${L(k._type)}/${k._id}/extend`;t.post(H).then(J=>{let ne=J?.data?.expirationDate?` until ${new Date(J.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";k._type==="repo"?B(k._id,()=>{W.title=`${k._id} is extended.`,W.body=`${q} ${k._id} is extended${ne}.`},void 0,k.status):(W.title=`${k._id} is extended.`,W.body=`${q} ${k._id} is extended${ne}.`,_())},J=>{W.title=`Error during the extension of ${k._id}.`;let ne=J.data&&J.data.error;W.body=ne||J.body,ne&&Object.prototype.hasOwnProperty.call(Kn.ERRORS,ne)&&(W.body=Kn.ERRORS[ne]),_()})},e.itemFilter=k=>{if(e.projectView==="attention"&&!e.needsAttention(k)||e.typeFilter!=="all"&&k._type!==e.typeFilter||e.filters.status[k._statusKey]===!1)return!1;let q=e.search.trim().toLowerCase();return!!(q.length==0||k._label&&String(k._label).toLowerCase().indexOf(q)>-1||k._source&&String(k._source).toLowerCase().indexOf(q)>-1||k._id&&String(k._id).toLowerCase().indexOf(q)>-1||k.conference&&String(k.conference).toLowerCase().indexOf(q)>-1)}};var Bc=function(e,t,s){let i=kt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let o=null;e.copyShareUrl=async()=>{try{await Wa(e.shareUrl),e.copied=!0,o&&i.timeout.cancel(o),o=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=g=>{let y=window.getSelection?.();if(!y||!g?.target)return;let m=document.createRange();m.selectNodeContents(g.target),y.removeAllRanges(),y.addRange(m)};var r=null;let u=null,p=!1;function c(g){e.rateLimitResetAt=g,r&&i.interval.cancel(r);function y(){var m=Math.max(0,Math.ceil((g-Date.now())/1e3));if(m<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(r),r=null;else{var b=Math.floor(m/60),E=m%60;e.rateLimitCountdown=b>0?b+"m "+E+"s":E+"s"}}y(),r=i.interval(y,1e3)}e.on("dispose",function(){p=!0,r&&i.interval.cancel(r),u&&i.timeout.cancel(u)});function v(g){if(!g)return g;var y=g.match(/^rate_limited:(\d+)$/);return y?(c(parseInt(y[1],10)),null):(e.rateLimitResetAt=0,g)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(g=>{if(!p){e.repo=g.data,g.data.rateLimitResetAt?c(g.data.rateLimitResetAt):e.repo.statusMessage=v(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 y=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(y=!1),y&&(u=i.timeout(e.getStatus,2e3))}},g=>{e.error=g.data.error})},e.getStatus()},dr=function(e,t,s,i,o,r,u){Mc(),e.renderRedacted=qs,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&Bt()(p,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let c=0,v=!1,g=new Set,y=(C,M=!1)=>!v&&C.generation===c&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!M||C.branch===e.source.branch),m=()=>{let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(C),e.sourceLoading=!0,C},b=C=>{g.delete(C),v||(e.sourceLoading=[...g].some(M=>y(M)))};e.on("dispose",()=>{v=!0,c++});let E=null,S=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),N=ga(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),w=null,D=null,O=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,je(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=C=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(ei()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(Gi(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(C)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=C=>C.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:C.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(C.amount/100)+(C.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(C=>C.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let _=()=>t.get("/api/user/quota").then(C=>{e.hostingQuota=C.data});Ki(e,t,async()=>{await _(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),_().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(C=>["author_monthly","author_annual"].includes(C.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=C=>(e.billing?.grants||[]).filter(M=>M.planId===C&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(C=>Gi(C.id)&&(["repo_extend","repo_pack"].includes(C.id)||!e.repositoryGrants(C.id).length)),e.hostingOneTimePlans=()=>{let C=M=>M.map(z=>(e.billing?.plans||[]).find(Y=>Y.id===z&&!e.repositoryGrants(z).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?C(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?C(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let j=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let C=e.billing?.allowance?.plan;return C&&!j.includes(C)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let C=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return C?.amount!=null?e.billingAmount(C):""},e.showHostingOptions=()=>{e.mobilePane="settings",je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let C=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return C?.amount!=null?`${e.billingAmount(C)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(C=>C.id===e.hostingCycle)||e.authorPlans().find(C=>C.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let C=e.authorPlans().find(z=>z.interval==="month")?.amount,M=e.authorPlans().find(z=>z.interval==="year")?.amount;return C&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=C=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[C.id]||C.name,e.hostingOptionBlurb=C=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[C.id]||`${C.repositories} repositories, ${e.billingBytes(C.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let C=e.hostingOneTimePlans();return C.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:C[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(C="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=N.checkpoint(),z=JSON.stringify(M);(!D||z!==O)&&(D=(await t.post("/api/billing/draft",{path:o.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,O=z);let Y=e.authorPlans().find(ce=>ce.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!C&&!Y)throw new Error("No author plan available");await e.checkout(C||Y.id,C?e.repoId:"",{draftId:D})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{N.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(c++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Yt.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let oe=()=>{let C={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{oe(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{oe(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{oe();let C=o.path(),M=ue(e.sourceUrl)||"",z=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=z+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await Me()},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 F(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=F();function B(C){let M=C.getFullYear(),z=String(C.getMonth()+1).padStart(2,"0"),Y=String(C.getDate()).padStart(2,"0");return`${M}-${z}-${Y}`}e.minExpirationDate=B(new Date);let I=()=>{let C=new Date,M=new Date(C);if(M.setFullYear(M.getFullYear()+1),e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(C),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));for(let ce of e.repositoryGrants("repo_extend"))new Date(ce.until)>M&&(M=new Date(ce.until));e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate)),e._savedExpirationDate&&e._savedExpirationDate>M&&(M=new Date(e._savedExpirationDate));let z=e.options?.expirationDate,Y=e._savedExpirationDate&&z instanceof Date&&z.getTime()===e._savedExpirationDate.getTime();z instanceof Date&&z>M&&!Y&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=B(M)};I(),e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],I,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.loadUserRepos=(C=!1)=>{e.userReposStatus!=="loading"&&(e.userReposStatus="loading",t.get("/api/user/all_repositories",C?{params:{force:"1"}}:{}).then(M=>{if(v)return;let z=Array.isArray(M.data)?M.data.filter(Y=>Y&&Y.fullName):[];e.userRepos=z.sort((Y,ce)=>Y.fullName.localeCompare(ce.fullName,void 0,{sensitivity:"base"})),e.userReposStatus="ready"},()=>{v||(e.userReposStatus="error")}))},e.filteredUserRepos=()=>{let C=String(e.userRepoFilter||"").trim().toLowerCase(),M=e.userRepos||[];return C?M.filter(z=>z.fullName.toLowerCase().includes(C)):M},e.selectUserRepo=C=>{if(C?.fullName)return e.sourceUrl="https://github.com/"+C.fullName,e.urlSelected()},!i.repoId&&!i.pullRequestId&&!i.gistId&&Promise.resolve().then(()=>{v||e.loadUserRepos()}),e.previousConfigurations=[],e.previousConfigurationId="";let L,k=C=>String(C||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function q(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection};try{L||(L=t.get("/api/user/anonymized_repositories").then(Y=>Y.data));let M=await L;if(!y(C))return;let z=k(ue(C.url));e.previousConfigurations=M.filter(Y=>Y.repoId&&Y.options&&k(Y.source?.fullName)===z).sort((Y,ce)=>(Date.parse(ce.anonymizeDate)||0)-(Date.parse(Y.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{L=void 0}}e.sourceSummary=()=>{let C=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(C);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(C),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let C=e.previewId();return C?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(C)+"/":""},e.previewUrl=()=>{let C=e.previewPath();return C?"anonymous.4open.science"+C.replace(/\/$/,""):""},e.previewRedactions=()=>{let C=Y=>typeof Y=="string"?(Y.match(Zs)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Co:So,z=0;return M.forEach(Y=>{z+=C(Y)}),z};let W=(C,M)=>C.localeCompare(M,void 0,{sensitivity:"base"}),H=C=>C.slice(C.lastIndexOf("/")+1),J={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!ye)return[];let C=e.preserve.commit+"\0"+e.terms+"\0"+wo.size+"\0"+ye.files.length;if(J.key===C)return J.files;let M=ye.files.map(z=>{let Y=e.previewPathName(z),ce=Y.lastIndexOf("/");return{name:Y.slice(ce+1),path:ce<0?"":Y.slice(0,ce),size:0,sourcePath:z}});return J={key:C,files:M},M},e.selectPreviewPath=C=>{let M=e.previewTreeFiles().find(z=>"/"+(z.path?z.path+"/":"")+z.name===C);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let C=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return C?"/anonymize/"+encodeURIComponent(C.repoId):null};function ne(C){t.get("/api/user/default").then(M=>{let z=M.data;z.terms&&(e.defaultTerms=z.terms.join(` -`)),e.options=Object.assign({},e.options,z.options),e.options.expirationDate=z.options&&z.options.expirationDate?new Date(z.options.expirationDate):F(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function G(C,M,z){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(M,z)}function ue(C){try{let M=parseGithubUrl(C);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ue(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let C=m();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let z=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!y(C))return;e.error=null,z.data.fullName&&(e._originalFullName=z.data.fullName,e.source.fullName=z.data.fullName,e.sourceUrl="https://github.com/"+z.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{y(C)&&(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,b(C)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await We()}catch{}}};function he(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ue(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Me(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function Ue(){let C=new URLSearchParams(window.location.search).get("billingDraft");if(C){N.restore();try{let z=(await t.get("/api/billing/draft/"+encodeURIComponent(C))).data;if(z.path!==o.path())throw new Error("Wrong task");w=z.values.conference||null;for(let Y of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(z.values,Y)&&(e[Y]=z.values[Y]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),D=z.id,O=JSON.stringify(N.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Me(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==o.path()||Date.now()-M.savedAt>=30*6e4)return N.restore()?(e.sourceUrl&&await Me(),!0):!1;N.restore();for(let z of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,z)&&(e[z]=M.draft[z]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Me(),sessionStorage.removeItem("github-access-draft"),!0}ne(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(Ue,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(C.data.status),e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(M=>M).join(` +Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smith@mit.edu",e.demoParts=function(){let p=(e.demoTerms||"").split(/[,\n]/).map(m=>m.trim()).filter(Boolean).sort((m,b)=>b.length-m.length),c=m=>m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(!p.length)return[{text:e.demoText}];let v=new RegExp("("+p.map(c).join("|")+")","gi"),g={},y=0;return(e.demoText||"").split(v).filter(m=>m!=="").map(m=>{let b=p.find(E=>E.toLowerCase()===m.toLowerCase());return b?(g[b.toLowerCase()]||(g[b.toLowerCase()]=++y),{text:String(g[b.toLowerCase()]),redacted:!0,original:m}):{text:m}})},e.demoCount=()=>e.demoParts().filter(p=>p.redacted).length,e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}],e.statsEmpty=()=>!!e.stat&&e.cards.every(p=>!p.total);function r(){t.get("/api/stat/").then(p=>{e.stat=p.data,e.cards[0].total=p.data.nbRepositories,e.cards[1].total=p.data.nbUsers,e.cards[2].total=p.data.nbPageViews,e.cards[3].total=p.data.nbPullRequests}).catch(()=>{})}r();function u(p){let c={series:p,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!p||p.length<2)return c;let v=new Array(p.length-1);for(let S=1;S=2){let S=v[g-2];S&&(c.pctChange=(c.deltaToday-S)/S*100)}return c.pctAbs=Math.round(Math.abs(c.pctChange)),c.isUp=c.pctChange>=0,c}e.history={repositories:u([]),users:u([]),pageViews:u([]),pullRequests:u([])},t.get("/api/stat/history?days=60").then(p=>{let c=p.data||[];e.history={repositories:u(c.map(v=>v.nbRepositories||0)),users:u(c.map(v=>v.nbUsers||0)),pageViews:u(c.map(v=>v.nbPageViews||0)),pullRequests:u(c.map(v=>v.nbPullRequests||0))}}).catch(()=>{})},Uc=function(e,t,s,i,o,r){let u=kt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),u.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.quotaExpanded=!1,e.closeQuota=()=>{e.quotaExpanded=!1,je(()=>document.querySelector(".dashboard-quota > summary")?.focus())},Bt()(document,"click",k=>{e.quotaExpanded&&!k.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=k=>k.status==="error"||k._broken||c(k.status)==="progress"&&k._stale,e.attentionCount=()=>e.dashboardTotals?.attention??e.items.filter(e.needsAttention).length,e.hasProjects=()=>(e.dashboardTotals?.total??e.items.length)>0,e.setProjectView=k=>{e.projectView=k,k==="attention"&&(e.filters.status.error=!0,e.filters.status.progress=!0)},e.idleText=k=>{let q=va(k?.anonymizeDate||k?.lastView)||"";return/ ago$/.test(q)?"No activity for "+q.replace(/ ago$/,""):"No activity since "+q.replace(", "+new Date().getFullYear(),"")},e.projectDetailsId=k=>"project-details-"+encodeURIComponent(k._type+":"+(k._id||k._source||"unknown")),e.showProjectDetails=async k=>{e.selectedProject=k,e.projectName=k.projectName||"",e.nameError="",e.nameMessage="",await je();let q=document.getElementById(e.projectDetailsId(k));q?.focus(),q?.scrollIntoView?.({block:"nearest"})},e.closeProjectDetails=k=>{e.selectedProject=null,je(()=>document.querySelector(`[data-project-actions="${encodeURIComponent(k._type+":"+k._id)}"]`)?.focus())},e.saveProjectName=async k=>{if(e.nameSaving||!k._id)return;let q=e.projectName.trim();if(q.length>100){e.nameError="Use 100 characters or fewer.";return}e.nameSaving=!0,e.nameError="",e.nameMessage="";try{let W=await t.post("/api/user/project-name",{type:k._type,id:k._id,name:q});k.projectName=W.data.name,k._label=k.projectName||k._fallbackLabel,e.selectedProject===k&&(e.nameMessage=q?"Project name saved.":"Default project name restored."),D||(e.dashboardCursor=null,await F(),e.selectedProject===k&&(e.selectedProject=e.items.find(H=>H._type===k._type&&H._id===k._id)||null))}catch{e.selectedProject===k&&(e.nameError="The project name could not be saved. Try again.")}finally{e.nameSaving=!1}},e.copyingId=null,e.copyLink=async k=>{if(!k._viewUrl||e.copyingId)return;let q=new URL(k._viewUrl,o.location.origin).href;e.copyingId=k._type+":"+k._id;try{await Wa(q),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:q})}finally{e.copyingId=null}},e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"Preparing",error:"Error",expired:"Expiring / expired",removed:"Removing / removed"};let p=["queue","download","downloaded","preparing","anonymizing"];function c(k){return k==="ready"||k==="error"?k:k==="expired"||k==="expiring"?"expired":k==="removed"||k==="removing"?"removed":(p.indexOf(k)>-1,"progress")}let v=7200*1e3,g="dashboard.filterPrefs",y={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},m=loadFilterPrefs(g)||{};e.typeFilter=m.typeFilter||y.typeFilter,e.filters={status:Object.assign({},y.filters.status,m.filters&&m.filters.status||{})},e.orderBy=m.orderBy||y.orderBy;let b={_name:{label:"Anonymous ID",defaultDesc:!1},_label:{label:"Project",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=b,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let k=b[e.sortField()];return k?k.label:"Custom"},e.isSortedBy=k=>e.sortField()===k,e.setSort=(k,q)=>{typeof q!="boolean"&&(q=e.isSortedBy(k)?!e.sortDesc():!!(b[k]&&b[k].defaultDesc)),e.orderBy=(q?"-":"")+k},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(g,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),r.load().then(k=>{e.quota=k},console.error);function E(k,q,W,H,J,ne){k.pageView||(k.pageView=0),k.lastView||(k.lastView=""),k.options=k.options||{},k.options.terms=(k.options.terms||[]).filter(ue=>ue),k._id=q||"",k._source=H,k._broken=!q,k._name=q||H||"(unnamed)",k._fallbackLabel=k._type==="gist"?"Gist "+(q||H||"without an ID"):H||W||k._name,k._label=k.projectName||k._fallbackLabel,k._editUrl=q?J:null,k._viewUrl=q?ne:null,k._broken&&(k.status="error",k.statusMessage="incomplete_record"),k._statusKey=c(k.status);let G=k.anonymizeDate||k.lastView;if(k._stale=k._statusKey==="progress"&&!!G&&Date.now()-new Date(G).getTime()>v,k.status==="expired"||k.status==="expiring")k._expiry={kind:"expired",date:k.options.expirationDate},k._expiry.label=ba(k.options.expirationDate)||void 0;else if(k.status!=="ready")k._expiry={kind:"none"};else if(k.options.expirationMode==="never"||!k.options.expirationDate)k._expiry={kind:"never"};else{k._expiry={kind:"date",date:k.options.expirationDate};let ue=new Date(k.options.expirationDate).getTime()-Date.now();if(ue>0&&ue<=168*3600*1e3){let he=Math.max(1,Math.round(ue/36e5)),Me=Math.round(ue/864e5);k._expiry.soon=he<48?"in "+he+(he===1?" hour":" hours"):"in "+Me+" days"}}return k}function S(k){return t.get(k).then(q=>q.data||[],q=>(console.error(q),[]))}function N(){return e.loading=!0,i.all([S("/api/user/anonymized_repositories"),S("/api/user/anonymized_pull_requests"),S("/api/user/anonymized_gists")]).then(k=>{let q=k[0],W=k[1],H=k[2],J=[];q.forEach(ne=>{ne._type="repo";let G=ne.source||{};J.push(E(ne,ne.repoId,ne.repoId,G.fullName,"/anonymize/"+ne.repoId,"/r/"+ne.repoId+"/"))}),W.forEach(ne=>{ne._type="pr";let G=ne.source||{};J.push(E(ne,ne.pullRequestId,ne.pullRequestId,G.repositoryFullName?G.repositoryFullName+"#"+G.pullRequestId:void 0,"/pull-request-anonymize/"+ne.pullRequestId,"/pr/"+ne.pullRequestId+"/"))}),H.forEach(ne=>{ne._type="gist";let G=ne.source||{};J.push(E(ne,ne.gistId,ne.gistId,G.gistId,"/gist-anonymize/"+ne.gistId,"/gist/"+ne.gistId+"/"))}),e.items=J,e.removedCount=J.filter(ne=>ne._statusKey==="removed").length,e.loading=!1})}let w=0,D=!1;e.dashboardCursor=null,e.dashboardError="";function O(k){let q=k.source||{};return k._type==="repo"?E(k,k.repoId,k.repoId,q.fullName,"/anonymize/"+k.repoId,"/r/"+k.repoId+"/"):k._type==="pr"?E(k,k.pullRequestId,k.pullRequestId,q.repositoryFullName?q.repositoryFullName+"#"+q.pullRequestId:void 0,"/pull-request-anonymize/"+k.pullRequestId,"/pr/"+k.pullRequestId+"/"):E(k,k.gistId,k.gistId,q.gistId,"/gist-anonymize/"+k.gistId,"/gist/"+k.gistId+"/")}function F(k=!1){if(D)return N();let q=++w;return e.loading=!k,e.loadingMore=k,e.dashboardError="",t.get("/api/user/dashboard",{params:{q:e.search,type:e.typeFilter,sort:e.orderBy,statuses:Object.keys(e.filters.status).filter(W=>e.filters.status[W]!==!1).join(",")||"none",attention:String(e.projectView==="attention"),cursor:k?e.dashboardCursor:void 0}}).then(W=>{if(q===w){if(!Array.isArray(W.data?.items))return D=!0,N();e.items=(k?e.items:[]).concat(W.data.items.map(O)),e.dashboardCursor=W.data.cursor,e.dashboardTotals=W.data,k||_()}},W=>{if(q===w){if(W.status===404)return D=!0,N();e.dashboardError="Projects could not be loaded. Please try again."}}).finally(()=>{q===w&&(e.loading=!1,e.loadingMore=!1)})}e.loadMoreProjects=()=>F(!0);let j;e.watchGroup(["search","typeFilter","orderBy","projectView"],()=>{D||(j&&u.timeout.cancel(j),j=u.timeout(()=>F(),150))},!1),e.watch("filters",()=>{D||F()},!0,!1),e.on("dispose",()=>{w++}),F(),e.openItem=(k,q)=>{if(!k._viewUrl)return;let W=q&&q.target;W&&W.closest&&W.closest("a, button, .dropdown, input")||(o.location.href=k._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(k=>e.filters.status[k]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0;let oe=()=>Object.keys(e.statusKeyLabels);e.onlyRemovedShown=()=>oe().every(k=>k==="removed"==(e.filters.status[k]!==!1)),e.isActiveDefault=()=>oe().every(k=>k==="removed"==(e.filters.status[k]===!1)),e.statusView=()=>e.projectView==="attention"?"attention":e.onlyRemovedShown()?"removed":e.filters.status.removed===!1?"active":"custom",e.setStatusView=k=>{if(k==="attention")return e.setProjectView("attention");e.projectView="all",oe().forEach(q=>{e.filters.status[q]=k==="removed"?q==="removed":q!=="removed"})},e.statusChipKeys=()=>{let k=e.statusView();return k==="removed"?[]:oe().filter(q=>e.filters.status[q]===!1&&!(q==="removed"&&k!=="custom"))},e.removedCount=null;function _(){if(D){e.removedCount=e.items.filter(q=>q._statusKey==="removed").length;return}let k=e.dashboardTotals;!k||e.projectView!=="all"||e.search.trim()||e.typeFilter!=="all"||(e.isActiveDefault()?e.removedCount=Math.max(0,k.total-k.filtered):e.onlyRemovedShown()&&(e.removedCount=k.filtered))}e.showViewTabs=()=>e.statusView()!=="active"||e.attentionCount()>0||e.removedCount>0||e.removedCount==null&&!!e.dashboardTotals&&e.dashboardTotals.total>e.dashboardTotals.filtered,e.hasActiveFilters=()=>e.projectView!=="all"||e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(k=>e.filters.status[k]===!1),e.showClearFilters=()=>e.search.trim().length>0||e.typeFilter!=="all"||e.statusChipKeys().length>0,e.isPlainView=()=>!e.showClearFilters(),e.clearFilters=()=>{let k=e.statusView();e.typeFilter="all",e.search="",e.setStatusView(k==="removed"?"removed":"active")};function B(k,q,W,H){t.get("/api/repo/"+k).then(async J=>{let ne=H!==void 0&&H!==J.data.status;for(let G of e.items)if(G._type==="repo"&&G.repoId==k){ne=ne||G.status!==J.data.status;let ue=e.needsAttention(G);G.status=J.data.status,G.statusMessage=J.data.statusMessage,G._statusKey=c(G.status),G._statusKey!=="progress"&&(G._stale=!1);let he=e.needsAttention(G);e.dashboardTotals&&ue!==he&&(e.dashboardTotals.attention=Math.max(0,e.dashboardTotals.attention+(he?1:-1)));break}if(ne&&!D){e.dashboardCursor=null;let G=e.selectedProject;await F(),G&&e.selectedProject===G&&(e.selectedProject=e.items.find(ue=>ue._type===G._type&&ue._id===G._id)||null)}if(J.data.status=="ready"||J.data.status=="error"||J.data.status=="removed"||J.data.status=="expired"){q(J.data);return}u.timeout(()=>B(k,q,W,J.data.status),2500)},W)}let I=k=>k==="repo"?"repository":k==="gist"?"gist":"pull request",L=k=>k==="repo"?"/api/repo":k==="gist"?"/api/gist":"/api/pr";e.removeItem=k=>{let q=I(k._type);if(confirm(`Are you sure that you want to remove the ${q} ${k._id}?`)){let W=st({title:`Removing ${k._id}...`,date:new Date,body:`The ${q} ${k._id} is going to be removed.`});e.addToast(W);let H=`${L(k._type)}/${k._id}`;t.delete(H).then(()=>{k._type==="repo"?B(k._id,()=>{W.title=`${k._id} is removed.`,W.body=`The ${q} ${k._id} is removed.`},void 0,k.status):(W.title=`${k._id} is removed.`,W.body=`The ${q} ${k._id} is removed.`,F())},J=>{W.title=`Error during the removal of ${k._id}.`,W.body=J.body,F()})}},e.refreshItem=k=>{let q=I(k._type),W=st({title:`Refreshing ${k._id}...`,date:new Date,body:`The ${q} ${k._id} is going to be refreshed.`});e.addToast(W);let H=ne=>{W.title=`Error during the refresh of ${k._id}.`,W.body=ne.data?.error||ne.body||"The refresh could not be completed. Please try again.",F()},J=`${L(k._type)}/${k._id}/refresh`;t.post(J).then(()=>{k._type==="repo"?B(k._id,ne=>{if(ne.status!=="ready"){H({body:ne.statusMessage||`The repository is ${ne.status}.`});return}W.title=`${k._id} is refreshed.`,W.body=`The ${q} ${k._id} is refreshed.`},H,k.status):(W.title=`${k._id} is refreshed.`,W.body=`The ${q} ${k._id} is refreshed.`,F())},H)},e.extendItem=k=>{let q=I(k._type),W=st({title:`Extending ${k._id}...`,date:new Date,body:`The expiration of ${q} ${k._id} is being extended.`});e.addToast(W);let H=`${L(k._type)}/${k._id}/extend`;t.post(H).then(J=>{let ne=J?.data?.expirationDate?` until ${new Date(J.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";k._type==="repo"?B(k._id,()=>{W.title=`${k._id} is extended.`,W.body=`${q} ${k._id} is extended${ne}.`},void 0,k.status):(W.title=`${k._id} is extended.`,W.body=`${q} ${k._id} is extended${ne}.`,F())},J=>{W.title=`Error during the extension of ${k._id}.`;let ne=J.data&&J.data.error;W.body=ne||J.body,ne&&Object.prototype.hasOwnProperty.call(Kn.ERRORS,ne)&&(W.body=Kn.ERRORS[ne]),F()})},e.itemFilter=k=>{if(e.projectView==="attention"&&!e.needsAttention(k)||e.typeFilter!=="all"&&k._type!==e.typeFilter||e.filters.status[k._statusKey]===!1)return!1;let q=e.search.trim().toLowerCase();return!!(q.length==0||k._label&&String(k._label).toLowerCase().indexOf(q)>-1||k._source&&String(k._source).toLowerCase().indexOf(q)>-1||k._id&&String(k._id).toLowerCase().indexOf(q)>-1||k.conference&&String(k.conference).toLowerCase().indexOf(q)>-1)}};var Bc=function(e,t,s){let i=kt();e.repoId=s.repoId,e.reviewUrl=window.location.origin+"/r/"+encodeURIComponent(s.repoId)+"/",e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="",e.shareUrl=(window.location?.origin||"")+"/r/"+encodeURIComponent(e.repoId)+"/",e.copied=!1;let o=null;e.copyShareUrl=async()=>{try{await Wa(e.shareUrl),e.copied=!0,o&&i.timeout.cancel(o),o=i.timeout(()=>{e.copied=!1},2e3)}catch{e.addToast?.({title:"Copy this anonymous link",body:e.shareUrl})}},e.selectShareUrl=g=>{let y=window.getSelection?.();if(!y||!g?.target)return;let m=document.createRange();m.selectNodeContents(g.target),y.removeAllRanges(),y.addRange(m)};var r=null;let u=null,p=!1;function c(g){e.rateLimitResetAt=g,r&&i.interval.cancel(r);function y(){var m=Math.max(0,Math.ceil((g-Date.now())/1e3));if(m<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,i.interval.cancel(r),r=null;else{var b=Math.floor(m/60),E=m%60;e.rateLimitCountdown=b>0?b+"m "+E+"s":E+"s"}}y(),r=i.interval(y,1e3)}e.on("dispose",function(){p=!0,r&&i.interval.cancel(r),u&&i.timeout.cancel(u)});function v(g){if(!g)return g;var y=g.match(/^rate_limited:(\d+)$/);return y?(c(parseInt(y[1],10)),null):(e.rateLimitResetAt=0,g)}e.getStatus=()=>{p||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(g=>{if(!p){e.repo=g.data,g.data.rateLimitResetAt?c(g.data.rateLimitResetAt):e.repo.statusMessage=v(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 y=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(y=!1),y&&(u=i.timeout(e.getStatus,2e3))}},g=>{e.error=g.data.error})},e.getStatus()},dr=function(e,t,s,i,o,r,u){Mc(),e.renderRedacted=qs,e.sourceUrl="",e.workspaceOpen=!1,e.sourceUrlError="",e.previewStatus="idle",e.sourceLoading=!1,e.mobilePane="settings";let p=window.matchMedia?.("(max-width: 767px)");e.mobileWorkspace=!!p?.matches,p?.addEventListener&&Bt()(p,"change",C=>{e.mobileWorkspace=C.matches}),e.selectMobilePane=C=>{e.mobilePane=C};let c=0,v=!1,g=new Set,y=(C,M=!1)=>!v&&C.generation===c&&C.url===e.sourceUrl.trim()&&C.connection===e.githubConnection&&(!M||C.branch===e.source.branch),m=()=>{let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection,branch:e.source.branch};return g.add(C),e.sourceLoading=!0,C},b=C=>{g.delete(C),v||(e.sourceLoading=[...g].some(M=>y(M)))};e.on("dispose",()=>{v=!0,c++});let E=null,S=C=>C.gistId&&!C.repo?"gist:"+C.gistId.toLowerCase():(C.owner+"/"+C.repo).toLowerCase()+(C.pullRequestId?"/pull/"+C.pullRequestId:""),N=ga(e,["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"],"anonymize:"+(o.path?.()||"")),w=null,D=null,O=null;e.hostingReview=!1,e.previewExpanded=!1,e.taskValidationError="",e.editRepository=()=>{e.mobilePane="settings",e.previewExpanded=!1,je(()=>document.querySelector(".anonymize-fields .is-invalid")?.focus())},e.submitRepository=C=>{if(e.taskValidationError="",!(e.sourceLoading||e.billingBusy||e.hostingSaving||e.billingPending)){if(ei()||e.anonymize?.invalid||e.sourceUrlError){e.taskValidationError="Check the highlighted fields before continuing.",e.editRepository();return}return e.hostingNeedsPayment()?e.checkoutRepository(Gi(e.hostingChoice())?e.hostingChoice():""):e.anonymizeRepo(C)}},e.hostingPayment=!1,e.hostingAlternatives=!1,e.hostingPrice=C=>C.amount==null?"Price shown at checkout":new Intl.NumberFormat(void 0,{style:"currency",currency:C.currency,minimumFractionDigits:0,maximumFractionDigits:2}).format(C.amount/100)+(C.interval==="year"?" billed annually":" billed monthly"),e.hostingPlan="",e.hostingSaving=!1,e.selectedHostingPlan=()=>e.authorPlans().find(C=>C.id===e.hostingPlan)||e.hostingSubscriptionPlan?.();let F=()=>t.get("/api/user/quota").then(C=>{e.hostingQuota=C.data});Ki(e,t,async()=>{await F(),e.hostingQuotaBlocked=!1},{confirmedMessage:"Hosting status refreshed. Your draft is ready to continue."}),F().catch(()=>{}),e.authorPlans=()=>(e.billing?.plans||[]).filter(C=>["author_monthly","author_annual"].includes(C.id)),e.conferenceHosting=()=>!!(e.conference&&e.conference_data?.hosting),e.hasAuthorHosting=()=>["author_monthly","author_annual"].includes(e.billing?.allowance?.plan),e.hostingNeedsPayment=()=>!e.billing?.enabled||e.detectedType!=="repo"||e.hasAuthorHosting()||e.isUpdate&&e.role!=="owner"?!1:!!(e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length||!e.conferenceHosting()&&e.hostingQuotaBlocked),e.repositoryGrants=C=>(e.billing?.grants||[]).filter(M=>M.planId===C&&M.scope===`repo:${e.repoId}`&&["active","paid","past_due"].includes(M.status)&&new Date(M.until).getTime()>Date.now()),e.repositoryAddonPlans=()=>(e.billing?.plans||[]).filter(C=>Gi(C.id)&&(["repo_extend","repo_pack"].includes(C.id)||!e.repositoryGrants(C.id).length)),e.hostingOneTimePlans=()=>{let C=M=>M.map(z=>(e.billing?.plans||[]).find(Y=>Y.id===z&&!e.repositoryGrants(z).length)).filter(Boolean);return e.options?.expirationMode==="never"&&!e._existingNever&&!e.repositoryGrants("repo_never").length?C(["repo_never"]):e.hostingQuotaBlocked&&!e.conferenceHosting()?C(["repo_slot","repo_pack"]):[]},e.hostingOneTime=()=>e.hostingOneTimePlans()[0];let j=["free","repo_slot"];e.liveUpdatesIncluded=()=>{if(!e.billing?.enabled||e.detectedType!=="repo"||e.isUpdate&&e.role!=="owner"||e.conferenceHosting()||e.hasAuthorHosting())return!0;let C=e.billing?.allowance?.plan;return C&&!j.includes(C)?!0:e.repositoryGrants("author_pass").length>0||e.repositoryGrants("repo_pack").length>0},e.liveUpdatesPrice=()=>{let C=(e.billing?.plans||[]).find(M=>M.id==="author_pass");return C?.amount!=null?e.billingAmount(C):""},e.showHostingOptions=()=>{e.mobilePane="settings",je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"start",behavior:"smooth"}))},e.neverExpireTag=()=>{if(e.hasAuthorHosting())return"Included in your subscription";if(e.repositoryGrants("repo_never").length)return"Paid for this repository";let C=(e.billing?.plans||[]).find(M=>M.id==="repo_never");return C?.amount!=null?`${e.billingAmount(C)} once, or with a subscription`:"Subscription or one-time add-on"},e.hostingCycle="author_annual",e.hostingSubscriptionPlan=()=>e.authorPlans().find(C=>C.id===e.hostingCycle)||e.authorPlans().find(C=>C.interval==="year")||e.authorPlans()[0],e.hostingAnnualSavings=()=>{let C=e.authorPlans().find(z=>z.interval==="month")?.amount,M=e.authorPlans().find(z=>z.interval==="year")?.amount;return C&&M&&Me.hostingOneTimePlans().concat(e.authorPlans().length?[e.hostingSubscriptionPlan()]:[]),e.hostingOptionName=C=>({repo_slot:"Add this repository",repo_pack:"Paper pack",repo_never:"Never expire",author_annual:"Author subscription",author_monthly:"Author subscription"})[C.id]||C.name,e.hostingOptionBlurb=C=>({repo_slot:"Hosted outside your free repositories. Refresh it by hand.",repo_pack:"Adds automatic updates for 180 days and keeps the link online for a year.",repo_never:"This link never expires. No subscription."})[C.id]||`${C.repositories} repositories, ${e.billingBytes(C.storage)}, automatic updates and links that never expire.`,e.hostingChoice=()=>{let C=e.hostingOneTimePlans();return C.some(M=>M.id===e.hostingPlan)||e.authorPlans().some(M=>M.id===e.hostingPlan)?e.hostingPlan:C[0]?.id||e.hostingSubscriptionPlan()?.id||""},e.checkoutRepository=async(C="")=>{if(!(e.hostingSaving||e.billingBusy||!e.billing?.csrf||e.sourceLoading)){e.hostingSaving=!0,e.billingError="";try{let M=N.checkpoint(),z=JSON.stringify(M);(!D||z!==O)&&(D=(await t.post("/api/billing/draft",{path:o.path(),values:M},{headers:{"x-csrf-token":e.billing.csrf}})).data.id,O=z);let Y=e.authorPlans().find(ce=>ce.id===e.hostingPlan)||e.hostingSubscriptionPlan();if(!C&&!Y)throw new Error("No author plan available");await e.checkout(C||Y.id,C?e.repoId:"",{draftId:D})}catch{e.billingError="Your draft could not be saved for checkout. Your form is unchanged. Please try again."}finally{e.hostingSaving=!1}}},e.useDatedHosting=()=>{e.options.expirationMode="remove"},e.discardDraft=async()=>{N.discard(),e.workspaceOpen=!!e.sourceUrl,e.error=null,e.sourceUrl?await e.urlSelected(!0):(c++,e.sourceLoading=!1,e.detectedType=null,e.details=null,e.sourceUrlError="",Yt.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle")},e.githubConnection=void 0,e.githubConnections=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1;let oe=()=>{let C={};for(let M of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])C[M]=e[M];sessionStorage.setItem("github-access-draft",JSON.stringify({path:o.path(),savedAt:Date.now(),draft:C}))};e.connectGistApp=()=>{oe(),window.location.href="/github/app/login?returnTo="+encodeURIComponent(o.path())},e.connectGistOAuth=()=>{oe(),window.location.href="/github/login?returnTo="+encodeURIComponent(o.path())},e.grantGitHubAccess=()=>{oe();let C=o.path(),M=ue(e.sourceUrl)||"",z=e.githubConnections?.appConnected?"/github/app/install":"/github/app/login";window.location.href=z+"?returnTo="+encodeURIComponent(C)+"&repository="+encodeURIComponent(M)+"&install=1"},e.chooseGitHubConnection=async C=>{e.githubConnection=C,e.readme="",e.sourceUrl&&await Me()},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 _(){let C=new Date;return C.setMonth(C.getMonth()+6),C}e.options.expirationDate=_();function B(C){let M=C.getFullYear(),z=String(C.getMonth()+1).padStart(2,"0"),Y=String(C.getDate()).padStart(2,"0");return`${M}-${z}-${Y}`}e.minExpirationDate=B(new Date);let I=()=>{let C=new Date,M=new Date(C);if(M.setFullYear(M.getFullYear()+1),e.billing?.enabled&&e.detectedType==="repo"&&!e.hasAuthorHosting()){M=new Date(C),M.setMonth(M.getMonth()+(e.billing.freeExpirationMonths||5));for(let ce of e.repositoryGrants("repo_extend"))new Date(ce.until)>M&&(M=new Date(ce.until));e.conference_data?.endDate&&new Date(e.conference_data.endDate)>M&&(M=new Date(e.conference_data.endDate)),e._savedExpirationDate&&e._savedExpirationDate>M&&(M=new Date(e._savedExpirationDate));let z=e.options?.expirationDate,Y=e._savedExpirationDate&&z instanceof Date&&z.getTime()===e._savedExpirationDate.getTime();z instanceof Date&&z>M&&!Y&&(e.options.expirationDate=new Date(M))}e.maxExpirationDate=B(M)};I(),e.watch(()=>[e.billing,e.repoId,e.conference_data,e.isUpdate,e._savedExpirationDate,e.options?.expirationMode,e.detectedType],I,!0,!1),e.anonymize_readme="",e.readme="",e.isUpdate=!1,e.userRepos=[],e.userReposStatus="idle",e.userRepoFilter="",e.loadUserRepos=(C=!1)=>{e.userReposStatus!=="loading"&&(e.userReposStatus="loading",t.get("/api/user/all_repositories",C?{params:{force:"1"}}:{}).then(M=>{if(v)return;let z=Array.isArray(M.data)?M.data.filter(Y=>Y&&Y.fullName):[];e.userRepos=z.sort((Y,ce)=>Y.fullName.localeCompare(ce.fullName,void 0,{sensitivity:"base"})),e.userReposStatus="ready"},()=>{v||(e.userReposStatus="error")}))},e.filteredUserRepos=()=>{let C=String(e.userRepoFilter||"").trim().toLowerCase(),M=e.userRepos||[];return C?M.filter(z=>z.fullName.toLowerCase().includes(C)):M},e.selectUserRepo=C=>{if(C?.fullName)return e.sourceUrl="https://github.com/"+C.fullName,e.urlSelected()},!i.repoId&&!i.pullRequestId&&!i.gistId&&Promise.resolve().then(()=>{v||e.loadUserRepos()}),e.previousConfigurations=[],e.previousConfigurationId="";let L,k=C=>String(C||"").replace(/\/$/,"").replace(/\.git$/i,"").toLowerCase();async function q(){if(e.isUpdate||i.repoId||i.pullRequestId||i.gistId)return;let C={generation:c,url:e.sourceUrl.trim(),connection:e.githubConnection};try{L||(L=t.get("/api/user/anonymized_repositories").then(Y=>Y.data));let M=await L;if(!y(C))return;let z=k(ue(C.url));e.previousConfigurations=M.filter(Y=>Y.repoId&&Y.options&&k(Y.source?.fullName)===z).sort((Y,ce)=>(Date.parse(ce.anonymizeDate)||0)-(Date.parse(Y.anonymizeDate)||0)),e.previousConfigurationId=e.previousConfigurations[0]?.repoId||""}catch{L=void 0}}e.sourceSummary=()=>{let C=String(e.sourceUrl||""),M=/github\.com\/([^/\s]+\/[^/\s]+)\/pull\/(\d+)/i.exec(C);return M?M[1]+" \xB7 PR #"+M[2]:(M=/gist\.github\.com\/([^/\s]+)\/([0-9a-f]{8,})/i.exec(C),M?M[1]+" \xB7 gist "+(M[2].length>12?M[2].slice(0,7)+"\u2026"+M[2].slice(-4):M[2]):"")},e.previewId=()=>e.detectedType==="pr"?e.pullRequestId:e.detectedType==="gist"?e.gistId:e.repoId,e.previewPath=()=>{let C=e.previewId();return C?(e.detectedType==="pr"?"/pr/":e.detectedType==="gist"?"/gist/":"/r/")+encodeURIComponent(C)+"/":""},e.previewUrl=()=>{let C=e.previewPath();return C?"anonymous.4open.science"+C.replace(/\/$/,""):""},e.previewRedactions=()=>{let C=Y=>typeof Y=="string"?(Y.match(Zs)||[]).length:0;if(e.detectedType==="repo")return e.previewViewer.redactionCount();let M=e.detectedType==="pr"?Co:So,z=0;return M.forEach(Y=>{z+=C(Y)}),z};let W=(C,M)=>C.localeCompare(M,void 0,{sensitivity:"base"}),H=C=>C.slice(C.lastIndexOf("/")+1),J={key:null,files:[]};e.previewTreeFiles=()=>{if(!e.preserve.commit||!ye)return[];let C=e.preserve.commit+"\0"+e.terms+"\0"+wo.size+"\0"+ye.files.length;if(J.key===C)return J.files;let M=ye.files.map(z=>{let Y=e.previewPathName(z),ce=Y.lastIndexOf("/");return{name:Y.slice(ce+1),path:ce<0?"":Y.slice(0,ce),size:0,sourcePath:z}});return J={key:C,files:M},M},e.selectPreviewPath=C=>{let M=e.previewTreeFiles().find(z=>"/"+(z.path?z.path+"/":"")+z.name===C);M&&e.openPreviewFile(M.sourcePath)},e.existingConfigurationUrl=()=>{let C=e.previousConfigurations.find(M=>M.repoId===e.previousConfigurationId);return C?"/anonymize/"+encodeURIComponent(C.repoId):null};function ne(C){t.get("/api/user/default").then(M=>{let z=M.data;z.terms&&(e.defaultTerms=z.terms.join(` +`)),e.options=Object.assign({},e.options,z.options),e.options.expirationDate=z.options&&z.options.expirationDate?new Date(z.options.expirationDate):_(),!i.repoId&&!i.pullRequestId&&!i.gistId&&!e.anonymize?.terms?.dirty&&(e.terms=e.defaultTerms),C&&C()})}function G(C,M,z){e.anonymize&&e.anonymize[C]&&e.anonymize[C].setValidity(M,z)}function ue(C){try{let M=parseGithubUrl(C);if(M&&M.owner&&M.repo)return M.owner+"/"+M.repo}catch{}return null}e.accessRepairAllowed=!1,e.repairingGitHubAccess=!1,e.accessRepairMessage="",e.repairGitHubAccess=async()=>{if(!e.accessRepairAllowed||e.repairingGitHubAccess||!e.githubConnections?.appEnabled||!i.repoId||e.role!=="owner"||e.githubConnection!=="github-app"||ue(e.sourceUrl)!==e._originalFullName)return;e.repairingGitHubAccess=!0,e.accessRepairMessage="";let C=m();try{let M=await t.get("/github/connections");if(e.githubConnections=M.data,!M.data.appEnabled)return;let z=await t.post("/github/connections/migrate",{type:"repository",id:i.repoId,connection:"github-app"},{headers:{"X-CSRF-Token":M.data.csrf}});if(!y(C))return;e.error=null,z.data.fullName&&(e._originalFullName=z.data.fullName,e.source.fullName=z.data.fullName,e.sourceUrl="https://github.com/"+z.data.fullName),e.accessRepairMessage="GitHub access repaired. Your anonymous URL and published commit are unchanged.",await e.urlSelected(!0)}catch{y(C)&&(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,b(C)}},e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,e.reconnectSource=async()=>{if(confirm("Reconnect to the repository currently at this GitHub URL? Review its branch and commit before saving. Saving will replace the published snapshot.")){e.reconnectingSource=!0,e.reconnectRepositoryId=void 0,e.source.commit="",e.source.branch="",e.readme="",e.branches=[];try{await We()}catch{}}};function he(){return e.reconnectingSource||!e.isUpdate||!e._originalRepositoryID?void 0:ue(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}async function Me(){e._preservingDraft=!0;try{await e.urlSelected(!0)}finally{e._preservingDraft=!1}}async function Ue(){let C=new URLSearchParams(window.location.search).get("billingDraft");if(C){N.restore();try{let z=(await t.get("/api/billing/draft/"+encodeURIComponent(C))).data;if(z.path!==o.path())throw new Error("Wrong task");w=z.values.conference||null;for(let Y of["sourceUrl","terms","repoId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(z.values,Y)&&(e[Y]=z.values[Y]);return e.options?.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),D=z.id,O=JSON.stringify(N.checkpoint()),e.draftRestored=!0,e.hostingReview=!0,e.sourceUrl&&await Me(),o.replace?.(o.path()),!0}catch{e.billingError="The checkout draft could not be restored. Retry by reloading this page; any local draft is still available."}}let M;try{M=JSON.parse(sessionStorage.getItem("github-access-draft")||"null")}catch{return!1}if(!M||M.path!==o.path()||Date.now()-M.savedAt>=30*6e4)return N.restore()?(e.sourceUrl&&await Me(),!0):!1;N.restore();for(let z of["sourceUrl","terms","repoId","pullRequestId","gistId","source","options","conference","githubConnection"])Object.prototype.hasOwnProperty.call(M.draft,z)&&(e[z]=M.draft[z]);return e.options.expirationDate&&(e.options.expirationDate=new Date(e.options.expirationDate)),await Me(),sessionStorage.removeItem("github-access-draft"),!0}ne(()=>{!i.repoId&&!i.pullRequestId&&!i.gistId&&u(Ue,0),i.repoId&&i.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=i.repoId,t.get("/api/repo/"+e.repoId).then(async C=>{e.accessRepairAllowed=!["removed","archived","preparing","queue","download","removing","expiring"].includes(C.data.status),e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.fullName,e._originalFullName=C.data.source.fullName,e.terms=C.data.options.terms.filter(M=>M).join(` `),e.source=C.data.source,e.role=C.data.role||"owner",e._existingNever=C.data.options.expirationMode==="never",e._savedExpirationDate=C.data.options.expirationDate?new Date(C.data.options.expirationDate):null,e.coauthors=C.data.coauthors||[],e._originalBranch=C.data.source.branch,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,e.repositoryID=C.data.source.repositoryID,e._originalRepositoryID=C.data.source.repositoryID,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),E=S(parseGithubUrl(e.sourceUrl)),!await Ue()&&(await Promise.all([We(),ze()]),ko())},()=>{o.url("/404")})),i.pullRequestId&&i.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=i.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async C=>{if(e.githubConnection=C.data.connection||"oauth",e.sourceUrl="https://github.com/"+C.data.source.repositoryFullName+"/pull/"+C.data.source.pullRequestId,e.terms=C.data.options.terms.filter(M=>M).join(` `),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),E=S(parseGithubUrl(e.sourceUrl)),!await Ue())try{await Qa()}catch{}},()=>{o.url("/404")})),i.gistId&&i.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=i.gistId,t.get("/api/gist/"+e.gistId).then(async C=>{e.sourceUrl="https://gist.github.com/"+C.data.source.gistId,e.terms=C.data.options.terms.filter(M=>M).join(` `),e.source=C.data.source,e.options=Object.assign({},e.options,C.data.options),e.conference=C.data.conference,e._originalConference=C.data.conference,C.data.options.expirationDate&&(e.options.expirationDate=new Date(C.data.options.expirationDate)),E=S(parseGithubUrl(e.sourceUrl)),!await Ue()&&await Za()},()=>{o.url("/404")}))}),t.get("/github/connections").then(C=>{e.githubConnections=C.data,!i.repoId&&!i.pullRequestId&&!i.gistId&&e.githubConnection===void 0&&C.data.appEnabled&&C.data.appConnected&&(e.githubConnection="github-app",e.sourceUrl&&e.workspaceOpen&&Me())}).catch(()=>{}),e.urlSelected=async(C=!1)=>{let M=++c;e.previousConfigurations=[],e.previousConfigurationId="";let z;try{z=parseGithubUrl(e.sourceUrl.trim())}catch{e.sourceLoading=!1,Yt.cancel(),An.cancel(),In.cancel(),e.previewStatus="idle",e.sourceUrlError=e.sourceUrl?"Please provide a valid GitHub URL.":"",G("sourceUrl","github",!1);return}let Y=S(z),ce=C||E===Y;E=Y,e.sourceUrlError="",G("sourceUrl","github",!0);let be=document.activeElement?.id==="sourceUrl-landing";e.workspaceOpen=!0,setTimeout(()=>{let Je=window.document.getElementById("sourceUrl");if(Je){try{Je.setSelectionRange(0,0)}catch{}Je.scrollLeft=0}},50),be&&u(()=>document.getElementById("sourceUrl")?.focus(),0),e.reconnectingSource=!1,e.reconnectRepositoryId=void 0,!ce&&!e.isUpdate&&(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],ce||(e.source={type:"GitHubStream",branch:"",commit:""}),Yt.cancel(),An.cancel(),In.cancel(),Co.clear(),So.clear(),e.previewStatus="idle",e.anonymize_readme="",e.readme="",dt(),e.detectedType=null,e.gistOAuthRequired=!1,e.gistAppRequired=!1,e._preservingDraft=ce;try{z.gistId&&!z.repo?(e.detectedType="gist",e.source={gistId:z.gistId},await Za()):z.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:z.owner+"/"+z.repo,pullRequestId:z.pullRequestId},await Qa()):(e.detectedType="repo",q(),await Promise.all([We(),ze()]),ko())}catch{}finally{M===c&&(e._preservingDraft=!1)}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let C=e.branches.filter(z=>z.name==e.source.branch)[0];if(!C)return;!(!e.reconnectingSource&&e.isUpdate&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=C.commit),e.readme=C.readme,await ze(),ko()}),e.getBranches=async C=>{let M=parseGithubUrl(e.sourceUrl),z=m();try{let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/branches`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0||e.reconnectingSource?"1":"0",repositoryID:he()}});if(!y(z))return;e.branches=Y.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let ce=e.branches.filter(be=>be.name==e.source.branch);ce.length>0&&(!(!e.reconnectingSource&&!C&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit)&&!(e._preservingDraft&&e.source.commit)&&(e.source.commit=ce[0].commit),e.readme=ce[0].readme,await ze(C))}catch(Y){if(!y(z))return;e.branches=[],e.sourceUnreachable=Y&&(Y.status===404||Y.data&&Y.data.error==="repo_not_found");let ce=Y&&Y.data&&Y.data.error||(Y&&Y.status===404?"repo_not_found":"unknown_error");r("ERRORS."+ce).then(be=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:be}),e.error=be},console.error),typeof G=="function"&&G("sourceUrl","missing",!1)}finally{b(z)}};async function We(){let C=parseGithubUrl(e.sourceUrl),M=m();try{Eo();let z=await t.get(`/api/repo/${C.owner}/${C.repo}/`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,repositoryID:he(),force:"1"}});if(!y(M))return;e.details=z.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(z){if(!y(M))return;throw z.data&&(r("ERRORS."+z.data.error).then(Y=>{e.addToast({title:"Error",date:new Date,body:Y}),e.error=Y},console.error),No(z.data.error)),G("sourceUrl","missing",!1),z}finally{b(M)}}async function ze(C){if(e.readme&&!C)return e.readme;let M=parseGithubUrl(e.sourceUrl),z=m();try{let Y=await t.get(`/api/repo/${M.owner}/${M.repo}/readme`,{params:{reconnect:e.reconnectingSource?"1":void 0,anonymizedRepoId:e.isUpdate&&i.repoId&&ue(e.sourceUrl)===e._originalFullName?i.repoId:void 0,connection:e.githubConnection,force:C===!0?"1":"0",branch:e.source.branch,repositoryID:he()}});y(z,!0)&&(e.readme=Y.data)}catch{y(z,!0)&&(e.readme="")}finally{b(z)}}let tt={magicalBraces:!0},Re=C=>C.startsWith("/")&&!C.endsWith("/")&&zn(yo(C.slice(1),tt),tt)===C.slice(1),Be=()=>Object.keys(e.preserve.picked).filter(C=>e.preserve.picked[C]).sort().map(C=>"/"+zn(C,tt)),X=C=>"/"+zn(C,tt)+"/**",me=C=>"!/"+zn(C,tt)+"/",de=()=>String(e.preserve.patterns||"").split(` @@ -39,15 +39,15 @@ Contact: jane.smith@mit.edu`,e.demoTerms="Jane Smith, Smith, MIT CSAIL, jane.smi `)){if(wo.has(C))return wo.get(C);if(fr.has(C))return C}return pr.add(C),es||(es=u(tf,120)),C},e.previewPathName=C=>{C=String(C||"");let M=C.lastIndexOf("/");return M<0?e.previewName(C):e.previewName(C.slice(0,M))+"/"+e.previewName(C.slice(M+1))},e.watch(()=>[e.repoId,e.previewPathName(e.previewOpenPath()||e.readmeName()),e.previewTreeFiles()],()=>{we.repoId=e.repoId||"repository",we.filePath=e.previewPathName(e.previewOpenPath()||e.readmeName()),we.paths=we.filePath.split("/"),we.files=e.previewTreeFiles(),we.loadedFolders=Object.fromEntries([...ye?.dirs.keys()||[]].map(C=>[e.previewName(C),!0]))},!0),e.on("dispose",()=>{es&&u.cancel(es)});function ko(){!e.anonymize||!e.anonymize.terms||Yt()}async function Qa(){let C=parseGithubUrl(e.sourceUrl),M=m();try{Eo();let z=await t.get(`/api/pr/${C.owner}/${C.repo}/${C.pullRequestId}`,{params:{connection:e.githubConnection}});if(!y(M))return;e.details=z.data,e.pullRequestId||(e.pullRequestId=C.repo+"-PR"+C.pullRequestId+"-"+generateRandomId(4))}catch(z){if(!y(M))return;throw z.data&&(r("ERRORS."+z.data.error).then(Y=>{e.addToast({title:"Error",date:new Date,body:Y}),e.error=Y},console.error),No(z.data.error)),G("sourceUrl","missing",!1),z}finally{b(M)}}let Co=st(new Map);function nf(){let C=new Set,M=e.details&&e.details.pullRequest;if(!M)return C;typeof M.title=="string"&&C.add(M.title),typeof M.body=="string"&&C.add(M.body),typeof M.diff=="string"&&C.add(M.diff);let z=M.comments||[];for(let Y of z)typeof Y.author=="string"&&C.add(Y.author),typeof Y.body=="string"&&C.add(Y.body);return C}let An=ke("pr",()=>{let C=nf(),M=Array.from(C);return M.length===0?null:{contents:M,options:He()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(ce=>typeof ce!="string"))throw Error("Invalid preview response");let z=M.contents,Y=new Map;for(let ce=0;ceCo.set(be,ce))});e.anonymizePrContent=function(C){return C&&(Co.has(C)?Co.get(C):"")};async function Za(){let C=parseGithubUrl(e.sourceUrl),M=m();try{Eo(),e.gistOAuthRequired=!1,e.gistAppRequired=!1;let z=await t.get(`/api/gist/source/${C.gistId}`);if(!y(M))return;e.details=z.data,e.gistId||(e.gistId="gist-"+C.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(z){if(!y(M))return;if(z.data?.error==="github_app_reconnect_required"){e.gistAppRequired=!0,G("sourceUrl","missing",!1);return}if(z.data?.error==="github_oauth_required"){e.gistOAuthRequired=!0,G("sourceUrl","missing",!1);return}throw z.data&&(r("ERRORS."+z.data.error).then(Y=>{e.addToast({title:"Error",date:new Date,body:Y}),e.error=Y},console.error),No(z.data.error)),G("sourceUrl","missing",!1),z}finally{b(M)}}let So=st(new Map);function of(){let C=new Set,M=e.details&&e.details.gist;if(!M)return C;typeof M.description=="string"&&C.add(M.description),typeof M.ownerLogin=="string"&&C.add(M.ownerLogin);let z=M.files||[];for(let ce of z)typeof ce.filename=="string"&&C.add(ce.filename),typeof ce.content=="string"&&C.add(ce.content);let Y=M.comments||[];for(let ce of Y)typeof ce.author=="string"&&C.add(ce.author),typeof ce.body=="string"&&C.add(ce.body);return C}let In=ke("gist",()=>{let C=of(),M=Array.from(C);return M.length===0?null:{contents:M,options:He()}},(C,M)=>{if(!Array.isArray(C?.contents)||C.contents.length!==M.contents.length||C.contents.some(ce=>typeof ce!="string"))throw Error("Invalid preview response");let z=M.contents,Y=new Map;for(let ce=0;ceSo.set(be,ce)),mr()});e.anonymizeGistContent=function(C){return C&&(So.has(C)?So.get(C):"")},e.previewGistFiles=[];function mr(){let C=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=C.map(M=>({filename:e.anonymizeGistContent(M.filename),content:e.anonymizeGistContent(M.content),language:M.language}))}e.watch("details.gist.files",mr,!0),e.watch("terms",mr);function sf(){let C=e.conference;if(e.conference_data=null,!C)return;let M=C===w||e.isUpdate&&C===e._originalConference;C!==w&&(w=null),t.get("/api/conferences/"+C).then(z=>{e.conference===C&&(e.conference_data=z.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),!M&&(e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link))},()=>{e.conference===C&&(e.conference_data=null)})}function Eo(){G("repoId","used",!0),G("repoId","format",!0),G("pullRequestId","used",!0),G("pullRequestId","format",!0),G("gistId","used",!0),G("gistId","format",!0),G("sourceUrl","used",!0),G("sourceUrl","missing",!0),G("sourceUrl","access",!0),G("sourceUrl","github",!0),G("commit","exists",!0),G("conference","activated",!0),G("terms","format",!0),e.termHints=[]}function ei(){if(e.detectedType==="repo"&&e.options.expirationMode==="never")return!1;let C=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||C&&C.invalid?(C&&C.setDirty&&C.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function No(C){let M=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(C){case"repoId_already_used":G(M,"used",!1);break;case"invalid_repoId":G(M,"format",!1);break;case"options_not_provided":G(M,"format",!1);break;case"repo_already_anonymized":G("sourceUrl","used",!1);break;case"invalid_terms_format":G("terms","format",!1);break;case"repo_not_found":G("sourceUrl","missing",!1);break;case"repo_not_accessible":G("sourceUrl","access",!1);break;case"commit_not_found":G("commit","exists",!1);break;case"conf_not_activated":G("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let C=(e.coauthorSearch||"").trim();if(e.coauthorError="",C.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:C}}).then(M=>{let z=new Set((e.coauthors||[]).map(Y=>(Y.username||"").toLowerCase()));e.coauthorResults=(M.data||[]).filter(Y=>!z.has((Y.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(C,M)=>{M&&M.preventDefault(),!(!C||!C.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:C.username}).then(z=>{e.coauthors=z.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},z=>{let Y=z&&z.data&&z.data.error||"unknown_error";e.coauthorError=Y})},e.removeCoauthor=C=>{!C||!C.username||confirm("Remove co-author "+C.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(C.username)).then(M=>{e.coauthors=M.data||[]},M=>{let z=M&&M.data&&M.data.error||"unknown_error";e.coauthorError=z})},e.anonymizeRepo=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(e.reconnectingSource&&!e.reconnectRepositoryId)return;if(ei()){e.editRepository();return}if(e.anonymize?.invalid||e.sourceUrlError){e.editRepository(),e.error="Please correct the highlighted fields before saving.";return}if(e.hostingNeedsPayment()&&e.options.expirationMode==="never"){e.hostingReview=!0,je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"}));return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let z=parseGithubUrl(e.sourceUrl),Y={repoId:e.repoId,terms:e.terms.trim().split(` `).filter(be=>be),connection:e.githubConnection,fullName:`${z.owner}/${z.repo}`,repository:e.sourceUrl,reconnectRepositoryId:e.reconnectRepositoryId,options:e.options,source:e.source,conference:e.conference};e.details&&(Y.options.pageSource=e.details.pageSource),Eo();let ce=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(ce,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/status/"+e.repoId},be=>{if(be.data){let Je=["quota_exceeded","subscription_required_for_never_expiration"].includes(be.data.error);Je||r("ERRORS."+be.data.error).then(qt=>{e.error=qt},console.error),No(be.data.error),Je&&(be.data.error==="subscription_required_for_never_expiration"&&(e._existingNever=!1),e.hostingQuotaBlocked=!0,e.hostingReview=!0,je(()=>document.getElementById("repository-hosting")?.scrollIntoView({block:"center"})))}}).finally(()=>{M.disabled=!1})},e.anonymizeGist=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ei())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let z=parseGithubUrl(e.sourceUrl),Y={gistId:e.gistId,terms:e.terms.trim().split(` `).filter(be=>be),source:{gistId:z.gistId},options:e.options,conference:e.conference};Eo();let ce=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(ce,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/gist/"+e.gistId},be=>{be.data&&(r("ERRORS."+be.data.error).then(Je=>{e.error=Je},console.error),No(be.data.error))}).finally(()=>{M.disabled=!1})},e.anonymizePullRequest=C=>{if(e.sourceLoading){e.error="Wait for the source to finish loading before saving.";return}if(ei())return;if(e.anonymize?.invalid||e.sourceUrlError){e.error="Please correct the highlighted fields before saving.";return}let M=C.currentTarget||C.target.closest?.("button")||C.target;M.disabled=!0;let z=parseGithubUrl(e.sourceUrl),Y={pullRequestId:e.pullRequestId,connection:e.githubConnection,terms:e.terms.trim().split(` -`).filter(be=>be),source:{repositoryFullName:`${z.owner}/${z.repo}`,pullRequestId:z.pullRequestId},options:e.options,conference:e.conference};Eo();let ce=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(ce,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/pr/"+e.pullRequestId},be=>{be.data&&(r("ERRORS."+be.data.error).then(Je=>{e.error=Je},console.error),No(be.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{sf()}),e.termHints=[],e.matchTermAsWritten=C=>{e.terms=Ic(e.terms,C)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&Yt()}),e.watch("terms",()=>{e.termHints=Ac(e.terms),e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.image",()=>{e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.link",()=>{e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("details",()=>{e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()},!0)},Ka=function(e,t,s,i,o,r){ha(e);let u=kt();Mc();let p=Bt(),c=0,v=null,g=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function y(){v&&(v.resolve(),v=null),g&&(u.timeout.cancel(g),g=null)}let m=!1;e.on("dispose",()=>{m=!0,c++,y(),b&&b.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",I=>{e.symbolsOpen&&!I.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!I.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!I.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!I.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!I.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",I=>{I.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(I.ctrlKey||I.metaKey)&&!I.altKey&&I.key&&I.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(I.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.preventDefault();var L=document.querySelector(".tree-search-input");L&&(L.focus(),L.select())}});var b=null;e.onFileSearchChange=function(){b&&(b.resolve(),b=null);let I=e.fileSearchQuery;if(!I||I.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let L=r.defer();b=L,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(I)}`,{timeout:L.promise}).then(function(k){if(!(m||b!==L)){b=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Be){q[(Be.path||"")+"/"+Be.name]=!0});for(var W=[],H={},J=0;J0&&e.files.push.apply(e.files,W);for(var We=[],ze=0;ze0&&e.files.push.apply(e.files,We),e.fileSearchResults=k.data}},function(){!m&&b===L&&(b=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(I,L){if(e.repoId!=i.repoId)return B();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(k=>k&&k.trim().length>0),F();for(let k=0;k0?e.paths.slice(0,k).join("/"):"";e.files.some(H=>H.path===q)||e.getFiles(q)}}});function E(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],L={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(L[q.name.toLowerCase()]=q.name);let k=null;for(let q of I)if(L[q]){k=q;break}if(!k&&Object.keys(L).length>0&&(k=Object.keys(L)[0]),k){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(L[k]))}}e.fileCounts=null;let S=0,N=new Set,w=!1;e.getFiles=function(I,L=!1){let k=e.repoId,q=S;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(W){if(m||k!==e.repoId||q!==S)return[];let H=I||"";return e.files=e.files.filter(J=>J.path!==H),e.files.push(...W.data),e.loadedFolders={...e.loadedFolders,[H]:!0},D(H,q),W.data},function(W){if(m||k!==e.repoId||q!==S)return[];L||(e.type="error",e.content=ar(W),e.files=[])})};function D(I,L){if(w||N.has(I))return;N.add(I);let k=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(I)}`).then(function(q){m||k!==e.repoId||L!==S||(e.fileCounts={...e.fileCounts,...q.data})},function(){m||k!==e.repoId||L!==S||(w=!0)})}function O(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var _=null;e.on("dispose",function(){_&&u.interval.cancel(_)});function j(I){if(m)return;let L=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(k=>{if(!(m||L!==e.repoId)){if(e.options=k.data,e.options.url){window.location=e.options.url;return}I&&I(k.data)}},k=>{if(!(m||L!==e.repoId)){var q=k.data||{};if(q.error==="rate_limited"&&q.resetAt){let H=function(){var J=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(J<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,_&&(u.interval.cancel(_),_=null),j(I);else{var ne=Math.floor(J/60),G=J%60;e.rateLimitCountdown=ne>0?ne+"m "+G+"s":G+"s"}};var W=H;e.type="rate_limited",e.rateLimitResetAt=q.resetAt,_&&u.interval.cancel(_),H(),_=u.interval(H,1e3)}else q.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){j(I)},3e3)):(e.type="error",e.content=ar(k))}})}function oe(I,L){let k=c;if(!I){e.type="error",e.content="no_file_selected";return}let q=e.type;(q==="code"||q==="text")&&ni().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let W=r.defer();v=W,g=u.timeout(()=>{!m&&k===c&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let H=L&&L.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+H,{timeout:W.promise,onDownloadProgress:J=>{!m&&k===c&&(e.fileReceivedBytes=J)},transformResponse:J=>J}).then(J=>{m||k!==c||(y(),e.renderFileContent(J.data,q,s.url()+"/../",J.headers("content-type")))},J=>{m||k!==c||(y(),e.type="error",e.content=ar(J))})}function F(){c++,y(),e.content="",e.file=O();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;let L=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${L?encodePathForUrl(L):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}oe(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=()=>B();function B(){c++,y(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,S++,N=new Set,w=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let I=e.repoId;j(function(L){if(e.filePath){F();let q=[...new Set(e.paths.map((W,H)=>e.paths.slice(0,H).join("/")))];r.all(q.map(W=>e.getFiles(W,!0)));return}var k=r.resolve();for(let q=0;q0?e.paths.slice(0,q).join("/"):"";k=k.then(function(){return e.getFiles(W)}).then(function(){if(e.type==="error")return r.reject("error")})}k.then(function(){m||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(E(),F()))})})}B()},zc=function(e,t,s,i,o){async function r(c){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",r(c=>{u()})}p()},Hc=function(e,t,s,i,o){async function r(c){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let g=v.data&&v.data.files&&v.data.files.length;e.tabState={active:g?"files":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.gistId=i.gistId,e.type="loading",r(()=>{u()})}p()},jc=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=st({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},Ya=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let o=()=>{for(let[m,b,E]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let S=document.getElementById(m);if(!S)continue;let N=S.parentElement.querySelector(":scope > .date-echo");N||(N=document.createElement("p"),N.className="date-echo",N.setAttribute("aria-live","polite"),S.insertAdjacentElement("afterend",N));let w=ya(e.options?.[E]);N.textContent=w?b+" "+w:"",N.hidden=!w}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>je(o));let r=(m=20)=>{let b=document.querySelector("input#name.form-control"),E=document.querySelector("input#conferenceID.form-control");E&&(E.placeholder="e.g. ICSE27"),b?b.placeholder="e.g. ICSE 2027":m>0&&setTimeout(()=>r(m-1),50)};setTimeout(()=>r(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,Wi(t).then(m=>{e.conferenceBilling=m.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(m=>m.id!=="free_conference").map(m=>{let b=(e.conferenceBilling?.plans||[]).find(E=>E.id===m.id)||{};return{...m,storage:m.storagePerRepo,...b,id:m.id,name:m.name}}),e.conferenceAudience=m=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[m]||"",e.conferencePlanName=m=>Gc(m),e.conferenceAmount=(m,b=m?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:m?.currency||"eur",minimumFractionDigits:b%100?2:0,maximumFractionDigits:2}).format(b/100),e.conferenceBytes=m=>{let b=Number(m)||0,E=Math.min(4,Math.floor(Math.log2(Math.max(b,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(b/1024**E)} ${["B","KB","MB","GB","TB"][E]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.conferenceId).then(m=>{e.options={...e.options,...m.data,billing:m.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(m=>{e.plans=m.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(b=>b.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(b=>b.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(b=>b.id==e.options.plan.planID)[0]})}p();let c=new Date;c.setDate(1),c.setMonth(c.getMonth()+1);let v=new Date(c);v.setTime(c.getTime()+179*864e5),e.options={billing:{},startDate:c,endDate:v,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(m=>m.id==e.options.plan.planID)[0]});function g(){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 y(m){switch(m){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 m=JSON.parse(JSON.stringify(e.options)),b=st({title:`Creating ${m.name}...`,date:new Date,body:`The conference ${m.conferenceID} is in creation.`});e.editionMode&&(b.title=`Updating ${m.name}...`,b.body=`The conference '${m.conferenceID}' is updating.`),e.addToast(b),g(),t.post("/api/conferences/"+(e.editionMode?m.conferenceID:""),m).then(()=>{e.editionMode?(b.title=`${m.name} updated`,b.body=`The conference '${m.conferenceID}' is updated.`):(b.title=`${m.name} created`,b.body=`The conference '${m.conferenceID}' is created.`),s.url("/conference/"+m.conferenceID)},E=>{y(E.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(b)}).finally(()=>{e.saving=!1})}};function Gc(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var Wc=function(e,t,s,i){Ki(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=c=>Gc(c),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let o=Ji,r=["ready","preparing","error","expired","removed"],u={current:c=>c!=="removed",attention:c=>c==="error",removed:c=>c==="removed"};e.confView=()=>Object.keys(u).find(c=>r.every(v=>u[c](v)===(e.filters.status[v]!==!1)))||"custom",e.setConfView=c=>{r.forEach(v=>{e.filters.status[v]=(u[c]||u.current)(v)})},e.confCount=c=>(e.conference?.repositories||[]).filter(v=>u[c](o(v.status))).length,e.copyingId=null,e.copyRepoLink=async c=>{if(!c?.repoId||e.copyingId)return;let v=new URL("/r/"+c.repoId+"/",window.location.origin).href;e.copyingId=c.repoId;try{await Wa(v),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:v})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=c=>{!c?.repoId||e.extendingId||(e.extendingId=c.repoId,t.post("/api/repo/"+c.repoId+"/extend").then(v=>{let g=v?.data?.expirationDate?` until ${new Date(v.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${c.repoId} is extended.`,body:`Reviewers can open it again${g}.`}),c.status="ready",v?.data?.expirationDate&&(c.options={...c.options||{},expirationDate:v.data.expirationDate}),e.extendingId=null},v=>{let g=v?.status||v?.data?.status;e.addToast({title:`Couldn't extend ${c.repoId}.`,body:g===401||g===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=c=>{if(e.filters.status[o(c.status)]==!1)return!1;let v=e.search.trim().toLowerCase();return!!(!v||(c.source?.fullName||"").toLowerCase().includes(v)||(c.repoId||"").toLowerCase().includes(v))};function p(){t.get("/api/conferences/"+i.conferenceId).then(c=>{e.conference=c.data})}p()},Kc=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},Yc=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var Jc=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>sl(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Kc(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yc(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>_c(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Uc(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bc(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>jc(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ya(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ya(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Wc(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>qc(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>$c(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Fc(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>zc(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Hc(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Ka(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Ka(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Gu(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>_u(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Uu(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bu(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>zu(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yu(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ku(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Hu(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ju(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Cv={class:"container paper-page admin-page overview-page emails-page"},Sv={class:"email-overview-toolbar"},Ev={class:"seg-filter",role:"group","aria-label":"History period"},Nv=["aria-pressed","onClick"],Rv={class:"email-refresh"},Tv={key:0},Dv=["disabled"],Pv={key:0,class:"email-state email-state-error",role:"alert"},Av=["aria-busy"],Iv={class:"ov-kpi-card"},Ov={class:"ov-kpi-value"},Mv={class:"ov-kpi-card"},Vv={class:"ov-kpi-value"},Lv={class:"ov-kpi-card"},qv={class:"ov-kpi-card"},$v={class:"ov-kpi-value"},Fv={class:"ov-kpi-sub"},_v={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},Uv={class:"ov-chart-head"},Bv={class:"ov-chart-title"},zv={class:"email-muted"},Hv={class:"email-chart-plot"},jv={class:"email-axis"},Gv={class:"email-bars"},Wv=["aria-label","title"],Kv={class:"email-chart-dates"},Yv={key:0},Jv={class:"email-chart-data"},Xv={class:"email-data-scroll"},Qv={scope:"row"},Zv={"aria-labelledby":"email-history-title",class:"email-history"},xv={class:"email-section-head"},ey={class:"email-muted"},ty={class:"email-search"},ny={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},oy=["aria-pressed","onClick"],sy={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},iy={key:0,class:"email-state email-state-error",role:"alert"},ry=["disabled"],ay={key:1,class:"email-state"},ly={key:2,class:"email-state"},dy={key:3,class:"email-footer email-pager-top"},uy=["disabled"],cy=["disabled"],py=["aria-busy"],fy={class:"email-table",role:"table"},my={role:"rowgroup"},hy={class:"email-recipient",role:"cell"},gy=["title"],vy={class:"email-result",role:"cell"},yy={key:0,class:"email-http"},by={class:"email-type",role:"cell"},wy={class:"email-attempted",role:"cell"},ky=["datetime","title"],Cy={class:"email-expand",role:"cell"},Sy=["aria-expanded","aria-controls","aria-label","onClick"],Ey={"aria-hidden":"true"},Ny={key:0,class:"email-expanded",role:"row"},Ry={colspan:"5",role:"cell"},Ty=["id","aria-label"],Dy={class:"email-detail-heading"},Py={class:"email-explanation"},Ay={class:"email-detail-grid"},Iy=["onClick"],Oy=["onClick"],My=["onClick"],Vy=["onClick"],Ly={key:0,class:"email-copy-feedback"},qy={key:5,class:"email-footer"},$y=["disabled"],Fy=["disabled"];function Xc(e,t){return a(),l("div",Cv,[t[43]||(t[43]=Se('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",Sv,[n("div",Ev,[(a(),l(V,null,Q([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:R(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},d(s.label),11,Nv)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",Rv,[e.emailUpdated?(a(),l("span",Tv,"History updated "+d(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,Dv)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",Pv,[h(d(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",Iv,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",Ov,d(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",Mv,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",Vv,d(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",Lv,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:R(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},d(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",qv,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",$v,d(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",Fv,d(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+d(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,Av),e.emailSummary?(a(),l("section",_v,[n("div",Uv,[n("h2",Bv,[t[21]||(t[21]=h("Sending activity ",-1)),n("span",zv,"\xB7 "+d(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",Hv,[n("div",jv,[n("span",null,d(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",Gv,[(a(!0),l(V,null,Q(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:Ae({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:Ae({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:Ae({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:Ae({flexGrow:s.unknown+s.sending})},null,4)],4)],8,Wv))),128))])]),n("div",Kv,[n("span",null,d(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",Yv,"No recorded activity in these "+d(e.emailSummary.chartDays)+" days",1)),n("span",null,d(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",Jv,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",Xv,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",Qv,d(e.emailDayLabel(s)),1),n("td",null,d(s.accepted),1),n("td",null,d(s.rejected),1),n("td",null,d(s.unknown),1),n("td",null,d(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",Zv,[n("div",xv,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",ey,"Newest first \xB7 "+d(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=ae(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",ty,[t[28]||(t[28]=h("Search attempts",-1)),T(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[nt,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=h("Email type",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[Rt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",ny,[(a(),l(V,null,Q(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:R({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[h(d(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,d(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,oy)),64))]),n("p",sy,d(e.emailAnnouncement)+" "+d(e.emailCopyMessage),1),e.emailError?(a(),l("div",iy,[n("span",null,d(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,ry)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",ay,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",ly,[n("p",null,d(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",dy,[n("span",null,[h(d((e.emailPage-1)*25+1)+"\u2013"+d(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(V,{key:0},[h(" of "+d(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=h(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,uy),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,cy)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",fy,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",my,[(a(!0),l(V,null,Q(e.emailVisibleRows(),s=>(a(),l(V,{key:s._id},[n("tr",{role:"row",class:R({"email-selected":e.selectedEmailId===s._id})},[n("td",hy,[n("span",{title:s.recipient},d(s.recipient),9,gy)]),n("td",vy,[n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",yy,d(s.httpStatus),1)):f("v-if",!0)]),n("td",by,d(e.emailKindLabel(s.kind)),1),n("td",wy,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},d(e.emailShortTime(s.createdAt)),9,ky)]),n("td",Cy,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[h(d(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",Ey,d(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,Sy)])],2),e.selectedEmailId===s._id?(a(),l("tr",Ny,[n("td",Ry,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",Dy,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3)]),n("p",Py,d(e.emailExplanation(s)),1),n("dl",Ay,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[h(d(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},d(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,Iy)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,d(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,d(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,d(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,d(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},d(e.emailCopiedValue===s._id?"Copied":"Copy"),9,Oy)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,d(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},d(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,My)])]),n("div",null,[n("dt",null,"Resource \xB7 "+d(s.resourceKind),1),n("dd",null,[n("code",null,d(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},d(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,Vy)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",Ly,d(e.emailCopyMessage),1)):f("v-if",!0)],8,Ty)])])):f("v-if",!0)],64))),128))])])],8,py)):f("v-if",!0),e.emailRows.length?(a(),l("div",qy,[n("span",null,[h("Page "+d(e.emailPage),1),e.emailPageCount()?(a(),l(V,{key:0},[h(" of "+d(e.emailPageCount()),1)],64)):f("v-if",!0),h(" \xB7 "+d(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,$y),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,Fy)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var _y={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Uy={key:0},By={key:1,role:"alert"},zy={key:2,role:"status"},Hy={key:0},jy={key:1},Gy=["disabled"],Wy=["disabled"],Ky=["disabled"],Yy={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Jy={id:"review-policy-title"},Xy={key:0,role:"alert"},Qy=["disabled"],Zy=["disabled"],xy=["disabled"],eb={key:6,role:"status"};function Qc(e,t){return a(),l("section",_y,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",Uy,[...t[6]||(t[6]=[h("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",By,d(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",zy,[t[7]||(t[7]=h("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",Hy,"Continue to review to finish linking.")):(a(),l("span",jy,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,Gy)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=ae((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),T(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Wy),[[nt,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Ky)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",Yy,[n("h2",Jy,d(e.preview.repositoryName),1),n("p",null,"Access: "+d(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+d(e.preview.policy.retainUntil)+". Policy version "+d(e.preview.policy.version)+".",1),e.expired?(a(),l("p",Xy,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,Qy),[[oa,e.acceptAccess]]),t[10]||(t[10]=h(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,Zy),[[oa,e.acceptRetention]]),t[11]||(t[11]=h(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},d(e.uncertain?"Retry confirmation":"Confirm consent"),9,xy)])):f("v-if",!0),e.busy?(a(),l("p",eb,"Waiting for the server\u2026")):f("v-if",!0)])}var tb={class:"container paper-page connections-page"},ob={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sb={key:1,role:"status"},ib=["disabled"],rb={key:3},ab={key:0,class:"connection-resources"},lb=["disabled"],db=["disabled"],ub={key:0,role:"status"},cb={class:"connections-grid"},pb={key:0},fb={class:"connection-title"},mb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},hb={class:"connection-actions"},gb={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},vb=["disabled"],yb={key:1,class:"connection-installations"},bb={key:0},wb=["href"],kb={class:"sr-only"},Cb={class:"connection-title"},Sb={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Eb={key:1,class:"connection-revoke"},Nb={key:0},Rb=["disabled"],Tb={class:"connection-resources"},Db={class:"connection-title"},Pb={class:"connection-count"},Ab={key:0,class:"connection-empty"},Ib={class:"connection-resource-name"},Ob={key:0,class:"connection-resource-actions"},Mb=["disabled","onClick"],Vb=["disabled","onClick"],Lb={key:1,class:"connection-help",role:"status"},qb=["disabled","onClick"];function Zc(e,t){return a(),l("div",tb,[t[27]||(t[27]=Se('
My work \xA0/\xA0 GitHub connections

GitHub connections

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

',2)),e.connectionError?(a(),l("p",ob,d(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",sb,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,ib)):f("v-if",!0),e.connections?(a(),l("div",rb,[e.connections.emailNotificationsEnabled?(a(),l("section",ab,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),n("form",{onSubmit:t[2]||(t[2]=ae(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),T(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,lb),[[nt,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,db),e.emailSaved?(a(),l("p",ub,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",cb,[e.connections.appEnabled?(a(),l("section",pb,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",fb,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},d(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",mb,d(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",hb,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",gb,[...t[9]||(t[9]=[h("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:R(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},d(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,vb)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",yb,[(a(!0),l(V,null,Q(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=h()),n("strong",null,d(s.account),1),s.suspended?(a(),l("span",bb," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=h("Manage access ",-1)),n("span",kb,"for "+d(s.account),1),t[14]||(t[14]=h(" \u2192",-1))],8,wb)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Cb,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.oauthConnected}])},d(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(a(),l("a",Sb,d(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",Eb,[e.connections.gistCount?(a(),l("p",Nb,d(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Rb)):f("v-if",!0)])):f("v-if",!0)])]),n("section",Tb,[n("div",Db,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",Pb,d(e.connections.resources?.length||0)+" "+d((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(a(),l("div",Ab,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(V,null,Q(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",Ib,[n("strong",null,d(s.name||s.id),1),n("small",null,d(s.type)+" \xB7 "+d(s.id),1)]),n("span",{class:R(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},d(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",Ob,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Mb),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},d(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Vb)):f("v-if",!0),s.eligible===!1?(a(),l("span",Lb,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,qb)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var $b={class:"container paper-page auth-page"},Fb={class:"auth-layout"},_b={class:"auth-options"},Ub={key:0},Bb={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},zb={key:1},Hb={key:1,class:"auth-card"},jb={key:2,class:"auth-legacy"},Gb={key:3,role:"status"};function xc(e,t){let s=Qe("partial-view");return a(),l(V,null,[n("div",$b,[n("div",Fb,[t[4]||(t[4]=Se('
Your research, ready for review

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

Sign in to create and manage your anonymizations.

',1)),n("div",_b,[e.accountRecovery?(a(),l("section",Ub,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(a(),l("a",Bb,"Verify with previous GitHub connection")):(a(),l("p",zb,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",Hb,[...t[2]||(t[2]=[Se('

Continue with GitHub

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

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",jb,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",Gb,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function ep(e,t){let s=Qe("partial-view");return a(),l(V,null,[t[0]||(t[0]=Se('
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)),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var Wb={class:"container paper-page admin-page"},Kb={class:"seg-bar"},Yb={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},Jb=["aria-checked"],Xb={class:"count"},Qb=["aria-checked"],Zb={class:"count"},xb=["aria-checked"],e1={class:"count"},t1=["aria-checked"],n1={class:"count"},o1=["aria-checked"],s1={class:"count"},i1=["aria-checked"],r1={class:"count"},a1={class:"seg-countline",role:"status"},l1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},d1={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},u1={class:"admin-filter-row"},c1={class:"search-wrap"},p1={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},f1={key:0,class:"admin-search-hint"},m1={key:1,class:"admin-filter-inline","aria-label":"Pagination"},h1=["disabled"],g1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},v1=["disabled"],y1={key:0,class:"admin-filter-row"},b1={class:"admin-active-chips"},w1={class:"key"},k1=["onClick"],C1={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},S1={key:0,class:"paper-table-head",role:"row"},E1={role:"columnheader"},N1={role:"columnheader"},R1={role:"columnheader"},T1={class:"paper-table-row",role:"row"},D1={class:"cell-anon",role:"cell"},P1={class:"anon-text"},A1=["textContent","href"],I1={class:"anon-sub"},O1={class:"cell-status",role:"cell"},M1=["textContent"],V1={class:"cell-views num",role:"cell"},L1=["textContent","href"],q1={class:"cell-expires",role:"cell"},$1={class:"cell-actions",role:"cell"},F1={class:"dropdown"},_1={class:"dropdown-menu dropdown-menu-right"},U1=["href"],B1=["href"],z1=["href"],H1=["onClick"],j1={key:1,class:"paper-table-empty"},G1={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},W1={key:0,class:"pagination-compact"},K1=["disabled"],Y1=["max"],J1=["disabled"],X1={class:"admin-filter-inline"},Q1={class:"form-control form-control-sm"};function tp(e,t){let s=De("field"),i=De("form");return a(),l("div",Wb,[t[55]||(t[55]=Se('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",Kb,[n("div",Yb,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[14]||(t[14]=h("All ",-1)),n("span",Xb,d(e.fmt?.number(e.segCount("all"))),1)],10,Jb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Ready ",-1)),n("span",Zb,d(e.fmt?.number(e.segCount("ready"))),1)],10,Qb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Preparing ",-1)),n("span",e1,d(e.fmt?.number(e.segCount("preparing"))),1)],10,xb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Error ",-1)),n("span",n1,d(e.fmt?.number(e.segCount("error"))),1)],10,t1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=h("Expired ",-1)),n("span",s1,d(e.fmt?.number(e.segCount("expired"))),1)],10,o1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=h("Removed ",-1)),n("span",r1,d(e.fmt?.number(e.segCount("removed"))),1)],10,i1)]),n("p",a1,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=h(" shown",-1))])]),e.fetchError?(a(),l("div",l1,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",d1,[n("div",u1,[n("div",c1,[T(n("input",p1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",f1,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",m1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,h1),n("span",g1,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,v1)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",y1,[n("div",b1,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",w1,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,k1)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",C1,[e.total!==0?(a(),l("div",S1,[n("div",E1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=o=>e.sortBy("name"))},[t[33]||(t[33]=h("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",N1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",R1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=o=>e.sortBy("startDate"))},[t[37]||(t[37]=h("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(V,null,Q(e.filteredConferences,(o,r)=>(a(),l("div",T1,[n("div",D1,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",P1,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,A1),n("div",I1,[n("span",null,d(o?.conferenceID),1),n("span",null,d(e.fmt?.money(o?.price||0)),1)])])]),n("div",O1,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,M1)]),n("div",V1,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:d(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,L1)]),n("div",q1,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" "+d(e.fmt?.date(o?.startDate))+" \u2013 "+d(e.fmt?.date(o?.endDate)),1)]),n("div",$1,[n("div",F1,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",_1,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,U1),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View",-1)])],8,B1),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,z1),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeConference(o),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,H1),[[Z,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(a(),l("div",j1,[t[49]||(t[49]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)]),n("div",G1,[t[54]||(t[54]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",W1,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,K1),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Y1),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[51]||(t[51]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,J1)])):f("v-if",!0),n("span",X1,[t[53]||(t[53]=n("label",null,"Per page",-1)),T((a(),l("select",Q1,[...t[52]||(t[52]=[Se('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var Z1={class:"container paper-page admin-page overview-page errors-page"},x1={class:"error-source-toolbar"},ew={class:"error-source-switch seg-filter",role:"group","aria-label":"Log source"},tw=["aria-pressed"],nw=["aria-pressed"],ow={class:"error-health-strip"},sw={class:"log-state",role:"status","aria-live":"polite"},iw=["disabled"],rw={class:"sr-only"},aw=["aria-busy"],lw={class:"volume-head"},dw=["href"],uw={key:0,class:"log-inspector","aria-labelledby":"log-detail-title"},cw={class:"log-inspector-heading"},pw={class:"log-inspector-eyebrow"},fw={id:"log-detail-title",tabindex:"-1"},mw={key:0},hw={class:"log-facts-strip"},gw=["datetime"],vw=["datetime"],yw={class:"log-detail log-investigation-body",id:"log-detail"},bw={class:"log-related-main"},ww={class:"log-correlation-selector",role:"group","aria-label":"Related events correlation"},kw=["id","aria-label","aria-pressed","onClick"],Cw={class:"log-selector-mark","aria-hidden":"true"},Sw={key:0,class:"log-meta"},Ew={class:"log-correlation-window"},Nw=["aria-busy"],Rw={class:"volume-head"},Tw={key:0,role:"status"},Dw={key:1,class:"log-coverage"},Pw={key:2,class:"log-events"},Aw=["datetime","title"],Iw={class:"log-timeline-event"},Ow={class:"log-timeline-event-title"},Mw={key:0},Vw={key:1},Lw={key:2},qw={key:0,class:"log-request-route"},$w={key:1,class:"log-error-stack"},Fw={key:0},_w={key:0},Uw={key:1},Bw={key:2},zw={class:"log-event-fields"},Hw=["onClick"],jw={class:"log-timeline-scope"},Gw=["href"],Ww={key:1,class:"log-no-trace"},Kw={class:"log-evidence"},Yw={class:"log-coverage"},Jw={class:"log-sample-panel"},Xw={class:"log-coverage"},Qw={key:0,class:"log-request-route"},Zw={key:1,class:"log-error-stack"},xw={key:0},ek={key:1},tk={key:2},nk={class:"log-sample-facts"},ok={key:0},sk={class:"log-detail-identifiers"},ik={key:0},rk={class:"log-value-reveal"},ak=["onClick"],lk={class:"log-all-fields"},dk={class:"log-raw-sample"},uk={class:"log-list-view"},ck={class:"log-query"},pk={key:0},fk=["disabled"],mk={key:0,class:"log-coverage"},hk={class:"log-local-filters"},gk={class:"log-search"},vk={class:"log-coverage",role:"status",title:"Counts and first/last dates apply only to returned records, not all matching events."},yk={key:0,class:"log-loading"},bk={key:1,class:"log-workspace"},wk={class:"log-results"},kk={key:0,class:"log-table-scroll"},Ck={class:"log-table",role:"table"},Sk=["aria-label","onClick","aria-expanded"],Ek={class:"log-event-title"},Nk={class:"log-meta"},Rk={class:"log-service"},Tk={class:"log-module"},Dk={class:"log-level"},Pk={key:0,class:"log-http"},Ak={class:"log-count"},Ik=["datetime","title"],Ok={key:1,class:"admin-empty"},Mk={key:2,class:"admin-empty"},Vk={key:2,class:"log-health"},Lk={key:0},qk={key:1},$k={key:2},Fk={key:0,class:"log-copy-status",role:"status"},_k=["aria-busy"],Uk={key:0,class:"history-warning",role:"status"},Bk={key:1,class:"log-inspector"},zk={class:"log-inspector-heading"},Hk={class:"log-inspector-eyebrow"},jk={id:"history-inspector-title",tabindex:"-1"},Gk={key:0},Wk={class:"log-inspector-tabs detail-tabs",role:"group","aria-label":"History event view"},Kk=["aria-pressed"],Yk=["aria-pressed"],Jk=["aria-pressed"],Xk={class:"errors-toolbar","aria-label":"Error filters"},Qk={class:"seg-filter",role:"group","aria-label":"Filter by severity"},Zk=["aria-pressed"],xk=["aria-pressed"],e0=["aria-pressed"],t0=["aria-pressed"],n0={class:"search-wrap"},o0={type:"search",class:"form-control","aria-label":"Search application history",placeholder:"Search history\u2026",title:"Search messages, or filter with code:repo_not_found module:route status:>=400",autocomplete:"off"},s0={key:0,class:"filter-count"},i0={class:"history-view-options"},r0={class:"history-view-controls"},a0={class:"select-wrap"},l0={id:"history-sort",class:"form-control form-control-sm"},d0={class:"select-wrap"},u0={id:"history-merge",class:"form-control form-control-sm"},c0={class:"autoref"},p0={type:"checkbox"},f0={key:0,role:"status"},m0={key:1,class:"admin-empty"},h0={key:2},g0={key:3,class:"errors-pager"},v0=["disabled"],y0={key:0,class:"errors-list-head"},b0={key:0,class:"errors-group-head"},w0={class:"errors-group-count"},k0={key:0,class:"errors-group-note"},C0=["data-history-key","aria-expanded","aria-controls","onClick"],S0={class:"col-when"},E0={class:"when-rel"},N0={class:"when-abs"},R0={class:"col-sev"},T0={class:"sev-label"},D0={class:"col-mod"},P0={class:"pill pill-module"},A0={class:"col-msg"},I0={class:"msg-code"},O0={key:0,class:"msg-context"},M0={key:1,class:"msg-detail"},V0=["title"],L0={class:"col-count"},q0={key:0,class:"count-pill"},$0={key:1,class:"count-pill count-pill-muted"},F0={class:"col-status"},_0=["title"],U0={key:1,class:"status-empty",title:"No HTTP status for this event"},B0=["id"],z0={class:"detail-body"},H0={class:"detail-main"},j0={key:0},G0={key:0,class:"log-request-route"},W0={key:1},K0={key:0},Y0={class:"log-explanation-lead"},J0={class:"log-evidence"},X0={class:"history-technical"},Q0={key:0,class:"history-fields"},Z0={class:"log-value-reveal"},x0=["onClick"],e2={key:1},t2={key:2,class:"stack-pre"},n2={key:3,class:"related-list"},o2={class:"when-abs"},s2={class:"msg-url"},i2={class:"detail-actions"},r2=["onClick"],a2=["onClick"],l2=["onClick"],d2=["onClick"],u2={key:3,class:"copy-hint"},c2={class:"detail-aside"},p2={class:"aside-block"},f2=["title"],m2={class:"aside-block"},h2=["title"],g2={class:"aside-block"},v2={class:"aside-value"},y2={key:0,class:"aside-sub"},b2={key:0,class:"aside-block"},w2=["href"],k2={key:0,class:"log-value-reveal"},C2=["onClick"],S2={key:1,class:"aside-block"},E2={class:"aside-value mono"},N2={class:"history-management"},R2={class:"volume-head"},T2={class:"errors-actions"},D2={role:"status"},P2={key:0},A2={class:"history-summary"},I2={key:0,class:"kpi-grid"},O2={class:"kpi-card"},M2={class:"kpi-value"},V2={key:0},L2={key:1},q2={key:2},$2={class:"kpi-card kpi-error"},F2={class:"kpi-value"},_2={class:"kpi-sub"},U2={class:"kpi-card kpi-warn"},B2={class:"kpi-value"},z2={class:"kpi-sub"},H2={class:"kpi-card kpi-info"},j2={class:"kpi-value"},G2={class:"kpi-sub"},W2={class:"kpi-value"},K2={class:"kpi-sub"},Y2={key:0,class:"dropped-warn"},J2={key:1,class:"volume-chart"},X2={class:"volume-head"},Q2={class:"volume-legend"},Z2={key:0},x2={key:1},eC={key:2},tC={class:"volume-bars"},nC=["title"],oC={key:1},sC={key:0,class:"admin-empty"},iC=["aria-busy"],rC={class:"volume-head"},aC={id:"log-timeline-title",tabindex:"-1"},lC={key:0,class:"log-origin"},dC={key:1,role:"status"},uC={key:2,class:"log-coverage"},cC={key:3,class:"log-events"},pC=["datetime","title"],fC={class:"log-timeline-event"},mC={class:"log-timeline-event-title"},hC={key:0},gC={key:1},vC={key:2},yC={key:0,class:"log-request-route"},bC={key:1,class:"log-error-stack"},wC={key:0},kC={key:0},CC={key:1},SC={key:2},EC={class:"log-event-fields"},NC=["onClick"],RC={class:"log-timeline-scope"},TC=["href"];function np(e,t){let s=De("field"),i=De("form");return a(),l("div",Z1,[t[108]||(t[108]=Se('
Admin \xA0/\xA0 Errors

Errors

',2)),n("div",x1,[n("div",ew,[n("button",{id:"error-source-central",type:"button",class:R(["seg-chip",{active:e.errorSource==="central"}]),"aria-pressed":e.errorSource==="central",onClick:t[0]||(t[0]=o=>e.errorSource="central")},"Central logs",10,tw),n("button",{id:"error-source-history",type:"button",class:R(["seg-chip",{active:e.errorSource==="history"}]),"aria-pressed":e.errorSource==="history",onClick:t[1]||(t[1]=o=>e.errorSource="history")},"Application history",10,nw)]),n("div",ow,[n("p",sw,d(e.errorSource==="history"?e.redisLoading?"Loading application history\u2026":e.available===null?"Checking Redis\u2026":e.available?"Redis history is reachable.":"Redis history is unavailable. Previously loaded rows may be stale.":e.logFailure||(e.logLoading?"Loading central logs\u2026":e.logSnapshotStale?"This snapshot is stale. Refresh before assessing current health.":e.logStateText(e.logData?.state))),1),n("button",{type:"button",class:"btn btn-sm",disabled:e.errorSource==="central"?e.logLoading:e.redisLoading,onClick:t[2]||(t[2]=o=>e.errorSource==="central"?e.refreshLogs():e.refreshNow())},[h(d((e.errorSource==="central"?e.logLoading:e.redisLoading)?"Refreshing\u2026":"Refresh"),1),n("span",rw,d(e.errorSource==="central"?" central logs":" history"),1)],8,iw),e.errorSource==="central"&&(e.logFailure||["disabled","misconfigured","unreachable","busy"].includes(e.logData?.state))?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=o=>e.errorSource="history")},"Open application history")):f("v-if",!0)])]),T(n("section",{class:"log-investigation","aria-labelledby":"central-logs-title","aria-busy":e.logLoading},[n("div",lw,[t[30]||(t[30]=n("h2",{class:"sr-only",id:"central-logs-title"},"Central logs",-1)),e.logData?.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.logData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,dw)):f("v-if",!0)]),e.selectedLog?(a(),l("section",uw,[n("button",{type:"button",class:"log-back",onClick:t[4]||(t[4]=o=>e.closeLogDetail())},[...t[31]||(t[31]=[n("span",{"aria-hidden":"true"},"\u2190",-1),h(" Back to events",-1)])]),n("div",cw,[n("div",null,[n("p",pw,d(e.selectedLog.sample.service)+" / "+d(e.selectedLog.sample.module)+" \xB7 Event sample",1),n("h2",fw,d(e.selectedLog.sample.errorCode||e.selectedLog.sample.errorType||e.selectedLog.sample.event),1)]),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(e.selectedLog.sample)])},[h(d(e.logSeverity(e.selectedLog.sample)==="error"?"Failure":e.logSeverity(e.selectedLog.sample)==="warn"?"Warning":"Info"),1),e.selectedLog.sample.status||e.selectedLog.sample.httpStatus?(a(),l("span",mw," \xB7 HTTP "+d(e.selectedLog.sample.status||e.selectedLog.sample.httpStatus),1)):f("v-if",!0)],2)]),n("div",hw,[n("span",null,[n("strong",null,d(e.selectedLog.count),1),t[32]||(t[32]=h(" returned occurrences",-1))]),n("span",null,[t[33]||(t[33]=h("First ",-1)),n("time",{datetime:e.selectedLog.first},d(e.absTimeShort(e.selectedLog.first)),9,gw)]),n("span",null,[t[34]||(t[34]=h("Last ",-1)),n("time",{datetime:e.selectedLog.last},d(e.absTimeShort(e.selectedLog.last)),9,vw)])]),n("div",yw,[n("div",bw,[n("div",ww,[t[35]||(t[35]=n("span",null,"Follow",-1)),(a(!0),l(V,null,Q(["requestId","jobId"].filter(o=>e.logTraceId(e.selectedLog,o)),o=>(a(),l("button",{type:"button",class:"log-trace-button",key:o,id:"trace-selector-"+o,"aria-label":"Follow "+(o==="requestId"?"request ":"job ")+e.selectedLog.sample[o],"aria-pressed":e.traceSelection?.kind===o,onClick:r=>e.lookupTrace(o,e.selectedLog.sample[o],r.currentTarget,e.selectedLog.sample)},[h(d(o==="requestId"?"Request":"Job")+" ",1),n("span",Cw,d(e.traceSelection?.kind===o?"\u2713":"\u2192"),1)],8,kw))),128)),!e.logTraceId(e.selectedLog,"requestId")&&!e.logTraceId(e.selectedLog,"jobId")?(a(),l("span",Sw,"No correlation ID recorded")):f("v-if",!0),n("span",Ew,d(e.logData?.window||e.logAppliedFilters.window)+" window",1)]),e.traceSelection?(a(),l("section",{key:0,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",Rw,[t[36]||(t[36]=n("h3",{id:"log-timeline-title",tabindex:"-1"},"Related events",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.closeTrace())},"Hide events")]),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",Tw,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",Dw,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",Pw,[(a(!0),l(V,null,Q(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,Aw),n("div",Iw,[n("div",Ow,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[h(d(o.service),1),o.module?(a(),l("span",Mw," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",Vw," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",Lw," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",qw,[n("code",null,d(o.method)+" "+d(o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",$w,[n("summary",null,[t[37]||(t[37]=h("Exception frames",-1)),o.errorType?(a(),l("span",Fw," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",_w,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",Uw,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",Bw,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",zw,[t[38]||(t[38]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,Hw)])])]))),128))])):f("v-if",!0),n("details",jw,[t[39]||(t[39]=n("summary",null,"Query scope",-1)),n("p",null,"Earliest matching events for the selected "+d(e.traceSelection.kind==="jobId"?"job":"request")+" ID. Service and release filters do not narrow this timeline.",1)]),e.trace?.grafanaUrl?(a(),l("a",{key:3,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,Gw)):f("v-if",!0)],8,Nw)):f("v-if",!0),e.traceSelection?f("v-if",!0):(a(),l("div",Ww,[n("h3",null,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Related events hidden":"This sample has no correlation ID"),1),n("p",null,d(e.logExplanation(e.selectedLog.sample)),1),n("p",Kw,d(e.logEvidence(e.selectedLog.sample)),1),n("p",Yw,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Choose Request or Job above to load related events.":"The recorded fields are available in the sample panel. Related events cannot be looked up for this record."),1)]))]),n("aside",Jw,[t[47]||(t[47]=n("h3",null,"Event sample",-1)),n("p",Xw,"One of "+d(e.selectedLog.count)+" returned occurrences. IDs can differ across the group.",1),e.selectedLog.sample.route?(a(),l("p",Qw,[n("code",null,d(e.selectedLog.sample.method)+" "+d(e.selectedLog.sample.route),1)])):f("v-if",!0),e.selectedLog.sample.errorStack||e.selectedLog.sample.causeStack?(a(),l("details",Zw,[n("summary",null,"Exception frames \xB7 "+d(e.selectedLog.sample.errorType),1),e.selectedLog.sample.errorStack?(a(),l("pre",xw,d(e.selectedLog.sample.errorStack),1)):f("v-if",!0),e.selectedLog.sample.causeType?(a(),l("p",ek,"Caused by "+d(e.selectedLog.sample.causeType),1)):f("v-if",!0),e.selectedLog.sample.causeStack?(a(),l("pre",tk,d(e.selectedLog.sample.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("dl",nk,[n("div",null,[t[40]||(t[40]=n("dt",null,"Service",-1)),n("dd",null,d(e.selectedLog.sample.service),1)]),n("div",null,[t[41]||(t[41]=n("dt",null,"Module",-1)),n("dd",null,d(e.selectedLog.sample.module||"Not recorded"),1)]),n("div",null,[t[42]||(t[42]=n("dt",null,"Event",-1)),n("dd",null,d(e.selectedLog.sample.event),1)]),e.selectedLog.sample.release?(a(),l("div",ok,[t[43]||(t[43]=n("dt",null,"Release",-1)),n("dd",null,d(e.selectedLog.sample.release),1)])):f("v-if",!0)]),n("dl",sk,[(a(),l(V,null,Q(["requestId","jobId"],o=>(a(),l(V,{key:o},[e.logTraceId(e.selectedLog,o)?(a(),l("div",ik,[n("dt",null,d(o==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[n("details",rk,[n("summary",null,d(e.compactLogValue(e.selectedLog.sample[o])),1),n("span",null,d(e.selectedLog.sample[o]),1)]),n("button",{type:"button",class:"log-copy-value",onClick:r=>e.copyLogValue(e.selectedLog.sample[o])},"Copy full ID",8,ak)])])):f("v-if",!0)],64))),64))]),n("details",lk,[n("summary",null,[t[44]||(t[44]=h("All sample fields ",-1)),n("span",null,d(Object.keys(e.selectedLog.sample).length),1)]),t[46]||(t[46]=n("p",{class:"log-coverage"},"Safe API fields only. Routes omit private parameters; exception frames include recognized application code only.",-1)),n("dl",null,[(a(!0),l(V,null,Q(e.selectedLog.sample,(o,r)=>T((a(),l("div",{key:r},[n("dt",null,d(r),1),n("dd",null,d(o),1)])),[[Z,!["requestId","jobId"].includes(r)]])),128))]),n("details",dk,[t[45]||(t[45]=n("summary",null,"Raw sample",-1)),n("pre",null,d(JSON.stringify(e.selectedLog.sample,null,2)),1),n("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.copyLogValue(JSON.stringify(e.selectedLog.sample,null,2)))},"Copy JSON")])])])])])):f("v-if",!0),T(n("div",uk,[n("details",ck,[n("summary",null,[h("Window: "+d(e.logAppliedFilters.window)+" \xB7 "+d(e.logAppliedFilters.service||"All services"),1),e.logAppliedFilters.release?(a(),l("span",pk," \xB7 "+d(e.logAppliedFilters.release),1)):f("v-if",!0),t[48]||(t[48]=n("span",{class:"log-query-hint"},"Time & service",-1))]),t[54]||(t[54]=h()),n("form",{class:"errors-toolbar log-filters",onSubmit:t[10]||(t[10]=ae(o=>e.refreshLogs(),["prevent"]))},[n("label",null,[t[50]||(t[50]=h("Time window ",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[7]||(t[7]=o=>e.logFilters.window=o),id:"log-window"},[...t[49]||(t[49]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[Rt,e.logFilters.window]])]),n("label",null,[t[52]||(t[52]=h("Service ",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[8]||(t[8]=o=>e.logFilters.service=o),id:"log-service"},[...t[51]||(t[51]=[Se('',8)])],512),[[Rt,e.logFilters.service]])]),n("label",null,[t[53]||(t[53]=h("Release SHA ",-1)),T(n("input",{class:"form-control",id:"log-release","onUpdate:modelValue":t[9]||(t[9]=o=>e.logFilters.release=o),maxlength:"40",placeholder:"All releases",pattern:"[a-f0-9]{7,40}|unknown",autocomplete:"off"},null,512),[[nt,e.logFilters.release]])]),n("button",{class:"btn btn-sm",type:"submit",disabled:e.logLoading},d(e.logLoading?"Loading\u2026":"Refresh logs"),9,fk)],32),e.logData?.captured!==void 0?(a(),l("p",mk,d(e.logData.captured)+" records returned \xB7 1,000-record cap \xB7 "+d(e.absTime(e.logData.start))+" to "+d(e.absTime(e.logData.end)),1)):f("v-if",!0)]),n("div",hk,[n("label",gk,[t[55]||(t[55]=h("Search returned groups",-1)),T(n("input",{class:"form-control",type:"search","onUpdate:modelValue":t[11]||(t[11]=o=>e.logView.search=o),placeholder:"Event, service, code or sample ID"},null,512),[[nt,e.logView.search]])]),n("label",null,[t[57]||(t[57]=h("Severity",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[12]||(t[12]=o=>e.logView.severity=o)},[...t[56]||(t[56]=[n("option",{value:""},"All severities",-1),n("option",{value:"error"},"Failure / HTTP 5xx",-1),n("option",{value:"warn"},"Warning",-1),n("option",{value:"info"},"Info",-1)])],512),[[Rt,e.logView.severity]])]),n("label",null,[t[59]||(t[59]=h("Sort",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[13]||(t[13]=o=>e.logView.sort=o)},[...t[58]||(t[58]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])],512),[[Rt,e.logView.sort]])])]),n("p",vk,d(e.filteredLogGroups().length)+" of "+d(e.logData?.groups?.length||0)+" returned groups \xB7 "+d(e.logData?.captured??0)+" records \xB7 1,000-record cap.",1),e.logLoading?(a(),l("div",yk,"Loading event groups\u2026")):(a(),l("div",bk,[n("div",wk,[e.filteredLogGroups().length?(a(),l("div",kk,[n("table",Ck,[t[62]||(t[62]=n("caption",{class:"sr-only"},"Returned events grouped by service, module, code, severity and status. Select an event for sample details.",-1)),t[63]||(t[63]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Severity"),n("th",{scope:"col"},"Count"),n("th",{scope:"col"},"Last seen")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.filteredLogGroups(),o=>(a(),l("tr",{key:o.fingerprint,class:R({"log-selected":e.selectedLog?.fingerprint===o.fingerprint})},[n("td",null,[n("button",{class:"log-event-button",type:"button","aria-label":"Inspect "+(o.sample.errorCode||o.sample.errorType||o.sample.event),onClick:r=>e.selectLog(o,r.currentTarget),"aria-expanded":e.selectedLog?.fingerprint===o.fingerprint,"aria-controls":"log-detail"},[n("span",Ek,[n("strong",null,d(o.sample.errorCode||o.sample.errorType||o.sample.event),1),t[60]||(t[60]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})],-1))]),n("span",Nk,[n("span",Rk,d(o.sample.service),1),n("span",Tk," / "+d(o.sample.module),1)])],8,Sk)]),n("td",Dk,[n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o.sample)])},d(e.logSeverity(o.sample)==="error"?"Failure":e.logSeverity(o.sample)==="warn"?"Warning":"Info"),3),o.sample.status||o.sample.httpStatus?(a(),l("span",Pk,"HTTP "+d(o.sample.status||o.sample.httpStatus),1)):f("v-if",!0)]),n("td",Ak,[t[61]||(t[61]=n("span",{class:"sr-only"},"Count ",-1)),h(d(o.count),1)]),n("td",null,[n("time",{datetime:o.last,title:e.absTime(o.last)},d(e.relTime(o.last)),9,Ik)])],2))),128))])])])):e.logData?.groups?.length?(a(),l("div",Ok,[t[64]||(t[64]=h("No returned groups match these filters. ",-1)),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>{e.logView.search="",e.logView.severity=""})},"Reset filters")])):(a(),l("div",Mk,d(e.logData?.state==="empty"?"No warnings, errors or HTTP 5xx returned in this window.":"No central events available. Refresh logs or open Application history."),1))])])),e.logData?.telemetry?(a(),l("details",Vk,[t[66]||(t[66]=n("summary",null,[h("Telemetry details "),n("span",null,"90 seconds before last check")],-1)),e.logData.telemetry.missing?.length?(a(),l("p",Lk,"Missing or stale: "+d(e.logData.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",qk,"Expected API, streamer and queue heartbeats were present at the last check.")),e.logData.telemetry.partial?(a(),l("p",$k,"Telemetry coverage is partial; absence and drop totals may be incomplete.")):f("v-if",!0),n("p",null,"Collector: "+d(e.logData.telemetry.collector.state)+" \xB7 dropped events since collector start: "+d(e.logData.telemetry.collector.dropped??"unknown")+". Intentional filtering is excluded.",1),n("details",null,[t[65]||(t[65]=n("summary",null,"Application drop counters and last telemetry",-1)),n("ul",null,[(a(!0),l(V,null,Q(e.logData.telemetry.instances,(o,r)=>(a(),l("li",{key:r},d(o.service)+" \xB7 "+d(o.instance||"unknown instance")+" \xB7 "+d(o.dropped??"unknown")+" dropped since process start \xB7 last seen "+d(e.absTime(o.last)),1))),128))])])])):f("v-if",!0)],512),[[Z,!e.selectedLog]])],8,aw),[[Z,e.errorSource==="central"]]),e.logCopyStatus?(a(),l("p",Fk,d(e.logCopyStatus),1)):f("v-if",!0),T(n("section",{class:"history-source","aria-busy":e.redisLoading},[t[103]||(t[103]=n("h2",{class:"sr-only"},"Application history",-1)),e.redisCollecting!==!0?(a(),l("p",Uk,d(e.redisCollecting===!1?"Collection is off; retained history is not receiving new events.":"Collection status is unknown."),1)):f("v-if",!0),e.historySelected?(a(),l("div",Bk,[n("button",{type:"button",class:"log-back",onClick:t[15]||(t[15]=o=>e.closeHistory())},"\u2190 Back to history"),n("div",zk,[n("div",null,[n("p",Hk,d(e.historySelected.module)+" \xB7 Application history",1),n("h2",jk,d(e.historySelected.displayMessage),1)]),n("span",{class:R(["log-severity","log-severity-"+e.historySelected._bucket])},[h(d(e.historySelected._bucket),1),e.historySelected._status?(a(),l("span",Gk," \xB7 HTTP "+d(e.historySelected._status),1)):f("v-if",!0)],2)]),n("div",Wk,[n("button",{type:"button","aria-pressed":e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary"),class:R({active:e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary")}),onClick:t[16]||(t[16]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="summary"})},"Overview",10,Kk),n("button",{type:"button","aria-pressed":e.historyView==="timeline",class:R({active:e.historyView==="timeline"}),onClick:t[17]||(t[17]=o=>e.showHistoryTimeline(o.currentTarget))},"Timeline",10,Yk),n("button",{type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw"}),onClick:t[18]||(t[18]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="raw"})},"Raw",10,Jk),e.historySelected._stack?(a(),l("button",{key:0,type:"button",onClick:t[19]||(t[19]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="stack"})},"Stack")):f("v-if",!0),e.historySelected.count>1?(a(),l("button",{key:1,type:"button",onClick:t[20]||(t[20]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="related"})},"Related ("+d(e.historySelected.count)+")",1)):f("v-if",!0)])])):f("v-if",!0),T(n("div",null,[T((a(),l("form",Xk,[n("div",Qk,[n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")===""}]),"aria-pressed":(e.query?.bucket||"")==="",onClick:t[21]||(t[21]=o=>e.setBucket(""))},"All ",10,Zk),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="error","is-empty":!e.stats?.severity?.error}]),"aria-pressed":(e.query?.bucket||"")==="error",onClick:t[22]||(t[22]=o=>e.setBucket("error"))},[...t[67]||(t[67]=[n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1),h("Error ",-1)])],10,xk),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="warn","is-empty":!e.stats?.severity?.warn}]),"aria-pressed":(e.query?.bucket||"")==="warn",onClick:t[23]||(t[23]=o=>e.setBucket("warn"))},[...t[68]||(t[68]=[n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1),h("Warning ",-1)])],10,e0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="info","is-empty":!e.stats?.severity?.info}]),"aria-pressed":(e.query?.bucket||"")==="info",onClick:t[24]||(t[24]=o=>e.setBucket("info"))},[...t[69]||(t[69]=[n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1),h("Info ",-1)])],10,t0)]),n("div",n0,[t[70]||(t[70]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),T(n("input",o0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(a(),l("span",s0,d(e.parsedFilterCount)+" filter"+d(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),n("details",i0,[t[76]||(t[76]=n("summary",null,"View options",-1)),n("div",r0,[n("div",a0,[t[72]||(t[72]=n("label",{for:"history-sort"},"Sort",-1)),T((a(),l("select",l0,[...t[71]||(t[71]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",d0,[t[74]||(t[74]=n("label",{for:"history-merge",title:"Rows are always sectioned by severity. This merges repeated events inside each section."},"Merge",-1)),T((a(),l("select",u0,[...t[73]||(t[73]=[n("option",{value:""},"Don't merge",-1),n("option",{value:"code"},"Same error",-1),n("option",{value:"module"},"Same module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",c0,[T(n("input",p0,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[75]||(t[75]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))])])])])),[[i,e.viewState]]),e.redisLoading?(a(),l("p",f0,"Loading application history\u2026")):f("v-if",!0),!e.redisLoading&&!e.visible?.length&&e.available===!0?(a(),l("div",m0,"No matching entries in the loaded Redis history.")):f("v-if",!0),e.redisRedacted?(a(),l("p",h0,d(e.redisRedacted)+" invalid legacy records were omitted. Older valid records may still be available.",1)):f("v-if",!0),e.entries?.length||e.canLoadMore()?(a(),l("div",g0,[n("span",null,d(e.query?.group&&e.visible?.length!==e.entries?.length?e.fmt?.number(e.visible?.length)+(e.visible?.length===1?" group":" groups")+" from ":"")+d(e.fmt?.number(e.entries?.length))+" safe entries loaded \xB7 "+d(e.fmt?.number(e.redisNextOffset||e.entries?.length))+" of "+d(e.fmt?.number(e.total))+" stored records scanned",1),e.canLoadMore()?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[25]||(t[25]=o=>e.loadMore()),disabled:e.redisLoading},"Load 250 older",8,v0)):f("v-if",!0)])):f("v-if",!0)],512),[[Z,!e.historySelected]]),e.visible?.length||e.historySelected?T((a(),l("div",{key:2,class:R(["errors-list",{"history-inspector":e.historySelected}])},[e.historySelected?f("v-if",!0):(a(),l("div",y0,[...t[77]||(t[77]=[Se('WhenSeverityModuleMessageTotalStatus',6)])])),(a(!0),l(V,null,Q(e.historySelected?[e.historySelected]:e.visible,(o,r)=>(a(),l(V,{key:o?._key},[!e.historySelected&&(r===0||e.visible[r-1]?._bucket!==o?._bucket)?(a(),l("div",b0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),h(d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1),n("span",w0,d(e.fmt?.number(e.visible.filter(u=>u?._bucket===o?._bucket).length)),1),r===0?(a(),l("span",k0,"By severity \xB7 "+d(e.query?.group==="code"?"repeats merged by error \xB7 ":e.query?.group==="module"?"repeats merged by module \xB7 ":"")+d(e.query?.sort==="count"?"most frequent first":"most recent first"),1)):f("v-if",!0)])):f("v-if",!0),n("div",{class:R(["errors-row",{open:e.expanded[o?._key]}])},[T(n("button",{type:"button",class:"errors-row-main","data-history-key":o?._key,"aria-expanded":!!e.expanded[o?._key],"aria-controls":"history-detail-"+r,onClick:u=>e.toggle(o,u.currentTarget)},[n("span",S0,[n("span",E0,d(e.relTime(o?.ts)),1),n("span",N0,d(e.absTimeShort(o?.ts)),1)]),n("span",R0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),n("span",T0,d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1)]),n("span",D0,[n("span",P0,d(o?.module),1)]),n("span",A0,[n("strong",I0,d(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(a(),l("span",O0,d(o?.displayContext),1)):f("v-if",!0),o?._detail?(a(),l("span",M0,d(o?._detail),1)):f("v-if",!0),o?._url?(a(),l("span",{key:2,class:"msg-url",title:o?._url},d(o?._url),9,V0)):f("v-if",!0)]),n("span",L0,[o?.count>1?(a(),l("span",q0,"\xD7"+d(o?.count),1)):f("v-if",!0),o?.count===1?(a(),l("span",$0,"\xD71")):f("v-if",!0)]),n("span",F0,[o?._status?(a(),l("span",{key:0,class:R(["status-pill",String(o?._status).match(/^[23]/)?"status-neutral":"status-"+o?._bucket]),title:String(o?._status).match(/^2/)&&o?._bucket==="warn"?"Client closed the connection":null},d(String(o?._status).match(/^2/)&&o?._bucket==="warn"?"\u2014":o?._status),11,_0)):f("v-if",!0),o?._status?f("v-if",!0):(a(),l("span",U0,"\u2014"))])],8,C0),[[Z,!e.historySelected]]),e.expanded[o?._key]?(a(),l("div",{key:0,class:"errors-row-detail",id:"history-detail-"+r},[n("div",z0,[n("div",H0,[!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("div",j0,[t[80]||(t[80]=n("h3",null,"What happened",-1)),o.raw?.[0]?.route?(a(),l("p",G0,[n("code",null,d(o.raw[0].method)+" "+d(o.raw[0].route),1)])):f("v-if",!0),o.raw?.[0]?.errorType?(a(),l("p",W0,[h(d(o.raw[0].errorType),1),o.raw[0].causeType?(a(),l("span",K0," \xB7 caused by "+d(o.raw[0].causeType),1)):f("v-if",!0)])):f("v-if",!0),n("p",Y0,d(e.logExplanation(o.raw?.[0]||{})),1),n("p",J0,d(e.logEvidence(o.raw?.[0]||{})),1),n("details",X0,[t[78]||(t[78]=n("summary",null,"Technical fields",-1)),t[79]||(t[79]=h()),!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("dl",Q0,[(a(!0),l(V,null,Q(e.historyDetailFields(o),([u,p])=>(a(),l("div",{key:u},[n("dt",null,d(u),1),n("dd",null,[e.isLogIdentifier(u,p)?(a(),l(V,{key:0},[n("details",Z0,[n("summary",null,d(e.compactLogValue(p)),1),n("span",null,d(p),1)]),n("button",{type:"button",class:"log-copy-value",onClick:c=>e.copyLogValue(p)},"Copy full "+d(u),9,x0)],64)):(a(),l(V,{key:1},[h(d(e.logFieldText(p)),1)],64))])]))),128))])):f("v-if",!0)])])):f("v-if",!0),e.detailTab[o?._key]==="raw"?(a(),l("pre",e2,d(o?._rawJson),1)):f("v-if",!0),e.detailTab[o?._key]==="stack"?(a(),l("pre",t2,d(o?._stack),1)):f("v-if",!0),e.detailTab[o?._key]==="related"?(a(),l("div",n2,[(a(!0),l(V,null,Q(o?._related,(u,p)=>(a(),l("div",{class:"related-row",key:p},[n("span",o2,d(e.absTimeShort(u?.ts)),1),n("span",s2,d(u?._url),1),u?._status?(a(),l("span",{key:0,class:R(["status-pill","status-"+u?._bucket])},d(u?._status),3)):f("v-if",!0)]))),128))])):f("v-if",!0),n("div",i2,[e.logTraceId(o,"requestId")?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("requestId",e.logTraceId(o,"requestId"),u.currentTarget,o)},"Request timeline \u2192",8,r2)):f("v-if",!0),e.logTraceId(o,"jobId")?(a(),l("button",{key:1,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("jobId",e.logTraceId(o,"jobId"),u.currentTarget,o)},"Job timeline \u2192",8,a2)):f("v-if",!0),o?._url?(a(),l("button",{key:2,class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:u=>e.copyCurl(o)},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Copy curl",-1)])],8,l2)):f("v-if",!0),n("button",{class:"btn btn-sm",type:"button",onClick:u=>e.copyJson(o)},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),h(" Copy JSON",-1)])],8,d2),e.copyHint?(a(),l("span",u2,d(e.copyHint),1)):f("v-if",!0)])]),n("aside",c2,[n("div",p2,[t[83]||(t[83]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},d(e.relTime(o?._firstSeen)),9,f2)]),n("div",m2,[t[84]||(t[84]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},d(e.relTime(o?.ts)),9,h2)]),n("div",g2,[t[85]||(t[85]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",v2,[h(d(o?.count),1),o?._lastHourCount?(a(),l("span",y2," \xB7 "+d(o?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),o?._repoId?(a(),l("div",b2,[t[87]||(t[87]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},d(e.isLogIdentifier("repoId",o?._repoId)?e.compactLogValue(o?._repoId):o?._repoId),9,w2),e.isLogIdentifier("repoId",o?._repoId)?(a(),l("details",k2,[t[86]||(t[86]=n("summary",null,"Full repository ID",-1)),h(d(o?._repoId),1)])):f("v-if",!0),n("button",{type:"button",class:"log-copy-value",onClick:u=>e.copyLogValue(o?._repoId)},"Copy full repository ID",8,C2)])):f("v-if",!0),o?._url?(a(),l("div",S2,[t[88]||(t[88]=n("div",{class:"aside-label"},"URL",-1)),n("div",E2,d(o?._url),1)])):f("v-if",!0)])])],8,B0)):f("v-if",!0)],2)],64))),128))],2)),[[Z,e.historyView!=="timeline"||!e.historySelected]]):f("v-if",!0),T(n("details",N2,[t[101]||(t[101]=n("summary",null,"History settings, export and diagnostics",-1)),n("div",R2,[n("div",T2,[n("button",{class:"btn btn-sm",type:"button",onClick:t[26]||(t[26]=o=>e.exportCsv())},"Export Redis CSV"),n("button",{class:"btn btn-sm btn-outline-danger",type:"button",onClick:t[27]||(t[27]=o=>e.clearAll())},"Clear Redis history")])]),n("p",D2,d(e.redisCollecting===!1?"Collection is OFF (LOG_REDIS_MIRROR=off); retained history is not receiving new events.":e.redisCollecting===!0?"The application is configured to mirror warnings and errors.":"Collection status is unknown."),1),t[102]||(t[102]=n("p",{class:"log-coverage"},"Redis mirror: hourly counters cover 24 hours; stored rows are a rotating snapshot and may cover a shorter or longer period. Counts are not combined with central logs.",-1)),e.redisStatsState!=="ready"||e.available!==!0?(a(),l("p",P2,"Redis counters are "+d(e.redisStatsState==="loading"?"loading":"unavailable")+".",1)):f("v-if",!0),n("details",A2,[t[99]||(t[99]=n("summary",null,"24-hour counters and volume",-1)),t[100]||(t[100]=h()),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",I2,[n("div",O2,[t[89]||(t[89]=n("div",{class:"kpi-label"},"Occurrences \xB7 24h",-1)),n("div",M2,d(e.fmt?.number(e.stats?.last24h??0)),1),n("div",{class:R(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h>=20?(a(),l("span",V2,d((e.stats?.last24h??0)-(e.stats?.prev24h??0)>=0?"+":"")+d(Math.round(((e.stats?.last24h??0)-(e.stats?.prev24h??0))/e.stats.prev24h*100))+"% vs yesterday",1)):e.stats?.prev24h!==void 0?(a(),l("span",L2,d(e.fmt?.number(e.stats?.prev24h??0))+" in prior 24h",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(a(),l("span",q2,"no prior baseline"))],2)]),n("div",$2,[t[90]||(t[90]=n("div",{class:"kpi-label"},"Error",-1)),n("div",F2,d(e.fmt?.number(e.stats?.severity?.error??0)),1),n("div",_2,"5xx \xB7 "+d(e.stats?.unique?.error)+" unique",1)]),n("div",U2,[t[91]||(t[91]=n("div",{class:"kpi-label"},"Warning",-1)),n("div",B2,d(e.fmt?.number(e.stats?.severity?.warn??0)),1),n("div",z2,"4xx, aborted \xB7 "+d(e.stats?.unique?.warn)+" unique",1)]),n("div",H2,[t[92]||(t[92]=n("div",{class:"kpi-label"},"Info",-1)),n("div",j2,d(e.fmt?.number(e.stats?.severity?.info??0)),1),n("div",G2,"Auth, 404 \xB7 "+d(e.stats?.unique?.info)+" unique",1)]),n("div",{class:R(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[93]||(t[93]=n("div",{class:"kpi-label"},"Entries stored",-1)),n("div",W2,d(e.fmt?.number(e.total)),1),n("div",K2,[h(" rotating history \xB7 cap "+d(e.fmt?.number(e.cap))+" ",1),e.stats?.dropped>0?(a(),l("span",Y2," \xB7 "+d(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)])):f("v-if",!0),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",J2,[n("div",X2,[t[97]||(t[97]=n("span",{class:"volume-title"},"Volume \xB7 24h \xB7 1h buckets",-1)),n("span",Q2,[e.stats?.severity?.error?(a(),l("span",Z2,[...t[94]||(t[94]=[n("span",{class:"dot dot-error"},null,-1),h("Error",-1)])])):f("v-if",!0),e.stats?.severity?.warn?(a(),l("span",x2,[...t[95]||(t[95]=[n("span",{class:"dot dot-warn"},null,-1),h("Warning",-1)])])):f("v-if",!0),e.stats?.severity?.info?(a(),l("span",eC,[...t[96]||(t[96]=[n("span",{class:"dot dot-info"},null,-1),h("Info",-1)])])):f("v-if",!0)])]),n("div",tC,[(a(!0),l(V,null,Q(e.stats?.buckets,(o,r)=>(a(),l("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:Ae({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Ae({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Ae({height:e.barPx(o,"info")+"px"})},null,4)],8,nC))),128))]),t[98]||(t[98]=n("div",{class:"volume-axis","aria-hidden":"true"},[n("span",null,"24h ago"),n("span",null,"12h ago"),n("span",null,"now")],-1))])):f("v-if",!0)])],512),[[Z,!e.historySelected]])],8,_k),[[Z,e.errorSource==="history"]]),e.errorSource==="history"&&e.historyView==="timeline"?(a(),l("div",oC,[e.traceSelection?f("v-if",!0):(a(),l("div",sC,"No request or job ID was recorded for this entry.")),e.traceSelection?(a(),l("section",{key:1,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",rC,[n("h3",aC,d(e.traceSelection.kind==="jobId"?"Job":"Request")+" timeline",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[28]||(t[28]=o=>e.closeTrace())},"Close timeline")]),e.traceSelection.context?(a(),l("p",lC,d(e.traceSelection.context.event)+" \xB7 "+d(e.traceSelection.context.service),1)):f("v-if",!0),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",dC,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",uC,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",cC,[(a(!0),l(V,null,Q(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,pC),n("div",fC,[n("div",mC,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[h(d(o.service),1),o.module?(a(),l("span",hC," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",gC," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",vC," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",yC,[n("code",null,d(o.method)+" "+d(o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",bC,[n("summary",null,[t[104]||(t[104]=h("Exception frames",-1)),o.errorType?(a(),l("span",wC," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",kC,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",CC,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",SC,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",EC,[t[105]||(t[105]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,NC)])])]))),128))])):f("v-if",!0),n("details",RC,[t[106]||(t[106]=n("summary",null,"Correlation ID and query scope",-1)),n("code",null,d(e.traceSelection.id),1),n("button",{type:"button",class:"log-copy-value",onClick:t[29]||(t[29]=o=>e.copyLogValue(e.traceSelection.id))},"Copy full ID"),t[107]||(t[107]=n("p",null,"Earliest matching events in the selected window. Service and release filters do not narrow this timeline.",-1))]),e.trace?.grafanaUrl?(a(),l("a",{key:4,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,TC)):f("v-if",!0)],8,iC)):f("v-if",!0)])):f("v-if",!0)])}var DC={class:"container paper-page admin-page overview-page"},PC={key:0,class:"admin-empty"},AC={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},IC={class:"ov-views",role:"tablist","aria-label":"Overview sections"},OC=["aria-selected","onClick"],MC={key:2},VC={key:0,class:"ov-health",role:"status"},LC={class:"ov-kpi-row"},qC={class:"ov-kpi-card"},$C={class:"ov-kpi-value"},FC={class:"ov-kpi-sub"},_C={class:"ov-kpi-card"},UC={class:"ov-kpi-sub"},BC={class:"ov-kpi-card"},zC={class:"ov-kpi-sub"},HC={class:"ov-kpi-card"},jC={class:"ov-kpi-sub"},GC={class:"ov-kpi-card"},WC={class:"ov-kpi-value"},KC={class:"ov-kpi-sub"},YC={class:"ov-daily-row"},JC={class:"ov-daily-card"},XC={class:"ov-daily-value"},QC={class:"ov-daily-card"},ZC={class:"ov-daily-value"},xC={class:"ov-daily-sub"},eS={class:"ov-daily-card"},tS={class:"ov-daily-value"},nS={class:"ov-chart-card"},oS={class:"ov-chart-head"},sS={class:"ov-chart-legends"},iS={class:"ov-chart-legend"},rS={key:0,class:"ov-legend-missing"},aS={key:0,class:"ov-spark-bars ov-has-axis"},lS={class:"ov-yaxis","aria-hidden":"true"},dS=["data-tip","aria-label"],uS={key:1,class:"ov-spark-x"},cS={class:"ov-chart-card"},pS={class:"ov-chart-head"},fS={class:"ov-chart-legends"},mS={class:"ov-chart-legend"},hS={key:0,class:"ov-legend-missing"},gS={key:0,class:"ov-spark-bars ov-has-axis"},vS={class:"ov-yaxis","aria-hidden":"true"},yS=["data-tip","aria-label"],bS={key:1,class:"ov-spark-x"},wS={key:0,class:"ov-chart-card"},kS={class:"ov-chart-head"},CS={class:"ov-chart-legends"},SS={class:"ov-chart-legend"},ES={key:0,class:"ov-legend-missing"},NS={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},RS={class:"ov-yaxis","aria-hidden":"true"},TS=["viewBox","aria-label"],DS=["d"],PS=["d"],AS={key:1,class:"ov-spark-x"},IS={class:"ov-chart-card"},OS={class:"ov-chart-head"},MS={class:"ov-chart-legends"},VS={class:"ov-chart-legend"},LS={key:0,class:"ov-legend-missing"},qS={key:0,class:"ov-spark-bars ov-has-axis"},$S={class:"ov-yaxis","aria-hidden":"true"},FS=["data-tip","aria-label"],_S={key:1,class:"ov-spark-x"},US={class:"ov-triple-row"},BS={class:"ov-panel-card"},zS={class:"ov-panel-head"},HS={class:"ov-panel-meta"},jS={class:"ov-stacked-bar"},GS={class:"ov-bar-legend"},WS={href:"/admin/repositories",class:"ov-legend-item"},KS={class:"ov-legend-n"},YS={href:"/admin/repositories",class:"ov-legend-item"},JS={class:"ov-legend-n"},XS={href:"/admin/repositories",class:"ov-legend-item"},QS={class:"ov-legend-n"},ZS={href:"/admin/repositories",class:"ov-legend-item"},xS={class:"ov-legend-n"},eE={href:"/admin/repositories",class:"ov-legend-item"},tE={class:"ov-legend-n"},nE={class:"ov-panel-card"},oE={class:"ov-panel-head"},sE={class:"ov-panel-meta"},iE={class:"ov-error-bars"},rE={class:"ov-ebar-row"},aE={class:"ov-ebar-track"},lE={class:"ov-ebar-n"},dE={class:"ov-ebar-row"},uE={class:"ov-ebar-track"},cE={class:"ov-ebar-n"},pE={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},fE={class:"ov-ehours-legend"},mE={class:"ov-ehours-note"},hE={class:"ov-ehours-bars"},gE=["title"],vE={key:0,class:"ov-ehours-zero"},yE={class:"ov-ebar-note"},bE={key:0,class:"ov-panel-foot"},wE={href:"/admin/errors"},kE={class:"ov-panel-card"},CE={class:"ov-routes-table"},SE={class:"ov-route-row",href:"/admin/queues"},EE={class:"ov-route-n"},NE={class:"ov-route-n"},RE={class:"ov-route-row",href:"/admin/queues"},TE={class:"ov-route-n"},DE={class:"ov-route-n"},PE={class:"ov-route-row",href:"/admin/queues"},AE={class:"ov-route-n"},IE={class:"ov-route-n"},OE={class:"ov-services-card"},ME={class:"ov-services-head"},VE={class:"ov-panel-meta"},LE={class:"ov-services-grid"},qE={class:"ov-svc"},$E={class:"ov-svc-info"},FE={class:"ov-svc-meta"},_E={class:"ov-svc"},UE={class:"ov-svc-info"},BE={key:0,class:"ov-svc-meta"},zE={key:1,class:"ov-svc-meta"},HE={class:"ov-svc"},jE={class:"ov-svc-info"},GE={key:0,class:"ov-svc-meta"},WE={key:1,class:"ov-svc-meta"},KE={class:"ov-svc"},YE={class:"ov-svc-info"},JE={key:0,class:"ov-svc-meta"},XE={key:1,class:"ov-svc-meta"},QE={class:"ov-svc"},ZE=["title"],xE={class:"ov-svc-info"},eN={class:"ov-svc-meta"},tN={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},nN={class:"ov-panel-head ov-performance-head"},oN={class:"ov-performance-window"},sN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},iN={key:1,class:"ov-performance-empty",role:"status"},rN={key:0,class:"ov-performance-note"},aN={key:1,class:"ov-performance-note"},lN={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},dN={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},uN={class:"ov-metrics-table"},cN={scope:"row",class:"ov-event-name"},pN=["title"],fN={key:0,class:"ov-metric-bad-text"},mN={key:1,class:"budget-bar","aria-hidden":"true"},hN={class:"num"},gN={class:"num"},vN={class:"num"},yN={class:"num"},bN={key:4,class:"ov-cache-rates"},wN={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},kN={class:"ov-metrics-table"},CN={scope:"row",class:"ov-event-name"},SN={class:"ov-event-traffic"},EN={class:"num"},NN={class:"num"},RN={key:6,class:"ov-performance-empty",role:"status"},TN={class:"ov-performance-note"},DN={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},PN={class:"ov-panel-head ov-performance-head"},AN={class:"ov-performance-window"},IN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},ON={key:1,class:"ov-performance-empty",role:"status"},MN={key:2},VN={id:"performance-routes",role:"region","aria-label":"Routes"},LN={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},qN={class:"ov-metrics-table"},$N={scope:"row",class:"ov-metric-name"},FN={class:"num"},_N={class:"num"},UN={class:"num"},BN={class:"num"},zN={class:"num"},HN={key:1,class:"ov-performance-empty"},jN={id:"performance-processes",role:"region","aria-label":"Processes"},GN={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},WN={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},KN={class:"ov-metrics-table"},YN={scope:"row",class:"ov-metric-name"},JN={key:0,class:"ov-metric-warn"},XN={class:"num"},QN={class:"num"},ZN={class:"num"},xN={class:"num"},eR={class:"num"},tR={class:"num"},nR={class:"num"},oR={class:"num"},sR={id:"performance-stages",role:"region","aria-label":"Work stages"},iR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},rR={class:"ov-metrics-table"},aR={scope:"row",class:"ov-metric-name"},lR={class:"num"},dR={class:"num"},uR={class:"num"},cR={key:1,class:"ov-performance-empty"};function op(e,t){return a(),l("div",DC,[t[95]||(t[95]=Se('
Admin \xA0/\xA0 Overview

Overview

Live \xB7 refreshes every 30s
',2)),e.loading?(a(),l("div",PC,"Loading overview\u2026")):f("v-if",!0),e.error?(a(),l("div",AC,[t[8]||(t[8]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.error),1)])):f("v-if",!0),n("div",IC,[(a(),l(V,null,Q([{id:"summary",label:"Summary"},{id:"performance",label:"Performance"},{id:"cache",label:"Cache"}],s=>n("button",{type:"button",role:"tab",key:s.id,"aria-selected":e.ovView===s.id?"true":"false",class:R({active:e.ovView===s.id}),onClick:i=>e.setOvView(s.id)},d(s.label),11,OC)),64))]),e.data?T((a(),l("div",MC,[e.data?.system?.memPercent>90||e.data?.system?.diskPercent>90?(a(),l("div",VC,[t[10]||(t[10]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,[t[9]||(t[9]=n("b",null,"Server needs attention.",-1)),h(" "+d(e.healthAlert()),1)])])):f("v-if",!0),f(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",LC,[n("div",qC,[t[11]||(t[11]=n("div",{class:"ov-kpi-label"},"Live repositories",-1)),n("div",$C,d(e.humanNum((e.data?.repos?.statusBreakdown||[]).filter(s=>s._id!=="removed"&&s._id!=="expired").reduce((s,i)=>s+(i.count||0),0))),1),n("div",FC,d(e.humanNum(((e.data?.repos?.statusBreakdown||[]).find(s=>s._id==="removed")||{}).count||0))+" removed \xB7 "+d(e.humanNum(e.data?.repos?.total))+" total",1)]),n("div",_C,[t[12]||(t[12]=n("div",{class:"ov-kpi-label"},"CPU",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>=75}])},d(e.data?.system?.cpuPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.cpuPercent>=75,crit:e.data?.system?.cpuPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.cpuPercent||0)+"%"})},null,4)],2),n("div",UC,[e.data?.system?.cpuPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.cpuPercent>90}])},d(e.data?.system?.cpuPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(d(e.data?.system?.cpuCount)+" cores \xB7 load "+d(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)])]),n("div",BC,[t[13]||(t[13]=n("div",{class:"ov-kpi-label"},"Memory",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>=75}])},d(e.data?.system?.memPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.memPercent>=75,crit:e.data?.system?.memPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.memPercent||0)+"%"})},null,4)],2),n("div",zC,[e.data?.system?.memPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.memPercent>90}])},d(e.data?.system?.memPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(d(e.humanBytes(e.data?.system?.memUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.memTotal)),1)])]),n("div",HC,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Disk",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>=75}])},d(e.data?.system?.diskPercent)+"%",3),n("div",{class:R(["ov-meter",{warn:e.data?.system?.diskPercent>=75,crit:e.data?.system?.diskPercent>90}])},[n("span",{style:Ae({width:Math.min(100,e.data?.system?.diskPercent||0)+"%"})},null,4)],2),n("div",jC,[e.data?.system?.diskPercent>=75?(a(),l("b",{key:0,class:R(["ov-flag",{critical:e.data?.system?.diskPercent>90}])},d(e.data?.system?.diskPercent>90?"Critical":"High")+" \xB7 ",3)):f("v-if",!0),h(d(e.humanBytes(e.data?.system?.diskUsed).replace(/\s*GB$/,""))+" / "+d(e.humanBytes(e.data?.system?.diskTotal)),1),e.data?.system?.diskMount&&e.data.system.diskMount!=="/"?(a(),l(V,{key:1},[h(" \xB7 "+d(e.data?.system?.diskMount),1)],64)):f("v-if",!0)])]),n("div",GC,[t[15]||(t[15]=n("div",{class:"ov-kpi-label"},"Uptime",-1)),n("div",WC,d(e.humanDuration(e.data?.system?.uptime)),1),n("div",KC,d(e.data?.system?.nodeVersion)+" \xB7 "+d(e.data?.system?.platform),1)])]),f(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",YC,[n("div",JC,[t[16]||(t[16]=n("div",{class:"ov-daily-label"},"New repos today",-1)),n("div",XC,d(e.fmt?.number(e.data?.daily?.today?.repositories||0)),1),t[17]||(t[17]=n("div",{class:"ov-daily-sub"},"so far today",-1))]),n("div",QC,[t[18]||(t[18]=n("div",{class:"ov-daily-label"},"New users today",-1)),n("div",ZC,d(e.fmt?.number(e.data?.daily?.today?.users||0)),1),n("div",xC,d(e.fmt?.number(e.data?.users?.total))+" total \xB7 +"+d(e.fmt?.number(e.usersGained()))+" in 30 days",1)]),n("div",eS,[t[19]||(t[19]=n("div",{class:"ov-daily-label"},"Page views today",-1)),n("div",tS,d(e.fmt?.number(e.data?.daily?.today?.pageViews||0)),1),t[20]||(t[20]=n("div",{class:"ov-daily-sub"},"so far today",-1))])]),f(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-chart-row",{"is-three":e.usersTiny()}])},[n("div",nS,[n("div",oS,[t[23]||(t[23]=n("span",{class:"ov-chart-title"},"Daily page views \xB7 30d",-1)),n("span",sS,[n("span",iS,[t[21]||(t[21]=n("span",{class:"ov-dot-legend ov-dot-accent"},null,-1)),h("views/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyPageViews"))),1)]),e.historyHasMissing()?(a(),l("span",rS,[...t[22]||(t[22]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",aS,[n("div",lS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyPageViews")/2)),1),t[24]||(t[24]=n("span",null,"0",-1))]),(a(!0),l(V,null,Q(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyPageViews)+(s?.dailyPageViews===1?" view":" views")},[n("span",{class:"ov-spark-fill",style:Ae({height:e.historyBarH(s,"dailyPageViews")+"px"})},null,4)],10,dS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",uS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),n("div",cS,[n("div",pS,[t[27]||(t[27]=n("span",{class:"ov-chart-title"},"New repos \xB7 30d",-1)),n("span",fS,[n("span",mS,[t[25]||(t[25]=n("span",{class:"ov-dot-legend ov-dot-ok-fill"},null,-1)),h("repos/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyRepositories"))),1)]),e.historyHasMissing()?(a(),l("span",hS,[...t[26]||(t[26]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",gS,[n("div",vS,[n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyRepositories")/2)),1),t[28]||(t[28]=n("span",null,"0",-1))]),(a(!0),l(V,null,Q(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyRepositories)+(s?.dailyRepositories===1?" repo":" repos")},[n("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ae({height:e.historyBarH(s,"dailyRepositories")+"px"})},null,4)],10,yS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",bS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)]),e.usersTiny()?f("v-if",!0):(a(),l("div",wS,[n("div",kS,[t[31]||(t[31]=n("span",{class:"ov-chart-title"},"Users \xB7 30d",-1)),n("span",CS,[n("span",SS,[t[29]||(t[29]=n("span",{class:"ov-dot-legend ov-dot-user-fill"},null,-1)),h("total users \xB7 "+d(e.fmt?.number(e.historyRange("nbUsers").max))+" now \xB7 +"+d(e.fmt?.number(Math.max(0,e.historyRange("nbUsers").max-e.usersFirst())))+" in 30 days",1)]),e.historyHasMissing()?(a(),l("span",ES,[...t[30]||(t[30]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",NS,[n("div",RS,[n("span",null,d(e.fmt?.number(e.userAxis().hi)),1),n("span",null,d(e.fmt?.number((e.userAxis().hi+e.userAxis().lo)/2)),1),n("span",null,d(e.fmt?.number(e.userAxis().lo)),1)]),(a(),l("svg",{class:"ov-step-svg",viewBox:"0 0 "+e.data.history.length+" 140",preserveAspectRatio:"none",role:"img","aria-label":"Total users over 30 days, from "+e.fmt?.number(e.usersFirst())+" to "+e.fmt?.number(e.historyRange("nbUsers").max)},[e.userAxis().lo===0?(a(),l("path",{key:0,class:"ov-step-area",d:e.userStepPath(!0)},null,8,DS)):f("v-if",!0),n("path",{class:"ov-step-line",d:e.userStepPath(!1),"vector-effect":"non-scaling-stroke"},null,8,PS)],8,TS)),e.firstDataIndex()>0?(a(),l("div",{key:0,class:"ov-step-missing",style:Ae({width:e.firstDataIndex()/e.data.history.length*100+"%"})},null,4)):f("v-if",!0)])):f("v-if",!0),e.data?.history?.length?(a(),l("div",AS,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])),n("div",IS,[n("div",OS,[t[34]||(t[34]=n("span",{class:"ov-chart-title"},"New users \xB7 30d",-1)),n("span",MS,[n("span",VS,[t[32]||(t[32]=n("span",{class:"ov-dot-legend ov-dot-new-user-fill"},null,-1)),h("users/day \xB7 peak "+d(e.fmt?.number(e.historyMax("dailyUsers"))),1)]),e.historyHasMissing()?(a(),l("span",LS,[...t[33]||(t[33]=[n("span",{class:"ov-swatch-missing","aria-hidden":"true"},null,-1),h("No data",-1)])])):f("v-if",!0)])]),e.data?.history?.length?(a(),l("div",qS,[n("div",$S,[n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers"))),1),n("span",null,d(e.fmt?.number(e.axisMax("dailyUsers")/2)),1),t[35]||(t[35]=n("span",null,"0",-1))]),(a(!0),l(V,null,Q(e.data?.history,(s,i)=>(a(),l("div",{class:R(["ov-spark-col has-tip",{"is-missing":s?._empty}]),key:i,"data-tip":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users"),"aria-label":s?._empty?e.historyLabel(s)+": no data":e.historyLabel(s)+": +"+e.fmt?.number(s?.dailyUsers)+(s?.dailyUsers===1?" user":" users")},[n("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ae({height:e.historyBarH(s,"dailyUsers")+"px"})},null,4)],10,FS))),128))])):f("v-if",!0),e.data?.history?.length?(a(),l("div",_S,[n("span",null,d(e.historyLabel(e.data?.history[0])),1),n("span",null,d(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),n("span",null,d(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):f("v-if",!0)])],2),f(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",US,[f(" Repo status breakdown "),n("div",BS,[n("div",zS,[t[36]||(t[36]=n("span",{class:"ov-panel-title"},"Repo status",-1)),n("span",HS,d(e.fmt?.number(e.data?.repos?.total))+" total",1)]),n("div",jS,[e.barPct("ready")>0?(a(),l("span",{key:0,class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ae({width:e.barPct("ready")+"%"})},null,4)):f("v-if",!0),e.barPct("preparing")>0?(a(),l("span",{key:1,class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ae({width:e.barPct("preparing")+"%"})},null,4)):f("v-if",!0),e.barPct("error")>0?(a(),l("span",{key:2,class:"ov-bar-seg ov-bar-error",title:"Error",style:Ae({width:e.barPct("error")+"%"})},null,4)):f("v-if",!0),e.barPct("expired")>0?(a(),l("span",{key:3,class:"ov-bar-seg ov-bar-expired",title:"Expiring / expired",style:Ae({width:e.barPct("expired")+"%"})},null,4)):f("v-if",!0),e.barPct("removed")>0?(a(),l("span",{key:4,class:"ov-bar-seg ov-bar-removed",title:"Removing / removed",style:Ae({width:e.barPct("removed")+"%"})},null,4)):f("v-if",!0)]),n("div",GS,[n("a",WS,[t[37]||(t[37]=n("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[38]||(t[38]=h(" Ready ",-1)),n("span",KS,d(e.fmt?.number(e.statusCount("ready"))),1)]),n("a",YS,[t[39]||(t[39]=n("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[40]||(t[40]=h(" Preparing ",-1)),n("span",JS,d(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),n("a",XS,[t[41]||(t[41]=n("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[42]||(t[42]=h(" Error ",-1)),n("span",QS,d(e.fmt?.number(e.statusCount("error"))),1)]),n("a",ZS,[t[43]||(t[43]=n("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[44]||(t[44]=h(" Expiring / expired ",-1)),n("span",xS,d(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),n("a",eE,[t[45]||(t[45]=n("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[46]||(t[46]=h(" Removing / removed ",-1)),n("span",tE,d(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),f(" Error breakdown "),n("div",nE,[n("div",oE,[t[47]||(t[47]=n("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),n("span",sE,d(e.fmt?.number(e.realErrors()))+" "+d(e.realErrors()===1?"error":"errors"),1)]),n("div",iE,[n("div",rE,[t[48]||(t[48]=n("span",{class:"ov-ebar-label"},"Error",-1)),n("span",aE,[n("span",{class:"ov-ebar-fill ov-ebar-error",style:Ae({width:e.errPct("error")+"%"})},null,4)]),n("span",lE,d(e.data?.errors?.severity?.error),1)]),n("div",dE,[t[49]||(t[49]=n("span",{class:"ov-ebar-label"},"Warning",-1)),n("span",uE,[n("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ae({width:e.errPct("warn")+"%"})},null,4)]),n("span",cE,d(e.data?.errors?.severity?.warn),1)]),e.errorHours().length?(a(),l("div",pE,[n("div",fE,[t[52]||(t[52]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-error","aria-hidden":"true"}),h("Error")],-1)),t[53]||(t[53]=n("span",{class:"ov-ehours-key"},[n("span",{class:"ov-ehours-swatch is-warn","aria-hidden":"true"}),h("Warning")],-1)),n("span",mE,[t[50]||(t[50]=h("Per hour",-1)),t[51]||(t[51]=n("span",{class:"seg-sep","aria-hidden":"true"},"\xB7",-1)),h("peak "+d(e.fmt?.number(e.errorHoursPeak())),1)])]),n("div",hE,[(a(!0),l(V,null,Q(e.errorHours(),s=>(a(),l("span",{key:s.key,class:R({"is-bad":s.bad,"is-zero":s.zero}),title:s.title},[s.zero?(a(),l("i",vE)):(a(),l(V,{key:1},[s.errPct?(a(),l("i",{key:0,class:"ov-ehours-e",style:Ae({height:s.errPct+"%"})},null,4)):f("v-if",!0),s.warnPct?(a(),l("i",{key:1,class:"ov-ehours-w",style:Ae({height:s.warnPct+"%"})},null,4)):f("v-if",!0)],64))],10,gE))),128))]),t[54]||(t[54]=n("div",{class:"ov-ehours-x"},[n("span",null,"24h ago"),n("span",null,"now")],-1))])):f("v-if",!0),n("p",yE,"Info "+d(e.fmt?.number(e.data?.errors?.severity?.info||0))+" \xB7 logged, not counted as errors",1)]),e.data?.repos?.recentErrors24h?(a(),l("div",bE,[n("a",wE,d(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):f("v-if",!0)]),f(" Top routes / queues "),n("div",kE,[t[59]||(t[59]=n("div",{class:"ov-panel-head"},[n("span",{class:"ov-panel-title"},"Queues"),n("span",{class:"ov-panel-meta"},"by state")],-1)),n("div",CE,[t[58]||(t[58]=Se('
QueueActiveWaitFailed
',1)),n("a",SE,[t[55]||(t[55]=n("span",{class:"ov-route-name"},"Download",-1)),n("span",EE,d(e.data?.queues?.download?.active),1),n("span",NE,d(e.data?.queues?.download?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},d(e.data?.queues?.download?.failed),3)]),n("a",RE,[t[56]||(t[56]=n("span",{class:"ov-route-name"},"Remove",-1)),n("span",TE,d(e.data?.queues?.remove?.active),1),n("span",DE,d(e.data?.queues?.remove?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},d(e.data?.queues?.remove?.failed),3)]),n("a",PE,[t[57]||(t[57]=n("span",{class:"ov-route-name"},"Cache cleanup",-1)),n("span",AE,d(e.data?.queues?.cache?.active),1),n("span",IE,d(e.data?.queues?.cache?.waiting),1),n("span",{class:R(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},d(e.data?.queues?.cache?.failed),3)])])])]),f(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",OE,[n("div",ME,[t[60]||(t[60]=n("span",{class:"ov-panel-title"},"Services",-1)),n("span",VE,"5 services \xB7 "+d(e.realErrors()>0?"1 needs attention":"all healthy"),1)]),n("div",LE,[n("div",qE,[t[62]||(t[62]=n("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),n("div",$E,[t[61]||(t[61]=n("span",{class:"ov-svc-name"},"web",-1)),n("span",FE,d(e.data?.system?.nodeVersion)+" \xB7 up "+d(e.humanDuration(e.data?.system?.uptime)),1)])]),n("div",_E,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",UE,[t[63]||(t[63]=n("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(a(),l("span",BE,d(e.queueTotal(e.data?.queues?.download))+" "+d(e.queueTotal(e.data?.queues?.download)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.download)?f("v-if",!0):(a(),l("span",zE,"idle"))])]),n("div",HE,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",jE,[t[64]||(t[64]=n("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(a(),l("span",GE,d(e.queueTotal(e.data?.queues?.cache))+" "+d(e.queueTotal(e.data?.queues?.cache)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.cache)?f("v-if",!0):(a(),l("span",WE,"idle"))])]),n("div",KE,[n("span",{class:R(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),n("div",YE,[t[65]||(t[65]=n("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(a(),l("span",JE,d(e.queueTotal(e.data?.queues?.remove))+" "+d(e.queueTotal(e.data?.queues?.remove)===1?"job":"jobs"),1)):f("v-if",!0),e.queueTotal(e.data?.queues?.remove)?f("v-if",!0):(a(),l("span",XE,"idle"))])]),n("div",QE,[n("span",{class:R(["ov-svc-dot",e.realErrors()>0?"ov-dot-warn":"ov-dot-ok"]),title:e.realErrors()>0?"Errors in the last 24 hours":"No errors in the last 24 hours"},null,10,ZE),n("div",xE,[t[66]||(t[66]=n("span",{class:"ov-svc-name"},"errors",-1)),n("span",eN,d(e.fmt?.number(e.realErrors()))+" / 24h",1)])])])])],512)),[[Z,e.ovView==="summary"]]):f("v-if",!0),T(n("section",tN,[n("div",nN,[t[71]||(t[71]=n("div",null,[n("h2",{class:"ov-panel-title",id:"cache-heading"},"Cache"),n("p",{class:"ov-performance-note"},"Shared storage, repeated reads and anonymization work")],-1)),n("div",oN,[t[69]||(t[69]=n("label",{for:"cache-window"},"Time range",-1)),T(n("select",{id:"cache-window",class:"form-control form-control-sm","onUpdate:modelValue":t[0]||(t[0]=s=>e.cacheMinutes=s),onChange:t[1]||(t[1]=s=>e.loadCache())},[...t[67]||(t[67]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1),n("option",{value:1440},"Last 24 hours",-1),n("option",{value:10080},"Last 7 days",-1)])],544),[[Rt,e.cacheMinutes,void 0,{number:!0}]]),t[70]||(t[70]=n("label",{for:"cache-traffic"},"Traffic",-1)),T(n("select",{id:"cache-traffic",class:"form-control form-control-sm","onUpdate:modelValue":t[2]||(t[2]=s=>e.cacheTraffic=s)},[...t[68]||(t[68]=[Se('',6)])],512),[[Rt,e.cacheTraffic]])])]),e.cacheError?(a(),l("div",sN,[n("span",null,d(e.cacheError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=s=>e.loadCache())},"Retry")])):f("v-if",!0),!e.cacheReport&&!e.cacheError?(a(),l("p",iN,"Loading cache monitoring\u2026")):f("v-if",!0),e.cacheReport?.available?(a(),l(V,{key:2},[e.cacheReport.enabled?f("v-if",!0):(a(),l("p",rN,"Shared blob storage is disabled. Inspection and legacy-cache activity are still measured.")),e.cacheReport.filesystemSupported?f("v-if",!0):(a(),l("p",aN,"Shared blobs require a local filesystem. The configured storage continues to use its existing cache.")),e.cacheReport.dropped?(a(),l("p",lN,d(e.cacheReport.dropped)+" telemetry events were dropped. Totals may be incomplete.",1)):f("v-if",!0),e.cacheReport.source?(a(),l("div",dN,[n("table",uN,[t[72]||(t[72]=n("caption",{class:"sr-only"},"Current shared-cache storage and byte budgets",-1)),t[73]||(t[73]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Pool"),n("th",{scope:"col",class:"num"},"Allocated / budget"),n("th",{scope:"col",class:"num"},"Reserved for fills"),n("th",{scope:"col",class:"num"},"Original bytes"),n("th",{scope:"col",class:"num"},"Blobs"),n("th",{scope:"col",class:"num"},"Active readers")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q([{name:"Source blobs",data:e.cacheReport.source},{name:"Transformed output",data:e.cacheReport.results}],s=>T((a(),l("tr",{key:s.name},[n("th",cN,d(s.name),1),n("td",{class:R(["num budget-cell",{"is-over":s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes}]),title:s.data?.budgetBytes?Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes)+"% of budget":null},[s.data?.budgetBytes&&s.data?.allocatedBytes>s.data?.budgetBytes?(a(),l("span",fN,"Over budget \xB7 ")):f("v-if",!0),h(d(e.humanBytes(s.data?.allocatedBytes))+" / "+d(e.humanBytes(s.data?.budgetBytes)),1),s.data?.budgetBytes?(a(),l("span",mN,[n("i",{style:Ae({width:Math.min(100,Math.round(100*(s.data?.allocatedBytes||0)/s.data.budgetBytes))+"%"})},null,4)])):f("v-if",!0)],10,pN),n("td",hN,d(e.humanBytes(s.data?.reservedBytes)),1),n("td",gN,d(e.humanBytes(s.data?.originalBytes)),1),n("td",vN,d(e.fmt?.number(s.data?.blobs)),1),n("td",yN,d(e.fmt?.number(s.data?.activeReaders)),1)])),[[Z,s.data]])),128))])])])):f("v-if",!0),e.cacheReport.source?(a(),l("dl",bN,[n("div",null,[t[74]||(t[74]=n("dt",null,"Source request hit rate",-1)),n("dd",null,d(e.cacheRate("source","count")),1)]),n("div",null,[t[75]||(t[75]=n("dt",null,"Source byte hit rate",-1)),n("dd",null,d(e.cacheRate("source","bytes")),1)]),n("div",null,[t[76]||(t[76]=n("dt",null,"Decision hit rate",-1)),n("dd",null,d(e.cacheRate("decision","count")),1)])])):f("v-if",!0),t[79]||(t[79]=n("p",{class:"ov-performance-note"},"Reuse counts measure consecutive reads of the same blob within each interval. Codec timings are elapsed stream time, not CPU time; eviction times measure how long a blob was idle. Known monitors are identified by request metadata; other automation may remain in file reads.",-1)),e.cacheRows().length?(a(),l("div",wN,[n("table",kN,[t[77]||(t[77]=n("caption",{class:"sr-only"},"Cache events for the selected time range and traffic",-1)),t[78]||(t[78]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Traffic"),n("th",{scope:"col",class:"num"},"Count"),n("th",{scope:"col",class:"num"},"Bytes"),n("th",{scope:"col",class:"num"},"Mean measured time"),n("th",{scope:"col",class:"num"},"p95 bound")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.cacheRows(),s=>(a(),l("tr",{key:s.name+":"+s.traffic},[n("th",CN,d(e.cacheEventName(s.name)),1),n("td",SN,d(s.traffic),1),n("td",EN,d(e.fmt?.number(s.count)),1),n("td",NN,d(e.humanBytes(s.bytes)),1),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(s.ms?e.fmt.duration(s.ms/s.count):"Not timed"),3),n("td",{class:R(["num",{"ov-muted":!s.ms}])},d(e.cacheP95(s)),3)]))),128))])])])):(a(),l("p",RN,"No cache events in this time range for the selected traffic.")),n("p",TN,"Updated "+d(e.sampleAge(e.cacheReport))+" seconds ago. Minute history is retained for 48 hours; hourly history for 30 days.",1)],64)):f("v-if",!0)],512),[[Z,e.ovView==="cache"]]),T(n("section",DN,[n("div",PN,[t[84]||(t[84]=n("div",null,[n("h2",{class:"ov-panel-title",id:"performance-heading"},"Request performance"),n("p",{class:"ov-performance-note"},"Request latency and process health")],-1)),n("div",AN,[e.performance?.available?(a(),l(V,{key:0},[t[81]||(t[81]=n("label",{for:"performance-view"},"Show",-1)),T(n("select",{id:"performance-view",class:"form-control form-control-sm","onUpdate:modelValue":t[4]||(t[4]=s=>e.performanceTab=s),"aria-label":"Performance metrics"},[...t[80]||(t[80]=[n("option",{value:"routes"},"Routes",-1),n("option",{value:"processes"},"Processes",-1),n("option",{value:"stages"},"Work stages",-1)])],512),[[Rt,e.performanceTab]])],64)):f("v-if",!0),t[83]||(t[83]=n("label",{for:"performance-window"},"Time range",-1)),T(n("select",{id:"performance-window",class:"form-control form-control-sm","onUpdate:modelValue":t[5]||(t[5]=s=>e.performanceMinutes=s),onChange:t[6]||(t[6]=s=>e.loadPerformance()),"aria-label":"Performance time range"},[...t[82]||(t[82]=[n("option",{value:15},"Last 15 minutes",-1),n("option",{value:60},"Last hour",-1)])],544),[[Rt,e.performanceMinutes,void 0,{number:!0}]])])]),e.performanceError?(a(),l("div",IN,[t[85]||(t[85]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.performanceError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[7]||(t[7]=s=>e.loadPerformance())},"Retry")])):f("v-if",!0),!e.performance&&!e.performanceError?(a(),l("p",ON,"Loading performance monitoring\u2026")):f("v-if",!0),e.performance?.available?(a(),l("div",MN,[T(n("div",VN,[e.performance.routes?.length?(a(),l("div",LN,[n("table",qN,[t[86]||(t[86]=n("caption",{class:"sr-only"},"Route latency for the selected time range",-1)),t[87]||(t[87]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Route"),n("th",{scope:"col",class:"num"},"Requests"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"First byte p95"),n("th",{scope:"col",class:"num"},"p95"),n("th",{scope:"col",class:"num"},"p99"),n("th",{scope:"col",class:"num"},"Interrupted"),n("th",{scope:"col",class:"num"},"5xx"),n("th",{scope:"col",class:"num"},"Slow")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.performance.routes,s=>(a(),l("tr",{key:s.service+s.method+s.route},[n("th",$N,[n("span",null,d(s.route),1),n("small",null,d(s.service)+" \xB7 "+d(s.method),1)]),n("td",FN,d(e.fmt.number(s.count)),1),n("td",_N,d(e.formatMs(s.avgMs)),1),n("td",UN,d(e.firstByteBound(s)),1),n("td",BN,d(e.latencyBound(s,"p95UpperMs")),1),n("td",zN,d(e.latencyBound(s,"p99UpperMs")),1),n("td",{class:R(["num",{"ov-metric-warn":s.aborted>0}])},d(e.fmt.number(s.aborted)),3),n("td",{class:R(["num",{"ov-metric-bad":s.errors>0}])},d(e.fmt.number(s.errors)),3),n("td",{class:R(["num",{"ov-metric-warn":s.slow>0}])},d(e.fmt.number(s.slow)),3)]))),128))])])])):(a(),l("p",HN,"No recorded requests in this time range yet."))],512),[[Z,e.performanceTab==="routes"]]),T(n("div",jN,[t[91]||(t[91]=n("p",{class:"ov-performance-note"},"API and streamer processes \xB7 latest sample per instance",-1)),e.performance.instances?.length?(a(),l("div",WN,[n("table",KN,[t[89]||(t[89]=n("caption",{class:"sr-only"},"API and streamer process resource usage",-1)),t[90]||(t[90]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Process"),n("th",{scope:"col",class:"num"},"RSS / limit"),n("th",{scope:"col",class:"num"},"CPU"),n("th",{scope:"col",class:"num"},"Event loop p95"),n("th",{scope:"col",class:"num"},"Active requests"),n("th",{scope:"col",class:"num"},"Sockets / CLOSE_WAIT"),n("th",{scope:"col",class:"num"},"Workers / waiting"),n("th",{scope:"col",class:"num"},"Sample age"),n("th",{scope:"col",class:"num"},"Dropped batches / metrics")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.performance.instances,s=>(a(),l("tr",{key:s.instance,class:R({"ov-metric-warning-row":e.performanceWarning(s)})},[n("th",YN,[n("span",null,d(s.instance),1),e.performanceWarning(s)?(a(),l("small",JN,[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" Needs attention",-1)])])):f("v-if",!0)]),n("td",XN,[h(d(e.humanBytes(s.memory.rss))+" / "+d(e.humanBytes(s.memoryLimitBytes)),1),n("small",null,"Peak "+d(e.humanBytes(e.peakRss(s))),1)]),n("td",QN,d(s.cpuPercent==null?"Unavailable":s.cpuPercent.toFixed(1)+"%"),1),n("td",ZN,d(s.eventLoop?.p95Ms==null?"Not applicable":e.fmt.duration(s.eventLoop.p95Ms)),1),n("td",xN,d(s.activeRequests),1),n("td",eR,d(s.sockets?.descriptors??"Unavailable")+" / "+d(s.sockets?.closeWait??"Unavailable"),1),n("td",tR,d(s.workers?.running??0)+" / "+d(s.workers?.waiting??0),1),n("td",nR,d(e.sampleAge(s))+" s",1),n("td",oR,d(s.droppedBatches)+" / "+d(s.droppedMetrics),1)],2))),128))])])])):(a(),l("div",GN,"No recent process samples. Monitoring coverage is incomplete."))],512),[[Z,e.performanceTab==="processes"]]),T(n("div",sR,[e.performance.stages?.some(s=>s.metric!=="first_byte")?(a(),l("div",iR,[n("table",rR,[t[92]||(t[92]=n("caption",{class:"sr-only"},"Work stages and cache results",-1)),t[93]||(t[93]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Work stage"),n("th",{scope:"col",class:"num"},"Samples"),n("th",{scope:"col",class:"num"},"Average"),n("th",{scope:"col",class:"num"},"p95")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.performance.stages.filter(s=>s.metric!=="first_byte"),s=>(a(),l("tr",{key:s.service+s.metric},[n("th",aR,[n("span",null,d(s.metric),1),n("small",null,d(s.service),1)]),n("td",lR,d(e.fmt.number(s.count)),1),n("td",dR,d(e.formatMs(s.avgMs)),1),n("td",uR,d(e.latencyBound(s,"p95UpperMs")),1)]))),128))])])])):(a(),l("p",cR,"No recorded work stages or cache results in this time range yet."))],512),[[Z,e.performanceTab==="stages"]]),t[94]||(t[94]=n("details",{class:"ov-performance-help"},[n("summary",null,"How to read these metrics"),n("p",null,"Latency includes upstream waits and response transfer. Percentiles show histogram bucket upper bounds, not exact timings. Process rows marked \u201CNeeds attention\u201D have stale samples, dropped monitoring data, CLOSE_WAIT sockets, high event loop delay, or high memory usage.")],-1))])):f("v-if",!0)],512),[[Z,e.ovView==="performance"]])])}var pR={class:"container paper-page admin-page"},fR={class:"q-header"},mR={class:"q-header-actions"},hR={class:"q-cards"},gR=["aria-pressed","onKeydown","onClick"],vR={class:"q-card-head"},yR=["title"],bR=["textContent"],wR=["textContent"],kR={class:"q-card-sub"},CR={class:"q-card-failed"},SR={key:0,class:"q-card-bar"},ER={key:0,class:"q-detail"},NR={class:"q-throughput"},RR={class:"q-range-btns"},TR={class:"q-section-label"},DR={key:0,class:"q-section-right"},PR={class:"q-chart-wrap"},AR={key:0,class:"q-chart-empty"},IR={class:"q-stats-panel"},OR={class:"q-section-label"},MR={class:"q-stats-grid"},VR={class:"q-stat"},LR=["textContent"],qR={class:"q-stat"},$R=["textContent"],FR={class:"q-stat"},_R=["textContent"],UR={class:"q-stat"},BR=["textContent"],zR={class:"q-stat"},HR=["textContent"],jR={class:"q-stat"},GR=["textContent"],WR={class:"q-stats-actions"},KR=["disabled"],YR={class:"q-danger-group"},JR={class:"q-jobs"},XR={class:"q-jobs-header"},QR={class:"q-section-label"},ZR={class:"seg-filter",role:"radiogroup","aria-label":"Filter jobs by state"},xR=["aria-checked"],eT={class:"count"},tT=["aria-checked"],nT={class:"count"},oT=["aria-checked"],sT={class:"count"},iT=["aria-checked"],rT={class:"count"},aT=["aria-checked"],lT={class:"count"},dT=["aria-checked"],uT={class:"count"},cT={class:"q-search-row"},pT={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},fT={class:"q-auto-refresh"},mT={type:"checkbox"},hT={key:0,class:"q-table"},gT=["onClick"],vT={class:"q-cell-state"},yT=["textContent"],bT=["textContent"],wT=["title"],kT=["textContent","href"],CT=["title","textContent"],ST=["textContent"],ET=["textContent"],NT={class:"q-cell-progress"},RT=["aria-label"],TT=["textContent"],DT={class:"q-cell-actions"},PT=["onClick"],AT=["onClick"],IT={key:0,class:"q-detail-row"},OT={colspan:"7"},MT={class:"q-job-detail"},VT={class:"q-job-detail-grid"},LT={class:"q-job-detail-item"},qT={class:"q-job-detail-value"},$T=["textContent","href"],FT={class:"q-job-detail-item"},_T={class:"q-job-detail-value"},UT=["textContent"],BT={key:0,class:"q-job-detail-item"},zT=["textContent"],HT={key:1,class:"q-job-detail-item"},jT=["textContent"],GT={key:2,class:"q-job-detail-item"},WT={class:"q-job-detail-value"},KT={key:3,class:"q-job-detail-item"},YT=["textContent"],JT={key:4,class:"q-job-detail-item"},XT=["textContent"],QT={key:5,class:"q-job-detail-item"},ZT=["textContent"],xT={key:6,class:"q-job-detail-item"},e4=["textContent"],t4={key:7,class:"q-job-detail-item"},n4=["textContent"],o4={key:0,class:"q-job-detail-error"},s4=["textContent"],i4={key:1},r4=["textContent"],a4={class:"q-job-detail-actions"},l4=["onClick"],d4=["onClick"],u4=["href"],c4={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},p4={key:0},f4={key:1};function sp(e,t){let s=De("field");return a(),l("div",pR,[t[71]||(t[71]=n("div",{class:"paper-crumbs"},[h("Admin \xA0/\xA0 "),n("span",{class:"here"},"Queues")],-1)),n("div",fR,[t[18]||(t[18]=n("h1",{class:"paper-page-title"},"Queues",-1)),n("div",mR,[n("button",{class:"btn btn-sm",onClick:t[0]||(t[0]=i=>e.pauseAll())},"Pause all queues")])]),t[72]||(t[72]=Se('',1)),f(" Queue overview cards "),n("div",hR,[(a(!0),l(V,null,Q(e.queueList,(i,o)=>(a(),l("div",{class:R(["q-card",{selected:e.selectedQueue==i?.key,paused:i?.paused}]),role:"button",tabindex:"0","aria-pressed":e.selectedQueue===i.key,onKeydown:[Vt(ae(r=>e.selectQueue(i.key),["prevent"]),["enter"]),Vt(ae(r=>e.selectQueue(i.key),["prevent"]),["space"])],onClick:r=>e.selectQueue(i.key)},[n("div",vR,[n("span",{class:R(["q-dot",{"q-dot-red":i?.paused||i?.counts?.failed>0,"q-dot-idle":!i?.counts?.active&&!i?.counts?.waiting}]),title:i?.paused?"Paused":i?.counts?.failed>0?i.counts.failed+" failed jobs":i?.counts?.active||i?.counts?.waiting?"Running":"Idle"},null,10,yR),n("span",{class:"q-card-name",textContent:d(i?.label)},null,8,bR)]),n("div",{class:"q-card-count",textContent:d((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0))},null,8,wR),n("div",kR,[n("span",null,[h("waiting \xB7 "+d(i?.counts?.active||0)+" active",1),i?.counts?.failed?(a(),l(V,{key:0},[t[19]||(t[19]=h(" \xB7 ",-1)),n("b",CR,d(i.counts.failed)+" failed",1)],64)):f("v-if",!0),i?.paused?(a(),l(V,{key:1},[t[20]||(t[20]=h(" \xB7 ",-1)),t[21]||(t[21]=n("b",{class:"q-card-failed"},"paused",-1))],64)):f("v-if",!0)]),i?.counts?.active?(a(),l("div",SR,[n("div",{class:"q-card-bar-fill",style:Ae({width:i?.counts?.active/((i?.counts?.waiting||0)+(i?.counts?.active||0)+(i?.counts?.delayed||0)||1)*100+"%"})},null,4)])):f("v-if",!0)])],42,gR))),256))]),f(" Detail: throughput chart + stats panel "),e.selectedStats?(a(),l("div",ER,[n("div",NR,[n("div",RR,[n("button",{class:R(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[1]||(t[1]=i=>e.setRange("1h"))},"1h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[2]||(t[2]=i=>e.setRange("6h"))},"6h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[3]||(t[3]=i=>e.setRange("24h"))},"24h",2),n("button",{class:R(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[4]||(t[4]=i=>e.setRange("7d"))},"7d",2)]),n("div",TR,[h("Throughput \xB7 "+d(e.selectedQueue)+" ",1),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l("span",DR,[t[23]||(t[23]=n("span",{class:"q-legend-completed"},"\u25CF",-1)),t[24]||(t[24]=h(" Completed ",-1)),t[25]||(t[25]=n("span",{class:"q-legend-failed"},"\u25CF",-1)),t[26]||(t[26]=h(" Failed ",-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)>0?(a(),l(V,{key:0},[t[22]||(t[22]=n("span",{class:"q-legend-exec","aria-hidden":"true"},null,-1)),h(" Avg time \xB7 "+d(e.range),1)],64)):f("v-if",!0)])):f("v-if",!0)]),n("div",PR,[t[28]||(t[28]=n("canvas",{id:"q-throughput-chart",height:"180"},null,-1)),(e.selectedStats?.completed24h||0)+(e.selectedStats?.failed24h||0)===0?(a(),l("div",AR,[...t[27]||(t[27]=[n("strong",null,"No jobs processed in this window",-1),n("span",null,"Completed and failed jobs will chart here.",-1)])])):f("v-if",!0),t[29]||(t[29]=n("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}},null,-1)),t[30]||(t[30]=n("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}},null,-1))])]),n("div",IR,[n("div",OR,"Stats \xB7 "+d(e.selectedQueue),1),n("div",MR,[n("div",VR,[t[31]||(t[31]=n("div",{class:"q-stat-label"},"Waiting",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.waiting||0)},null,8,LR)]),n("div",qR,[t[32]||(t[32]=n("div",{class:"q-stat-label"},"Active",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.active||0)},null,8,$R)]),n("div",FR,[t[33]||(t[33]=n("div",{class:"q-stat-label"},"Completed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.fmt?.number(e.selectedStats?.completed24h))},null,8,_R)]),n("div",UR,[t[34]||(t[34]=n("div",{class:"q-stat-label"},"Failed (24h)",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.failed24h||0)},null,8,BR)]),n("div",zR,[t[35]||(t[35]=n("div",{class:"q-stat-label"},"Delayed",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.counts?.delayed||0)},null,8,HR)]),n("div",jR,[t[36]||(t[36]=n("div",{class:"q-stat-label"},"Workers",-1)),n("div",{class:"q-stat-value",textContent:d(e.selectedStats?.workers||0)},null,8,GR)])]),n("div",WR,[n("button",{class:"btn btn-sm",onClick:t[5]||(t[5]=i=>e.togglePause())},d(e.selectedStats?.paused?"Resume "+e.selectedQueue:"Pause "+e.selectedQueue),1),n("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=i=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,KR),n("span",YR,[n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[7]||(t[7]=i=>e.drainSelected())},"Drain"),n("button",{class:"btn btn-sm btn-outline-danger",onClick:t[8]||(t[8]=i=>e.emptyQueue())},"Empty")])])])])):f("v-if",!0),e.actionError?(a(),l("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=i=>e.actionError=null)},[t[37]||(t[37]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),h(" "+d(e.actionError),1)])):f("v-if",!0),f(" Jobs table "),n("div",JR,[n("div",XR,[n("div",QR,"All jobs \xB7 "+d(e.selectedQueue),1),n("div",ZR,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[10]||(t[10]=i=>e.setSegView("all"))},[t[38]||(t[38]=h("All ",-1)),n("span",eT,d(e.fmt?.number(e.segCount("all"))),1)],10,xR),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="active","is-empty":!e.segCount("active")}]),"aria-checked":e.segView()==="active",onClick:t[11]||(t[11]=i=>e.setSegView("active"))},[t[39]||(t[39]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[40]||(t[40]=h("Active ",-1)),n("span",nT,d(e.fmt?.number(e.segCount("active"))),1)],10,tT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="waiting","is-empty":!e.segCount("waiting")}]),"aria-checked":e.segView()==="waiting",onClick:t[12]||(t[12]=i=>e.setSegView("waiting"))},[t[41]||(t[41]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[42]||(t[42]=h("Waiting ",-1)),n("span",sT,d(e.fmt?.number(e.segCount("waiting"))),1)],10,oT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="delayed","is-empty":!e.segCount("delayed")}]),"aria-checked":e.segView()==="delayed",onClick:t[13]||(t[13]=i=>e.setSegView("delayed"))},[t[43]||(t[43]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[44]||(t[44]=h("Delayed ",-1)),n("span",rT,d(e.fmt?.number(e.segCount("delayed"))),1)],10,iT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="failed","is-empty":!e.segCount("failed")}]),"aria-checked":e.segView()==="failed",onClick:t[14]||(t[14]=i=>e.setSegView("failed"))},[t[45]||(t[45]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[46]||(t[46]=h("Failed ",-1)),n("span",lT,d(e.fmt?.number(e.segCount("failed"))),1)],10,aT),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="completed","is-empty":!e.segCount("completed")}]),"aria-checked":e.segView()==="completed",onClick:t[15]||(t[15]=i=>e.setSegView("completed"))},[t[47]||(t[47]=n("span",{class:"seg-dot done","aria-hidden":"true"},null,-1)),t[48]||(t[48]=h("Completed ",-1)),n("span",uT,d(e.fmt?.number(e.segCount("completed"))),1)],10,dT)])]),n("div",cT,[T(n("input",pT,null,512),[[s,{state:e.viewState,set:i=>{e.query.search=i},value:e.query?.search,form:null,options:{}}]]),n("label",fT,[T(n("input",mT,null,512),[[s,{state:e.viewState,set:i=>{e.query.autoRefresh=i},value:e.query?.autoRefresh,form:null,options:{}}]]),t[49]||(t[49]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))]),n("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[16]||(t[16]=i=>e.refreshNow()),"aria-label":"Refresh"},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])]),e.filteredJobs().length>0?(a(),l("table",hT,[t[69]||(t[69]=n("thead",null,[n("tr",null,[n("th",null,"State"),n("th",null,"Job"),n("th",null,"Detail"),n("th",null,"Attempts"),n("th",{class:"q-th-num"},"Duration"),n("th",null,"Progress"),n("th")])],-1)),(a(!0),l(V,null,Q(e.filteredJobs(),(i,o)=>(a(),l("tbody",null,[n("tr",{style:{cursor:"pointer"},class:R({"q-row-failed":i?._state=="failed","q-row-expanded":e.expanded[i?.id]}),onClick:r=>e.toggleJob(i)},[n("td",vT,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,yT),i?._state=="delayed"&&i?.delayUntil?(a(),l("span",{key:0,class:"q-delay-hint",textContent:d(e.delayCountdown(i?.delayUntil))},null,8,bT)):f("v-if",!0)]),n("td",{class:"q-cell-id",title:"job:"+i?.id+(i?.name&&i?.name!==i?.id?" \xB7 "+i.name:"")+(i?.data?.repoId&&i?.data?.repoId!==i?.id?" \xB7 "+i.data.repoId:"")},[(a(),l("svg",{class:R(["ui-icon q-chevron",{"q-chevron-open":e.expanded[i?.id]}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#ui-icon-chevron-right"},null,-1)])],2)),n("a",{target:"_blank",class:"q-job-link",textContent:d(i?.data?.repoId||i?.id),onClick:t[17]||(t[17]=r=>r.stopPropagation()),href:e.safeUrl("/r/"+(i?.data?.repoId||i?.id))},null,8,kT)],8,wT),n("td",{class:R(["q-cell-detail",{"is-error":i?._state=="failed"}]),title:i?._state=="failed"?i?.failedReason:"",textContent:d(e.jobDetail(i))},null,10,CT),n("td",{class:"q-cell-num",textContent:d(i?.attemptsMade||1)},null,8,ST),n("td",{class:"q-cell-num q-cell-duration",textContent:d(e.jobDuration(i))},null,8,ET),n("td",NT,[n("div",{class:R(["q-progress-wrap",{"is-indeterminate":e.jobProgressPct(i)===null}]),"aria-label":e.jobProgressPct(i)===null?"Progress not reported":e.jobProgressPct(i)+"% done"},[n("div",{class:"q-progress-bar",style:Ae({"--pct":(e.jobProgressPct(i)||0)+"%"})},null,4),n("span",{class:"q-progress-label",textContent:d(e.jobProgressPct(i)===null?"\u2014":e.jobProgressPct(i)+"%")},null,8,TT)],10,RT)]),n("td",DT,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm btn-icon",title:"Retry",onClick:r=>{e.retryJob(i),r.stopPropagation()},"aria-label":"Retry job"},[...t[52]||(t[52]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])],8,PT)):f("v-if",!0),n("button",{class:"btn btn-sm btn-icon",title:"Remove","aria-label":"Remove job",onClick:r=>{e.removeJob(i),r.stopPropagation()}},[...t[53]||(t[53]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,AT)])],10,gT),e.expanded[i?.id]?(a(),l("tr",IT,[n("td",OT,[n("div",MT,[n("div",VT,[n("div",LT,[t[54]||(t[54]=n("span",{class:"q-job-detail-label"},"Job id",-1)),n("span",qT,[n("a",{target:"_blank",textContent:d(i?.id),href:e.safeUrl("/r/"+i?.id)},null,8,$T)])]),n("div",FT,[t[55]||(t[55]=n("span",{class:"q-job-detail-label"},"State",-1)),n("span",_T,[n("span",{textContent:d(i?._state),class:R("q-state-badge q-state-"+i?._state)},null,10,UT)])]),i?.data?.repoId?(a(),l("div",BT,[t[56]||(t[56]=n("span",{class:"q-job-detail-label"},"Repo ID",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.data?.repoId)},null,8,zT)])):f("v-if",!0),i?.timestamp?(a(),l("div",HT,[t[57]||(t[57]=n("span",{class:"q-job-detail-label"},"Created",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.timestamp))},null,8,jT)])):f("v-if",!0),i?._state=="delayed"&&i?.delayUntil?(a(),l("div",GT,[t[58]||(t[58]=n("span",{class:"q-job-detail-label"},"Retry at",-1)),n("span",WT,d(e.humanTime(i?.delayUntil))+" ("+d(e.delayCountdown(i?.delayUntil))+")",1)])):f("v-if",!0),i?.processedOn?(a(),l("div",KT,[t[59]||(t[59]=n("span",{class:"q-job-detail-label"},"Processed",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.processedOn))},null,8,YT)])):f("v-if",!0),i?.finishedOn?(a(),l("div",JT,[t[60]||(t[60]=n("span",{class:"q-job-detail-label"},"Finished",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.humanTime(i?.finishedOn))},null,8,XT)])):f("v-if",!0),i?.attemptsMade?(a(),l("div",QT,[t[61]||(t[61]=n("span",{class:"q-job-detail-label"},"Attempts",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.attemptsMade)},null,8,ZT)])):f("v-if",!0),i?.progress&&i?.progress?.status?(a(),l("div",xT,[t[62]||(t[62]=n("span",{class:"q-job-detail-label"},"Status",-1)),n("span",{class:"q-job-detail-value",textContent:d(i?.progress?.status)},null,8,e4)])):f("v-if",!0),e.jobProgressPct(i)!==null?(a(),l("div",t4,[t[63]||(t[63]=n("span",{class:"q-job-detail-label"},"Progress",-1)),n("span",{class:"q-job-detail-value",textContent:d(e.jobProgressPct(i)+"%")},null,8,n4)])):f("v-if",!0)]),i?.failedReason?(a(),l("div",o4,[t[64]||(t[64]=n("span",{class:"q-job-detail-label"},"Error",-1)),n("div",{class:"q-error-reason",textContent:d(i?.failedReason)},null,8,s4)])):f("v-if",!0),i?.stacktrace?.length?(a(),l("div",i4,[t[65]||(t[65]=n("span",{class:"q-job-detail-label"},"Stacktrace",-1)),(a(!0),l(V,null,Q(i?.stacktrace,(r,u)=>(a(),l("pre",{class:"q-error-stack",key:u},[n("code",{textContent:d(r)},null,8,r4)]))),128))])):f("v-if",!0),n("div",a4,[i?._state=="failed"?(a(),l("button",{key:0,class:"btn btn-sm",onClick:r=>e.retryJob(i)},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Retry",-1)])],8,l4)):f("v-if",!0),n("button",{class:"btn btn-sm",onClick:r=>e.removeJob(i)},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,d4),n("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+i?.id)},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1),h(" View repo",-1)])],8,u4)])])])])):f("v-if",!0)]))),256))])):f("v-if",!0),e.filteredJobs().length==0?(a(),l("div",c4,[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1)),e.query?.search?f("v-if",!0):(a(),l("span",p4,"No jobs in the "+d(e.selectedQueue)+" queue.",1)),e.query?.search?(a(),l("span",f4,"No jobs match the current filters.")):f("v-if",!0)])):f("v-if",!0)])])}var m4={class:"container paper-page admin-page"},h4={class:"seg-bar"},g4={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},v4=["aria-checked"],y4={class:"count"},b4=["aria-checked"],w4={class:"count"},k4=["aria-checked"],C4={class:"count"},S4=["aria-checked"],E4={class:"count"},N4=["aria-checked"],R4={class:"count"},T4=["aria-checked"],D4={class:"count"},P4={class:"seg-countline",role:"status"},A4={class:"seg-meta"},I4={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},O4={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},M4=["aria-expanded"],V4={class:"search-wrap"},L4={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories\u2026",autocomplete:"off"},q4={key:0,class:"admin-search-hint"},$4={class:"admin-filter-inline"},F4={type:"text",class:"form-control form-control-sm",placeholder:"username"},_4={class:"admin-filter-inline"},U4={type:"text",class:"form-control form-control-sm",placeholder:"ID"},B4={key:0,class:"admin-filter-inline","aria-label":"Pagination"},z4=["disabled"],H4={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},j4=["disabled"],G4={key:0,class:"admin-filter-row"},W4={class:"admin-active-chips"},K4={class:"key"},Y4=["onClick"],J4={key:1,class:"bulk-bar"},X4={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Q4={class:"paper-table-head",role:"row"},Z4={role:"columnheader",style:{width:"28px"}},x4=["checked"],eD={role:"columnheader"},tD={role:"columnheader"},nD={role:"columnheader",class:"num"},oD={role:"columnheader"},sD={role:"cell",style:{width:"28px"}},iD={type:"checkbox","aria-label":"Select repository"},rD={class:"cell-anon",role:"cell"},aD={class:"anon-text"},lD=["textContent","href"],dD=["title"],uD=["href"],cD=["textContent"],pD=["textContent"],fD=["data-meta-label"],mD=["title","textContent","href"],hD=["data-meta-label"],gD=["textContent","href"],vD=["data-meta-label"],yD={key:3,class:"meta-item"},bD={class:"meta-item"},wD={class:"cell-status",role:"cell"},kD={class:"status-line"},CD=["textContent"],SD=["textContent","title"],ED=["data-unit"],ND=["textContent"],RD={class:"cell-expires",role:"cell"},TD=["textContent"],DD={class:"cell-actions",role:"cell"},PD={class:"dropdown"},AD={class:"dropdown-menu dropdown-menu-right"},ID=["href"],OD=["href"],MD=["href"],VD=["onClick"],LD=["onClick"],qD=["onClick"],$D=["onClick"],FD=["onClick"],_D=["onClick"],UD={key:0,class:"paper-table-empty"},BD={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},zD={key:0,class:"pagination-compact"},HD=["disabled"],jD=["max"],GD=["disabled"],WD={class:"admin-filter-inline"},KD={class:"form-control form-control-sm"};function ip(e,t){let s=De("field"),i=De("form");return a(),l("div",m4,[t[80]||(t[80]=Se('
Admin \xA0/\xA0 Repositories

Repositories

',3)),n("div",h4,[n("div",g4,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=h("All ",-1)),n("span",y4,d(e.fmt?.number(e.segCount("all"))),1)],10,v4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=h("Ready ",-1)),n("span",w4,d(e.fmt?.number(e.segCount("ready"))),1)],10,b4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=h("Preparing ",-1)),n("span",C4,d(e.fmt?.number(e.segCount("preparing"))),1)],10,k4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=h("Error ",-1)),n("span",E4,d(e.fmt?.number(e.segCount("error"))),1)],10,S4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=h("Expiring / expired ",-1)),n("span",R4,d(e.fmt?.number(e.segCount("expired"))),1)],10,N4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=h("Removing / removed ",-1)),n("span",D4,d(e.fmt?.number(e.segCount("removed"))),1)],10,T4)]),n("p",P4,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=h(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",A4,d(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",I4,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",O4,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,M4),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",V4,[T(n("input",L4,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",q4,"/"))]),n("span",$4,[t[35]||(t[35]=n("label",null,"Owner",-1)),T(n("input",F4,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",_4,[t[36]||(t[36]=n("label",null,"Conference",-1)),T(n("input",U4,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",B4,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,z4),n("span",H4,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,j4)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",G4,[n("div",W4,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",K4,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:u=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Y4)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",J4,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[42]||(t[42]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",X4,[n("div",Q4,[n("div",Z4,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,x4)]),n("div",eD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",tD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",nD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",oD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",sD,[T(n("input",iD,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",rD,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",aD,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,lD),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.repositoryName||"").split("/")[0]))},null,8,cD)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,pD)],8,uD),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,mD)],8,fD)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,gD)],8,hD)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)],8,vD)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",yD,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",bD,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,dD)])]),n("div",wD,[n("span",kD,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,CD)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,SD)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=h()),n("span",{textContent:d(e.fmt?.number(o?.pageView||0))},null,8,ND)],8,ED),n("div",RD,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=h()),n("span",{textContent:d((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,TD)]),n("div",DD,[n("div",PD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",AD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,ID),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,OD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,MD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,VD),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,LD),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,qD),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,$D),[[Z,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,FD),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,_D),[[Z,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",UD,[t[73]||(t[73]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[74]||(t[74]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)]),n("div",BD,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",zD,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous ",-1)])],8,HD),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,jD),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[h(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,GD)])):f("v-if",!0),n("span",WD,[t[78]||(t[78]=n("label",null,"Per page",-1)),T((a(),l("select",KD,[...t[77]||(t[77]=[Se('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var YD={class:"container paper-page admin-page"},JD={class:"paper-crumbs"},XD={class:"here"},QD={class:"paper-page-title"},ZD={key:0,class:"user-detail-card"},xD={class:"user-header"},eP=["src"],tP={class:"user-header-status"},nP={class:"status-dot-wrap"},oP=["textContent"],sP={key:0,class:"type-badge type-repo"},iP={class:"user-actions",style:{"margin-top":"4px"}},rP={class:"user-detail-grid"},aP={class:"detail-value mono-id"},lP={class:"detail-value"},dP=["href"],uP={class:"detail-value"},cP={class:"detail-value"},pP={key:0},fP={key:1,class:"text-muted"},mP={class:"detail-value"},hP={key:0,style:{"margin-top":"20px"}},gP={class:"paper-table w-100",style:{"margin-top":"10px"}},vP={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},yP={class:"cell-anon",role:"cell"},bP={class:"anon-text"},wP=["textContent"],kP={class:"cell-expires",role:"cell"},CP={key:1,class:"admin-section-header"},SP={class:"section-count"},EP={key:2,class:"user-detail-card"},NP={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},RP={key:0,class:"alert alert-warning",role:"alert"},TP={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},DP={key:1,class:"paper-table w-100"},PP={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},AP=["textContent"],IP=["textContent"],OP={role:"cell"},MP={key:0},VP={key:1,class:"text-muted"},LP={role:"cell"},qP=["onClick"],$P={key:2,class:"paper-table-empty"},FP={class:"admin-section-header"},_P={class:"section-count"},UP={class:"seg-bar"},BP={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},zP=["aria-checked"],HP={class:"count"},jP=["aria-checked"],GP={class:"count"},WP=["aria-checked"],KP={class:"count"},YP=["aria-checked"],JP={class:"count"},XP=["aria-checked"],QP={class:"count"},ZP=["aria-checked"],xP={class:"count"},e3={class:"seg-countline",role:"status"},t3={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},n3={class:"admin-filter-row"},o3={class:"search-wrap"},s3={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},i3={key:3,class:"bulk-bar"},r3={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},a3={class:"paper-table-head",role:"row"},l3={role:"columnheader",style:{width:"28px"}},d3=["checked"],u3={role:"columnheader"},c3={role:"columnheader"},p3={role:"columnheader",class:"num"},f3={role:"columnheader"},m3={role:"cell",style:{width:"28px"}},h3={type:"checkbox","aria-label":"Select repository"},g3={class:"cell-anon",role:"cell"},v3={class:"anon-text"},y3=["textContent","href"],b3=["title"],w3=["href"],k3=["textContent"],C3=["textContent"],S3=["data-meta-label"],E3=["title","textContent","href"],N3=["data-meta-label"],R3=["textContent","href"],T3=["data-meta-label"],D3={key:3,class:"meta-item"},P3={class:"meta-item"},A3={class:"cell-status",role:"cell"},I3={class:"status-line"},O3=["textContent"],M3=["textContent","title"],V3=["data-unit","textContent"],L3=["textContent"],q3={class:"cell-actions",role:"cell"},$3={class:"dropdown"},F3={class:"dropdown-menu dropdown-menu-right"},_3=["href"],U3=["href"],B3=["href"],z3=["onClick"],H3=["onClick"],j3=["onClick"],G3=["onClick"],W3=["onClick"],K3=["onClick"],Y3={key:0,class:"paper-table-empty"};function rp(e,t){let s=De("field"),i=De("form");return a(),l("div",YD,[n("div",JD,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=h(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=h(" \xA0/\xA0 ",-1)),n("span",XD,d(e.userInfo?.username||"Profile"),1)]),n("h1",QD,d(e.userInfo?.username||"User"),1),t[93]||(t[93]=Se('',1)),e.userInfo?(a(),l("div",ZD,[n("div",xD,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,eP)):f("v-if",!0),n("div",null,[n("div",tP,[n("span",nP,[n("span",{class:R(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(e.userInfo?.status))},null,8,oP)]),e.userInfo?.isAdmin?(a(),l("span",sP,"Admin")):f("v-if",!0)]),n("div",iP,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),h(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",rP,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",aP,d(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},d(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},d(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",lP,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),h(" "+d(e.userInfo?.username),1)],8,dP)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",uP,d(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",cP,[e.userInfo?.accessTokenDates?.github?(a(),l("span",pP,d(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",fP,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",mP,[h(d(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},d(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",hP,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",gP,[(a(!0),l(V,null,Q(e.userInfo?.repositories,(o,r)=>(a(),l("div",vP,[n("div",yP,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",bP,[n("span",{class:"repo-name",textContent:d(o?.name)},null,8,wP)])]),n("div",kP,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),h(" "+d(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",CP,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),h(" API tokens")],-1)),n("span",SP,d(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",EP,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[h("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),h(" to authenticate without GitHub OAuth (useful for development).")],-1)),T((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ae(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[T(n("input",NP,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),h(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",RP,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",TP,d(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",DP,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(V,null,Q(e.tokens,(o,r)=>(a(),l("div",PP,[n("div",{role:"cell",textContent:d(o?.name)},null,8,AP),n("div",{role:"cell",textContent:d(e.fmt?.humanTime(o?.createdAt))},null,8,IP),n("div",OP,[o?.lastUsedAt?(a(),l("span",MP,d(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",VP,"never"))]),n("div",LP,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:u=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,qP)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",$P,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",FP,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),h(" Anonymized repositories")],-1)),n("span",_P,d(e.repositories?.length),1)]),n("div",UP,[n("div",BP,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=h("All ",-1)),n("span",HP,d(e.fmt?.number(e.segCount("all"))),1)],10,zP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=h("Ready ",-1)),n("span",GP,d(e.fmt?.number(e.segCount("ready"))),1)],10,jP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=h("Preparing ",-1)),n("span",KP,d(e.fmt?.number(e.segCount("preparing"))),1)],10,WP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=h("Error ",-1)),n("span",JP,d(e.fmt?.number(e.segCount("error"))),1)],10,YP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=h("Expiring / expired ",-1)),n("span",QP,d(e.fmt?.number(e.segCount("expired"))),1)],10,XP),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=h("Removing / removed ",-1)),n("span",xP,d(e.fmt?.number(e.segCount("removed"))),1)],10,ZP)]),n("p",e3,[n("strong",null,d(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=h(" shown",-1))])]),T((a(),l("form",t3,[n("div",n3,[n("div",o3,[T(n("input",s3,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",i3,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[65]||(t[65]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",r3,[n("div",a3,[n("div",l3,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,d3)]),n("div",u3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",c3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",p3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",f3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",m3,[T(n("input",h3,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",g3,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",v3,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,y3),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.fullName||"").split("/")[0]))},null,8,k3)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,C3)],8,w3),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,E3)],8,S3)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,R3)],8,N3)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)],8,T3)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",D3,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",P3,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,b3)])]),n("div",A3,[n("span",I3,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,O3)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,M3)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:d(e.fmt?.number(o?.pageView||0))},null,8,V3),n("div",{class:"cell-expires",role:"cell",textContent:d(e.fmt?.humanTime(o?.anonymizeDate))},null,8,L3),n("div",q3,[n("div",$3,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",F3,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,_3),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,U3),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,B3)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,z3),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,H3),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,j3),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,G3),[[Z,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,W3),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,K3),[[Z,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",Y3,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var J3={class:"container paper-page admin-page"},X3={class:"seg-bar"},Q3={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},Z3=["aria-checked"],x3={class:"count"},eA=["aria-checked"],tA={class:"count"},nA=["aria-checked"],oA={class:"count"},sA=["aria-checked"],iA={class:"count"},rA={class:"seg-countline",role:"status"},aA={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},lA={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},dA={class:"admin-filter-row"},uA={class:"search-wrap"},cA={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},pA={key:0,class:"admin-search-hint"},fA={class:"admin-filter-inline"},mA={class:"form-control form-control-sm"},hA={key:0,class:"admin-filter-inline","aria-label":"Pagination"},gA=["disabled"],vA={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},yA=["disabled"],bA={key:0,class:"admin-filter-row"},wA={class:"admin-active-chips"},kA={class:"key"},CA=["onClick"],SA={key:1,class:"bulk-bar"},EA={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},NA={class:"paper-table-head admin-users-row",role:"row"},RA={role:"columnheader",style:{width:"28px"}},TA=["checked"],DA={role:"columnheader"},PA={role:"columnheader"},AA={role:"cell",style:{width:"28px"}},IA={type:"checkbox","aria-label":"Select user"},OA={class:"cell-anon",role:"cell"},MA=["src"],VA={key:1,class:"avatar-fallback","aria-hidden":"true"},LA={class:"anon-text"},qA={class:"user-name-line"},$A=["textContent","href"],FA=["href","title","aria-label"],_A={class:"anon-sub meta-dots"},UA=["title"],BA={key:1},zA={class:"cell-views num",role:"cell"},HA=["title","textContent","href"],jA={class:"cell-status",role:"cell"},GA=["textContent"],WA={class:"cell-status",role:"cell"},KA={key:0,class:"role-pill"},YA={key:1,class:"empty-dash"},JA={class:"cell-actions",role:"cell"},XA={class:"dropdown"},QA={class:"dropdown-menu dropdown-menu-right"},ZA=["href"],xA=["href"],eI=["onClick"],tI=["onClick"],nI={key:0,class:"paper-table-empty"},oI={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},sI={key:0,class:"pagination-compact"},iI=["disabled"],rI=["max"],aI=["disabled"],lI={class:"admin-filter-inline"},dI={class:"form-control form-control-sm"};function ap(e,t){let s=De("field"),i=De("form");return a(),l("div",J3,[t[53]||(t[53]=Se('
Admin \xA0/\xA0 Users

Users

',3)),n("div",X3,[n("div",Q3,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=o=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=h("All ",-1)),n("span",x3,d(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,Z3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=o=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Active ",-1)),n("span",tA,d(e.fmt?.number(e.statusCountFor("active"))),1)],10,eA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=o=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Banned ",-1)),n("span",oA,d(e.fmt?.number(e.statusCountFor("banned"))),1)],10,nA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=o=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Removed ",-1)),n("span",iA,d(e.fmt?.number(e.statusCountFor("removed"))),1)],10,sA)]),n("p",rA,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=h(" shown",-1))])]),e.fetchError?(a(),l("div",aA,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",lA,[n("div",dA,[n("div",uA,[T(n("input",cA,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",pA,"/"))]),n("span",fA,[t[24]||(t[24]=n("label",null,"Role",-1)),T((a(),l("select",mA,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=o=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",hA,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,gA),n("span",vA,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,yA)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",bA,[n("div",wA,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",kA,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,CA)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",SA,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[30]||(t[30]=h(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=o=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",EA,[n("div",NA,[n("div",RA,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,TA)]),n("div",DA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=o=>e.sortBy("username"))},[t[33]||(t[33]=h("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",PA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=o=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredUsers,(o,r)=>(a(),l("div",{class:R(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",AA,[T(n("input",IA,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.username]=u},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",OA,[o?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,MA)):(a(),l("span",VA,d((o?.username||"?").charAt(0).toUpperCase()),1)),n("div",LA,[n("span",qA,[n("a",{class:"repo-name",textContent:d(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,$A),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.username),title:o?.username+" on GitHub","aria-label":o?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,FA)]),n("div",_A,[o?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:o?.emails?.[0]?.email},d(o?.emails?.[0]?.email),9,UA)):f("v-if",!0),o?.dateOfEntry?(a(),l("span",BA,"Joined "+d(e.fmt?.humanTime(o?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",zA,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:o?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:d(o?.repoCount?e.fmt?.number(o.repoCount):"Not synced"),class:R({"is-unsynced":!o?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,10,HA)]),n("div",jA,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,GA)]),n("div",WA,[o?.isAdmin?(a(),l("span",KA,"Admin")):f("v-if",!0),o?.isAdmin?f("v-if",!0):(a(),l("span",YA,"\u2014"))]),n("div",JA,[n("div",XA,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",QA,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View details",-1)])],8,ZA),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,xA),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.banUser(o),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])],8,eI),[[Z,o?.status=="active"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.activateUser(o),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])],8,tI),[[Z,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(a(),l("div",nI,[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),n("div",oI,[t[52]||(t[52]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",sI,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,iI),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,rI),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[49]||(t[49]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,aI)])):f("v-if",!0),n("span",lI,[t[51]||(t[51]=n("label",null,"Per page",-1)),T((a(),l("select",dI,[...t[50]||(t[50]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var uI={class:"anonymize-landing"},cI={class:"anonymize-landing-inner"},pI={class:"form-group mt-4 mb-2"},fI={class:"source-url-label-row"},mI={key:0,class:"repo-access","aria-label":"GitHub access"},hI={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},gI=["aria-pressed","disabled"],vI=["aria-pressed","disabled"],yI={key:1,class:"connection-badge"},bI={class:"landing-url-row"},wI={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},kI=["aria-disabled"],CI={key:0,class:"text-danger",role:"alert"},SI={class:"repo-picker","aria-labelledby":"repo-picker-title"},EI={class:"repo-picker-head"},NI={class:"repo-picker-title"},RI={key:0,class:"repo-picker-count","aria-live":"polite"},TI={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},DI={class:"repo-picker-row is-skeleton","aria-hidden":"true"},PI={key:1,class:"repo-picker-list"},AI=["title"],II={class:"repo-picker-owner"},OI={class:"repo-picker-repo"},MI=["onClick","aria-label"],VI={key:2,class:"repo-picker-state"},LI={key:3,class:"repo-picker-state"},qI={key:4,class:"repo-picker-state",role:"alert"},$I={key:5,class:"repo-access-details","aria-label":"GitHub access"},FI={class:"repo-access-main"},_I={class:"repo-access-controls"},UI={key:0,class:"access-q"},BI={key:2,class:"connection-link",href:"/connections"},zI={class:"repo-access-note"},HI={key:0},jI={class:"anonymize-workspace"},GI={class:"anonymize-topbar"},WI={class:"anonymize-topbar-inner"},KI={class:"paper-crumbs"},YI={class:"here"},JI={class:"anonymize-topbar-head"},XI={class:"paper-page-title anonymize-topbar-title"},QI={key:0},ZI={key:1},xI={class:"paper-page-lede anonymize-topbar-lede"},eO={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},tO={key:0,class:"alert alert-info",role:"status"},nO={key:1,class:"alert alert-info",role:"status"},oO={key:1},sO={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},iO=["aria-selected","tabindex"],rO=["aria-selected","tabindex"],aO={class:"anonymize-split"},lO=["role","aria-labelledby"],dO={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},uO={class:"anonymize-fields"},cO={class:"paper-settings-section"},pO={class:"form-group"},fO={class:"source-url-label-row"},mO={key:0,class:"repo-access","aria-label":"GitHub access"},hO={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},gO=["aria-pressed","disabled"],vO=["aria-pressed","disabled"],yO={key:1,class:"connection-badge"},bO=["disabled"],wO={key:0,class:"source-summary"},kO={class:"invalid-feedback"},CO={class:"invalid-feedback"},SO={class:"invalid-feedback"},EO={class:"invalid-feedback"},NO={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},RO={key:0,class:"form-group"},TO=["value"],DO={key:1},PO={class:"repo-access-controls"},AO=["href"],IO={key:1,class:"repo-access-details","aria-label":"GitHub access"},OO={class:"repo-access-main"},MO={class:"repo-access-controls"},VO={key:0,class:"access-q"},LO={key:2,class:"connection-link",href:"/connections"},qO={class:"repo-access-note"},$O={key:0},FO={key:1},_O=["open"],UO={key:0,class:"repair-step"},BO=["disabled"],zO={key:0,role:"status"},HO={class:"repair-step"},jO={key:0,role:"status"},GO={key:3,class:"form-grid-2"},WO={class:"form-group"},KO={class:"input-group"},YO={class:"form-control",id:"branch",name:"branch"},JO=["textContent","value"],XO={class:"input-group-append"},QO={class:"form-group"},ZO=["disabled"],xO={class:"invalid-feedback"},e5={class:"invalid-feedback"},t5={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},n5={class:"form-check-label",for:"update"},o5={key:0,class:"paid-tag"},s5={key:0,class:"form-text text-muted",id:"update-help"},i5={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},r5={class:"paper-settings-section"},a5={class:"form-group"},l5=["disabled"],d5={class:"form-text text-muted anon-url-echo"},u5={class:"anon-url-id"},c5={class:"invalid-feedback"},p5={class:"form-group"},f5=["disabled"],m5={class:"form-text text-muted anon-url-echo"},h5={class:"anon-url-id"},g5={class:"invalid-feedback"},v5={class:"form-group"},y5=["disabled"],b5={class:"form-text text-muted anon-url-echo"},w5={class:"anon-url-id"},k5={class:"invalid-feedback"},C5={class:"form-group"},S5=["rows"],E5={class:"redaction-syntax"},N5={class:"form-text text-muted"},R5=["onClick"],T5={key:0,class:"term-hint-more"},D5={class:"invalid-feedback"},P5={class:"preserve-row"},A5={class:"preserve-row-text"},I5={class:"preserve-row-value"},O5=["disabled"],M5={class:"preserve-tree"},V5={key:0,class:"preserve-status"},L5={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},q5=["aria-expanded","aria-label","onClick"],$5={key:1,class:"preserve-caret-space"},F5=["id","aria-label","checked",".indeterminate","disabled","onChange"],_5=["for","onClick"],U5={key:2,class:"preserve-note"},B5={key:0,class:"preserve-status"},z5={key:0,class:"preserve-status"},H5=["open"],j5={class:"preserve-foot"},G5={class:"preserve-count","aria-live":"polite"},W5={class:"preserve-actions"},K5={class:"paper-settings-section"},Y5={class:"form-check"},J5={class:"form-check-input",type:"checkbox",id:"link",name:"link"},X5={class:"form-check"},Q5={class:"form-check-input",type:"checkbox",id:"image",name:"image"},Z5={class:"form-check"},x5={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},e8={class:"form-check"},t8={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},n8={class:"form-check"},o8=["disabled"],s8={key:0,class:"form-text text-muted"},i8={key:1,class:"form-text text-muted"},r8={key:0,class:"form-text text-muted"},a8={class:"form-check"},l8={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},d8={class:"form-check"},u8={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},c8={class:"form-check"},p8={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},f8={class:"form-check"},m8={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},h8={class:"form-check"},g8={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},v8={class:"form-check"},y8={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},b8={class:"form-check"},w8={class:"form-check-input",type:"checkbox",id:"title",name:"title"},k8={class:"form-check"},C8={class:"form-check-input",type:"checkbox",id:"body",name:"body"},S8={class:"form-check"},E8={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},N8={class:"form-check"},R8={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},T8={class:"form-check"},D8={class:"form-check-input",type:"checkbox",id:"username",name:"username"},P8={class:"form-check"},A8={class:"form-check-input",type:"checkbox",id:"date",name:"date"},I8={class:"form-check"},O8={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},M8={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},V8={class:"form-group conference-field"},L8=["href"],q8={class:"invalid-feedback"},$8={class:"form-text text-muted"},F8={key:0,class:"hosting-usage"},_8={key:0},U8={key:1},B8={key:2},z8={key:1,class:"hosting-limit auto-update-note",role:"status"},H8={key:2,class:"hosting-payment"},j8={key:0,class:"hosting-limit",role:"status"},G8={key:1,class:"hosting-options"},W8={class:"hosting-options-title"},K8=["value","checked","onChange"],Y8={class:"hosting-option-body"},J8={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},X8=["aria-checked","onClick"],Q8={key:0,class:"billing-toggle-save"},Z8={class:"hosting-option-price"},x8={key:2,role:"status"},e6={key:3,class:"hosting-terms"},t6={key:4,class:"hosting-terms"},n6={key:5,class:"capacity-options"},o6=["disabled"],s6={key:3,class:"hosting-subhead"},i6={class:"expiration-choices"},r6={class:"expiration-choice"},a6=["checked","disabled"],l6={key:0,class:"dated-options"},d6={key:0,class:"hosting-date"},u6=["min","max"],c6={key:0,class:"date-echo","aria-live":"polite"},p6={class:"invalid-feedback"},f6={class:"invalid-feedback"},m6={class:"hosting-property"},h6={key:1,class:"expiration-choice"},g6=["checked","disabled"],v6={key:0},y6={key:4,class:"form-text text-muted"},b6={key:5,class:"inline-hosting"},w6={key:0,role:"alert",class:"text-danger"},k6={key:1,role:"alert",class:"text-danger"},C6=["disabled"],S6={key:2,role:"status"},E6={key:3,role:"status",class:"form-text text-muted"},N6={key:4,class:"hosting-terms"},R6={key:5,class:"hosting-terms"},T6={key:6,class:"repository-pass"},D6=["disabled","onClick"],P6={class:"paper-settings-section"},A6={class:"form-group"},I6={style:{position:"relative"}},O6={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},M6={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},V6=["onClick"],L6=["src"],q6=["textContent"],$6=["textContent"],F6={class:"coauthor-list"},_6={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},U6=["src"],B6=["textContent","href"],z6=["onClick"],H6={class:"form-text text-muted"},j6=["textContent"],G6={class:"anonymize-submit-bar"},W6=["disabled"],K6=["disabled"],Y6=["disabled"],J6=["disabled"],X6=["disabled"],Q6=["disabled"],Z6={key:5,class:"submit-reason",role:"status"},x6={key:6,class:"submit-reason",role:"status"},eM={key:7,class:"checkout-return-note"},tM={key:8,class:"draft-status",role:"status"},nM={key:9,class:"draft-status"},oM=["role","aria-labelledby"],sM={class:"rp-caption"},iM=["aria-expanded"],rM=["title"],aM={class:"redact-slot","aria-hidden":"true"},lM={key:2,class:"rp-count rp-count-none"},dM=["href"],uM=["aria-pressed"],cM={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},pM={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},fM={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},mM={class:"rp-window"},hM={class:"rp-chrome","aria-hidden":"true"},gM={class:"rp-url"},vM={class:"rp-bar","aria-hidden":"true"},yM={key:0,class:"rp-bar-id"},bM={key:1,class:"rp-bar-kind"},wM={class:"leftCol-head"},kM={class:"leftCol-body"},CM={key:0,class:"rp-state rp-loading",role:"status"},SM={class:"rp-state-text"},EM={class:"rp-state rp-error",role:"alert"},NM={class:"rp-state-actions"},RM={key:1,class:"btn btn-outline-ink btn-sm",href:"/connections"},TM={key:2,class:"rp-state rp-error",role:"alert"},DM={class:"rp-state-actions"},PM={class:"rp-state rp-error",role:"alert"},AM={class:"rp-state-actions"},IM={class:"rp-state rp-error",role:"alert"},OM={class:"rp-state-actions"},MM={key:5,class:"rp-state rp-empty"},VM={key:7,class:"anonymize-preview-body"},LM={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},qM={class:"pr-title mb-1"},$M={key:0},FM=["textContent"],_M={key:0},UM={key:1},BM={key:2},zM={class:"pr-comments mt-3"},HM={class:"pr-comment"},jM={class:"pr-comment-head"},GM=["textContent"],WM={key:0,class:"pr-comment-date"},KM={key:3},YM={class:"pr-comments"},JM={class:"pr-comment"},XM={class:"pr-comment-head"},QM={key:0,class:"pr-comment-author"},ZM=["textContent"],xM=["textContent"],eV={key:0,class:"pr-comment-body"},tV={key:8,class:"anonymize-preview-body"},nV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},oV={class:"pr-title mb-1"},sV={key:0},iV=["textContent"],rV={key:0},aV={key:1,class:"pr-body"},lV={key:2,class:"paper-tabs",role:"tablist"},dV=["aria-selected","tabindex"],uV=["aria-selected","tabindex"],cV=["textContent"],pV={key:3,class:"anonymize-preview-status"},fV={class:"paper-tab-content"},mV={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},hV=["innerHTML"],gV={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},vV={class:"pr-comments"},yV={class:"pr-comment"},bV={class:"pr-comment-head"},wV={key:0,class:"pr-comment-author"},kV=["textContent"],CV=["textContent"],SV={key:0,class:"pr-comment-body"},EV={key:9,class:"rp-more"},NV=["href"],RV={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function lp(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Qe("gist-file"),r=Qe("markdown"),u=De("field"),p=De("form");return a(),l("div",{class:R(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),T(n("div",uI,[n("div",cI,[t[70]||(t[70]=Se('
My work \xA0/\xA0 New anonymization

New anonymization

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

  1. 1. Repository
  2. 2. Review and hosting
  3. 3. Review link
',2)),n("div",pI,[n("div",fI,[t[61]||(t[61]=n("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",mI,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",hI,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[0]||(t[0]=c=>e.chooseGitHubConnection("github-app"))},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,gI),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[1]||(t[1]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,vI)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",yI,d((e.detectedType==="gist"?e.githubConnections?.gistConnection==="github-app":e.githubConnection==="github-app")?"Read-only GitHub App":"Legacy OAuth"),1)):f("v-if",!0)])):f("v-if",!0)]),n("div",bI,[T(n("input",wI,null,512),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),n("button",{type:"button",class:"btn btn-primary landing-continue","aria-disabled":e.sourceUrl?.trim()?null:"true",onClick:t[2]||(t[2]=c=>e.sourceUrl?.trim()&&e.urlSelected())},"Continue",8,kI)])]),e.sourceUrlError?(a(),l("p",CI,d(e.sourceUrlError),1)):f("v-if",!0),t[71]||(t[71]=n("small",{class:"form-text landing-help",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1)),n("section",SI,[n("div",EI,[n("div",NI,[t[63]||(t[63]=n("h2",{id:"repo-picker-title"},"Your repositories",-1)),e.userReposStatus==="ready"&&e.userRepos.length>0?(a(),l("span",RI,[e.userRepoFilter&&e.filteredUserRepos().length!==e.userRepos.length?(a(),l(V,{key:0},[h(d(e.filteredUserRepos().length)+" of ",1)],64)):f("v-if",!0),h(d(e.userRepos.length)+" "+d(e.userRepos.length===1?"repository":"repositories"),1),t[62]||(t[62]=n("span",{class:"repo-picker-more"},[n("span",{class:"repo-picker-more-sep"}," \xB7 "),h("scroll for more")],-1))])):f("v-if",!0)]),e.userReposStatus==="ready"&&e.userRepos.length>0?T((a(),l("input",{key:0,type:"search",class:"form-control repo-picker-filter",placeholder:"Filter\u2026","aria-label":"Filter your repositories",autocomplete:"off","onUpdate:modelValue":t[3]||(t[3]=c=>e.userRepoFilter=c)},null,512)),[[nt,e.userRepoFilter]]):f("v-if",!0)]),e.userReposStatus==="loading"||e.userReposStatus==="idle"?(a(),l("ul",TI,[(a(),l(V,null,Q([1,2,3,4],(c,v)=>n("li",DI,[n("span",{class:"skeleton skeleton-line",style:Ae({width:34+c*9+"%"})},null,4)])),64))])):f("v-if",!0),e.userReposStatus==="ready"&&e.filteredUserRepos().length>0?(a(),l("ul",PI,[(a(!0),l(V,null,Q(e.filteredUserRepos(),(c,v)=>(a(),l("li",{key:c.id||c.fullName,class:"repo-picker-row"},[t[65]||(t[65]=n("svg",{class:"project-type-svg","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("span",{class:"repo-picker-name",title:c.fullName},[n("span",II,[h(d(c.fullName.split("/")[0]),1),t[64]||(t[64]=n("span",{class:"repo-picker-slash"},"/",-1))]),n("span",OI,d(c.fullName.split("/").slice(1).join("/")),1)],8,AI),n("button",{type:"button",class:"btn btn-outline-ink btn-sm repo-picker-select",onClick:g=>e.selectUserRepo(c),"aria-label":"Select "+c.fullName},"Select",8,MI)]))),128))])):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length>0&&e.filteredUserRepos().length===0?(a(),l("p",VI,"No repository matches \u201C"+d(e.userRepoFilter)+"\u201D.",1)):f("v-if",!0),e.userReposStatus==="ready"&&e.userRepos.length===0?(a(),l("p",LI,"No repositories found for your GitHub account. Paste a URL above, or grant access below.")):f("v-if",!0),e.userReposStatus==="error"?(a(),l("p",qI,[t[66]||(t[66]=h("Your repositories could not be loaded. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[4]||(t[4]=c=>e.loadUserRepos(!0))},"Try again")])):f("v-if",!0),!e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(a(),l("aside",$I,[n("div",FI,[n("div",_I,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(a(),l("span",UI,"Repository not listed?")):f("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=c=>e.grantGitHubAccess())},[...t[67]||(t[67]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(a(),l("a",BI,[...t[68]||(t[68]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0)])]),n("div",zI,[e.error&&e.detectedType!=="gist"&&e.githubConnection==="github-app"?(a(),l("span",HI,"Signing in does not grant access to private repositories. Use Manage GitHub access to select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),t[69]||(t[69]=n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Anonymized content is public, even from private repositories.")],-1))])])):f("v-if",!0)])])],512),[[Z,!e.workspaceOpen&&!e.isUpdate]]),f(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),T(n("div",jI,[n("header",GI,[n("div",WI,[n("div",KI,[t[72]||(t[72]=n("a",{href:"/dashboard"},"My work",-1)),t[73]||(t[73]=h(" \xA0/\xA0 ",-1)),n("span",YI,d(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),n("div",JI,[n("h1",XI,[e.isUpdate?f("v-if",!0):(a(),l("span",QI,"New anonymization")),e.isUpdate?(a(),l("span",ZI,"Edit anonymization")):f("v-if",!0)]),T(n("span",{class:R(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},d(e.detectedType==="repo"?"Repository":e.detectedType==="pr"?"Pull request":"Gist"),3),[[Z,e.detectedType]])]),n("p",xI,d(e.isUpdate?"Changes apply to the existing anonymous link; reviewers keep the same URL.":"Choose the terms to redact, what reviewers see, and when the link expires."),1),e.isUpdate?f("v-if",!0):(a(),l("ol",eO,[...t[74]||(t[74]=[n("li",null,"1. Repository",-1),n("li",{"aria-current":"step"},"2. Review and hosting",-1),n("li",null,"3. Review link",-1)])]))])]),e.detectedType==="gist"&&e.gistAppRequired?(a(),l("aside",tO,[t[75]||(t[75]=n("p",null,"Reconnect your GitHub account to read this gist. Your draft will be restored when you return.",-1)),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=c=>e.connectGistApp())},"Connect GitHub App to access gists")])):f("v-if",!0),e.detectedType==="gist"&&e.gistOAuthRequired?(a(),l("aside",nO,[t[76]||(t[76]=n("p",null,"Connect GitHub OAuth to access gists. Your account and existing anonymizations stay the same, and your draft will be restored when you return.",-1)),t[77]||(t[77]=n("p",null,"GitHub's legacy OAuth connection includes write access to private repositories.",-1)),e.githubConnections?.oauthEnabled?(a(),l("button",{key:0,type:"button",class:"btn btn-ink",onClick:t[7]||(t[7]=c=>e.connectGistOAuth())},"Connect GitHub OAuth to access gists")):(a(),l("p",oO,"GitHub OAuth is currently unavailable. Please try again later."))])):f("v-if",!0),n("nav",sO,[n("button",{id:"workspace-settings-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="settings","aria-controls":"workspace-settings",tabindex:e.mobilePane==="settings"?0:-1,onKeydown:t[8]||(t[8]=c=>e.previewTabKeydown(c)),onClick:t[9]||(t[9]=c=>e.selectMobilePane("settings"))},[...t[78]||(t[78]=[n("span",{class:"tab-label"},"Settings",-1)])],40,iO),n("button",{id:"workspace-preview-tab",role:"tab",type:"button","aria-selected":e.mobilePane==="preview","aria-controls":"workspace-preview",tabindex:e.mobilePane==="preview"?0:-1,onKeydown:t[10]||(t[10]=c=>e.previewTabKeydown(c)),onClick:t[11]||(t[11]=c=>e.selectMobilePane("preview"))},[...t[79]||(t[79]=[n("span",{class:"tab-label"},"Reviewer preview",-1)])],40,rO)]),n("div",aO,[f(" Form column (left) "),n("div",{id:"workspace-settings",role:e.mobileWorkspace?"tabpanel":null,"aria-labelledby":e.mobileWorkspace?"workspace-settings-tab":null,class:"anonymize-form-col overflow-auto"},[T((a(),l("form",dO,[n("div",uO,[n("section",cO,[t[99]||(t[99]=n("h2",{class:"paper-section-eyebrow"},"Source & access",-1)),n("div",pO,[n("div",fO,[t[81]||(t[81]=n("label",{class:"paper-field-label",for:"sourceUrl"},"Source URL",-1)),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected&&e.githubConnections.oauthConnected?(a(),l("aside",mO,[!e.isUpdate&&e.detectedType!=="gist"?(a(),l("div",hO,[n("button",{type:"button","aria-pressed":e.githubConnection==="github-app",disabled:e.githubConnection==="github-app",onClick:t[12]||(t[12]=c=>e.chooseGitHubConnection("github-app"))},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(),n("span",{class:"sr-only"},"Read-only ",-1),h("GitHub App",-1)])],8,gO),n("button",{type:"button","aria-pressed":e.githubConnection==="oauth",disabled:e.githubConnection==="oauth",onClick:t[13]||(t[13]=c=>e.chooseGitHubConnection("oauth"))},"Legacy OAuth",8,vO)])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"?(a(),l("span",yO,d((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)]),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",onblur:"this.scrollLeft=0",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,bO),[[u,{state:e.viewState,set:c=>{e.sourceUrl=c},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),e.sourceSummary()&&!e.anonymize?.sourceUrl?.invalid?(a(),l("p",wO,[t[82]||(t[82]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check"})],-1)),h(d(e.sourceSummary()),1)])):f("v-if",!0),T(n("div",kO," Please provide a valid GitHub URL. ",512),[[Z,e.anonymize?.sourceUrl?.errors?.github]]),T(n("div",CO," Not accessible. The organization may restrict access. ",512),[[Z,e.anonymize?.sourceUrl?.errors?.access]]),T(n("div",SO," Does not exist or is not accessible. ",512),[[Z,e.anonymize?.sourceUrl?.errors?.missing]]),T(n("div",EO," Already anonymized. ",512),[[Z,e.anonymize?.sourceUrl?.errors?.used]])]),!e.isUpdate&&e.previousConfigurations.length?(a(),l("aside",NO,[t[84]||(t[84]=n("p",{role:"status"},"You have already anonymized this repository. Use the existing configuration to keep its anonymous link and avoid creating another repository.",-1)),e.previousConfigurations.length>1?(a(),l("div",RO,[t[83]||(t[83]=n("label",{class:"paper-field-label",for:"previousConfiguration"},"Previous anonymization",-1)),T(n("select",{id:"previousConfiguration",class:"form-control","onUpdate:modelValue":t[14]||(t[14]=c=>e.previousConfigurationId=c)},[(a(!0),l(V,null,Q(e.previousConfigurations,c=>(a(),l("option",{key:c.repoId,value:c.repoId},d(c.repoId),9,TO))),128))],512),[[Rt,e.previousConfigurationId]])])):(a(),l("p",DO,d(e.previousConfigurationId),1)),t[85]||(t[85]=n("p",null,"You can review and update its settings before saving.",-1)),n("div",PO,[n("a",{class:"btn btn-ink",href:e.existingConfigurationUrl()},"Use existing configuration",8,AO),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[15]||(t[15]=c=>e.previousConfigurations=[])},"Create a separate one")])])):f("v-if",!0),e.sourceUrl&&e.githubConnections?.appEnabled&&e.githubConnections.appConnected?(a(),l("aside",IO,[n("div",OO,[n("div",MO,[e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(a(),l("span",VO,"Repository not listed?")):f("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(a(),l("button",{key:1,type:"button",class:"btn btn-outline-ink",onClick:t[16]||(t[16]=c=>e.grantGitHubAccess())},[...t[86]||(t[86]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),e.isUpdate||e.detectedType==="gist"||e.githubConnection==="oauth"?(a(),l("a",LO,[...t[87]||(t[87]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0)])]),n("div",qO,[e.error&&e.detectedType!=="gist"&&e.githubConnection==="github-app"?(a(),l("span",$O,"Signing in does not grant access to private repositories. Use Manage GitHub access to select this repository, then return here. Organization access may require administrator approval.")):f("v-if",!0),e.detectedType!=="gist"&&e.githubConnection!=="oauth"&&!e.details?(a(),l("span",FO,"Select repositories on GitHub, then return here.")):f("v-if",!0),t[88]||(t[88]=n("span",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Selected content will be published, including content from private repositories.")],-1))])])):f("v-if",!0),e.isUpdate&&e.detectedType==="repo"&&e.role==="owner"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("details",{key:2,class:"repair-disclosure",open:!!(e.error||e.accessRepairMessage||e.reconnectRepositoryId)},[t[92]||(t[92]=n("summary",null,"Connection problems?",-1)),e.accessRepairAllowed&&e.githubConnections?.appEnabled&&e.githubConnection==="github-app"&&e.sourceUrl==="https://github.com/"+e._originalFullName?(a(),l("div",UO,[t[90]||(t[90]=n("p",null,"If this repository became private or its App installation changed, repair its access here. This keeps the same anonymous URL and published commit.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.repairingGitHubAccess,onClick:t[17]||(t[17]=c=>e.repairGitHubAccess())},"Repair GitHub access",8,BO),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[18]||(t[18]=c=>e.grantGitHubAccess())},[...t[89]||(t[89]=[h("Manage GitHub access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])]),e.accessRepairMessage?(a(),l("p",zO,d(e.accessRepairMessage),1)):f("v-if",!0)])):f("v-if",!0),n("div",HO,[t[91]||(t[91]=n("p",null,"If you deleted and recreated this repository, reconnect it before choosing a branch.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[19]||(t[19]=c=>e.reconnectSource())},"Reconnect source repository"),e.reconnectRepositoryId?(a(),l("p",jO,"Source reloaded. Review the branch, commit, and anonymization preview, then save to replace the published snapshot.")):f("v-if",!0)])],8,_O)):f("v-if",!0),e.detectedType==="repo"?(a(),l("div",GO,[n("div",WO,[t[94]||(t[94]=n("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),n("div",KO,[T((a(),l("select",YO,[(a(!0),l(V,null,Q(e.branches,(c,v)=>(a(),l("option",{textContent:d(c?.name),value:c?.name},null,8,JO))),256))])),[[u,{state:e.viewState,set:c=>{e.source.branch=c},value:e.source?.branch,form:"anonymize",options:{}}]]),n("div",XO,[n("button",{class:"btn btn-icon refresh-branches",type:"button",title:"Refresh branches",onClick:t[20]||(t[20]=c=>e.getBranches(!0)),"aria-label":"Refresh branches"},[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1)])])])])]),n("div",QO,[t[95]||(t[95]=n("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),T(n("input",{class:R(["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,ZO),[[u,{state:e.viewState,set:c=>{e.source.commit=c},value:e.source?.commit,form:"anonymize",options:{}}]]),T(n("div",xO," The commit SHA is not valid. ",512),[[Z,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),T(n("div",e5," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[Z,e.anonymize?.commit?.errors?.exists]])])])):f("v-if",!0),T(n("div",{class:R(["form-check auto-update-check",{"is-paid":!e.liveUpdatesIncluded()}])},[T(n("input",t5,null,512),[[u,{state:e.viewState,set:c=>{e.options.update=c},value:e.options?.update,form:"anonymize",options:{}}]]),n("label",n5,[t[96]||(t[96]=h("Auto-update from GitHub",-1)),e.liveUpdatesIncluded()?f("v-if",!0):(a(),l("span",o5,"Paid"))]),e.liveUpdatesIncluded()?(a(),l("small",s5,"Follows the latest version, at most once an hour.")):(a(),l("small",i5,[t[97]||(t[97]=h("Needs Live updates",-1)),e.liveUpdatesPrice()?(a(),l(V,{key:0},[h(" \xB7 "+d(e.liveUpdatesPrice()),1)],64)):f("v-if",!0),t[98]||(t[98]=h(", a Paper pack or an author subscription. ",-1)),n("a",{href:"#repository-hosting",onClick:t[21]||(t[21]=ae(c=>e.showHostingOptions(),["prevent"]))},"Hosting options")]))],2),[[Z,e.detectedType]])]),T(n("section",r5,[t[133]||(t[133]=n("h2",{class:"paper-section-eyebrow"},"Anonymization",-1)),T(n("div",a5,[t[104]||(t[104]=n("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,l5),[[u,{state:e.viewState,set:c=>{e.repoId=c},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",d5,[t[100]||(t[100]=h("anonymous.4open.science/",-1)),t[101]||(t[101]=n("wbr",null,null,-1)),t[102]||(t[102]=h("r/",-1)),t[103]||(t[103]=n("wbr",null,null,-1)),n("span",u5,d(e.repoId),1)]),T(n("div",c5,"ID can only contain letters and numbers.",512),[[Z,e.anonymize?.repoId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},d(e.repoId)+" is already used.",513),[[Z,e.anonymize?.repoId?.errors?.used]])],512),[[Z,e.detectedType==="repo"]]),T(n("div",p5,[t[109]||(t[109]=n("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,f5),[[u,{state:e.viewState,set:c=>{e.pullRequestId=c},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",m5,[t[105]||(t[105]=h("anonymous.4open.science/",-1)),t[106]||(t[106]=n("wbr",null,null,-1)),t[107]||(t[107]=h("pr/",-1)),t[108]||(t[108]=n("wbr",null,null,-1)),n("span",h5,d(e.pullRequestId),1)]),T(n("div",g5,"ID can only contain letters and numbers.",512),[[Z,e.anonymize?.pullRequestId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},d(e.pullRequestId)+" is already used.",513),[[Z,e.anonymize?.pullRequestId?.errors?.used]])],512),[[Z,e.detectedType==="pr"]]),T(n("div",v5,[t[114]||(t[114]=n("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,y5),[[u,{state:e.viewState,set:c=>{e.gistId=c},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),n("small",b5,[t[110]||(t[110]=h("anonymous.4open.science/",-1)),t[111]||(t[111]=n("wbr",null,null,-1)),t[112]||(t[112]=h("gist/",-1)),t[113]||(t[113]=n("wbr",null,null,-1)),n("span",w5,d(e.gistId),1)]),T(n("div",k5,"ID can only contain letters and numbers.",512),[[Z,e.anonymize?.gistId?.errors?.format]]),T(n("div",{class:"invalid-feedback"},d(e.gistId)+" is already used.",513),[[Z,e.anonymize?.gistId?.errors?.used]])],512),[[Z,e.detectedType==="gist"]]),n("div",C5,[t[125]||(t[125]=n("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),T(n("textarea",{class:R(["form-control terms-input",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:Math.min(14,Math.max(4,String(e.terms||"").split(` +`).filter(be=>be),source:{repositoryFullName:`${z.owner}/${z.repo}`,pullRequestId:z.pullRequestId},options:e.options,conference:e.conference};Eo();let ce=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(ce,Y,{headers:{"Content-Type":"application/json"}}).then(()=>{N.clear(),window.location.href="/pr/"+e.pullRequestId},be=>{be.data&&(r("ERRORS."+be.data.error).then(Je=>{e.error=Je},console.error),No(be.data.error))}).finally(()=>{M.disabled=!1})},e.watch("conference",()=>{sf()}),e.termHints=[],e.matchTermAsWritten=C=>{e.terms=Ic(e.terms,C)},e.watch("options.preserveFiles",()=>{e.detectedType==="repo"&&Yt()}),e.watch("terms",()=>{e.termHints=Ac(e.terms),e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.image",()=>{e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("options.link",()=>{e.detectedType==="repo"&&ko(),e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()}),e.watch("details",()=>{e.detectedType==="pr"&&An(),e.detectedType==="gist"&&In()},!0)},Ka=function(e,t,s,i,o,r){ha(e);let u=kt();Mc();let p=Bt(),c=0,v=null,g=null;e.fileLoadingSlow=!1,e.fileReceivedBytes=0;function y(){v&&(v.resolve(),v=null),g&&(u.timeout.cancel(g),g=null)}let m=!1;e.on("dispose",()=>{m=!0,c++,y(),b&&b.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,p(document,"click",I=>{e.symbolsOpen&&!I.target.closest?.(".symbols")&&(e.symbolsOpen=!1),e.moreOpen&&!I.target.closest?.(".tb-more")&&(e.moreOpen=!1),e.tocOpen&&!I.target.closest?.(".tb-toc-m")&&(e.tocOpen=!1),e.gotoOpen&&I.target.isConnected&&!I.target.closest?.(".goto-pop, .btn-goto, .tb-more")&&(e.gotoOpen=!1),e.accountOpen&&!I.target.closest?.(".acct")&&(e.accountOpen=!1),e.helpOpen&&!I.target.closest?.(".vb-help")&&(e.helpOpen=!1)}),p(document,"keydown",I=>{I.key==="Escape"&&(e.symbolsOpen=!1,e.moreOpen=!1,e.tocOpen=!1,e.gotoOpen=!1,e.accountOpen=!1,e.helpOpen=!1),(I.ctrlKey||I.metaKey)&&!I.altKey&&I.key&&I.key.toLowerCase()==="f"&&e.type==="html"&&window.document.querySelector(".reading-layout")&&(I.preventDefault(),e.toggleMdFind(!0))}),p(document,"keydown",function(I){if((I.metaKey||I.ctrlKey)&&I.key==="k"){I.preventDefault();var L=document.querySelector(".tree-search-input");L&&(L.focus(),L.select())}});var b=null;e.onFileSearchChange=function(){b&&(b.resolve(),b=null);let I=e.fileSearchQuery;if(!I||I.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let L=r.defer();b=L,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(I)}`,{timeout:L.promise}).then(function(k){if(!(m||b!==L)){b=null,e.fileSearchLoading=!1;var q={};e.files.forEach(function(Be){q[(Be.path||"")+"/"+Be.name]=!0});for(var W=[],H={},J=0;J0&&e.files.push.apply(e.files,W);for(var We=[],ze=0;ze0&&e.files.push.apply(e.files,We),e.fileSearchResults=k.data}},function(){!m&&b===L&&(b=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})},e.on("routeUpdate",function(I,L){if(e.repoId!=i.repoId)return B();if((i.path||"")!=e.filePath){window.matchMedia?.("(max-width: 767px)").matches&&(e.sidebarCollapsed=!0),e.filePath=i.path||"",e.paths=e.filePath.split("/").filter(k=>k&&k.trim().length>0),_();for(let k=0;k0?e.paths.slice(0,k).join("/"):"";e.files.some(H=>H.path===q)||e.getFiles(q)}}});function E(){if(e.paths[0]!="")return;let I=["readme.md","readme.txt","readme.org","readme.1st","readme"],L={};for(let q of e.files)q.name.toLowerCase().indexOf("readme")>-1&&(L[q.name.toLowerCase()]=q.name);let k=null;for(let q of I)if(L[q]){k=q;break}if(!k&&Object.keys(L).length>0&&(k=Object.keys(L)[0]),k){let q=s.url();q[q.length-1]!="/"&&(q+="/"),s.url(q+encodePathForUrl(L[k]))}}e.fileCounts=null;let S=0,N=new Set,w=!1;e.getFiles=function(I,L=!1){let k=e.repoId,q=S;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(I)}&v=${e.options.lastUpdateDate}`).then(function(W){if(m||k!==e.repoId||q!==S)return[];let H=I||"";return e.files=e.files.filter(J=>J.path!==H),e.files.push(...W.data),e.loadedFolders={...e.loadedFolders,[H]:!0},D(H,q),W.data},function(W){if(m||k!==e.repoId||q!==S)return[];L||(e.type="error",e.content=ar(W),e.files=[])})};function D(I,L){if(w||N.has(I))return;N.add(I);let k=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts?path=${encodeURIComponent(I)}`).then(function(q){m||k!==e.repoId||L!==S||(e.fileCounts={...e.fileCounts,...q.data})},function(){m||k!==e.repoId||L!==S||(w=!0)})}function O(){return e.files.filter(I=>I.name==e.paths[e.paths.length-1]&&I.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var F=null;e.on("dispose",function(){F&&u.interval.cancel(F)});function j(I){if(m)return;let L=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(k=>{if(!(m||L!==e.repoId)){if(e.options=k.data,e.options.url){window.location=e.options.url;return}I&&I(k.data)}},k=>{if(!(m||L!==e.repoId)){var q=k.data||{};if(q.error==="rate_limited"&&q.resetAt){let H=function(){var J=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(J<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,F&&(u.interval.cancel(F),F=null),j(I);else{var ne=Math.floor(J/60),G=J%60;e.rateLimitCountdown=ne>0?ne+"m "+G+"s":G+"s"}};var W=H;e.type="rate_limited",e.rateLimitResetAt=q.resetAt,F&&u.interval.cancel(F),H(),F=u.interval(H,1e3)}else q.error==="repository_not_ready"?(e.type="loading",u.timeout(function(){j(I)},3e3)):(e.type="error",e.content=ar(k))}})}function oe(I,L){let k=c;if(!I){e.type="error",e.content="no_file_selected";return}let q=e.type;(q==="code"||q==="text")&&ni().catch(()=>{}),e.type="loading",e.content="loading",e.fileLoadingSlow=!1,e.fileReceivedBytes=0;let W=r.defer();v=W,g=u.timeout(()=>{!m&&k===c&&e.type==="loading"&&(e.fileLoadingSlow=!0)},1500);let H=L&&L.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(I)}?v=`+H,{timeout:W.promise,onDownloadProgress:J=>{!m&&k===c&&(e.fileReceivedBytes=J)},transformResponse:J=>J}).then(J=>{m||k!==c||(y(),e.renderFileContent(J.data,q,s.url()+"/../",J.headers("content-type")))},J=>{m||k!==c||(y(),e.type="error",e.content=ar(J))})}function _(){c++,y(),e.content="",e.file=O();let I="0";e.file&&e.file.sha&&(I=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${I}`;let L=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);if(e.fileBaseUrl=`/api/repo/${e.repoId}/file/${L?encodePathForUrl(L):""}`,e.showSource=!1,e.imageSize="",e.allowScripts=!1,e.prepareFile(e.filePath),e.type=="pdf"){e.content="pdf";return}if(e.type=="media"||e.type=="audio"){e.content=e.type;return}oe(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=()=>B();function B(){c++,y(),e.files=[],e.loadedFolders={},e.content=null,e.fileCounts=null,S++,N=new Set,w=!1,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=i.repoId,e.type="loading",e.filePath=i.path||"",e.paths=e.filePath.split("/");let I=e.repoId;j(function(L){if(e.filePath){_();let q=[...new Set(e.paths.map((W,H)=>e.paths.slice(0,H).join("/")))];r.all(q.map(W=>e.getFiles(W,!0)));return}var k=r.resolve();for(let q=0;q0?e.paths.slice(0,q).join("/"):"";k=k.then(function(){return e.getFiles(W)}).then(function(){if(e.type==="error")return r.reject("error")})}k.then(function(){m||I!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(E(),_()))})})}B()},zc=function(e,t,s,i,o){async function r(c){t.get(`/api/pr/${e.pullRequestId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/pr/${e.pullRequestId}/content`).then(v=>{e.details=v.data,e.tabState={active:v.data.diff?"diff":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.pullRequestId=i.pullRequestId,e.type="loading",r(c=>{u()})}p()},Hc=function(e,t,s,i,o){async function r(c){t.get(`/api/gist/${e.gistId}/options`).then(v=>{if(e.options=v.data,e.options.url){window.location=e.options.url;return}c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}async function u(c){t.get(`/api/gist/${e.gistId}/content`).then(v=>{e.details=v.data;let g=v.data&&v.data.files&&v.data.files.length;e.tabState={active:g?"files":"comments"},c&&c(v.data)},v=>{e.type="error",e.content=v.data.error})}function p(){e.gistId=i.gistId,e.type="loading",r(()=>{u()})}p()},jc=function(e,t,s){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conferences=[],e.loading=!0,e.error="",e.search="";let i="conferences.filterPrefs",o={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},r=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},o.filters.status,r.filters&&r.filters.status||{})},e.orderBy=r.orderBy||o.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(!u.removing&&confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){u.removing=!0;let p=st({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,e.loadConferences()}).catch(()=>{p.title="Unable to remove conference",p.body="Please try again. The conference has not been removed."}).finally(()=>{u.removing=!1})}},e.loadConferences=()=>(e.loading=!0,e.error="",t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{e.error="Unable to load your conferences. Please try again."}).finally(()=>{e.loading=!1})),e.loadConferences(),e.conferenceFilter=u=>{if(e.filters.status[u.status]==!1)return!1;let p=e.search.trim().toLowerCase();return!!(!p||(u.name||"").toLowerCase().includes(p)||(u.conferenceID||"").toLowerCase().includes(p))}},Ya=function(e,t,s,i){e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/");let o=()=>{for(let[m,b,E]of[["startDate","Starts","startDate"],["endDate","Ends","endDate"]]){let S=document.getElementById(m);if(!S)continue;let N=S.parentElement.querySelector(":scope > .date-echo");N||(N=document.createElement("p"),N.className="date-echo",N.setAttribute("aria-live","polite"),S.insertAdjacentElement("afterend",N));let w=ya(e.options?.[E]);N.textContent=w?b+" "+w:"",N.hidden=!w}};typeof e.watchGroup=="function"&&e.watchGroup(["options.startDate","options.endDate"],()=>je(o));let r=(m=20)=>{let b=document.querySelector("input#name.form-control"),E=document.querySelector("input#conferenceID.form-control");E&&(E.placeholder="e.g. ICSE27"),b?b.placeholder="e.g. ICSE 2027":m>0&&setTimeout(()=>r(m-1),50)};setTimeout(()=>r(),0),e.plans=[],e.plansLoaded=!1,e.conferenceBilling=null,Wi(t).then(m=>{e.conferenceBilling=m.data}).catch(()=>{}),e.conferenceTiers=()=>e.plans.filter(m=>m.id!=="free_conference").map(m=>{let b=(e.conferenceBilling?.plans||[]).find(E=>E.id===m.id)||{};return{...m,storage:m.storagePerRepo,...b,id:m.id,name:m.name}}),e.conferenceAudience=m=>({conference_workshop:"Workshops and small venues",conference:"A typical conference",conference_large:"Large or multi-track venues"})[m]||"",e.conferencePlanName=m=>Gc(m),e.conferenceAmount=(m,b=m?.amount)=>new Intl.NumberFormat(void 0,{style:"currency",currency:m?.currency||"eur",minimumFractionDigits:b%100?2:0,maximumFractionDigits:2}).format(b/100),e.conferenceBytes=m=>{let b=Number(m)||0,E=Math.min(4,Math.floor(Math.log2(Math.max(b,1))/10));return`${new Intl.NumberFormat(void 0,{maximumFractionDigits:1}).format(b/1024**E)} ${["B","KB","MB","GB","TB"][E]}`},e.editionMode=!1,e.saving=!1,e.error="";function u(){return t.get("/api/conferences/"+i.conferenceId).then(m=>{e.options={...e.options,...m.data,billing:m.data.billing||{}},e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}i.conferenceId&&(e.editionMode=!0,u());function p(){t.get("/api/conferences/plans").then(m=>{e.plans=m.data,e.plansLoaded=!0,!e.editionMode&&e.plans.length&&!e.plans.some(b=>b.id==e.options.plan.planID)&&(e.options.plan.planID=(e.plans.find(b=>b.id==="conference")||e.plans[0]).id),e.plan=e.plans.filter(b=>b.id==e.options.plan.planID)[0]})}p();let c=new Date;c.setDate(1),c.setMonth(c.getMonth()+1);let v=new Date(c);v.setTime(c.getTime()+179*864e5),e.options={billing:{},startDate:c,endDate:v,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(m=>m.id==e.options.plan.planID)[0]});function g(){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 y(m){switch(m){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 m=JSON.parse(JSON.stringify(e.options)),b=st({title:`Creating ${m.name}...`,date:new Date,body:`The conference ${m.conferenceID} is in creation.`});e.editionMode&&(b.title=`Updating ${m.name}...`,b.body=`The conference '${m.conferenceID}' is updating.`),e.addToast(b),g(),t.post("/api/conferences/"+(e.editionMode?m.conferenceID:""),m).then(()=>{e.editionMode?(b.title=`${m.name} updated`,b.body=`The conference '${m.conferenceID}' is updated.`):(b.title=`${m.name} created`,b.body=`The conference '${m.conferenceID}' is created.`),s.url("/conference/"+m.conferenceID)},E=>{y(E.data?.error),e.error="Unable to save the conference. Please correct any highlighted fields and try again.",e.removeToast(b)}).finally(()=>{e.saving=!1})}};function Gc(e){return{free_conference:"Free (no longer offered to new conferences)",conference_workshop:"Workshop package",conference:"Conference package",conference_large:"Large conference package",premium_conference:"Premium (legacy)",unlimited_conference:"Unlimited (legacy)"}[e]||e||"Free"}var Wc=function(e,t,s,i){Ki(e,t,()=>p(),{confirmedMessage:"Payment status checked. Your conference is ready for submissions once payment is confirmed."}),e.conferencePlanName=c=>Gc(c),e.watch("user.status",()=>{e.user==null&&s.url("/")}),e.user==null&&s.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,preparing:!0,error:!0,expired:!0,removed:!1}},e.orderBy="-anonymizeDate";let o=Ji,r=["ready","preparing","error","expired","removed"],u={current:c=>c!=="removed",attention:c=>c==="error",removed:c=>c==="removed"};e.confView=()=>Object.keys(u).find(c=>r.every(v=>u[c](v)===(e.filters.status[v]!==!1)))||"custom",e.setConfView=c=>{r.forEach(v=>{e.filters.status[v]=(u[c]||u.current)(v)})},e.confCount=c=>(e.conference?.repositories||[]).filter(v=>u[c](o(v.status))).length,e.copyingId=null,e.copyRepoLink=async c=>{if(!c?.repoId||e.copyingId)return;let v=new URL("/r/"+c.repoId+"/",window.location.origin).href;e.copyingId=c.repoId;try{await Wa(v),e.addToast({title:"Link copied",body:"The anonymous link is ready to share."})}catch{e.addToast({title:"Copy this anonymous link",body:v})}finally{e.copyingId=null}},e.extendingId=null,e.extendRepo=c=>{!c?.repoId||e.extendingId||(e.extendingId=c.repoId,t.post("/api/repo/"+c.repoId+"/extend").then(v=>{let g=v?.data?.expirationDate?` until ${new Date(v.data.expirationDate).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}`:"";e.addToast({title:`${c.repoId} is extended.`,body:`Reviewers can open it again${g}.`}),c.status="ready",v?.data?.expirationDate&&(c.options={...c.options||{},expirationDate:v.data.expirationDate}),e.extendingId=null},v=>{let g=v?.status||v?.data?.status;e.addToast({title:`Couldn't extend ${c.repoId}.`,body:g===401||g===403?"Only the repository's authors can extend this link. Ask them to extend it from My work.":"Try again in a moment."}),e.extendingId=null}))},e.repoFiler=c=>{if(e.filters.status[o(c.status)]==!1)return!1;let v=e.search.trim().toLowerCase();return!!(!v||(c.source?.fullName||"").toLowerCase().includes(v)||(c.repoId||"").toLowerCase().includes(v))};function p(){t.get("/api/conferences/"+i.conferenceId).then(c=>{e.conference=c.data})}p()},Kc=function(e,t){e.notificationEmail="",e.emailSaved=!1,e.saveNotificationEmail=async()=>{e.busy=!0,e.emailSaved=!1,e.connectionError="";try{let s=await t.post("/github/connections/email",{email:e.notificationEmail},{headers:{"X-CSRF-Token":e.connections.csrf}});e.notificationEmail=s.data.notificationEmail,e.user&&(e.user.notificationEmail=s.data.notificationEmail),e.emailSaved=!0}catch(s){e.connectionError=s.data?.error||"Unable to save email address."}finally{e.busy=!1}},e.connections=null,e.connectionError="",e.busy=!1,e.loadConnections=()=>t.get("/github/connections").then(s=>{e.connections=s.data,e.notificationEmail=s.data.notificationEmail||""}).catch(s=>{e.connectionError=s.data?.error||"Unable to load connections."}),e.changeConnection=async(s,i,o)=>{e.busy=!0,e.connectionError="";try{let r=await t.post("/github/connections/migrate",{type:s.type,id:s.id,connection:i,preview:o},{headers:{"X-CSRF-Token":e.connections.csrf}});o?s.eligible=r.data.eligible:await e.loadConnections()}catch(r){e.connectionError=r.data?.error||"Unable to change connection."}finally{e.busy=!1}},e.disconnectOAuth=async()=>{e.busy=!0;try{await t.post("/github/connections/disconnect-oauth",{},{headers:{"X-CSRF-Token":e.connections.csrf}}),await e.loadConnections()}catch(s){e.connectionError=s.data?.error||"Unable to disconnect OAuth."}finally{e.busy=!1}},e.loadConnections()},Yc=function(e,t){e.accountRecovery=!1,t.get("/github/account-recovery").then(s=>{e.accountRecovery=s.data.required}).catch(()=>{})};typeof document<"u"&&document.addEventListener("scroll",e=>{let t=e.target;!t||!t.classList||!t.classList.contains("repo-picker-list")||t.classList.toggle("is-end",t.scrollTop+t.clientHeight>=t.scrollHeight-2)},!0);var Jc=[{path:"/review-link",template:"partials/reviewConsent.htm",title:"Artifact consent \u2013 Anonymous GitHub",setup:(e,t)=>sl(e,t)},{path:"/connections",template:"partials/connections.htm",title:"GitHub connections \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Kc(e,t.http)},{path:"/signin",template:"partials/signin.htm",title:"Sign in \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yc(e,t.http)},{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Fc(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Uc(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>dr(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bc(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>jc(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ya(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ya(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Wc(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>qc(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>$c(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>_c(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>zc(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Hc(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Ka(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Ka(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Gu(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Fu(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Uu(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bu(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>zu(e,t.http,t.location)},{path:"/admin/emails",template:"partials/admin/emails.htm",title:"Admin \xB7 Emails \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yu(e,t.http,t.location)},{path:"/admin/billing",template:"partials/admin/billing.htm",title:"Admin \xB7 Billing \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ku(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Hu(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ju(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Cv={class:"container paper-page admin-page overview-page emails-page"},Sv={class:"email-overview-toolbar"},Ev={class:"seg-filter",role:"group","aria-label":"History period"},Nv=["aria-pressed","onClick"],Rv={class:"email-refresh"},Tv={key:0},Dv=["disabled"],Pv={key:0,class:"email-state email-state-error",role:"alert"},Av=["aria-busy"],Iv={class:"ov-kpi-card"},Ov={class:"ov-kpi-value"},Mv={class:"ov-kpi-card"},Vv={class:"ov-kpi-value"},Lv={class:"ov-kpi-card"},qv={class:"ov-kpi-card"},$v={class:"ov-kpi-value"},_v={class:"ov-kpi-sub"},Fv={key:1,class:"ov-chart-card email-chart","aria-label":"Email activity by day"},Uv={class:"ov-chart-head"},Bv={class:"ov-chart-title"},zv={class:"email-muted"},Hv={class:"email-chart-plot"},jv={class:"email-axis"},Gv={class:"email-bars"},Wv=["aria-label","title"],Kv={class:"email-chart-dates"},Yv={key:0},Jv={class:"email-chart-data"},Xv={class:"email-data-scroll"},Qv={scope:"row"},Zv={"aria-labelledby":"email-history-title",class:"email-history"},xv={class:"email-section-head"},ey={class:"email-muted"},ty={class:"email-search"},ny={class:"email-status-tabs",role:"group","aria-label":"Outcome filter"},oy=["aria-pressed","onClick"],sy={class:"sr-only",role:"status","aria-live":"polite","aria-atomic":"true"},iy={key:0,class:"email-state email-state-error",role:"alert"},ry=["disabled"],ay={key:1,class:"email-state"},ly={key:2,class:"email-state"},dy={key:3,class:"email-footer email-pager-top"},uy=["disabled"],cy=["disabled"],py=["aria-busy"],fy={class:"email-table",role:"table"},my={role:"rowgroup"},hy={class:"email-recipient",role:"cell"},gy=["title"],vy={class:"email-result",role:"cell"},yy={key:0,class:"email-http"},by={class:"email-type",role:"cell"},wy={class:"email-attempted",role:"cell"},ky=["datetime","title"],Cy={class:"email-expand",role:"cell"},Sy=["aria-expanded","aria-controls","aria-label","onClick"],Ey={"aria-hidden":"true"},Ny={key:0,class:"email-expanded",role:"row"},Ry={colspan:"5",role:"cell"},Ty=["id","aria-label"],Dy={class:"email-detail-heading"},Py={class:"email-explanation"},Ay={class:"email-detail-grid"},Iy=["onClick"],Oy=["onClick"],My=["onClick"],Vy=["onClick"],Ly={key:0,class:"email-copy-feedback"},qy={key:5,class:"email-footer"},$y=["disabled"],_y=["disabled"];function Xc(e,t){return a(),l("div",Cv,[t[43]||(t[43]=Se('
Admin \xA0/\xA0 Emails

Emails

',2)),n("div",Sv,[n("div",Ev,[(a(),l(V,null,Q([{id:"7d",label:"7 days"},{id:"30d",label:"30 days"},{id:"90d",label:"90 days"},{id:"all",label:"All time"}],s=>n("button",{key:s.id,class:R(["seg-chip",{active:e.emailPeriod===s.id}]),"aria-pressed":e.emailPeriod===s.id,onClick:i=>{e.emailPeriod=s.id,e.applyEmailFilters()}},d(s.label),11,Nv)),64))]),n("button",{class:"email-detail-button email-jump",onClick:t[0]||(t[0]=s=>e.jumpToEmailHistory())},"Search email history \u2193"),n("div",Rv,[e.emailUpdated?(a(),l("span",Tv,"History updated "+d(e.emailShortTime(e.emailUpdated)),1)):f("v-if",!0),n("button",{class:"btn btn-sm",disabled:e.emailLoading||e.emailSummaryLoading,onClick:t[1]||(t[1]=s=>e.refreshEmails())},"Refresh",8,Dv)])]),t[44]||(t[44]=n("p",{class:"email-basis"},"Recorded sending attempts \xB7 Provider acceptance does not confirm inbox delivery.",-1)),e.emailSummaryError?(a(),l("div",Pv,[h(d(e.emailSummaryError)+" ",1),n("button",{class:"btn btn-sm",onClick:t[2]||(t[2]=s=>e.loadEmailSummary())},"Retry summary")])):f("v-if",!0),n("section",{class:"ov-kpi-row email-kpis","aria-label":"Email summary","aria-busy":e.emailSummaryLoading},[n("div",Iv,[t[14]||(t[14]=n("div",{class:"ov-kpi-label"},"Recorded attempts",-1)),n("div",Ov,d(e.emailSummary?e.emailSummary.total.toLocaleString():"\u2014"),1),t[15]||(t[15]=n("div",{class:"ov-kpi-sub"},"Selected period, search and type",-1))]),n("div",Mv,[t[16]||(t[16]=n("div",{class:"ov-kpi-label"},"Accepted by provider",-1)),n("div",Vv,d(e.emailSummary?e.emailSummary.counts.accepted.toLocaleString():"\u2014"),1),t[17]||(t[17]=n("div",{class:"ov-kpi-sub"},"Delivery unverified",-1))]),n("div",Lv,[t[18]||(t[18]=n("div",{class:"ov-kpi-label"},"Rejected",-1)),n("div",{class:R(["ov-kpi-value",{"email-error-text":e.emailSummary?.counts.rejected}])},d(e.emailSummary?e.emailSummary.counts.rejected.toLocaleString():"\u2014"),3),t[19]||(t[19]=n("div",{class:"ov-kpi-sub"},"Provider returned an error",-1))]),n("div",qv,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"Unconfirmed",-1)),n("div",$v,d(e.emailSummary?(e.emailSummary.counts.unknown+e.emailSummary.counts.sending).toLocaleString():"\u2014"),1),n("div",_v,d(e.emailSummary?e.emailSummary.counts.unknown:"\u2014")+" unknown \xB7 "+d(e.emailSummary?e.emailSummary.counts.sending:"\u2014")+" pending",1)])],8,Av),e.emailSummary?(a(),l("section",Fv,[n("div",Uv,[n("h2",Bv,[t[21]||(t[21]=h("Sending activity ",-1)),n("span",zv,"\xB7 "+d(e.emailSummary.chartDays)+" days \xB7 UTC",1)]),t[22]||(t[22]=n("div",{class:"email-legend"},[n("span",{class:"email-outcome email-outcome-accepted"},"Accepted"),n("span",{class:"email-outcome email-outcome-rejected"},"Rejected"),n("span",{class:"email-outcome email-outcome-unknown"},"Unconfirmed")],-1))]),n("div",Hv,[n("div",jv,[n("span",null,d(e.emailChartMax()),1),t[23]||(t[23]=n("span",null,"0",-1))]),n("div",Gv,[(a(!0),l(V,null,Q(e.emailSummary.series,s=>(a(),l("div",{key:s.date,class:"email-bar-column","aria-label":e.emailDayLabel(s)+": "+s.accepted+" accepted, "+s.rejected+" rejected, "+(s.unknown+s.sending)+" unconfirmed",title:e.emailDayLabel(s)+": "+e.emailDayTotal(s)+" attempts"},[n("div",{class:"email-bar-stack",style:Ae({height:Math.max(1,e.emailDayTotal(s)/e.emailChartMax()*100)+"%"})},[n("i",{class:"email-bar-accepted",style:Ae({flexGrow:s.accepted})},null,4),n("i",{class:"email-bar-rejected",style:Ae({flexGrow:s.rejected})},null,4),n("i",{class:"email-bar-unknown",style:Ae({flexGrow:s.unknown+s.sending})},null,4)],4)],8,Wv))),128))])]),n("div",Kv,[n("span",null,d(e.emailDayLabel(e.emailSummary.series[0])),1),e.emailChartTotal()?f("v-if",!0):(a(),l("span",Yv,"No recorded activity in these "+d(e.emailSummary.chartDays)+" days",1)),n("span",null,d(e.emailDayLabel(e.emailSummary.series[e.emailSummary.series.length-1])),1)]),n("details",Jv,[t[26]||(t[26]=n("summary",null,"View daily counts",-1)),n("div",Xv,[n("table",null,[t[24]||(t[24]=n("caption",{class:"sr-only"},"Daily sending attempts in UTC",-1)),t[25]||(t[25]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Date"),n("th",{scope:"col"},"Accepted"),n("th",{scope:"col"},"Rejected"),n("th",{scope:"col"},"Unknown"),n("th",{scope:"col"},"Pending")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.emailSummary.series,s=>(a(),l("tr",{key:s.date},[n("th",Qv,d(e.emailDayLabel(s)),1),n("td",null,d(s.accepted),1),n("td",null,d(s.rejected),1),n("td",null,d(s.unknown),1),n("td",null,d(s.sending),1)]))),128))])])])])])):f("v-if",!0),n("section",Zv,[n("div",xv,[t[27]||(t[27]=n("h2",{id:"email-history-title",tabindex:"-1"},"Email history",-1)),n("span",ey,"Newest first \xB7 "+d(e.emailTimezone),1)]),n("form",{class:"email-toolbar",onSubmit:t[7]||(t[7]=ae(s=>e.applyEmailFilters(),["prevent"])),"aria-label":"Filter email history"},[n("label",ty,[t[28]||(t[28]=h("Search attempts",-1)),T(n("input",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=s=>e.emailSearch=s),type:"search",maxlength:"200",placeholder:"Search recipients or IDs","aria-describedby":"email-search-help"},null,512),[[nt,e.emailSearch]])]),n("label",null,[t[30]||(t[30]=h("Email type",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[4]||(t[4]=s=>e.emailKind=s),onChange:t[5]||(t[5]=s=>e.applyEmailFilters())},[...t[29]||(t[29]=[n("option",{value:""},"All email types",-1),n("option",{value:"repository-expiration"},"Repository expiration",-1),n("option",{value:"owner-access"},"GitHub access",-1)])],544),[[Rt,e.emailKind]])]),t[31]||(t[31]=n("button",{class:"btn",type:"submit"},"Search",-1)),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn",type:"button",onClick:t[6]||(t[6]=s=>e.clearEmailFilters())},"Clear")):f("v-if",!0)],32),t[42]||(t[42]=n("p",{id:"email-search-help",class:"email-search-help"},"Search part of a recipient address, or an exact attempt, owner or resource ID.",-1)),n("div",ny,[(a(),l(V,null,Q(["","accepted","rejected","unknown","sending"],s=>n("button",{key:s,class:R({active:e.emailState===s}),"aria-pressed":e.emailState===s,onClick:i=>e.setEmailStatus(s)},[h(d(s?e.emailStatusLabel(s):"All attempts")+" ",1),n("span",null,d(e.emailSummary?(s?e.emailSummary.counts[s]:e.emailSummary.total).toLocaleString():"\u2014"),1)],10,oy)),64))]),n("p",sy,d(e.emailAnnouncement)+" "+d(e.emailCopyMessage),1),e.emailError?(a(),l("div",iy,[n("span",null,d(e.emailError),1),n("button",{class:"btn btn-sm",disabled:e.emailLoading,onClick:t[8]||(t[8]=s=>e.retryEmails())},"Retry",8,ry)])):f("v-if",!0),e.emailLoading&&!e.emailRows.length?(a(),l("p",ay,"Loading email history\u2026")):f("v-if",!0),!e.emailLoading&&!e.emailError&&!e.emailRows.length?(a(),l("div",ly,[n("p",null,d(e.hasEmailFilters()?"No attempts match these filters. Try another recipient or a wider period.":"No attempts recorded in this period."),1),e.hasEmailFilters()?(a(),l("button",{key:0,class:"btn btn-sm",onClick:t[9]||(t[9]=s=>e.clearEmailFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.emailRows.length?(a(),l("div",dy,[n("span",null,[h(d((e.emailPage-1)*25+1)+"\u2013"+d(Math.min(e.emailPage*25,e.emailRows.length)),1),e.emailTotal()!=null?(a(),l(V,{key:0},[h(" of "+d(e.emailTotal().toLocaleString()),1)],64)):f("v-if",!0),t[32]||(t[32]=h(" attempts",-1))]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[10]||(t[10]=s=>e.emailPreviousPage())},"Previous",8,uy),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[11]||(t[11]=s=>e.emailNextPage())},"Next",8,cy)])])):f("v-if",!0),e.emailRows.length?(a(),l("div",{key:4,class:"email-table-wrap","aria-busy":e.emailLoading},[n("table",fy,[t[40]||(t[40]=n("caption",{class:"sr-only"},"Recorded email attempts. Expand a row for identifiers and outcome details.",-1)),t[41]||(t[41]=n("thead",{role:"rowgroup"},[n("tr",{role:"row"},[n("th",{scope:"col"},"Recipient"),n("th",{scope:"col"},"Outcome"),n("th",{scope:"col"},"Email type"),n("th",{scope:"col"},"Attempted"),n("th",{scope:"col"},[n("span",{class:"sr-only"},"Details")])])],-1)),n("tbody",my,[(a(!0),l(V,null,Q(e.emailVisibleRows(),s=>(a(),l(V,{key:s._id},[n("tr",{role:"row",class:R({"email-selected":e.selectedEmailId===s._id})},[n("td",hy,[n("span",{title:s.recipient},d(s.recipient),9,gy)]),n("td",vy,[n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3),s.httpStatus?(a(),l("small",yy,d(s.httpStatus),1)):f("v-if",!0)]),n("td",by,d(e.emailKindLabel(s.kind)),1),n("td",wy,[n("time",{datetime:s.createdAt,title:e.emailTime(s.createdAt)},d(e.emailShortTime(s.createdAt)),9,ky)]),n("td",Cy,[n("button",{class:"email-detail-button","aria-expanded":e.selectedEmailId===s._id,"aria-controls":"detail-"+s._id,"aria-label":(e.selectedEmailId===s._id?"Close":"View")+" details for "+s.recipient,onClick:i=>e.toggleEmail(s)},[h(d(e.selectedEmailId===s._id?"Close":"Details")+" ",1),n("span",Ey,d(e.selectedEmailId===s._id?"\u2212":"+"),1)],8,Sy)])],2),e.selectedEmailId===s._id?(a(),l("tr",Ny,[n("td",Ry,[n("section",{id:"detail-"+s._id,"aria-label":"Attempt details for "+s.recipient},[n("div",Dy,[t[33]||(t[33]=n("h3",null,"Attempt details",-1)),n("span",{class:R(["email-outcome","email-outcome-"+s.state])},d(e.emailStatusLabel(s.state)),3)]),n("p",Py,d(e.emailExplanation(s)),1),n("dl",Ay,[n("div",null,[t[34]||(t[34]=n("dt",null,"Recipient",-1)),n("dd",null,[h(d(s.recipient)+" ",1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.recipient),"aria-label":"Copy recipient"},d(e.emailCopiedValue===s.recipient?"Copied":"Copy"),9,Iy)])]),n("div",null,[t[35]||(t[35]=n("dt",null,"Provider response",-1)),n("dd",null,d(s.httpStatus?"HTTP "+s.httpStatus:"No HTTP response recorded"),1)]),n("div",null,[t[36]||(t[36]=n("dt",null,"Attempted",-1)),n("dd",null,d(e.emailTime(s.createdAt)),1)]),n("div",null,[t[37]||(t[37]=n("dt",null,"Completed",-1)),n("dd",null,d(e.emailTime(s.completedAt)),1)]),n("div",null,[t[38]||(t[38]=n("dt",null,"Attempt ID",-1)),n("dd",null,[n("code",null,d(s._id),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s._id),"aria-label":"Copy attempt ID"},d(e.emailCopiedValue===s._id?"Copied":"Copy"),9,Oy)])]),n("div",null,[t[39]||(t[39]=n("dt",null,"Owner ID",-1)),n("dd",null,[n("code",null,d(s.ownerId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.ownerId),"aria-label":"Copy owner ID"},d(e.emailCopiedValue===s.ownerId?"Copied":"Copy"),9,My)])]),n("div",null,[n("dt",null,"Resource \xB7 "+d(s.resourceKind),1),n("dd",null,[n("code",null,d(s.resourceId),1),n("button",{class:"email-copy",onClick:i=>e.copyEmail(s.resourceId),"aria-label":"Copy resource ID"},d(e.emailCopiedValue===s.resourceId?"Copied":"Copy"),9,Vy)])])]),e.emailCopyMessage&&e.emailCopyMessage!=="Copied."?(a(),l("p",Ly,d(e.emailCopyMessage),1)):f("v-if",!0)],8,Ty)])])):f("v-if",!0)],64))),128))])])],8,py)):f("v-if",!0),e.emailRows.length?(a(),l("div",qy,[n("span",null,[h("Page "+d(e.emailPage),1),e.emailPageCount()?(a(),l(V,{key:0},[h(" of "+d(e.emailPageCount()),1)],64)):f("v-if",!0),h(" \xB7 "+d(e.emailTotal()==null?e.emailRows.length+" loaded":e.emailTotal().toLocaleString()+" attempts"),1)]),n("div",null,[n("button",{class:"btn btn-sm",disabled:e.emailPage===1||e.emailLoading,onClick:t[12]||(t[12]=s=>e.emailPreviousPage())},"Previous",8,$y),n("button",{class:"btn btn-sm",disabled:e.emailLoading||!e.emailNextCursor&&e.emailPage*25>=e.emailRows.length,onClick:t[13]||(t[13]=s=>e.emailNextPage())},"Next",8,_y)])])):f("v-if",!0)]),t[45]||(t[45]=n("details",{class:"email-about"},[n("summary",null,"What this history records"),n("p",null,"New sending attempts only; older sends are not backfilled. Accepted means the provider accepted the request, not that it reached the inbox. Check pending or unknown outcomes in Resend before considering another send. Audit storage failures can leave this history incomplete.")],-1))])}var Fy={class:"container py-4",style:{"max-width":"48rem","overflow-wrap":"anywhere"}},Uy={key:0},By={key:1,role:"alert"},zy={key:2,role:"status"},Hy={key:0},jy={key:1},Gy=["disabled"],Wy=["disabled"],Ky=["disabled"],Yy={key:5,class:"mt-4","aria-labelledby":"review-policy-title"},Jy={id:"review-policy-title"},Xy={key:0,role:"alert"},Qy=["disabled"],Zy=["disabled"],xy=["disabled"],eb={key:6,role:"status"};function Qc(e,t){return a(),l("section",Fy,[t[12]||(t[12]=n("a",{href:"/"},"Anonymous GitHub",-1)),t[13]||(t[13]=n("h1",{class:"mt-3"},"Approve artifact access",-1)),t[14]||(t[14]=n("p",null,"This records your approval as the repository owner or an authorized co-author.",-1)),e.user?.username?f("v-if",!0):(a(),l("p",Uy,[...t[6]||(t[6]=[h("Sign in first, then reopen the artifact link from your submission. ",-1),n("a",{href:"/signin"},"Sign in",-1)])])),e.error?(a(),l("p",By,d(e.error),1)):f("v-if",!0),e.saved?(a(),l("p",zy,[t[7]||(t[7]=h("Consent recorded. ",-1)),e.handoffEnabled?(a(),l("span",Hy,"Continue to review to finish linking.")):(a(),l("span",jy,"Artifact linking is not complete. Return to your submission to check its status."))])):f("v-if",!0),e.saved&&e.handoffEnabled?(a(),l("button",{key:3,class:"btn btn-primary",type:"button",onClick:t[0]||(t[0]=(...s)=>e.continueReview&&e.continueReview(...s)),disabled:e.busy},"Continue to review",8,Gy)):f("v-if",!0),e.user?.username&&!e.saved?(a(),l("form",{key:4,onSubmit:t[2]||(t[2]=ae((...s)=>e.loadPreview&&e.loadPreview(...s),["prevent"]))},[t[8]||(t[8]=n("label",{for:"review-repository"},"Anonymous repository ID",-1)),T(n("input",{id:"review-repository",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=s=>e.repositoryId=s),maxlength:"128",autocomplete:"off",disabled:e.busy||e.uncertain,"aria-describedby":"review-repository-help"},null,8,Wy),[[nt,e.repositoryId]]),t[9]||(t[9]=n("p",{id:"review-repository-help"},"Use the ID after /r/ in the anonymous repository URL.",-1)),n("button",{type:"submit",class:"btn btn-primary",disabled:e.busy||e.uncertain},"Preview access and retention",8,Ky)],32)):f("v-if",!0),e.preview&&!e.saved?(a(),l("section",Yy,[n("h2",Jy,d(e.preview.repositoryName),1),n("p",null,"Access: "+d(e.preview.policy.access==="anonymous-link"?"Anyone with the anonymous link":"Restricted review access")+".",1),n("p",null,"Retain until "+d(e.preview.policy.retainUntil)+". Policy version "+d(e.preview.policy.version)+".",1),e.expired?(a(),l("p",Xy,"This preview expired. Open a new artifact link from your submission.")):f("v-if",!0),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[3]||(t[3]=s=>e.acceptAccess=s),disabled:e.busy||e.uncertain||e.expired},null,8,Qy),[[oa,e.acceptAccess]]),t[10]||(t[10]=h(" I approve the access policy above.",-1))])]),n("div",null,[n("label",null,[T(n("input",{type:"checkbox","onUpdate:modelValue":t[4]||(t[4]=s=>e.acceptRetention=s),disabled:e.busy||e.uncertain||e.expired},null,8,Zy),[[oa,e.acceptRetention]]),t[11]||(t[11]=h(" I approve retention until the date above.",-1))])]),n("button",{class:"btn btn-primary",type:"button",onClick:t[5]||(t[5]=(...s)=>e.confirmConsent&&e.confirmConsent(...s)),disabled:e.busy||e.expired||!e.acceptAccess||!e.acceptRetention},d(e.uncertain?"Retry confirmation":"Confirm consent"),9,xy)])):f("v-if",!0),e.busy?(a(),l("p",eb,"Waiting for the server\u2026")):f("v-if",!0)])}var tb={class:"container paper-page connections-page"},ob={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},sb={key:1,role:"status"},ib=["disabled"],rb={key:3},ab={key:0,class:"connection-resources"},lb=["disabled"],db=["disabled"],ub={key:0,role:"status"},cb={class:"connections-grid"},pb={key:0},fb={class:"connection-title"},mb={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},hb={class:"connection-actions"},gb={key:0,class:"btn btn-ink",target:"_self",href:"/github/app/install"},vb=["disabled"],yb={key:1,class:"connection-installations"},bb={key:0},wb=["href"],kb={class:"sr-only"},Cb={class:"connection-title"},Sb={key:0,target:"_self",href:"/github/login",class:"btn btn-outline-ink"},Eb={key:1,class:"connection-revoke"},Nb={key:0},Rb=["disabled"],Tb={class:"connection-resources"},Db={class:"connection-title"},Pb={class:"connection-count"},Ab={key:0,class:"connection-empty"},Ib={class:"connection-resource-name"},Ob={key:0,class:"connection-resource-actions"},Mb=["disabled","onClick"],Vb=["disabled","onClick"],Lb={key:1,class:"connection-help",role:"status"},qb=["disabled","onClick"];function Zc(e,t){return a(),l("div",tb,[t[27]||(t[27]=Se('
My work \xA0/\xA0 GitHub connections

GitHub connections

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

',2)),e.connectionError?(a(),l("p",ob,d(e.connectionError),1)):f("v-if",!0),!e.connections&&!e.connectionError?(a(),l("p",sb,"Loading your connections\u2026")):f("v-if",!0),!e.connections&&e.connectionError?(a(),l("button",{key:2,class:"btn btn-outline-ink",disabled:e.busy,onClick:t[0]||(t[0]=s=>e.loadConnections())},"Try again",8,ib)):f("v-if",!0),e.connections?(a(),l("div",rb,[e.connections.emailNotificationsEnabled?(a(),l("section",ab,[t[6]||(t[6]=n("h2",null,"Email alerts",-1)),t[7]||(t[7]=n("p",null,"We will email you if your GitHub connection stops working or a repository becomes inaccessible. Your address is never shown on anonymous pages.",-1)),n("form",{onSubmit:t[2]||(t[2]=ae(s=>e.saveNotificationEmail(),["prevent"]))},[t[5]||(t[5]=n("label",{for:"notification-email"},"Email address",-1)),T(n("input",{id:"notification-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[1]||(t[1]=s=>e.notificationEmail=s),disabled:e.busy},null,8,lb),[[nt,e.notificationEmail]]),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.busy},"Save email address",8,db),e.emailSaved?(a(),l("p",ub,"Email address saved.")):f("v-if",!0)],32)])):f("v-if",!0),n("div",cb,[e.connections.appEnabled?(a(),l("section",pb,[t[15]||(t[15]=n("div",{class:"connection-top"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",{class:"connection-badge"},"Recommended")],-1)),n("div",fb,[t[8]||(t[8]=n("h2",null,"GitHub App",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.appConnected&&!e.connections.appError}])},d(e.connections.appError?"Needs attention":e.connections.appConnected?"Connected":"Not connected"),3)]),t[16]||(t[16]=n("p",null,"Read-only access to gists and the repositories you choose.",-1)),e.connections.appError?(a(),l("p",mb,d(e.connections.appError)+". Reconnect to restore access.",1)):f("v-if",!0),n("div",hb,[e.connections.appConnected&&!e.connections.appError?(a(),l("a",gb,[...t[9]||(t[9]=[h("Manage repository access ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-external-link"})],-1)])])):f("v-if",!0),n("a",{class:R(e.connections.appConnected&&!e.connections.appError?"connection-link":"btn btn-ink"),target:"_self",href:"/github/app/login"},d(e.connections.appConnected?"Reconnect account":"Connect GitHub account"),3),e.connections.appConnected?(a(),l("button",{key:1,class:"connection-link connection-refresh",title:"Refresh access",disabled:e.busy,onClick:t[3]||(t[3]=s=>e.loadConnections())},[...t[10]||(t[10]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),n("span",{class:"sr-only"},"Refresh access",-1)])],8,vb)):f("v-if",!0)]),t[17]||(t[17]=n("p",{class:"connection-help"},"Choose repositories on GitHub. Organization access may need an administrator's approval.",-1)),e.connections.installations?.length?(a(),l("ul",yb,[(a(!0),l(V,null,Q(e.connections.installations,s=>(a(),l("li",{key:s.id},[n("div",null,[t[11]||(t[11]=n("span",{class:"connection-label"},"Installed on",-1)),t[12]||(t[12]=h()),n("strong",null,d(s.account),1),s.suspended?(a(),l("span",bb," \xB7 Suspended")):f("v-if",!0)]),e.connections.installations.length>1?(a(),l("a",{key:0,target:"_self",href:"/github/app/install?installationId="+s.id},[t[13]||(t[13]=h("Manage access ",-1)),n("span",kb,"for "+d(s.account),1),t[14]||(t[14]=h(" \u2192",-1))],8,wb)):f("v-if",!0)]))),128))])):f("v-if",!0)])):f("v-if",!0),n("section",null,[t[20]||(t[20]=n("div",{class:"connection-top"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),n("span",{class:"connection-badge connection-badge-muted"},"Legacy")],-1)),n("div",Cb,[t[18]||(t[18]=n("h2",null,"GitHub OAuth",-1)),n("span",{class:R(["connection-status",{"is-connected":e.connections.oauthConnected}])},d(e.connections.oauthConnected?"Connected":"Not connected"),3)]),t[21]||(t[21]=n("p",null,"For existing OAuth anonymizations.",-1)),t[22]||(t[22]=n("p",{class:"connection-help"},"This connection uses GitHub's broader repository permissions. Existing work keeps using it until you switch below.",-1)),e.connections.oauthEnabled?(a(),l("a",Sb,d(e.connections.oauthConnected?"Reconnect OAuth":"Connect legacy OAuth"),1)):f("v-if",!0),e.connections.oauthConnected?(a(),l("div",Eb,[e.connections.gistCount?(a(),l("p",Nb,d(e.connections.gistCount)+" gist(s) use your GitHub App connection when available.",1)):f("v-if",!0),t[19]||(t[19]=n("p",null,"Switch all dependent repositories before revoking access. Gists can use your GitHub App connection.",-1)),e.connections.appConnected?(a(),l("button",{key:1,class:"btn btn-sm btn-outline-danger connection-danger",disabled:e.busy||e.connections.resources.some(s=>s.connection==="oauth"),onClick:t[4]||(t[4]=s=>e.disconnectOAuth())},"Revoke OAuth access",8,Rb)):f("v-if",!0)])):f("v-if",!0)])]),n("section",Tb,[n("div",Db,[t[23]||(t[23]=n("h2",null,"Repository connections",-1)),n("span",Pb,d(e.connections.resources?.length||0)+" "+d((e.connections.resources?.length||0)===1?"resource":"resources"),1)]),t[25]||(t[25]=n("p",null,"Check access, then switch each resource to the GitHub App. After reinstalling the App, reconnect existing resources here to keep their anonymous URLs and published snapshots.",-1)),e.connections.resources?.length?f("v-if",!0):(a(),l("div",Ab,[...t[24]||(t[24]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),n("div",null,[n("h3",null,"No repository connections yet"),n("p",null,"Your repositories and pull requests will appear here once you anonymize them.")],-1),n("a",{class:"connection-link",href:"/anonymize"},"New anonymization \u2192",-1)])])),(a(!0),l(V,null,Q(e.connections.resources,s=>(a(),l("div",{class:"connection-resource",key:s.type+s.id},[n("div",Ib,[n("strong",null,d(s.name||s.id),1),n("small",null,d(s.type)+" \xB7 "+d(s.id),1)]),n("span",{class:R(["connection-badge",{"connection-badge-muted":s.connection==="oauth"}])},d(s.connection==="github-app"?"Read-only App":"Legacy OAuth"),3),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&e.connections.appEnabled&&e.connections.appConnected?(a(),l("div",Ob,[n("button",{class:"btn btn-outline-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!0)},"Check read-only access",8,Mb),s.eligible?(a(),l("button",{key:0,class:"btn btn-ink",disabled:e.busy,onClick:i=>e.changeConnection(s,"github-app",!1)},d(s.connection==="github-app"?"Reconnect read-only access":"Switch to read-only access"),9,Vb)):f("v-if",!0),s.eligible===!1?(a(),l("span",Lb,"Access unavailable. Allow this repository on GitHub, then check again.")):f("v-if",!0)])):f("v-if",!0),!["archived","removed","preparing","queue","removing","expiring"].includes(s.status)&&(s.status!=="download"||s.type==="pull-request"&&(!s.statusDate||new Date(s.statusDate).getTime()<=Date.now()-3e5))&&s.connection==="github-app"&&e.connections.oauthConnected?(a(),l("button",{key:1,class:"connection-link",disabled:e.busy,onClick:i=>e.changeConnection(s,"oauth",!1)},"Use OAuth",8,qb)):f("v-if",!0)]))),128)),t[26]||(t[26]=n("p",{class:"connection-footnote"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})]),h(" Removing access stops new fetches from GitHub. Published content keeps its current expiration and removal settings.")],-1))])])):f("v-if",!0)])}var $b={class:"container paper-page auth-page"},_b={class:"auth-layout"},Fb={class:"auth-options"},Ub={key:0},Bb={key:0,class:"btn btn-ink auth-continue",target:"_self",href:"/github/login?recover=1"},zb={key:1},Hb={key:1,class:"auth-card"},jb={key:2,class:"auth-legacy"},Gb={key:3,role:"status"};function xc(e,t){let s=Qe("partial-view");return a(),l(V,null,[n("div",$b,[n("div",_b,[t[4]||(t[4]=Se('
Your research, ready for review

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

Sign in to create and manage your anonymizations.

',1)),n("div",Fb,[e.accountRecovery?(a(),l("section",Ub,[t[0]||(t[0]=n("h2",null,"Verify your existing account",-1)),t[1]||(t[1]=n("p",null,"We found an existing account. Verify it with your previous GitHub connection to keep your anonymizations. Future sign-ins will use the GitHub App.",-1)),e.site_options?.GITHUB_OAUTH_ENABLED?(a(),l("a",Bb,"Verify with previous GitHub connection")):(a(),l("p",zb,"Account verification is currently unavailable. Please try again later."))])):f("v-if",!0),e.site_options?.GITHUB_APP_ENABLED&&!e.accountRecovery?(a(),l("section",Hb,[...t[2]||(t[2]=[Se('

Continue with GitHub

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

  • You choose which repositories to share
  • No permission to write to your code
Sign in with GitHubYour existing anonymizations and connections stay with your account.',5)])])):f("v-if",!0),!e.site_options?.GITHUB_APP_ENABLED&&e.site_options?.GITHUB_OAUTH_ENABLED&&!e.accountRecovery?(a(),l("section",jb,[...t[3]||(t[3]=[n("div",{class:"connection-title"},[n("h2",null,"Continue with GitHub")],-1),n("p",null,"Sign in to access your account. GitHub OAuth includes write access to private repositories.",-1),n("a",{class:"connection-link",target:"_self",href:"/github/login"},[h("Sign in with GitHub "),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})])],-1)])])):f("v-if",!0),e.site_options&&!e.site_options.GITHUB_APP_ENABLED&&!e.site_options.GITHUB_OAUTH_ENABLED?(a(),l("p",Gb,"GitHub sign-in is currently unavailable. Please try again later.")):f("v-if",!0)])])]),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}function ep(e,t){let s=Qe("partial-view");return a(),l(V,null,[t[0]||(t[0]=Se('
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)),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])],64)}var Wb={class:"container paper-page admin-page"},Kb={class:"seg-bar"},Yb={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},Jb=["aria-checked"],Xb={class:"count"},Qb=["aria-checked"],Zb={class:"count"},xb=["aria-checked"],e1={class:"count"},t1=["aria-checked"],n1={class:"count"},o1=["aria-checked"],s1={class:"count"},i1=["aria-checked"],r1={class:"count"},a1={class:"seg-countline",role:"status"},l1={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},d1={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},u1={class:"admin-filter-row"},c1={class:"search-wrap"},p1={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},f1={key:0,class:"admin-search-hint"},m1={key:1,class:"admin-filter-inline","aria-label":"Pagination"},h1=["disabled"],g1={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},v1=["disabled"],y1={key:0,class:"admin-filter-row"},b1={class:"admin-active-chips"},w1={class:"key"},k1=["onClick"],C1={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},S1={key:0,class:"paper-table-head",role:"row"},E1={role:"columnheader"},N1={role:"columnheader"},R1={role:"columnheader"},T1={class:"paper-table-row",role:"row"},D1={class:"cell-anon",role:"cell"},P1={class:"anon-text"},A1=["textContent","href"],I1={class:"anon-sub"},O1={class:"cell-status",role:"cell"},M1=["textContent"],V1={class:"cell-views num",role:"cell"},L1=["textContent","href"],q1={class:"cell-expires",role:"cell"},$1={class:"cell-actions",role:"cell"},_1={class:"dropdown"},F1={class:"dropdown-menu dropdown-menu-right"},U1=["href"],B1=["href"],z1=["href"],H1=["onClick"],j1={key:1,class:"paper-table-empty"},G1={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},W1={key:0,class:"pagination-compact"},K1=["disabled"],Y1=["max"],J1=["disabled"],X1={class:"admin-filter-inline"},Q1={class:"form-control form-control-sm"};function tp(e,t){let s=De("field"),i=De("form");return a(),l("div",Wb,[t[55]||(t[55]=Se('
Admin \xA0/\xA0 Conferences

Conferences

',3)),n("div",Kb,[n("div",Yb,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[14]||(t[14]=h("All ",-1)),n("span",Xb,d(e.fmt?.number(e.segCount("all"))),1)],10,Jb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Ready ",-1)),n("span",Zb,d(e.fmt?.number(e.segCount("ready"))),1)],10,Qb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[17]||(t[17]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Preparing ",-1)),n("span",e1,d(e.fmt?.number(e.segCount("preparing"))),1)],10,xb),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[19]||(t[19]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Error ",-1)),n("span",n1,d(e.fmt?.number(e.segCount("error"))),1)],10,t1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[21]||(t[21]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[22]||(t[22]=h("Expired ",-1)),n("span",s1,d(e.fmt?.number(e.segCount("expired"))),1)],10,o1),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[23]||(t[23]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[24]||(t[24]=h("Removed ",-1)),n("span",r1,d(e.fmt?.number(e.segCount("removed"))),1)],10,i1)]),n("p",a1,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[25]||(t[25]=h(" shown",-1))])]),e.fetchError?(a(),l("div",l1,[t[26]||(t[26]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",d1,[n("div",u1,[n("div",c1,[T(n("input",p1,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",f1,"/"))]),t[30]||(t[30]=n("span",{class:"admin-filter-spacer"},null,-1)),e.total>0?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.exportCsv())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])):f("v-if",!0),e.totalPage>1?(a(),l("span",m1,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,h1),n("span",g1,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,v1)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",y1,[n("div",b1,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",w1,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,k1)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),n("div",C1,[e.total!==0?(a(),l("div",S1,[n("div",E1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="name"}]),onClick:t[9]||(t[9]=o=>e.sortBy("name"))},[t[33]||(t[33]=h("Conference ",-1)),e.sortIcon("name")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("name")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",N1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=o=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[38]||(t[38]=n("div",{role:"columnheader",class:"num"},"Repos",-1)),n("div",R1,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[11]||(t[11]=o=>e.sortBy("startDate"))},[t[37]||(t[37]=h("Window ",-1)),e.sortIcon("startDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("startDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[36]||(t[36]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[39]||(t[39]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))])):f("v-if",!0),(a(!0),l(V,null,Q(e.filteredConferences,(o,r)=>(a(),l("div",T1,[n("div",D1,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Conference"},[n("use",{href:"#project-icon-conference"})],-1)),n("div",P1,[n("a",{class:"repo-name",textContent:d(o?.name),href:e.safeUrl("/conference/"+o?.conferenceID)},null,8,A1),n("div",I1,[n("span",null,d(o?.conferenceID),1),n("span",null,d(e.fmt?.money(o?.price||0)),1)])])]),n("div",O1,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,M1)]),n("div",V1,[t[41]||(t[41]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:"Show repositories in this conference",textContent:d(e.fmt?.number(o?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+o?.conferenceID)},null,8,L1)]),n("div",q1,[t[42]||(t[42]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" "+d(e.fmt?.date(o?.startDate))+" \u2013 "+d(e.fmt?.date(o?.endDate)),1)]),n("div",$1,[n("div",_1,[t[48]||(t[48]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",F1,[n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/edit")},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,U1),n("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+o?.conferenceID+"/")},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View",-1)])],8,B1),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+o?.conferenceID)},[...t[45]||(t[45]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,z1),t[47]||(t[47]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeConference(o),["prevent"])},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,H1),[[Z,o?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(a(),l("div",j1,[t[49]||(t[49]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.total?"No conferences match the current filters.":"No conferences yet."),1)])):f("v-if",!0)]),n("div",G1,[t[54]||(t[54]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",W1,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[50]||(t[50]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,K1),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Y1),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[51]||(t[51]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,J1)])):f("v-if",!0),n("span",X1,[t[53]||(t[53]=n("label",null,"Per page",-1)),T((a(),l("select",Q1,[...t[52]||(t[52]=[Se('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var Z1={class:"container paper-page admin-page overview-page errors-page"},x1={class:"error-source-toolbar"},ew={class:"error-source-switch seg-filter",role:"group","aria-label":"Log source"},tw=["aria-pressed"],nw=["aria-pressed"],ow={class:"error-health-strip"},sw={class:"log-state",role:"status","aria-live":"polite"},iw=["disabled"],rw={class:"sr-only"},aw=["aria-busy"],lw={class:"volume-head"},dw=["href"],uw={key:0,class:"log-inspector","aria-labelledby":"log-detail-title"},cw={class:"log-inspector-heading"},pw={class:"log-inspector-eyebrow"},fw={id:"log-detail-title",tabindex:"-1"},mw={key:0},hw={class:"log-facts-strip"},gw=["datetime"],vw=["datetime"],yw={class:"log-detail log-investigation-body",id:"log-detail"},bw={class:"log-related-main"},ww={class:"log-correlation-selector",role:"group","aria-label":"Related events correlation"},kw=["id","aria-label","aria-pressed","onClick"],Cw={class:"log-selector-mark","aria-hidden":"true"},Sw={key:0,class:"log-meta"},Ew={class:"log-correlation-window"},Nw=["aria-busy"],Rw={class:"volume-head"},Tw={key:0,role:"status"},Dw={key:1,class:"log-coverage"},Pw={key:2,class:"log-events"},Aw=["datetime","title"],Iw={class:"log-timeline-event"},Ow={class:"log-timeline-event-title"},Mw={key:0},Vw={key:1},Lw={key:2},qw={key:0,class:"log-request-route"},$w={key:1,class:"log-error-stack"},_w={key:0},Fw={key:0},Uw={key:1},Bw={key:2},zw={class:"log-event-fields"},Hw=["onClick"],jw={class:"log-timeline-scope"},Gw=["href"],Ww={key:1,class:"log-no-trace"},Kw={class:"log-evidence"},Yw={class:"log-coverage"},Jw={class:"log-sample-panel"},Xw={class:"log-coverage"},Qw={key:0,class:"log-request-route"},Zw={key:1,class:"log-error-stack"},xw={key:0},ek={key:1},tk={key:2},nk={class:"log-sample-facts"},ok={key:0},sk={class:"log-detail-identifiers"},ik={key:0},rk={class:"log-value-reveal"},ak=["onClick"],lk={class:"log-all-fields"},dk={class:"log-raw-sample"},uk={class:"log-list-view"},ck={class:"log-query"},pk={key:0},fk=["disabled"],mk={key:0,class:"log-coverage"},hk={class:"log-local-filters"},gk={class:"log-search"},vk={class:"log-coverage",role:"status",title:"Counts and first/last dates apply only to returned records, not all matching events."},yk={key:0,class:"log-loading"},bk={key:1,class:"log-workspace"},wk={class:"log-results"},kk={key:0,class:"log-table-scroll"},Ck={class:"log-table",role:"table"},Sk=["aria-label","onClick","aria-expanded"],Ek={class:"log-event-title"},Nk={class:"log-meta"},Rk={class:"log-service"},Tk={class:"log-module"},Dk={class:"log-level"},Pk={key:0,class:"log-http"},Ak={class:"log-count"},Ik=["datetime","title"],Ok={key:1,class:"admin-empty"},Mk={key:2,class:"admin-empty"},Vk={key:2,class:"log-health"},Lk={key:0},qk={key:1},$k={key:2},_k={key:0,class:"log-copy-status",role:"status"},Fk=["aria-busy"],Uk={key:0,class:"history-warning",role:"status"},Bk={key:1,class:"log-inspector"},zk={class:"log-inspector-heading"},Hk={class:"log-inspector-eyebrow"},jk={id:"history-inspector-title",tabindex:"-1"},Gk={key:0},Wk={class:"log-inspector-tabs detail-tabs",role:"group","aria-label":"History event view"},Kk=["aria-pressed"],Yk=["aria-pressed"],Jk=["aria-pressed"],Xk=["aria-pressed"],Qk=["aria-pressed"],Zk={class:"errors-toolbar","aria-label":"Error filters"},xk={class:"seg-filter",role:"group","aria-label":"Filter by severity"},e0=["aria-pressed"],t0=["aria-pressed"],n0=["aria-pressed"],o0=["aria-pressed"],s0={class:"search-wrap"},i0={type:"search",class:"form-control","aria-label":"Search application history",placeholder:"Search history\u2026",title:"Search messages, or filter with code:repo_not_found module:route status:>=400",autocomplete:"off"},r0={key:0,class:"filter-count"},a0={class:"history-view-options"},l0={class:"history-view-controls"},d0={class:"select-wrap"},u0={id:"history-sort",class:"form-control form-control-sm"},c0={class:"select-wrap"},p0={id:"history-merge",class:"form-control form-control-sm"},f0={class:"autoref"},m0={type:"checkbox"},h0={key:0,role:"status"},g0={key:1,class:"admin-empty"},v0={key:2},y0={key:3,class:"errors-pager"},b0=["disabled"],w0={key:0,class:"errors-list-head"},k0={key:0,class:"errors-group-head"},C0={class:"errors-group-count"},S0={key:0,class:"errors-group-note"},E0=["data-history-key","aria-expanded","aria-controls","onClick"],N0={class:"col-when"},R0={class:"when-rel"},T0={class:"when-abs"},D0={class:"col-sev"},P0={class:"sev-label"},A0={class:"col-mod"},I0={class:"pill pill-module"},O0={class:"col-msg"},M0={class:"msg-code"},V0={key:0,class:"msg-context"},L0={key:1,class:"msg-detail"},q0=["title"],$0={class:"col-count"},_0={key:0,class:"count-pill"},F0={key:1,class:"count-pill count-pill-muted"},U0={class:"col-status"},B0=["title"],z0={key:1,class:"status-empty",title:"No HTTP status for this event"},H0=["id"],j0={class:"detail-body"},G0={class:"detail-main"},W0={key:0},K0={key:0,class:"log-request-route"},Y0={key:1},J0={key:0},X0={class:"log-explanation-lead"},Q0={class:"log-evidence"},Z0={class:"history-technical"},x0={key:0,class:"history-fields"},e2={class:"log-value-reveal"},t2=["onClick"],n2={key:1},o2={key:2,class:"stack-pre"},s2={key:3,class:"history-occurrences","aria-label":"Stored occurrences"},i2={class:"log-evidence"},r2={class:"history-occurrence-list"},a2={class:"history-occurrence"},l2={class:"history-occurrence-heading"},d2=["datetime"],u2={class:"history-occurrence-context"},c2={key:0},p2={key:1},f2={key:0},m2={key:1},h2={key:2,class:"log-evidence"},g2={key:3,class:"log-evidence"},v2={class:"history-occurrence-record"},y2={class:"detail-actions"},b2=["onClick"],w2=["onClick"],k2=["onClick"],C2=["onClick"],S2={key:3,class:"copy-hint"},E2={class:"detail-aside"},N2={class:"aside-block"},R2=["title"],T2={class:"aside-block"},D2=["title"],P2={class:"aside-block"},A2={class:"aside-value"},I2={key:0,class:"aside-sub"},O2={key:0,class:"aside-block"},M2=["href"],V2={key:0,class:"log-value-reveal"},L2=["onClick"],q2={key:1,class:"aside-block"},$2={class:"aside-value mono"},_2={class:"history-management"},F2={class:"volume-head"},U2={class:"errors-actions"},B2={role:"status"},z2={key:0},H2={class:"history-summary"},j2={key:0,class:"kpi-grid"},G2={class:"kpi-card"},W2={class:"kpi-value"},K2={key:0},Y2={key:1},J2={key:2},X2={class:"kpi-card kpi-error"},Q2={class:"kpi-value"},Z2={class:"kpi-sub"},x2={class:"kpi-card kpi-warn"},eC={class:"kpi-value"},tC={class:"kpi-sub"},nC={class:"kpi-card kpi-info"},oC={class:"kpi-value"},sC={class:"kpi-sub"},iC={class:"kpi-value"},rC={class:"kpi-sub"},aC={key:0,class:"dropped-warn"},lC={key:1,class:"volume-chart"},dC={class:"volume-head"},uC={class:"volume-legend"},cC={key:0},pC={key:1},fC={key:2},mC={class:"volume-bars"},hC=["title"],gC={key:1},vC={key:0,class:"admin-empty"},yC=["aria-busy"],bC={class:"volume-head"},wC={id:"log-timeline-title",tabindex:"-1"},kC={key:0,class:"log-origin"},CC={key:1,role:"status"},SC={key:2,class:"log-coverage"},EC={key:3,class:"log-events"},NC=["datetime","title"],RC={class:"log-timeline-event"},TC={class:"log-timeline-event-title"},DC={key:0},PC={key:1},AC={key:2},IC={key:0,class:"log-request-route"},OC={key:1,class:"log-error-stack"},MC={key:0},VC={key:0},LC={key:1},qC={key:2},$C={class:"log-event-fields"},_C=["onClick"],FC={class:"log-timeline-scope"},UC=["href"];function np(e,t){let s=De("field"),i=De("form");return a(),l("div",Z1,[t[110]||(t[110]=Se('
Admin \xA0/\xA0 Errors

Errors

',2)),n("div",x1,[n("div",ew,[n("button",{id:"error-source-central",type:"button",class:R(["seg-chip",{active:e.errorSource==="central"}]),"aria-pressed":e.errorSource==="central",onClick:t[0]||(t[0]=o=>e.errorSource="central")},"Central logs",10,tw),n("button",{id:"error-source-history",type:"button",class:R(["seg-chip",{active:e.errorSource==="history"}]),"aria-pressed":e.errorSource==="history",onClick:t[1]||(t[1]=o=>e.errorSource="history")},"Application history",10,nw)]),n("div",ow,[n("p",sw,d(e.errorSource==="history"?e.redisLoading?"Loading application history\u2026":e.available===null?"Checking Redis\u2026":e.available?"Redis history is reachable.":"Redis history is unavailable. Previously loaded rows may be stale.":e.logFailure||(e.logLoading?"Loading central logs\u2026":e.logSnapshotStale?"This snapshot is stale. Refresh before assessing current health.":e.logStateText(e.logData?.state))),1),n("button",{type:"button",class:"btn btn-sm",disabled:e.errorSource==="central"?e.logLoading:e.redisLoading,onClick:t[2]||(t[2]=o=>e.errorSource==="central"?e.refreshLogs():e.refreshNow())},[h(d((e.errorSource==="central"?e.logLoading:e.redisLoading)?"Refreshing\u2026":"Refresh"),1),n("span",rw,d(e.errorSource==="central"?" central logs":" history"),1)],8,iw),e.errorSource==="central"&&(e.logFailure||["disabled","misconfigured","unreachable","busy"].includes(e.logData?.state))?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[3]||(t[3]=o=>e.errorSource="history")},"Open application history")):f("v-if",!0)])]),T(n("section",{class:"log-investigation","aria-labelledby":"central-logs-title","aria-busy":e.logLoading},[n("div",lw,[t[30]||(t[30]=n("h2",{class:"sr-only",id:"central-logs-title"},"Central logs",-1)),e.logData?.grafanaUrl?(a(),l("a",{key:0,href:e.safeUrl(e.logData.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,dw)):f("v-if",!0)]),e.selectedLog?(a(),l("section",uw,[n("button",{type:"button",class:"log-back",onClick:t[4]||(t[4]=o=>e.closeLogDetail())},[...t[31]||(t[31]=[n("span",{"aria-hidden":"true"},"\u2190",-1),h(" Back to events",-1)])]),n("div",cw,[n("div",null,[n("p",pw,d(e.selectedLog.sample.service)+" / "+d(e.selectedLog.sample.module)+" \xB7 Event sample",1),n("h2",fw,d(e.selectedLog.sample.errorCode||e.selectedLog.sample.errorType||e.selectedLog.sample.event),1)]),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(e.selectedLog.sample)])},[h(d(e.logSeverity(e.selectedLog.sample)==="error"?"Failure":e.logSeverity(e.selectedLog.sample)==="warn"?"Warning":"Info"),1),e.selectedLog.sample.status||e.selectedLog.sample.httpStatus?(a(),l("span",mw," \xB7 HTTP "+d(e.selectedLog.sample.status||e.selectedLog.sample.httpStatus),1)):f("v-if",!0)],2)]),n("div",hw,[n("span",null,[n("strong",null,d(e.selectedLog.count),1),t[32]||(t[32]=h(" returned occurrences",-1))]),n("span",null,[t[33]||(t[33]=h("First ",-1)),n("time",{datetime:e.selectedLog.first},d(e.absTimeShort(e.selectedLog.first)),9,gw)]),n("span",null,[t[34]||(t[34]=h("Last ",-1)),n("time",{datetime:e.selectedLog.last},d(e.absTimeShort(e.selectedLog.last)),9,vw)])]),n("div",yw,[n("div",bw,[n("div",ww,[t[35]||(t[35]=n("span",null,"Follow",-1)),(a(!0),l(V,null,Q(["requestId","jobId"].filter(o=>e.logTraceId(e.selectedLog,o)),o=>(a(),l("button",{type:"button",class:"log-trace-button",key:o,id:"trace-selector-"+o,"aria-label":"Follow "+(o==="requestId"?"request ":"job ")+e.selectedLog.sample[o],"aria-pressed":e.traceSelection?.kind===o,onClick:r=>e.lookupTrace(o,e.selectedLog.sample[o],r.currentTarget,e.selectedLog.sample)},[h(d(o==="requestId"?"Request":"Job")+" ",1),n("span",Cw,d(e.traceSelection?.kind===o?"\u2713":"\u2192"),1)],8,kw))),128)),!e.logTraceId(e.selectedLog,"requestId")&&!e.logTraceId(e.selectedLog,"jobId")?(a(),l("span",Sw,"No correlation ID recorded")):f("v-if",!0),n("span",Ew,d(e.logData?.window||e.logAppliedFilters.window)+" window",1)]),e.traceSelection?(a(),l("section",{key:0,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",Rw,[t[36]||(t[36]=n("h3",{id:"log-timeline-title",tabindex:"-1"},"Related events",-1)),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.closeTrace())},"Hide events")]),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",Tw,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",Dw,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",Pw,[(a(!0),l(V,null,Q(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,Aw),n("div",Iw,[n("div",Ow,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[h(d(o.service),1),o.module?(a(),l("span",Mw," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",Vw," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",Lw," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",qw,[n("code",null,d(o.method)+" "+d(o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",$w,[n("summary",null,[t[37]||(t[37]=h("Exception frames",-1)),o.errorType?(a(),l("span",_w," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",Fw,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",Uw,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",Bw,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",zw,[t[38]||(t[38]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,Hw)])])]))),128))])):f("v-if",!0),n("details",jw,[t[39]||(t[39]=n("summary",null,"Query scope",-1)),n("p",null,"Earliest matching events for the selected "+d(e.traceSelection.kind==="jobId"?"job":"request")+" ID. Service and release filters do not narrow this timeline.",1)]),e.trace?.grafanaUrl?(a(),l("a",{key:3,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,Gw)):f("v-if",!0)],8,Nw)):f("v-if",!0),e.traceSelection?f("v-if",!0):(a(),l("div",Ww,[n("h3",null,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Related events hidden":"This sample has no correlation ID"),1),n("p",null,d(e.logExplanation(e.selectedLog.sample)),1),n("p",Kw,d(e.logEvidence(e.selectedLog.sample)),1),n("p",Yw,d(e.logTraceId(e.selectedLog,"requestId")||e.logTraceId(e.selectedLog,"jobId")?"Choose Request or Job above to load related events.":"The recorded fields are available in the sample panel. Related events cannot be looked up for this record."),1)]))]),n("aside",Jw,[t[47]||(t[47]=n("h3",null,"Event sample",-1)),n("p",Xw,"One of "+d(e.selectedLog.count)+" returned occurrences. IDs can differ across the group.",1),e.selectedLog.sample.route?(a(),l("p",Qw,[n("code",null,d(e.selectedLog.sample.method)+" "+d(e.selectedLog.sample.route),1)])):f("v-if",!0),e.selectedLog.sample.errorStack||e.selectedLog.sample.causeStack?(a(),l("details",Zw,[n("summary",null,"Exception frames \xB7 "+d(e.selectedLog.sample.errorType),1),e.selectedLog.sample.errorStack?(a(),l("pre",xw,d(e.selectedLog.sample.errorStack),1)):f("v-if",!0),e.selectedLog.sample.causeType?(a(),l("p",ek,"Caused by "+d(e.selectedLog.sample.causeType),1)):f("v-if",!0),e.selectedLog.sample.causeStack?(a(),l("pre",tk,d(e.selectedLog.sample.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("dl",nk,[n("div",null,[t[40]||(t[40]=n("dt",null,"Service",-1)),n("dd",null,d(e.selectedLog.sample.service),1)]),n("div",null,[t[41]||(t[41]=n("dt",null,"Module",-1)),n("dd",null,d(e.selectedLog.sample.module||"Not recorded"),1)]),n("div",null,[t[42]||(t[42]=n("dt",null,"Event",-1)),n("dd",null,d(e.selectedLog.sample.event),1)]),e.selectedLog.sample.release?(a(),l("div",ok,[t[43]||(t[43]=n("dt",null,"Release",-1)),n("dd",null,d(e.selectedLog.sample.release),1)])):f("v-if",!0)]),n("dl",sk,[(a(),l(V,null,Q(["requestId","jobId"],o=>(a(),l(V,{key:o},[e.logTraceId(e.selectedLog,o)?(a(),l("div",ik,[n("dt",null,d(o==="requestId"?"Request ID":"Job ID"),1),n("dd",null,[n("details",rk,[n("summary",null,d(e.compactLogValue(e.selectedLog.sample[o])),1),n("span",null,d(e.selectedLog.sample[o]),1)]),n("button",{type:"button",class:"log-copy-value",onClick:r=>e.copyLogValue(e.selectedLog.sample[o])},"Copy full ID",8,ak)])])):f("v-if",!0)],64))),64))]),n("details",lk,[n("summary",null,[t[44]||(t[44]=h("All sample fields ",-1)),n("span",null,d(Object.keys(e.selectedLog.sample).length),1)]),t[46]||(t[46]=n("p",{class:"log-coverage"},"Safe API fields only. Routes omit private parameters; exception frames include recognized application code only.",-1)),n("dl",null,[(a(!0),l(V,null,Q(e.selectedLog.sample,(o,r)=>T((a(),l("div",{key:r},[n("dt",null,d(r),1),n("dd",null,d(o),1)])),[[Z,!["requestId","jobId"].includes(r)]])),128))]),n("details",dk,[t[45]||(t[45]=n("summary",null,"Raw sample",-1)),n("pre",null,d(JSON.stringify(e.selectedLog.sample,null,2)),1),n("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=o=>e.copyLogValue(JSON.stringify(e.selectedLog.sample,null,2)))},"Copy JSON")])])])])])):f("v-if",!0),T(n("div",uk,[n("details",ck,[n("summary",null,[h("Window: "+d(e.logAppliedFilters.window)+" \xB7 "+d(e.logAppliedFilters.service||"All services"),1),e.logAppliedFilters.release?(a(),l("span",pk," \xB7 "+d(e.logAppliedFilters.release),1)):f("v-if",!0),t[48]||(t[48]=n("span",{class:"log-query-hint"},"Time & service",-1))]),t[54]||(t[54]=h()),n("form",{class:"errors-toolbar log-filters",onSubmit:t[10]||(t[10]=ae(o=>e.refreshLogs(),["prevent"]))},[n("label",null,[t[50]||(t[50]=h("Time window ",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[7]||(t[7]=o=>e.logFilters.window=o),id:"log-window"},[...t[49]||(t[49]=[n("option",{value:"15m"},"Last 15 minutes",-1),n("option",{value:"1h"},"Last hour",-1),n("option",{value:"6h"},"Last 6 hours",-1),n("option",{value:"24h"},"Last 24 hours",-1)])],512),[[Rt,e.logFilters.window]])]),n("label",null,[t[52]||(t[52]=h("Service ",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[8]||(t[8]=o=>e.logFilters.service=o),id:"log-service"},[...t[51]||(t[51]=[Se('',8)])],512),[[Rt,e.logFilters.service]])]),n("label",null,[t[53]||(t[53]=h("Release SHA ",-1)),T(n("input",{class:"form-control",id:"log-release","onUpdate:modelValue":t[9]||(t[9]=o=>e.logFilters.release=o),maxlength:"40",placeholder:"All releases",pattern:"[a-f0-9]{7,40}|unknown",autocomplete:"off"},null,512),[[nt,e.logFilters.release]])]),n("button",{class:"btn btn-sm",type:"submit",disabled:e.logLoading},d(e.logLoading?"Loading\u2026":"Refresh logs"),9,fk)],32),e.logData?.captured!==void 0?(a(),l("p",mk,d(e.logData.captured)+" records returned \xB7 1,000-record cap \xB7 "+d(e.absTime(e.logData.start))+" to "+d(e.absTime(e.logData.end)),1)):f("v-if",!0)]),n("div",hk,[n("label",gk,[t[55]||(t[55]=h("Search returned groups",-1)),T(n("input",{class:"form-control",type:"search","onUpdate:modelValue":t[11]||(t[11]=o=>e.logView.search=o),placeholder:"Event, service, code or sample ID"},null,512),[[nt,e.logView.search]])]),n("label",null,[t[57]||(t[57]=h("Severity",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[12]||(t[12]=o=>e.logView.severity=o)},[...t[56]||(t[56]=[n("option",{value:""},"All severities",-1),n("option",{value:"error"},"Failure / HTTP 5xx",-1),n("option",{value:"warn"},"Warning",-1),n("option",{value:"info"},"Info",-1)])],512),[[Rt,e.logView.severity]])]),n("label",null,[t[59]||(t[59]=h("Sort",-1)),T(n("select",{class:"form-control","onUpdate:modelValue":t[13]||(t[13]=o=>e.logView.sort=o)},[...t[58]||(t[58]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])],512),[[Rt,e.logView.sort]])])]),n("p",vk,d(e.filteredLogGroups().length)+" of "+d(e.logData?.groups?.length||0)+" returned groups \xB7 "+d(e.logData?.captured??0)+" records \xB7 1,000-record cap.",1),e.logLoading?(a(),l("div",yk,"Loading event groups\u2026")):(a(),l("div",bk,[n("div",wk,[e.filteredLogGroups().length?(a(),l("div",kk,[n("table",Ck,[t[62]||(t[62]=n("caption",{class:"sr-only"},"Returned events grouped by service, module, code, severity and status. Select an event for sample details.",-1)),t[63]||(t[63]=n("thead",null,[n("tr",null,[n("th",{scope:"col"},"Event"),n("th",{scope:"col"},"Severity"),n("th",{scope:"col"},"Count"),n("th",{scope:"col"},"Last seen")])],-1)),n("tbody",null,[(a(!0),l(V,null,Q(e.filteredLogGroups(),o=>(a(),l("tr",{key:o.fingerprint,class:R({"log-selected":e.selectedLog?.fingerprint===o.fingerprint})},[n("td",null,[n("button",{class:"log-event-button",type:"button","aria-label":"Inspect "+(o.sample.errorCode||o.sample.errorType||o.sample.event),onClick:r=>e.selectLog(o,r.currentTarget),"aria-expanded":e.selectedLog?.fingerprint===o.fingerprint,"aria-controls":"log-detail"},[n("span",Ek,[n("strong",null,d(o.sample.errorCode||o.sample.errorType||o.sample.event),1),t[60]||(t[60]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-arrow-right"})],-1))]),n("span",Nk,[n("span",Rk,d(o.sample.service),1),n("span",Tk," / "+d(o.sample.module),1)])],8,Sk)]),n("td",Dk,[n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o.sample)])},d(e.logSeverity(o.sample)==="error"?"Failure":e.logSeverity(o.sample)==="warn"?"Warning":"Info"),3),o.sample.status||o.sample.httpStatus?(a(),l("span",Pk,"HTTP "+d(o.sample.status||o.sample.httpStatus),1)):f("v-if",!0)]),n("td",Ak,[t[61]||(t[61]=n("span",{class:"sr-only"},"Count ",-1)),h(d(o.count),1)]),n("td",null,[n("time",{datetime:o.last,title:e.absTime(o.last)},d(e.relTime(o.last)),9,Ik)])],2))),128))])])])):e.logData?.groups?.length?(a(),l("div",Ok,[t[64]||(t[64]=h("No returned groups match these filters. ",-1)),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>{e.logView.search="",e.logView.severity=""})},"Reset filters")])):(a(),l("div",Mk,d(e.logData?.state==="empty"?"No warnings, errors or HTTP 5xx returned in this window.":"No central events available. Refresh logs or open Application history."),1))])])),e.logData?.telemetry?(a(),l("details",Vk,[t[66]||(t[66]=n("summary",null,[h("Telemetry details "),n("span",null,"90 seconds before last check")],-1)),e.logData.telemetry.missing?.length?(a(),l("p",Lk,"Missing or stale: "+d(e.logData.telemetry.missing.join(", "))+". Expected one API, four streamers and three queues.",1)):(a(),l("p",qk,"Expected API, streamer and queue heartbeats were present at the last check.")),e.logData.telemetry.partial?(a(),l("p",$k,"Telemetry coverage is partial; absence and drop totals may be incomplete.")):f("v-if",!0),n("p",null,"Collector: "+d(e.logData.telemetry.collector.state)+" \xB7 dropped events since collector start: "+d(e.logData.telemetry.collector.dropped??"unknown")+". Intentional filtering is excluded.",1),n("details",null,[t[65]||(t[65]=n("summary",null,"Application drop counters and last telemetry",-1)),n("ul",null,[(a(!0),l(V,null,Q(e.logData.telemetry.instances,(o,r)=>(a(),l("li",{key:r},d(o.service)+" \xB7 "+d(o.instance||"unknown instance")+" \xB7 "+d(o.dropped??"unknown")+" dropped since process start \xB7 last seen "+d(e.absTime(o.last)),1))),128))])])])):f("v-if",!0)],512),[[Z,!e.selectedLog]])],8,aw),[[Z,e.errorSource==="central"]]),e.logCopyStatus?(a(),l("p",_k,d(e.logCopyStatus),1)):f("v-if",!0),T(n("section",{class:"history-source","aria-busy":e.redisLoading},[t[105]||(t[105]=n("h2",{class:"sr-only"},"Application history",-1)),e.redisCollecting!==!0?(a(),l("p",Uk,d(e.redisCollecting===!1?"Collection is off; retained history is not receiving new events.":"Collection status is unknown."),1)):f("v-if",!0),e.historySelected?(a(),l("div",Bk,[n("button",{type:"button",class:"log-back",onClick:t[15]||(t[15]=o=>e.closeHistory())},"\u2190 Back to history"),n("div",zk,[n("div",null,[n("p",Hk,d(e.historySelected.module)+" \xB7 Application history",1),n("h2",jk,d(e.historySelected.displayMessage),1)]),n("span",{class:R(["log-severity","log-severity-"+e.historySelected._bucket])},[h(d(e.historySelected._bucket),1),e.historySelected._status?(a(),l("span",Gk," \xB7 HTTP "+d(e.historySelected._status),1)):f("v-if",!0)],2)]),n("div",Wk,[n("button",{type:"button","aria-pressed":e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary"),class:R({active:e.historyView==="overview"&&(!e.detailTab[e.historySelected._key]||e.detailTab[e.historySelected._key]==="summary")}),onClick:t[16]||(t[16]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="summary"})},"Overview",10,Kk),n("button",{type:"button","aria-pressed":e.historyView==="timeline",class:R({active:e.historyView==="timeline"}),onClick:t[17]||(t[17]=o=>e.showHistoryTimeline(o.currentTarget))},"Timeline",10,Yk),n("button",{type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="raw"}),onClick:t[18]||(t[18]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="raw"})},"Raw",10,Jk),e.historySelected._stack?(a(),l("button",{key:0,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="stack"}),onClick:t[19]||(t[19]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="stack"})},"Stack",10,Xk)):f("v-if",!0),e.historySelected.count>1?(a(),l("button",{key:1,type:"button","aria-pressed":e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related",class:R({active:e.historyView==="overview"&&e.detailTab[e.historySelected._key]==="related"}),onClick:t[20]||(t[20]=o=>{e.historyView="overview",e.detailTab[e.historySelected._key]="related"})},"Occurrences ("+d(e.historySelected.count)+")",11,Qk)):f("v-if",!0)])])):f("v-if",!0),T(n("div",null,[T((a(),l("form",Zk,[n("div",xk,[n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")===""}]),"aria-pressed":(e.query?.bucket||"")==="",onClick:t[21]||(t[21]=o=>e.setBucket(""))},"All ",10,e0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="error","is-empty":!e.stats?.severity?.error}]),"aria-pressed":(e.query?.bucket||"")==="error",onClick:t[22]||(t[22]=o=>e.setBucket("error"))},[...t[67]||(t[67]=[n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1),h("Error ",-1)])],10,t0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="warn","is-empty":!e.stats?.severity?.warn}]),"aria-pressed":(e.query?.bucket||"")==="warn",onClick:t[23]||(t[23]=o=>e.setBucket("warn"))},[...t[68]||(t[68]=[n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1),h("Warning ",-1)])],10,n0),n("button",{type:"button",class:R(["seg-chip",{active:(e.query?.bucket||"")==="info","is-empty":!e.stats?.severity?.info}]),"aria-pressed":(e.query?.bucket||"")==="info",onClick:t[24]||(t[24]=o=>e.setBucket("info"))},[...t[69]||(t[69]=[n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1),h("Info ",-1)])],10,o0)]),n("div",s0,[t[70]||(t[70]=n("svg",{class:"ui-icon search-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)),T(n("input",i0,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(a(),l("span",r0,d(e.parsedFilterCount)+" filter"+d(e.parsedFilterCount>1?"s":""),1)):f("v-if",!0)]),n("details",a0,[t[76]||(t[76]=n("summary",null,"View options",-1)),n("div",l0,[n("div",d0,[t[72]||(t[72]=n("label",{for:"history-sort"},"Sort",-1)),T((a(),l("select",u0,[...t[71]||(t[71]=[n("option",{value:"recent"},"Most recent",-1),n("option",{value:"count"},"Most frequent",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.sort=o},value:e.query?.sort,form:null,options:{}}]])]),n("div",c0,[t[74]||(t[74]=n("label",{for:"history-merge",title:"Rows are always sectioned by severity. This merges repeated events inside each section."},"Merge",-1)),T((a(),l("select",p0,[...t[73]||(t[73]=[n("option",{value:""},"Don't merge",-1),n("option",{value:"code"},"Same error",-1),n("option",{value:"module"},"Same module",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.group=o},value:e.query?.group,form:null,options:{}}]])]),n("label",f0,[T(n("input",m0,null,512),[[s,{state:e.viewState,set:o=>{e.query.autoRefresh=o},value:e.query?.autoRefresh,form:null,options:{}}]]),t[75]||(t[75]=n("span",{class:"auto-refresh-label"},"Auto-refresh",-1))])])])])),[[i,e.viewState]]),e.redisLoading?(a(),l("p",h0,"Loading application history\u2026")):f("v-if",!0),!e.redisLoading&&!e.visible?.length&&e.available===!0?(a(),l("div",g0,"No matching entries in the loaded Redis history.")):f("v-if",!0),e.redisRedacted?(a(),l("p",v0,d(e.redisRedacted)+" invalid legacy records were omitted. Older valid records may still be available.",1)):f("v-if",!0),e.entries?.length||e.canLoadMore()?(a(),l("div",y0,[n("span",null,d(e.query?.group&&e.visible?.length!==e.entries?.length?e.fmt?.number(e.visible?.length)+(e.visible?.length===1?" group":" groups")+" from ":"")+d(e.fmt?.number(e.entries?.length))+" safe entries loaded \xB7 "+d(e.fmt?.number(e.redisNextOffset||e.entries?.length))+" of "+d(e.fmt?.number(e.total))+" stored records scanned",1),e.canLoadMore()?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:t[25]||(t[25]=o=>e.loadMore()),disabled:e.redisLoading},"Load 250 older",8,b0)):f("v-if",!0)])):f("v-if",!0)],512),[[Z,!e.historySelected]]),e.visible?.length||e.historySelected?T((a(),l("div",{key:2,class:R(["errors-list",{"history-inspector":e.historySelected}])},[e.historySelected?f("v-if",!0):(a(),l("div",w0,[...t[77]||(t[77]=[Se('WhenSeverityModuleMessageTotalStatus',6)])])),(a(!0),l(V,null,Q(e.historySelected?[e.historySelected]:e.visible,(o,r)=>(a(),l(V,{key:o?._key},[!e.historySelected&&(r===0||e.visible[r-1]?._bucket!==o?._bucket)?(a(),l("div",k0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),h(d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1),n("span",C0,d(e.fmt?.number(e.visible.filter(u=>u?._bucket===o?._bucket).length)),1),r===0?(a(),l("span",S0,"By severity \xB7 "+d(e.query?.group==="code"?"repeats merged by error \xB7 ":e.query?.group==="module"?"repeats merged by module \xB7 ":"")+d(e.query?.sort==="count"?"most frequent first":"most recent first"),1)):f("v-if",!0)])):f("v-if",!0),n("div",{class:R(["errors-row",{open:e.expanded[o?._key]}])},[T(n("button",{type:"button",class:"errors-row-main","data-history-key":o?._key,"aria-expanded":!!e.expanded[o?._key],"aria-controls":"history-detail-"+r,onClick:u=>e.toggle(o,u.currentTarget)},[n("span",N0,[n("span",R0,d(e.relTime(o?.ts)),1),n("span",T0,d(e.absTimeShort(o?.ts)),1)]),n("span",D0,[n("span",{class:R(["sev-dot","sev-"+o?._bucket])},null,2),n("span",P0,d(o?._bucket==="error"?"Error":o?._bucket==="warn"?"Warning":"Info"),1)]),n("span",A0,[n("span",I0,d(o?.module),1)]),n("span",O0,[n("strong",M0,d(o?.displayMessage),1),o?.displayContext&&o?.displayContext!==o?.displayMessage?(a(),l("span",V0,d(o?.displayContext),1)):f("v-if",!0),o?._detail?(a(),l("span",L0,d(o?._detail),1)):f("v-if",!0),o?._url?(a(),l("span",{key:2,class:"msg-url",title:o?._url},d(o?._url),9,q0)):f("v-if",!0)]),n("span",$0,[o?.count>1?(a(),l("span",_0,"\xD7"+d(o?.count),1)):f("v-if",!0),o?.count===1?(a(),l("span",F0,"\xD71")):f("v-if",!0)]),n("span",U0,[o?._status?(a(),l("span",{key:0,class:R(["status-pill",String(o?._status).match(/^[23]/)?"status-neutral":"status-"+o?._bucket]),title:String(o?._status).match(/^2/)&&o?._bucket==="warn"?"Client closed the connection":null},d(String(o?._status).match(/^2/)&&o?._bucket==="warn"?"\u2014":o?._status),11,B0)):f("v-if",!0),o?._status?f("v-if",!0):(a(),l("span",z0,"\u2014"))])],8,E0),[[Z,!e.historySelected]]),e.expanded[o?._key]?(a(),l("div",{key:0,class:"errors-row-detail",id:"history-detail-"+r},[n("div",j0,[n("div",G0,[!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("div",W0,[t[80]||(t[80]=n("h3",null,"What happened",-1)),o.raw?.[0]?.route?(a(),l("p",K0,[n("code",null,d(o.raw[0].method)+" "+d(o.raw[0].route),1)])):f("v-if",!0),o.raw?.[0]?.errorType?(a(),l("p",Y0,[h(d(o.raw[0].errorType),1),o.raw[0].causeType?(a(),l("span",J0," \xB7 caused by "+d(o.raw[0].causeType),1)):f("v-if",!0)])):f("v-if",!0),n("p",X0,d(e.logExplanation(o.raw?.[0]||{})),1),n("p",Q0,d(e.logEvidence(o.raw?.[0]||{})),1),n("details",Z0,[t[78]||(t[78]=n("summary",null,"Technical fields",-1)),t[79]||(t[79]=h()),!e.detailTab[o?._key]||e.detailTab[o?._key]==="summary"?(a(),l("dl",x0,[(a(!0),l(V,null,Q(e.historyDetailFields(o),([u,p])=>(a(),l("div",{key:u},[n("dt",null,d(u),1),n("dd",null,[e.isLogIdentifier(u,p)?(a(),l(V,{key:0},[n("details",e2,[n("summary",null,d(e.compactLogValue(p)),1),n("span",null,d(p),1)]),n("button",{type:"button",class:"log-copy-value",onClick:c=>e.copyLogValue(p)},"Copy full "+d(u),9,t2)],64)):(a(),l(V,{key:1},[h(d(e.logFieldText(p)),1)],64))])]))),128))])):f("v-if",!0)])])):f("v-if",!0),e.detailTab[o?._key]==="raw"?(a(),l("pre",n2,d(o?._rawJson),1)):f("v-if",!0),e.detailTab[o?._key]==="stack"?(a(),l("pre",o2,d(o?._stack),1)):f("v-if",!0),e.detailTab[o?._key]==="related"?(a(),l("section",s2,[t[82]||(t[82]=n("h3",null,"Stored occurrences",-1)),n("p",i2,d(o._related.length)+" matching records in the loaded Redis snapshot. Most recent first.",1),n("ol",r2,[(a(!0),l(V,null,Q(e.historyOccurrences(o),(u,p)=>(a(),l("li",{key:p},[n("details",a2,[n("summary",null,[n("span",l2,[n("time",{datetime:u.ts},d(e.occurrenceTime(u.ts)),9,d2),n("span",{class:R(["log-severity","log-severity-"+u._bucket])},d(u._status?"HTTP "+u._status:u._bucket),3)]),n("span",u2,[h(d(u.raw?.[0]?.service||"Application")+" \xB7 "+d(u.module||"Unknown module"),1),u.raw?.[0]?.route?(a(),l("span",c2,[h(" \xB7 "+d(u.raw[0].method)+" ",1),n("code",null,d(u.raw[0].route),1)])):(a(),l("span",p2," \xB7 Route not captured"))])]),u.raw?.[0]?.errorType?(a(),l("p",f2,d(u.raw[0].errorType),1)):f("v-if",!0),u._stack?(a(),l("pre",m2,d(u._stack),1)):(a(),l("p",h2,"Exception frames were not captured.")),u.raw?.[0]?.route?f("v-if",!0):(a(),l("p",g2,"Request route was not captured.")),n("details",v2,[t[81]||(t[81]=n("summary",null,"Stored record",-1)),n("pre",null,d(u._rawJson),1)])])]))),128))])])):f("v-if",!0),n("div",y2,[e.logTraceId(o,"requestId")?(a(),l("button",{key:0,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("requestId",e.logTraceId(o,"requestId"),u.currentTarget,o)},"Request timeline \u2192",8,b2)):f("v-if",!0),e.logTraceId(o,"jobId")?(a(),l("button",{key:1,class:"btn btn-sm",type:"button",onClick:u=>e.lookupTrace("jobId",e.logTraceId(o,"jobId"),u.currentTarget,o)},"Job timeline \u2192",8,w2)):f("v-if",!0),o?._url?(a(),l("button",{key:2,class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:u=>e.copyCurl(o)},[...t[83]||(t[83]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Copy curl",-1)])],8,k2)):f("v-if",!0),n("button",{class:"btn btn-sm",type:"button",onClick:u=>e.copyJson(o)},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-clipboard"})],-1),h(" Copy JSON",-1)])],8,C2),e.copyHint?(a(),l("span",S2,d(e.copyHint),1)):f("v-if",!0)])]),n("aside",E2,[n("div",N2,[t[85]||(t[85]=n("div",{class:"aside-label"},"First seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?._firstSeen)},d(e.relTime(o?._firstSeen)),9,R2)]),n("div",T2,[t[86]||(t[86]=n("div",{class:"aside-label"},"Last seen",-1)),n("div",{class:"aside-value",title:e.absTime(o?.ts)},d(e.relTime(o?.ts)),9,D2)]),n("div",P2,[t[87]||(t[87]=n("div",{class:"aside-label"},"Occurrences",-1)),n("div",A2,[h(d(o?.count),1),o?._lastHourCount?(a(),l("span",I2," \xB7 "+d(o?._lastHourCount)+" this hour",1)):f("v-if",!0)])]),o?._repoId?(a(),l("div",O2,[t[89]||(t[89]=n("div",{class:"aside-label"},"Repository",-1)),n("a",{class:"aside-value",href:e.safeUrl("/r/"+o?._repoId)},d(e.isLogIdentifier("repoId",o?._repoId)?e.compactLogValue(o?._repoId):o?._repoId),9,M2),e.isLogIdentifier("repoId",o?._repoId)?(a(),l("details",V2,[t[88]||(t[88]=n("summary",null,"Full repository ID",-1)),h(d(o?._repoId),1)])):f("v-if",!0),n("button",{type:"button",class:"log-copy-value",onClick:u=>e.copyLogValue(o?._repoId)},"Copy full repository ID",8,L2)])):f("v-if",!0),o?._url?(a(),l("div",q2,[t[90]||(t[90]=n("div",{class:"aside-label"},"URL",-1)),n("div",$2,d(o?._url),1)])):f("v-if",!0)])])],8,H0)):f("v-if",!0)],2)],64))),128))],2)),[[Z,e.historyView!=="timeline"||!e.historySelected]]):f("v-if",!0),T(n("details",_2,[t[103]||(t[103]=n("summary",null,"History settings, export and diagnostics",-1)),n("div",F2,[n("div",U2,[n("button",{class:"btn btn-sm",type:"button",onClick:t[26]||(t[26]=o=>e.exportCsv())},"Export Redis CSV"),n("button",{class:"btn btn-sm btn-outline-danger",type:"button",onClick:t[27]||(t[27]=o=>e.clearAll())},"Clear Redis history")])]),n("p",B2,d(e.redisCollecting===!1?"Collection is OFF (LOG_REDIS_MIRROR=off); retained history is not receiving new events.":e.redisCollecting===!0?"The application is configured to mirror warnings and errors.":"Collection status is unknown."),1),t[104]||(t[104]=n("p",{class:"log-coverage"},"Redis mirror: hourly counters cover 24 hours; stored rows are a rotating snapshot and may cover a shorter or longer period. Counts are not combined with central logs.",-1)),e.redisStatsState!=="ready"||e.available!==!0?(a(),l("p",z2,"Redis counters are "+d(e.redisStatsState==="loading"?"loading":"unavailable")+".",1)):f("v-if",!0),n("details",H2,[t[101]||(t[101]=n("summary",null,"24-hour counters and volume",-1)),t[102]||(t[102]=h()),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",j2,[n("div",G2,[t[91]||(t[91]=n("div",{class:"kpi-label"},"Occurrences \xB7 24h",-1)),n("div",W2,d(e.fmt?.number(e.stats?.last24h??0)),1),n("div",{class:R(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h>=20?(a(),l("span",K2,d((e.stats?.last24h??0)-(e.stats?.prev24h??0)>=0?"+":"")+d(Math.round(((e.stats?.last24h??0)-(e.stats?.prev24h??0))/e.stats.prev24h*100))+"% vs yesterday",1)):e.stats?.prev24h!==void 0?(a(),l("span",Y2,d(e.fmt?.number(e.stats?.prev24h??0))+" in prior 24h",1)):f("v-if",!0),e.stats?.prev24h?f("v-if",!0):(a(),l("span",J2,"no prior baseline"))],2)]),n("div",X2,[t[92]||(t[92]=n("div",{class:"kpi-label"},"Error",-1)),n("div",Q2,d(e.fmt?.number(e.stats?.severity?.error??0)),1),n("div",Z2,"5xx \xB7 "+d(e.stats?.unique?.error)+" unique",1)]),n("div",x2,[t[93]||(t[93]=n("div",{class:"kpi-label"},"Warning",-1)),n("div",eC,d(e.fmt?.number(e.stats?.severity?.warn??0)),1),n("div",tC,"4xx, aborted \xB7 "+d(e.stats?.unique?.warn)+" unique",1)]),n("div",nC,[t[94]||(t[94]=n("div",{class:"kpi-label"},"Info",-1)),n("div",oC,d(e.fmt?.number(e.stats?.severity?.info??0)),1),n("div",sC,"Auth, 404 \xB7 "+d(e.stats?.unique?.info)+" unique",1)]),n("div",{class:R(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[95]||(t[95]=n("div",{class:"kpi-label"},"Entries stored",-1)),n("div",iC,d(e.fmt?.number(e.total)),1),n("div",rC,[h(" rotating history \xB7 cap "+d(e.fmt?.number(e.cap))+" ",1),e.stats?.dropped>0?(a(),l("span",aC," \xB7 "+d(e.stats?.dropped)+" dropped",1)):f("v-if",!0)])],2)])):f("v-if",!0),e.redisStatsState==="ready"&&e.available===!0?(a(),l("section",lC,[n("div",dC,[t[99]||(t[99]=n("span",{class:"volume-title"},"Volume \xB7 24h \xB7 1h buckets",-1)),n("span",uC,[e.stats?.severity?.error?(a(),l("span",cC,[...t[96]||(t[96]=[n("span",{class:"dot dot-error"},null,-1),h("Error",-1)])])):f("v-if",!0),e.stats?.severity?.warn?(a(),l("span",pC,[...t[97]||(t[97]=[n("span",{class:"dot dot-warn"},null,-1),h("Warning",-1)])])):f("v-if",!0),e.stats?.severity?.info?(a(),l("span",fC,[...t[98]||(t[98]=[n("span",{class:"dot dot-info"},null,-1),h("Info",-1)])])):f("v-if",!0)])]),n("div",mC,[(a(!0),l(V,null,Q(e.stats?.buckets,(o,r)=>(a(),l("div",{class:"volume-bar",key:r,title:e.bucketTitle(o)},[n("span",{class:"seg seg-error",style:Ae({height:e.barPx(o,"error")+"px"})},null,4),n("span",{class:"seg seg-warn",style:Ae({height:e.barPx(o,"warn")+"px"})},null,4),n("span",{class:"seg seg-info",style:Ae({height:e.barPx(o,"info")+"px"})},null,4)],8,hC))),128))]),t[100]||(t[100]=n("div",{class:"volume-axis","aria-hidden":"true"},[n("span",null,"24h ago"),n("span",null,"12h ago"),n("span",null,"now")],-1))])):f("v-if",!0)])],512),[[Z,!e.historySelected]])],8,Fk),[[Z,e.errorSource==="history"]]),e.errorSource==="history"&&e.historyView==="timeline"?(a(),l("div",gC,[e.traceSelection?f("v-if",!0):(a(),l("div",vC,"No request or job ID was recorded for this entry.")),e.traceSelection?(a(),l("section",{key:1,class:"log-timeline","aria-labelledby":"log-timeline-title","aria-busy":e.traceLoading},[n("div",bC,[n("h3",wC,d(e.traceSelection.kind==="jobId"?"Job":"Request")+" timeline",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[28]||(t[28]=o=>e.closeTrace())},"Close timeline")]),e.traceSelection.context?(a(),l("p",kC,d(e.traceSelection.context.event)+" \xB7 "+d(e.traceSelection.context.service),1)):f("v-if",!0),e.traceLoading||e.trace?.state!=="ready"?(a(),l("p",CC,d(e.traceLoading?"Loading related events\u2026":e.trace?.state==="empty"?"No related events returned in this window.":e.logStateText(e.trace?.state)),1)):f("v-if",!0),e.trace&&!e.traceLoading?(a(),l("p",SC,d(e.trace.events?.length||0)+" events returned \xB7 "+d(e.absTime(e.trace.start))+" \u2013 "+d(e.absTime(e.trace.end))+" \xB7 200-event cap. All services and releases.",1)):f("v-if",!0),e.trace?.events?.length?(a(),l("ol",EC,[(a(!0),l(V,null,Q(e.trace.events,(o,r)=>(a(),l("li",{key:r},[n("time",{datetime:o.timestamp,title:o.timestamp},d(e.absTimeShort(o.timestamp)),9,NC),n("div",RC,[n("div",TC,[n("strong",null,d(o.errorCode||o.errorType||o.event),1),n("span",{class:R(["log-severity","log-severity-"+e.logSeverity(o)])},d(o.status||o.httpStatus?"HTTP "+(o.status||o.httpStatus):o.severity||"Event"),3)]),n("p",null,[h(d(o.service),1),o.module?(a(),l("span",DC," / "+d(o.module),1)):f("v-if",!0),o.ms!==void 0?(a(),l("span",PC," \xB7 "+d(o.ms)+" ms",1)):f("v-if",!0),o.attempt!==void 0?(a(),l("span",AC," \xB7 attempt "+d(o.attempt),1)):f("v-if",!0)]),o.route?(a(),l("p",IC,[n("code",null,d(o.method)+" "+d(o.route),1)])):f("v-if",!0),o.errorStack||o.causeStack?(a(),l("details",OC,[n("summary",null,[t[106]||(t[106]=h("Exception frames",-1)),o.errorType?(a(),l("span",MC," \xB7 "+d(o.errorType),1)):f("v-if",!0)]),o.errorStack?(a(),l("pre",VC,d(o.errorStack),1)):f("v-if",!0),o.causeType?(a(),l("p",LC,"Caused by "+d(o.causeType),1)):f("v-if",!0),o.causeStack?(a(),l("pre",qC,d(o.causeStack),1)):f("v-if",!0)])):f("v-if",!0),n("details",$C,[t[107]||(t[107]=n("summary",null,"Event fields",-1)),n("pre",null,d(JSON.stringify(o,null,2)),1),n("button",{type:"button",class:"btn btn-sm",onClick:u=>e.copyLogValue(JSON.stringify(o,null,2))},"Copy JSON",8,_C)])])]))),128))])):f("v-if",!0),n("details",FC,[t[108]||(t[108]=n("summary",null,"Correlation ID and query scope",-1)),n("code",null,d(e.traceSelection.id),1),n("button",{type:"button",class:"log-copy-value",onClick:t[29]||(t[29]=o=>e.copyLogValue(e.traceSelection.id))},"Copy full ID"),t[109]||(t[109]=n("p",null,"Earliest matching events in the selected window. Service and release filters do not narrow this timeline.",-1))]),e.trace?.grafanaUrl?(a(),l("a",{key:4,href:e.safeUrl(e.trace.grafanaUrl),target:"_blank",rel:"noopener noreferrer"},"Open in Grafana",8,UC)):f("v-if",!0)],8,yC)):f("v-if",!0)])):f("v-if",!0)])}var BC={class:"container paper-page admin-page overview-page"},zC={key:0,class:"admin-empty"},HC={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},jC={class:"ov-views",role:"tablist","aria-label":"Overview sections"},GC=["aria-selected","onClick"],WC={key:2},KC={key:0,class:"ov-health",role:"status"},YC={class:"ov-kpi-row"},JC={class:"ov-kpi-card"},XC={class:"ov-kpi-value"},QC={class:"ov-kpi-sub"},ZC={class:"ov-kpi-card"},xC={class:"ov-kpi-sub"},eS={class:"ov-kpi-card"},tS={class:"ov-kpi-sub"},nS={class:"ov-kpi-card"},oS={class:"ov-kpi-sub"},sS={class:"ov-kpi-card"},iS={class:"ov-kpi-value"},rS={class:"ov-kpi-sub"},aS={class:"ov-daily-row"},lS={class:"ov-daily-card"},dS={class:"ov-daily-value"},uS={class:"ov-daily-card"},cS={class:"ov-daily-value"},pS={class:"ov-daily-sub"},fS={class:"ov-daily-card"},mS={class:"ov-daily-value"},hS={class:"ov-chart-card"},gS={class:"ov-chart-head"},vS={class:"ov-chart-legends"},yS={class:"ov-chart-legend"},bS={key:0,class:"ov-legend-missing"},wS={key:0,class:"ov-spark-bars ov-has-axis"},kS={class:"ov-yaxis","aria-hidden":"true"},CS=["data-tip","aria-label"],SS={key:1,class:"ov-spark-x"},ES={class:"ov-chart-card"},NS={class:"ov-chart-head"},RS={class:"ov-chart-legends"},TS={class:"ov-chart-legend"},DS={key:0,class:"ov-legend-missing"},PS={key:0,class:"ov-spark-bars ov-has-axis"},AS={class:"ov-yaxis","aria-hidden":"true"},IS=["data-tip","aria-label"],OS={key:1,class:"ov-spark-x"},MS={key:0,class:"ov-chart-card"},VS={class:"ov-chart-head"},LS={class:"ov-chart-legends"},qS={class:"ov-chart-legend"},$S={key:0,class:"ov-legend-missing"},_S={key:0,class:"ov-spark-bars ov-spark-step ov-has-axis"},FS={class:"ov-yaxis","aria-hidden":"true"},US=["viewBox","aria-label"],BS=["d"],zS=["d"],HS={key:1,class:"ov-spark-x"},jS={class:"ov-chart-card"},GS={class:"ov-chart-head"},WS={class:"ov-chart-legends"},KS={class:"ov-chart-legend"},YS={key:0,class:"ov-legend-missing"},JS={key:0,class:"ov-spark-bars ov-has-axis"},XS={class:"ov-yaxis","aria-hidden":"true"},QS=["data-tip","aria-label"],ZS={key:1,class:"ov-spark-x"},xS={class:"ov-triple-row"},eE={class:"ov-panel-card"},tE={class:"ov-panel-head"},nE={class:"ov-panel-meta"},oE={class:"ov-stacked-bar"},sE={class:"ov-bar-legend"},iE={href:"/admin/repositories",class:"ov-legend-item"},rE={class:"ov-legend-n"},aE={href:"/admin/repositories",class:"ov-legend-item"},lE={class:"ov-legend-n"},dE={href:"/admin/repositories",class:"ov-legend-item"},uE={class:"ov-legend-n"},cE={href:"/admin/repositories",class:"ov-legend-item"},pE={class:"ov-legend-n"},fE={href:"/admin/repositories",class:"ov-legend-item"},mE={class:"ov-legend-n"},hE={class:"ov-panel-card"},gE={class:"ov-panel-head"},vE={class:"ov-panel-meta"},yE={class:"ov-error-bars"},bE={class:"ov-ebar-row"},wE={class:"ov-ebar-track"},kE={class:"ov-ebar-n"},CE={class:"ov-ebar-row"},SE={class:"ov-ebar-track"},EE={class:"ov-ebar-n"},NE={key:0,class:"ov-ehours",role:"img","aria-label":"Errors per hour over the last 24 hours"},RE={class:"ov-ehours-legend"},TE={class:"ov-ehours-note"},DE={class:"ov-ehours-bars"},PE=["title"],AE={key:0,class:"ov-ehours-zero"},IE={class:"ov-ebar-note"},OE={key:0,class:"ov-panel-foot"},ME={href:"/admin/errors"},VE={class:"ov-panel-card"},LE={class:"ov-routes-table"},qE={class:"ov-route-row",href:"/admin/queues"},$E={class:"ov-route-n"},_E={class:"ov-route-n"},FE={class:"ov-route-row",href:"/admin/queues"},UE={class:"ov-route-n"},BE={class:"ov-route-n"},zE={class:"ov-route-row",href:"/admin/queues"},HE={class:"ov-route-n"},jE={class:"ov-route-n"},GE={class:"ov-services-card"},WE={class:"ov-services-head"},KE={class:"ov-panel-meta"},YE={class:"ov-services-grid"},JE={class:"ov-svc"},XE={class:"ov-svc-info"},QE={class:"ov-svc-meta"},ZE={class:"ov-svc"},xE={class:"ov-svc-info"},eN={key:0,class:"ov-svc-meta"},tN={key:1,class:"ov-svc-meta"},nN={class:"ov-svc"},oN={class:"ov-svc-info"},sN={key:0,class:"ov-svc-meta"},iN={key:1,class:"ov-svc-meta"},rN={class:"ov-svc"},aN={class:"ov-svc-info"},lN={key:0,class:"ov-svc-meta"},dN={key:1,class:"ov-svc-meta"},uN={class:"ov-svc"},cN=["title"],pN={class:"ov-svc-info"},fN={class:"ov-svc-meta"},mN={class:"ov-panel-card ov-cache","aria-labelledby":"cache-heading"},hN={class:"ov-panel-head ov-performance-head"},gN={class:"ov-performance-window"},vN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},yN={key:1,class:"ov-performance-empty",role:"status"},bN={key:0,class:"ov-performance-note"},wN={key:1,class:"ov-performance-note"},kN={key:2,class:"ov-performance-message ov-performance-warning",role:"status"},CN={key:3,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache storage budgets"},SN={class:"ov-metrics-table"},EN={scope:"row",class:"ov-event-name"},NN=["title"],RN={key:0,class:"ov-metric-bad-text"},TN={key:1,class:"budget-bar","aria-hidden":"true"},DN={class:"num"},PN={class:"num"},AN={class:"num"},IN={class:"num"},ON={key:4,class:"ov-cache-rates"},MN={key:5,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Cache events and processing durations"},VN={class:"ov-metrics-table"},LN={scope:"row",class:"ov-event-name"},qN={class:"ov-event-traffic"},$N={class:"num"},_N={class:"num"},FN={key:6,class:"ov-performance-empty",role:"status"},UN={class:"ov-performance-note"},BN={class:"ov-panel-card ov-performance","aria-labelledby":"performance-heading"},zN={class:"ov-panel-head ov-performance-head"},HN={class:"ov-performance-window"},jN={key:0,class:"ov-performance-message ov-performance-warning",role:"alert"},GN={key:1,class:"ov-performance-empty",role:"status"},WN={key:2},KN={id:"performance-routes",role:"region","aria-label":"Routes"},YN={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Route latency metrics, scroll for more columns"},JN={class:"ov-metrics-table"},XN={scope:"row",class:"ov-metric-name"},QN={class:"num"},ZN={class:"num"},xN={class:"num"},eR={class:"num"},tR={class:"num"},nR={key:1,class:"ov-performance-empty"},oR={id:"performance-processes",role:"region","aria-label":"Processes"},sR={key:0,class:"ov-performance-message ov-performance-warning",role:"status"},iR={key:1,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Process resource metrics, scroll for more columns"},rR={class:"ov-metrics-table"},aR={scope:"row",class:"ov-metric-name"},lR={key:0,class:"ov-metric-warn"},dR={class:"num"},uR={class:"num"},cR={class:"num"},pR={class:"num"},fR={class:"num"},mR={class:"num"},hR={class:"num"},gR={class:"num"},vR={id:"performance-stages",role:"region","aria-label":"Work stages"},yR={key:0,class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Work stage metrics, scroll for more columns"},bR={class:"ov-metrics-table"},wR={scope:"row",class:"ov-metric-name"},kR={class:"num"},CR={class:"num"},SR={class:"num"},ER={key:1,class:"ov-performance-empty"};function op(e,t){return a(),l("div",BC,[t[95]||(t[95]=Se('
Admin \xA0/\xA0 Overview

Overview

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

Repositories

',3)),n("div",D4,[n("div",P4,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[0]||(t[0]=o=>e.setSegView("all"))},[t[21]||(t[21]=h("All ",-1)),n("span",I4,d(e.fmt?.number(e.segCount("all"))),1)],10,A4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[1]||(t[1]=o=>e.setSegView("ready"))},[t[22]||(t[22]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[23]||(t[23]=h("Ready ",-1)),n("span",M4,d(e.fmt?.number(e.segCount("ready"))),1)],10,O4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[2]||(t[2]=o=>e.setSegView("preparing"))},[t[24]||(t[24]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[25]||(t[25]=h("Preparing ",-1)),n("span",L4,d(e.fmt?.number(e.segCount("preparing"))),1)],10,V4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[3]||(t[3]=o=>e.setSegView("error"))},[t[26]||(t[26]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[27]||(t[27]=h("Error ",-1)),n("span",$4,d(e.fmt?.number(e.segCount("error"))),1)],10,q4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[4]||(t[4]=o=>e.setSegView("expired"))},[t[28]||(t[28]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[29]||(t[29]=h("Expiring / expired ",-1)),n("span",F4,d(e.fmt?.number(e.segCount("expired"))),1)],10,_4),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[5]||(t[5]=o=>e.setSegView("removed"))},[t[30]||(t[30]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[31]||(t[31]=h("Removing / removed ",-1)),n("span",B4,d(e.fmt?.number(e.segCount("removed"))),1)],10,U4)]),n("p",z4,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[32]||(t[32]=h(" shown",-1)),t[33]||(t[33]=n("span",{class:"seg-sep"},"\xB7",-1)),n("span",H4,d(e.fmt?.humanFileSize(e.totalSize))+" on disk",1)])]),e.fetchError?(a(),l("div",j4,[t[34]||(t[34]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",G4,[f(" Row 1: search + scoped inputs + headline actions "),n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},"Filters",8,W4),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",K4,[T(n("input",Y4,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",J4,"/"))]),n("span",X4,[t[35]||(t[35]=n("label",null,"Owner",-1)),T(n("input",Q4,null,512),[[s,{state:e.viewState,set:o=>{e.query.owner=o},value:e.query?.owner,form:null,options:{}}]])]),n("span",Z4,[t[36]||(t[36]=n("label",null,"Conference",-1)),T(n("input",x4,null,512),[[s,{state:e.viewState,set:o=>{e.query.conference=o},value:e.query?.conference,form:null,options:{}}]])]),t[40]||(t[40]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[7]||(t[7]=o=>e.exportCsv())},[...t[37]||(t[37]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",eD,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[38]||(t[38]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,tD),n("span",nD,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[9]||(t[9]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[39]||(t[39]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,oD)])):f("v-if",!0)],2),f(" Row 2: appears only when there are active filter chips "),e.chips?.length?(a(),l("div",sD,[n("div",iD,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",rD,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button","aria-label":"Remove filter",onClick:u=>e.clearFilter(o.key)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,aD)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",lD,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[42]||(t[42]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=o=>e.bulkRefresh())},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[11]||(t[11]=o=>e.bulkRemoveCache())},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[12]||(t[12]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",dD,[n("div",uD,[n("div",cD,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[13]||(t[13]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,pD)]),n("div",fD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[14]||(t[14]=o=>e.sortBy("source.repositoryName"))},[t[46]||(t[46]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[45]||(t[45]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",mD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[15]||(t[15]=o=>e.sortBy("status"))},[t[48]||(t[48]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[47]||(t[47]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",hD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[16]||(t[16]=o=>e.sortBy("pageView"))},[t[50]||(t[50]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[49]||(t[49]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",gD,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[17]||(t[17]=o=>e.sortBy("anonymizeDate"))},[t[52]||(t[52]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[51]||(t[51]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[53]||(t[53]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",vD,[T(n("input",yD,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",bD,[t[56]||(t[56]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",wD,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,kD),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.repositoryName+"/")},[(o?.source?.repositoryName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.repositoryName||"").split("/")[0]))},null,8,ED)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.repositoryName||"").includes("/")?"/"+(o?.source?.repositoryName||"").split("/").slice(1).join("/"):o?.source?.repositoryName)},null,8,ND)],8,SD),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,TD)],8,RD)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,PD)],8,DD)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[54]||(t[54]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)],8,AD)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",ID,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",OD,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[55]||(t[55]=n("span",{class:"meta-more",hidden:""},null,-1))],8,CD)])]),n("div",MD,[n("span",VD,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,LD)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,qD)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views"},[t[57]||(t[57]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),t[58]||(t[58]=h()),n("span",{textContent:d(e.fmt?.number(o?.pageView||0))},null,8,_D)],8,$D),n("div",FD,[t[59]||(t[59]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[60]||(t[60]=h()),n("span",{textContent:d((e.fmt?.humanTime(o?.anonymizeDate)||"").replace(/^on /,""))},null,8,UD)]),n("div",BD,[n("div",zD,[t[72]||(t[72]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",HD,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,jD),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,GD),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,WD)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.fetchGithubInfo(o),["prevent"])},[...t[64]||(t[64]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,KD),t[70]||(t[70]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[65]||(t[65]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,YD),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,JD),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.showStatusMessage(o),["prevent"])},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,XD),[[Z,o?.statusMessage]]),t[71]||(t[71]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removeCache(o),["prevent"])},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,QD),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeRepository(o),["prevent"])},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,ZD),[[Z,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",xD,[t[73]||(t[73]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),t[74]||(t[74]=n("span",null,"No repositories match the current filters.",-1)),e.query.ready&&e.query.expired&&e.query.removed&&e.query.error&&e.query.preparing?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-outline-ink",onClick:t[18]||(t[18]=o=>e.showAllStatuses())},"Show all statuses"))])):f("v-if",!0)]),n("div",eP,[t[79]||(t[79]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",tP,[n("button",{class:"btn btn-sm",onClick:t[19]||(t[19]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous ",-1)])],8,nP),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,oP),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[20]||(t[20]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[76]||(t[76]=[h(" Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,sP)])):f("v-if",!0),n("span",iP,[t[78]||(t[78]=n("label",null,"Per page",-1)),T((a(),l("select",rP,[...t[77]||(t[77]=[Se('',5)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var aP={class:"container paper-page admin-page"},lP={class:"paper-crumbs"},dP={class:"here"},uP={class:"paper-page-title"},cP={key:0,class:"user-detail-card"},pP={class:"user-header"},fP=["src"],mP={class:"user-header-status"},hP={class:"status-dot-wrap"},gP=["textContent"],vP={key:0,class:"type-badge type-repo"},yP={class:"user-actions",style:{"margin-top":"4px"}},bP={class:"user-detail-grid"},wP={class:"detail-value mono-id"},kP={class:"detail-value"},CP=["href"],SP={class:"detail-value"},EP={class:"detail-value"},NP={key:0},RP={key:1,class:"text-muted"},TP={class:"detail-value"},DP={key:0,style:{"margin-top":"20px"}},PP={class:"paper-table w-100",style:{"margin-top":"10px"}},AP={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},IP={class:"cell-anon",role:"cell"},OP={class:"anon-text"},MP=["textContent"],VP={class:"cell-expires",role:"cell"},LP={key:1,class:"admin-section-header"},qP={class:"section-count"},$P={key:2,class:"user-detail-card"},_P={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},FP={key:0,class:"alert alert-warning",role:"alert"},UP={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},BP={key:1,class:"paper-table w-100"},zP={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},HP=["textContent"],jP=["textContent"],GP={role:"cell"},WP={key:0},KP={key:1,class:"text-muted"},YP={role:"cell"},JP=["onClick"],XP={key:2,class:"paper-table-empty"},QP={class:"admin-section-header"},ZP={class:"section-count"},xP={class:"seg-bar"},e3={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},t3=["aria-checked"],n3={class:"count"},o3=["aria-checked"],s3={class:"count"},i3=["aria-checked"],r3={class:"count"},a3=["aria-checked"],l3={class:"count"},d3=["aria-checked"],u3={class:"count"},c3=["aria-checked"],p3={class:"count"},f3={class:"seg-countline",role:"status"},m3={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},h3={class:"admin-filter-row"},g3={class:"search-wrap"},v3={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repositories or errors\u2026",autocomplete:"off"},y3={key:3,class:"bulk-bar"},b3={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},w3={class:"paper-table-head",role:"row"},k3={role:"columnheader",style:{width:"28px"}},C3=["checked"],S3={role:"columnheader"},E3={role:"columnheader"},N3={role:"columnheader",class:"num"},R3={role:"columnheader"},T3={role:"cell",style:{width:"28px"}},D3={type:"checkbox","aria-label":"Select repository"},P3={class:"cell-anon",role:"cell"},A3={class:"anon-text"},I3=["textContent","href"],O3=["title"],M3=["href"],V3=["textContent"],L3=["textContent"],q3=["data-meta-label"],$3=["title","textContent","href"],_3=["data-meta-label"],F3=["textContent","href"],U3=["data-meta-label"],B3={key:3,class:"meta-item"},z3={class:"meta-item"},H3={class:"cell-status",role:"cell"},j3={class:"status-line"},G3=["textContent"],W3=["textContent","title"],K3=["data-unit","textContent"],Y3=["textContent"],J3={class:"cell-actions",role:"cell"},X3={class:"dropdown"},Q3={class:"dropdown-menu dropdown-menu-right"},Z3=["href"],x3=["href"],eA=["href"],tA=["onClick"],nA=["onClick"],oA=["onClick"],sA=["onClick"],iA=["onClick"],rA=["onClick"],aA={key:0,class:"paper-table-empty"};function rp(e,t){let s=De("field"),i=De("form");return a(),l("div",aP,[n("div",lP,[t[23]||(t[23]=n("a",{href:"/admin/"},"Admin",-1)),t[24]||(t[24]=h(" \xA0/\xA0 ",-1)),t[25]||(t[25]=n("a",{href:"/admin/users"},"Users",-1)),t[26]||(t[26]=h(" \xA0/\xA0 ",-1)),n("span",dP,d(e.userInfo?.username||"Profile"),1)]),n("h1",uP,d(e.userInfo?.username||"User"),1),t[93]||(t[93]=Se('',1)),e.userInfo?(a(),l("div",cP,[n("div",pP,[e.userInfo?.photo?(a(),l("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,fP)):f("v-if",!0),n("div",null,[n("div",mP,[n("span",hP,[n("span",{class:R(["status-dot","st-"+(e.userInfo?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(e.userInfo?.status))},null,8,gP)]),e.userInfo?.isAdmin?(a(),l("span",vP,"Admin")):f("v-if",!0)]),n("div",yP,[e.userInfo?.status!=="banned"&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:0,class:"btn btn-sm btn-outline-danger",onClick:t[0]||(t[0]=o=>e.banUser())},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])])):f("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(a(),l("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=o=>e.activateUser())},[...t[28]||(t[28]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])])):f("v-if",!0),e.userInfo?.isAdmin?f("v-if",!0):(a(),l("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=o=>e.promoteUser())},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-shield"})],-1),h(" Promote to admin",-1)])])),e.userInfo?.isAdmin&&e.userInfo?.username!==e.user?.username?(a(),l("button",{key:3,class:"btn btn-sm btn-outline-ink",onClick:t[3]||(t[3]=o=>e.demoteUser())},[...t[30]||(t[30]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user-minus"})],-1),h(" Remove admin",-1)])])):f("v-if",!0)])])]),n("div",bP,[t[33]||(t[33]=n("div",{class:"detail-label"},"ID",-1)),n("div",wP,d(e.userInfo?._id),1),t[34]||(t[34]=n("div",{class:"detail-label"},"Email",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.emails?.[0]?.email}])},d(e.userInfo?.emails?.[0]?.email||"Not shared"),3),t[35]||(t[35]=n("div",{class:"detail-label"},"Access token",-1)),n("div",{class:R(["detail-value",{"is-empty":!e.userInfo?.accessTokens?.github}]),style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},d(e.userInfo?.accessTokens?.github||"Not stored"),3),t[36]||(t[36]=n("div",{class:"detail-label"},"GitHub",-1)),n("div",kP,[n("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[31]||(t[31]=n("i",{class:"fab fa-github"},null,-1)),h(" "+d(e.userInfo?.username),1)],8,CP)]),t[37]||(t[37]=n("div",{class:"detail-label"},"Created",-1)),n("div",SP,d(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[38]||(t[38]=n("div",{class:"detail-label"},"Last connection",-1)),n("div",EP,[e.userInfo?.accessTokenDates?.github?(a(),l("span",NP,d(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):f("v-if",!0),e.userInfo?.accessTokenDates?.github?f("v-if",!0):(a(),l("span",RP,"Not recorded (GitHub App sign-in)"))]),t[39]||(t[39]=n("div",{class:"detail-label"},"GitHub repos",-1)),n("div",TP,[h(d(e.userInfo?.repositories?.length?e.userInfo.repositories.length+" repositories":"Not synced")+" ",1),e.userInfo?.repositories?.length?(a(),l("button",{key:0,class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=o=>e.showRepos=!e.showRepos)},d(e.showRepos?"Hide repos":"Show repos"),1)):f("v-if",!0),n("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=o=>e.getGitHubRepositories())},[...t[32]||(t[32]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Refresh ",-1)])])])]),e.showRepos?(a(),l("div",DP,[t[42]||(t[42]=n("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),n("div",PP,[(a(!0),l(V,null,Q(e.userInfo?.repositories,(o,r)=>(a(),l("div",AP,[n("div",IP,[t[40]||(t[40]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",OP,[n("span",{class:"repo-name",textContent:d(o?.name)},null,8,MP)])]),n("div",VP,[t[41]||(t[41]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-database"})],-1)),h(" "+d(e.fmt?.humanFileSize(o?.size)),1)])]))),256))])])):f("v-if",!0)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",LP,[t[43]||(t[43]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-key"})]),h(" API tokens")],-1)),n("span",qP,d(e.tokens?.length),1)])):f("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(a(),l("div",$P,[t[49]||(t[49]=n("p",{class:"paper-page-lede"},[h("Personal API tokens for this admin account. Send as "),n("code",null,"Authorization: Bearer "),h(" to authenticate without GitHub OAuth (useful for development).")],-1)),T((a(),l("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ae(o=>e.submitForm(o,()=>{e.createToken()}),["prevent"]))},[T(n("input",_P,null,512),[[s,{state:e.viewState,set:o=>{e.tokenForm.name=o},value:e.tokenForm?.name,form:null,options:{}}]]),t[44]||(t[44]=n("button",{type:"submit",class:"btn btn-ink"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-plus"})]),h(" Generate")],-1))],32)),[[i,e.viewState]]),e.tokenForm?.plaintext?(a(),l("div",FP,[t[45]||(t[45]=n("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),n("pre",UP,d(e.tokenForm?.plaintext),1),n("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=o=>e.tokenForm.plaintext=null)},"Dismiss")])):f("v-if",!0),e.tokens?.length?(a(),l("div",BP,[t[47]||(t[47]=n("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[n("div",{role:"columnheader"},"Name"),n("div",{role:"columnheader"},"Created"),n("div",{role:"columnheader"},"Last used"),n("div",{role:"columnheader","aria-label":"Actions"})],-1)),(a(!0),l(V,null,Q(e.tokens,(o,r)=>(a(),l("div",zP,[n("div",{role:"cell",textContent:d(o?.name)},null,8,HP),n("div",{role:"cell",textContent:d(e.fmt?.humanTime(o?.createdAt))},null,8,jP),n("div",GP,[o?.lastUsedAt?(a(),l("span",WP,d(e.fmt?.humanTime(o?.lastUsedAt)),1)):f("v-if",!0),o?.lastUsedAt?f("v-if",!0):(a(),l("span",KP,"never"))]),n("div",YP,[n("button",{class:"btn btn-sm text-danger btn-icon",title:"Revoke","aria-label":"Revoke token",onClick:u=>e.revokeToken(o)},[...t[46]||(t[46]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)])],8,JP)])]))),256))])):f("v-if",!0),e.tokens?.length?f("v-if",!0):(a(),l("div",XP,[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No tokens yet.",-1)])]))])):f("v-if",!0),n("div",QP,[t[50]||(t[50]=n("h2",null,[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})]),h(" Anonymized repositories")],-1)),n("span",ZP,d(e.repositories?.length),1)]),n("div",xP,[n("div",e3,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="all"}]),"aria-checked":e.segView()==="all",onClick:t[8]||(t[8]=o=>e.setSegView("all"))},[t[51]||(t[51]=h("All ",-1)),n("span",n3,d(e.fmt?.number(e.segCount("all"))),1)],10,t3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="ready","is-empty":!e.segCount("ready")}]),"aria-checked":e.segView()==="ready",onClick:t[9]||(t[9]=o=>e.setSegView("ready"))},[t[52]||(t[52]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[53]||(t[53]=h("Ready ",-1)),n("span",s3,d(e.fmt?.number(e.segCount("ready"))),1)],10,o3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="preparing","is-empty":!e.segCount("preparing")}]),"aria-checked":e.segView()==="preparing",onClick:t[10]||(t[10]=o=>e.setSegView("preparing"))},[t[54]||(t[54]=n("span",{class:"seg-dot warn","aria-hidden":"true"},null,-1)),t[55]||(t[55]=h("Preparing ",-1)),n("span",r3,d(e.fmt?.number(e.segCount("preparing"))),1)],10,i3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="error","is-empty":!e.segCount("error")}]),"aria-checked":e.segView()==="error",onClick:t[11]||(t[11]=o=>e.setSegView("error"))},[t[56]||(t[56]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[57]||(t[57]=h("Error ",-1)),n("span",l3,d(e.fmt?.number(e.segCount("error"))),1)],10,a3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="expired","is-empty":!e.segCount("expired")}]),"aria-checked":e.segView()==="expired",onClick:t[12]||(t[12]=o=>e.setSegView("expired"))},[t[58]||(t[58]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[59]||(t[59]=h("Expiring / expired ",-1)),n("span",u3,d(e.fmt?.number(e.segCount("expired"))),1)],10,d3),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.segView()==="removed","is-empty":!e.segCount("removed")}]),"aria-checked":e.segView()==="removed",onClick:t[13]||(t[13]=o=>e.setSegView("removed"))},[t[60]||(t[60]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[61]||(t[61]=h("Removing / removed ",-1)),n("span",p3,d(e.fmt?.number(e.segCount("removed"))),1)],10,c3)]),n("p",f3,[n("strong",null,d(e.fmt.number(e.filteredRepositories?.length||0)),1),t[62]||(t[62]=h(" shown",-1))])]),T((a(),l("form",m3,[n("div",h3,[n("div",g3,[T(n("input",v3,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),t[64]||(t[64]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[14]||(t[14]=o=>e.exportCsv())},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])])])])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",y3,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[65]||(t[65]=h(" selected",-1))]),n("button",{class:"btn btn-sm",type:"button",onClick:t[15]||(t[15]=o=>e.bulkRefresh())},[...t[66]||(t[66]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force refresh",-1)])]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[16]||(t[16]=o=>e.bulkRemoveCache())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[17]||(t[17]=o=>e.clearSelection())},"Clear")])):f("v-if",!0),n("div",b3,[n("div",w3,[n("div",k3,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[18]||(t[18]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,C3)]),n("div",S3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[19]||(t[19]=o=>e.sortBy("source.repositoryName"))},[t[69]||(t[69]=h("Repository ",-1)),e.sortIcon("source.repositoryName")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("source.repositoryName")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[68]||(t[68]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",E3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[20]||(t[20]=o=>e.sortBy("status"))},[t[71]||(t[71]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[70]||(t[70]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",N3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[21]||(t[21]=o=>e.sortBy("pageView"))},[t[73]||(t[73]=h("Views ",-1)),e.sortIcon("pageView")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("pageView")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[72]||(t[72]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("div",R3,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[22]||(t[22]=o=>e.sortBy("anonymizeDate"))},[t[75]||(t[75]=h("Anonymized ",-1)),e.sortIcon("anonymizeDate")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("anonymizeDate")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[74]||(t[74]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[76]||(t[76]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredRepositories,(o,r)=>(a(),l("div",{class:R(["paper-table-row",{"repo-inactive":o?.status=="expired"||o?.status=="removed","repo-error":o?.status=="error","row-selected":e.selected[o?.repoId]}]),role:"row"},[n("div",T3,[T(n("input",D3,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.repoId]=u},value:e.selected[o?.repoId],form:null,options:{}}]])]),n("div",P3,[t[79]||(t[79]=n("svg",{class:"ui-icon record-type-icon",role:"img","aria-label":"Repository"},[n("use",{href:"#project-type-repo"})],-1)),n("div",A3,[n("a",{class:"repo-name",target:"_blank",textContent:d(o?.repoId),href:e.safeUrl("/r/"+o?.repoId)},null,8,I3),n("div",{class:"anon-sub anon-meta","data-meta-fit":"",title:[o?.source?.fullName||o?.source?.repositoryName,o?.options?.update?"branch "+o?.source?.branch:"commit "+o?.source?.commit?.substring(0,7),o?.conference?"conference "+o?.conference:"",o?.size?.storage>0?e.fmt?.humanFileSize(o?.size?.storage):"",e.fmt?.number(o?.options?.terms?.length)+(o?.options?.terms?.length===1?" term":" terms")].filter(Boolean).join(" \xB7 ")},[n("a",{class:"src-path",href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/")},[(o?.source?.fullName||"").includes("/")?(a(),l("span",{key:0,class:"src-owner",textContent:d((u=>u.length>16?u.slice(0,14)+"\u2026":u)((o?.source?.fullName||"").split("/")[0]))},null,8,V3)):f("v-if",!0),n("span",{class:"src-repo",textContent:d((o?.source?.fullName||"").includes("/")?"/"+(o?.source?.fullName||"").split("/").slice(1).join("/"):o?.source?.fullName)},null,8,L3)],8,M3),o?.options?.update?f("v-if",!0):(a(),l("span",{key:0,class:"meta-item","data-meta-label":"commit "+(o?.source?.commit||"").substring(0,7)},[n("a",{class:"mono-hash",title:o?.source?.commit,textContent:d(o?.source?.commit?.substring(0,7)),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.commit)},null,8,$3)],8,q3)),o?.options?.update?(a(),l("span",{key:1,class:"meta-item","data-meta-label":"branch "+(o?.source?.branch||"")},[n("a",{textContent:d(o?.source?.branch),href:e.safeUrl("https://github.com/"+o?.source?.fullName+"/tree/"+o?.source?.branch)},null,8,F3)],8,_3)):f("v-if",!0),o?.conference?(a(),l("span",{key:2,class:"meta-item meta-conf","data-meta-label":"conference "+o?.conference},[t[77]||(t[77]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)],8,U3)):f("v-if",!0),o?.size?.storage>0?(a(),l("span",B3,d(e.fmt?.humanFileSize(o?.size?.storage)),1)):f("v-if",!0),n("span",z3,d(e.fmt?.number(o?.options?.terms?.length))+" "+d(o?.options?.terms?.length===1?"term":"terms"),1),t[78]||(t[78]=n("span",{class:"meta-more",hidden:""},null,-1))],8,O3)])]),n("div",H3,[n("span",j3,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.statusLabel(o?.status))},null,8,G3)]),o?.statusMessage?(a(),l("span",{key:0,class:"status-sub",textContent:d(e.fmt?.statusMsg(o?.statusMessage)),title:o?.statusMessage},null,8,W3)):f("v-if",!0)]),n("div",{class:"cell-views num",role:"cell","data-unit":(o?.pageView||0)===1?"view":"views",textContent:d(e.fmt?.number(o?.pageView||0))},null,8,K3),n("div",{class:"cell-expires",role:"cell",textContent:d(e.fmt?.humanTime(o?.anonymizeDate))},null,8,Y3),n("div",J3,[n("div",X3,[t[91]||(t[91]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",Q3,[n("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+o?.repoId)},[...t[80]||(t[80]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit",-1)])],8,Z3),n("a",{class:"dropdown-item",href:e.safeUrl("/r/"+o?.repoId+"/")},[...t[81]||(t[81]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View repo",-1)])],8,x3),o?.options?.page&&o?.status=="ready"?(a(),l("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+o?.repoId+"/")},[...t[82]||(t[82]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h(" View page",-1)])],8,eA)):f("v-if",!0),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.fetchGithubInfo(o),["prevent"])},[...t[83]||(t[83]=[n("i",{class:"fab fa-github"},null,-1),h(" Live GitHub info",-1)])],8,tA),t[89]||(t[89]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update",-1)])],8,nA),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updateRepository(o),["prevent"])},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable",-1)])],8,oA),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.showStatusMessage(o),["prevent"])},[...t[86]||(t[86]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1),h(" View status message",-1)])],8,sA),[[Z,o?.statusMessage]]),t[90]||(t[90]=n("div",{class:"dropdown-divider"},null,-1)),n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removeCache(o),["prevent"])},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-broom"})],-1),h(" Remove cache",-1)])],8,iA),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.removeRepository(o),["prevent"])},[...t[88]||(t[88]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove",-1)])],8,rA),[[Z,o?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(a(),l("div",aA,[...t[92]||(t[92]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No repositories match the current filters.",-1)])])):f("v-if",!0)])])}var lA={class:"container paper-page admin-page"},dA={class:"seg-bar"},uA={class:"seg-filter",role:"radiogroup","aria-label":"Filter by status"},cA=["aria-checked"],pA={class:"count"},fA=["aria-checked"],mA={class:"count"},hA=["aria-checked"],gA={class:"count"},vA=["aria-checked"],yA={class:"count"},bA={class:"seg-countline",role:"status"},wA={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},kA={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},CA={class:"admin-filter-row"},SA={class:"search-wrap"},EA={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},NA={key:0,class:"admin-search-hint"},RA={class:"admin-filter-inline"},TA={class:"form-control form-control-sm"},DA={key:0,class:"admin-filter-inline","aria-label":"Pagination"},PA=["disabled"],AA={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},IA=["disabled"],OA={key:0,class:"admin-filter-row"},MA={class:"admin-active-chips"},VA={class:"key"},LA=["onClick"],qA={key:1,class:"bulk-bar"},$A={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},_A={class:"paper-table-head admin-users-row",role:"row"},FA={role:"columnheader",style:{width:"28px"}},UA=["checked"],BA={role:"columnheader"},zA={role:"columnheader"},HA={role:"cell",style:{width:"28px"}},jA={type:"checkbox","aria-label":"Select user"},GA={class:"cell-anon",role:"cell"},WA=["src"],KA={key:1,class:"avatar-fallback","aria-hidden":"true"},YA={class:"anon-text"},JA={class:"user-name-line"},XA=["textContent","href"],QA=["href","title","aria-label"],ZA={class:"anon-sub meta-dots"},xA=["title"],eI={key:1},tI={class:"cell-views num",role:"cell"},nI=["title","textContent","href"],oI={class:"cell-status",role:"cell"},sI=["textContent"],iI={class:"cell-status",role:"cell"},rI={key:0,class:"role-pill"},aI={key:1,class:"empty-dash"},lI={class:"cell-actions",role:"cell"},dI={class:"dropdown"},uI={class:"dropdown-menu dropdown-menu-right"},cI=["href"],pI=["href"],fI=["onClick"],mI=["onClick"],hI={key:0,class:"paper-table-empty"},gI={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},vI={key:0,class:"pagination-compact"},yI=["disabled"],bI=["max"],wI=["disabled"],kI={class:"admin-filter-inline"},CI={class:"form-control form-control-sm"};function ap(e,t){let s=De("field"),i=De("form");return a(),l("div",lA,[t[53]||(t[53]=Se('
Admin \xA0/\xA0 Users

Users

',3)),n("div",dA,[n("div",uA,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:!e.query?.status}]),"aria-checked":!e.query?.status,onClick:t[0]||(t[0]=o=>{e.query.status="",e.query.page=1})},[t[14]||(t[14]=h("All ",-1)),n("span",pA,d(e.fmt?.number(e.statusCountFor("active")+e.statusCountFor("banned")+e.statusCountFor("removed"))),1)],10,cA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="active","is-empty":!e.statusCountFor("active")}]),"aria-checked":e.query?.status==="active",onClick:t[1]||(t[1]=o=>{e.query.status="active",e.query.page=1})},[t[15]||(t[15]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[16]||(t[16]=h("Active ",-1)),n("span",mA,d(e.fmt?.number(e.statusCountFor("active"))),1)],10,fA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="banned","is-empty":!e.statusCountFor("banned")}]),"aria-checked":e.query?.status==="banned",onClick:t[2]||(t[2]=o=>{e.query.status="banned",e.query.page=1})},[t[17]||(t[17]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[18]||(t[18]=h("Banned ",-1)),n("span",gA,d(e.fmt?.number(e.statusCountFor("banned"))),1)],10,hA),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.query?.status==="removed","is-empty":!e.statusCountFor("removed")}]),"aria-checked":e.query?.status==="removed",onClick:t[3]||(t[3]=o=>{e.query.status="removed",e.query.page=1})},[t[19]||(t[19]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[20]||(t[20]=h("Removed ",-1)),n("span",yA,d(e.fmt?.number(e.statusCountFor("removed"))),1)],10,vA)]),n("p",bA,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[21]||(t[21]=h(" shown",-1))])]),e.fetchError?(a(),l("div",wA,[t[22]||(t[22]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.fetchError),1)])):f("v-if",!0),T((a(),l("form",kA,[n("div",CA,[n("div",SA,[T(n("input",EA,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]]),e.query?.search?f("v-if",!0):(a(),l("span",NA,"/"))]),n("span",RA,[t[24]||(t[24]=n("label",null,"Role",-1)),T((a(),l("select",TA,[...t[23]||(t[23]=[n("option",{value:""},"Any",-1),n("option",{value:"admin"},"Admin",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.role=o},value:e.query?.role,form:null,options:{}}]])]),t[28]||(t[28]=n("span",{class:"admin-filter-spacer"},null,-1)),n("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=o=>e.exportCsv())},[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-export"})],-1),h(" Export",-1)])]),e.totalPage>1?(a(),l("span",DA,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[5]||(t[5]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[26]||(t[26]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,PA),n("span",AA,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[6]||(t[6]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[27]||(t[27]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,IA)])):f("v-if",!0)]),e.chips?.length?(a(),l("div",OA,[n("div",MA,[(a(!0),l(V,null,Q(e.chips,(o,r)=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",VA,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:u=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[29]||(t[29]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,LA)]))),128))])])):f("v-if",!0)])),[[i,e.viewState]]),e.selectedCount()>0?(a(),l("div",qA,[n("span",null,[n("strong",null,d(e.selectedCount()),1),t[30]||(t[30]=h(" selected",-1))]),n("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[7]||(t[7]=o=>e.bulkBan())},[...t[31]||(t[31]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])]),n("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=o=>{e.selected={},e.allSelected=!1})},"Clear")])):f("v-if",!0),n("div",$A,[n("div",_A,[n("div",FA,[n("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[9]||(t[9]=o=>e.selectAllOnPage()),checked:e.allSelected},null,8,UA)]),n("div",BA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="username"}]),onClick:t[10]||(t[10]=o=>e.sortBy("username"))},[t[33]||(t[33]=h("User ",-1)),e.sortIcon("username")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("username")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[32]||(t[32]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[36]||(t[36]=n("div",{role:"columnheader",class:"num",title:"Repositories discovered on the user's GitHub account"},"GitHub repos",-1)),n("div",zA,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="status"}]),onClick:t[11]||(t[11]=o=>e.sortBy("status"))},[t[35]||(t[35]=h("Status ",-1)),e.sortIcon("status")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("status")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[34]||(t[34]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[37]||(t[37]=n("div",{role:"columnheader"},"Role",-1)),t[38]||(t[38]=n("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(a(!0),l(V,null,Q(e.filteredUsers,(o,r)=>(a(),l("div",{class:R(["paper-table-row admin-users-row",{"row-selected":e.selected[o?.username]}]),role:"row"},[n("div",HA,[T(n("input",jA,null,512),[[s,{state:e.viewState,set:u=>{e.selected[o.username]=u},value:e.selected[o?.username],form:null,options:{}}]])]),n("div",GA,[o?.photo?(a(),l("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(o?.photo)},null,8,WA)):(a(),l("span",KA,d((o?.username||"?").charAt(0).toUpperCase()),1)),n("div",YA,[n("span",JA,[n("a",{class:"repo-name",textContent:d(o?.username),href:e.safeUrl("/admin/users/"+o?.username)},null,8,XA),n("a",{class:"user-gh-link",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+o?.username),title:o?.username+" on GitHub","aria-label":o?.username+" on GitHub"},[...t[39]||(t[39]=[n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)])],8,QA)]),n("div",ZA,[o?.emails?.[0]?.email?(a(),l("span",{key:0,class:"meta-email meta-tail",title:o?.emails?.[0]?.email},d(o?.emails?.[0]?.email),9,xA)):f("v-if",!0),o?.dateOfEntry?(a(),l("span",eI,"Joined "+d(e.fmt?.humanTime(o?.dateOfEntry)),1)):f("v-if",!0)])])]),n("div",tI,[t[40]||(t[40]=n("svg",{class:"ui-icon mobile-meta-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1)),n("a",{title:o?.repoCount?"Show this user\u2019s repositories":"Repositories not synced yet",textContent:d(o?.repoCount?e.fmt?.number(o.repoCount):"Not synced"),class:R({"is-unsynced":!o?.repoCount}),href:e.safeUrl("/admin/repositories?owner="+o?.username)},null,10,nI)]),n("div",oI,[n("span",{class:R(["status-dot","st-"+(o?.status||"unknown")])},null,2),n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,sI)]),n("div",iI,[o?.isAdmin?(a(),l("span",rI,"Admin")):f("v-if",!0),o?.isAdmin?f("v-if",!0):(a(),l("span",aI,"\u2014"))]),n("div",lI,[n("div",dI,[t[46]||(t[46]=n("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-more"})])],-1)),n("div",uI,[n("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+o?.username)},[...t[41]||(t[41]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View details",-1)])],8,cI),n("a",{class:"dropdown-item",href:e.safeUrl("/admin/repositories?owner="+o?.username)},[...t[42]||(t[42]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-type-repo"})],-1),h(" View repositories",-1)])],8,pI),t[45]||(t[45]=n("div",{class:"dropdown-divider"},null,-1)),T(n("a",{class:"dropdown-item text-danger",href:"#",onClick:ae(u=>e.banUser(o),["prevent"])},[...t[43]||(t[43]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-ban"})],-1),h(" Ban",-1)])],8,fI),[[Z,o?.status=="active"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.activateUser(o),["prevent"])},[...t[44]||(t[44]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Activate",-1)])],8,mI),[[Z,o?.status=="removed"||o?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(a(),l("div",hI,[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No users match the current filters.",-1)])])):f("v-if",!0)]),n("div",gI,[t[52]||(t[52]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",vI,[n("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[48]||(t[48]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,yI),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,bI),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[49]||(t[49]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,wI)])):f("v-if",!0),n("span",kI,[t[51]||(t[51]=n("label",null,"Per page",-1)),T((a(),l("select",CI,[...t[50]||(t[50]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])])}var SI={class:"anonymize-landing"},EI={class:"anonymize-landing-inner"},NI={class:"form-group mt-4 mb-2"},RI={class:"source-url-label-row"},TI={key:0,class:"repo-access","aria-label":"GitHub access"},DI={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},PI=["aria-pressed","disabled"],AI=["aria-pressed","disabled"],II={key:1,class:"connection-badge"},OI={class:"landing-url-row"},MI={id:"sourceUrl-landing",onblur:"this.scrollLeft=0",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},VI=["aria-disabled"],LI={key:0,class:"text-danger",role:"alert"},qI={class:"repo-picker","aria-labelledby":"repo-picker-title"},$I={class:"repo-picker-head"},_I={class:"repo-picker-title"},FI={key:0,class:"repo-picker-count","aria-live":"polite"},UI={key:0,class:"repo-picker-list","aria-busy":"true","aria-label":"Loading your repositories"},BI={class:"repo-picker-row is-skeleton","aria-hidden":"true"},zI={key:1,class:"repo-picker-list"},HI=["title"],jI={class:"repo-picker-owner"},GI={class:"repo-picker-repo"},WI=["onClick","aria-label"],KI={key:2,class:"repo-picker-state"},YI={key:3,class:"repo-picker-state"},JI={key:4,class:"repo-picker-state",role:"alert"},XI={key:5,class:"repo-access-details","aria-label":"GitHub access"},QI={class:"repo-access-main"},ZI={class:"repo-access-controls"},xI={key:0,class:"access-q"},eO={key:2,class:"connection-link",href:"/connections"},tO={class:"repo-access-note"},nO={key:0},oO={class:"anonymize-workspace"},sO={class:"anonymize-topbar"},iO={class:"anonymize-topbar-inner"},rO={class:"paper-crumbs"},aO={class:"here"},lO={class:"anonymize-topbar-head"},dO={class:"paper-page-title anonymize-topbar-title"},uO={key:0},cO={key:1},pO={class:"paper-page-lede anonymize-topbar-lede"},fO={key:0,class:"task-trail flow-trail","aria-label":"Anonymization steps"},mO={key:0,class:"alert alert-info",role:"status"},hO={key:1,class:"alert alert-info",role:"status"},gO={key:1},vO={class:"anonymize-mobile-tabs",role:"tablist","aria-label":"Anonymization workspace"},yO=["aria-selected","tabindex"],bO=["aria-selected","tabindex"],wO={class:"anonymize-split"},kO=["role","aria-labelledby"],CO={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},SO={class:"anonymize-fields"},EO={class:"paper-settings-section"},NO={class:"form-group"},RO={class:"source-url-label-row"},TO={key:0,class:"repo-access","aria-label":"GitHub access"},DO={key:0,class:"repo-access-switch",role:"group","aria-label":"Repository connection"},PO=["aria-pressed","disabled"],AO=["aria-pressed","disabled"],IO={key:1,class:"connection-badge"},OO=["disabled"],MO={key:0,class:"source-summary"},VO={class:"invalid-feedback"},LO={class:"invalid-feedback"},qO={class:"invalid-feedback"},$O={class:"invalid-feedback"},_O={key:0,class:"repo-access-details","aria-label":"Previous repository configuration"},FO={key:0,class:"form-group"},UO=["value"],BO={key:1},zO={class:"repo-access-controls"},HO=["href"],jO={key:1,class:"repo-access-details","aria-label":"GitHub access"},GO={class:"repo-access-main"},WO={class:"repo-access-controls"},KO={key:0,class:"access-q"},YO={key:2,class:"connection-link",href:"/connections"},JO={class:"repo-access-note"},XO={key:0},QO={key:1},ZO=["open"],xO={key:0,class:"repair-step"},e5=["disabled"],t5={key:0,role:"status"},n5={class:"repair-step"},o5={key:0,role:"status"},s5={key:3,class:"form-grid-2"},i5={class:"form-group"},r5={class:"input-group"},a5={class:"form-control",id:"branch",name:"branch"},l5=["textContent","value"],d5={class:"input-group-append"},u5={class:"form-group"},c5=["disabled"],p5={class:"invalid-feedback"},f5={class:"invalid-feedback"},m5={class:"form-check-input",type:"checkbox",id:"update",name:"update","aria-describedby":"update-help"},h5={class:"form-check-label",for:"update"},g5={key:0,class:"paid-tag"},v5={key:0,class:"form-text text-muted",id:"update-help"},y5={key:1,class:"form-text text-muted auto-update-paid",id:"update-help"},b5={class:"paper-settings-section"},w5={class:"form-group"},k5=["disabled"],C5={class:"form-text text-muted anon-url-echo"},S5={class:"anon-url-id"},E5={class:"invalid-feedback"},N5={class:"form-group"},R5=["disabled"],T5={class:"form-text text-muted anon-url-echo"},D5={class:"anon-url-id"},P5={class:"invalid-feedback"},A5={class:"form-group"},I5=["disabled"],O5={class:"form-text text-muted anon-url-echo"},M5={class:"anon-url-id"},V5={class:"invalid-feedback"},L5={class:"form-group"},q5=["rows"],$5={class:"redaction-syntax"},_5={class:"form-text text-muted"},F5=["onClick"],U5={key:0,class:"term-hint-more"},B5={class:"invalid-feedback"},z5={class:"preserve-row"},H5={class:"preserve-row-text"},j5={class:"preserve-row-value"},G5=["disabled"],W5={class:"preserve-tree"},K5={key:0,class:"preserve-status"},Y5={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},J5=["aria-expanded","aria-label","onClick"],X5={key:1,class:"preserve-caret-space"},Q5=["id","aria-label","checked",".indeterminate","disabled","onChange"],Z5=["for","onClick"],x5={key:2,class:"preserve-note"},e8={key:0,class:"preserve-status"},t8={key:0,class:"preserve-status"},n8=["open"],o8={class:"preserve-foot"},s8={class:"preserve-count","aria-live":"polite"},i8={class:"preserve-actions"},r8={class:"paper-settings-section"},a8={class:"form-check"},l8={class:"form-check-input",type:"checkbox",id:"link",name:"link"},d8={class:"form-check"},u8={class:"form-check-input",type:"checkbox",id:"image",name:"image"},c8={class:"form-check"},p8={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},f8={class:"form-check"},m8={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},h8={class:"form-check"},g8=["disabled"],v8={key:0,class:"form-text text-muted"},y8={key:1,class:"form-text text-muted"},b8={key:0,class:"form-text text-muted"},w8={class:"form-check"},k8={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},C8={class:"form-check"},S8={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},E8={class:"form-check"},N8={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},R8={class:"form-check"},T8={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},D8={class:"form-check"},P8={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},A8={class:"form-check"},I8={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},O8={class:"form-check"},M8={class:"form-check-input",type:"checkbox",id:"title",name:"title"},V8={class:"form-check"},L8={class:"form-check-input",type:"checkbox",id:"body",name:"body"},q8={class:"form-check"},$8={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},_8={class:"form-check"},F8={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},U8={class:"form-check"},B8={class:"form-check-input",type:"checkbox",id:"username",name:"username"},z8={class:"form-check"},H8={class:"form-check-input",type:"checkbox",id:"date",name:"date"},j8={class:"form-check"},G8={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},W8={class:"paper-settings-section hosting-settings",id:"repository-hosting","aria-labelledby":"hosting-heading"},K8={class:"form-group conference-field"},Y8=["href"],J8={class:"invalid-feedback"},X8={class:"form-text text-muted"},Q8={key:0,class:"hosting-usage"},Z8={key:0},x8={key:1},e6={key:2},t6={key:1,class:"hosting-limit auto-update-note",role:"status"},n6={key:2,class:"hosting-payment"},o6={key:0,class:"hosting-limit",role:"status"},s6={key:1,class:"hosting-options"},i6={class:"hosting-options-title"},r6=["value","checked","onChange"],a6={class:"hosting-option-body"},l6={key:0,class:"hosting-cycle billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},d6=["aria-checked","onClick"],u6={key:0,class:"billing-toggle-save"},c6={class:"hosting-option-price"},p6={key:2,role:"status"},f6={key:3,class:"hosting-terms"},m6={key:4,class:"hosting-terms"},h6={key:5,class:"capacity-options"},g6=["disabled"],v6={key:3,class:"hosting-subhead"},y6={class:"expiration-choices"},b6={class:"expiration-choice"},w6=["checked","disabled"],k6={key:0,class:"dated-options"},C6={key:0,class:"hosting-date"},S6=["min","max"],E6={key:0,class:"date-echo","aria-live":"polite"},N6={class:"invalid-feedback"},R6={class:"invalid-feedback"},T6={class:"hosting-property"},D6={key:1,class:"expiration-choice"},P6=["checked","disabled"],A6={key:0},I6={key:4,class:"form-text text-muted"},O6={key:5,class:"inline-hosting"},M6={key:0,role:"alert",class:"text-danger"},V6={key:1,role:"alert",class:"text-danger"},L6=["disabled"],q6={key:2,role:"status"},$6={key:3,role:"status",class:"form-text text-muted"},_6={key:4,class:"hosting-terms"},F6={key:5,class:"hosting-terms"},U6={key:6,class:"repository-pass"},B6=["disabled","onClick"],z6={class:"paper-settings-section"},H6={class:"form-group"},j6={style:{position:"relative"}},G6={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},W6={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},K6=["onClick"],Y6=["src"],J6=["textContent"],X6=["textContent"],Q6={class:"coauthor-list"},Z6={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},x6=["src"],eM=["textContent","href"],tM=["onClick"],nM={class:"form-text text-muted"},oM=["textContent"],sM={class:"anonymize-submit-bar"},iM=["disabled"],rM=["disabled"],aM=["disabled"],lM=["disabled"],dM=["disabled"],uM=["disabled"],cM={key:5,class:"submit-reason",role:"status"},pM={key:6,class:"submit-reason",role:"status"},fM={key:7,class:"checkout-return-note"},mM={key:8,class:"draft-status",role:"status"},hM={key:9,class:"draft-status"},gM=["role","aria-labelledby"],vM={class:"rp-caption"},yM=["aria-expanded"],bM=["title"],wM={class:"redact-slot","aria-hidden":"true"},kM={key:2,class:"rp-count rp-count-none"},CM=["href"],SM=["aria-pressed"],EM={class:"rp-open-icon",viewBox:"0 0 16 16","aria-hidden":"true"},NM={key:0,d:"M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9"},RM={key:1,d:"M13.5 6.5h-4v-4M9.5 6.5 14 2M2.5 9.5h4v4M6.5 9.5 2 14"},TM={class:"rp-window"},DM={class:"rp-chrome","aria-hidden":"true"},PM={class:"rp-url"},AM={class:"rp-bar","aria-hidden":"true"},IM={key:0,class:"rp-bar-id"},OM={key:1,class:"rp-bar-kind"},MM={class:"leftCol-head"},VM={class:"leftCol-body"},LM={key:0,class:"rp-state rp-loading",role:"status"},qM={class:"rp-state-text"},$M={class:"rp-state rp-error",role:"alert"},_M={class:"rp-state-actions"},FM={key:1,class:"btn btn-outline-ink btn-sm",href:"/connections"},UM={key:2,class:"rp-state rp-error",role:"alert"},BM={class:"rp-state-actions"},zM={class:"rp-state rp-error",role:"alert"},HM={class:"rp-state-actions"},jM={class:"rp-state rp-error",role:"alert"},GM={class:"rp-state-actions"},WM={key:5,class:"rp-state rp-empty"},KM={key:7,class:"anonymize-preview-body"},YM={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},JM={class:"pr-title mb-1"},XM={key:0},QM=["textContent"],ZM={key:0},xM={key:1},eV={key:2},tV={class:"pr-comments mt-3"},nV={class:"pr-comment"},oV={class:"pr-comment-head"},sV=["textContent"],iV={key:0,class:"pr-comment-date"},rV={key:3},aV={class:"pr-comments"},lV={class:"pr-comment"},dV={class:"pr-comment-head"},uV={key:0,class:"pr-comment-author"},cV=["textContent"],pV=["textContent"],fV={key:0,class:"pr-comment-body"},mV={key:8,class:"anonymize-preview-body"},hV={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},gV={class:"pr-title mb-1"},vV={key:0},yV=["textContent"],bV={key:0},wV={key:1,class:"pr-body"},kV={key:2,class:"paper-tabs",role:"tablist"},CV=["aria-selected","tabindex"],SV=["aria-selected","tabindex"],EV=["textContent"],NV={key:3,class:"anonymize-preview-status"},RV={class:"paper-tab-content"},TV={key:0,role:"tabpanel",id:"preview-pr-diff-panel","aria-labelledby":"preview-pr-diff-tab"},DV=["innerHTML"],PV={key:1,role:"tabpanel",id:"preview-pr-comments-panel","aria-labelledby":"preview-pr-comments-tab"},AV={class:"pr-comments"},IV={class:"pr-comment"},OV={class:"pr-comment-head"},MV={key:0,class:"pr-comment-author"},VV=["textContent"],LV=["textContent"],qV={key:0,class:"pr-comment-body"},$V={key:9,class:"rp-more"},_V=["href"],FV={key:2,class:"rp-more-btn is-hint","aria-hidden":"true"};function lp(e,t){let s=Qe("tree"),i=Qe("partial-view"),o=Qe("gist-file"),r=Qe("markdown"),u=De("field"),p=De("form");return a(),l("div",{class:R(["anonymize-page h-100",{"mobile-preview-active":e.mobilePane==="preview","preview-expanded":e.previewExpanded}])},[f(" ===== STATE 1: No URL \u2014 centered input ===== "),T(n("div",SI,[n("div",EI,[t[70]||(t[70]=Se('
My work \xA0/\xA0 New anonymization

New anonymization

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

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

Anonymize a pull request

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

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

',1)),n("div",QV,[n("div",ZV,[n("div",xV,[n("div",eL,[T(n("input",tL,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",nL,[T(n("input",oL,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",sL,[T(n("input",iL,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",rL,[T(n("input",aL,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",lL,[T(n("input",dL,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",uL,[T(n("input",cL,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",pL,[T(n("input",fL,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",mL,[T(n("input",hL,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",gL,[T(n("input",vL,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[Z,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,yL)):f("v-if",!0),T(n("div",bL,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ae(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update ",-1)])])):f("v-if",!0)],512),[[Z,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(a(),l("div",wL,[n("div",kL,[n("h2",CL,[e.options?.title?(a(),l("span",SL,d(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["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}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,EL)):f("v-if",!0)]),e.options?.origin?(a(),l("small",NL,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",RL,[Oe(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",TL,[e.options?.diff?(a(),l("li",DL,[...t[31]||(t[31]=[n("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(a(),l("li",PL,[n("button",{class:R(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,AL)],2)])):f("v-if",!0)]),n("div",IL,[n("div",OL,[e.options?.diff?(a(),l("div",ML,[n("pre",VL,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,LL)])])):f("v-if",!0)]),n("div",{class:R(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",qL,[(a(!0),l(V,null,Q(e.details?.pullRequest?.comments,(r,u)=>(a(),l("li",$L,[n("div",FL,[e.options?.username?(a(),l("h5",_L," @"+d(e.anonymize(r?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:d(e.fmt?.date(r?.updatedDate))},null,8,UL)):f("v-if",!0)]),n("p",BL,[e.options?.body?(a(),Wt(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var zL={class:"container paper-page claim-page"},HL={class:"paper-settings-main claim-form"},jL={class:"form-group"},GL={class:"invalid-feedback"},WL={class:"form-group"};function up(e,t){let s=De("field"),i=De("form");return a(),l("div",zL,[t[6]||(t[6]=Se('
My work \xA0/\xA0 Claim

Claim an anonymization

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

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

Anonymize a pull request

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

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

',1)),n("div",uL,[n("div",cL,[n("div",pL,[n("div",fL,[T(n("input",mL,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),n("div",hL,[T(n("input",gL,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),n("div",vL,[T(n("input",yL,null,512),[[i,{state:e.viewState,set:r=>{e.options.date=r},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=n("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=n("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),n("div",bL,[T(n("input",wL,null,512),[[i,{state:e.viewState,set:r=>{e.options.username=r},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=n("label",{class:"form-check-label",for:"username"},"Display username",-1))]),n("div",kL,[T(n("input",CL,null,512),[[i,{state:e.viewState,set:r=>{e.options.comments=r},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),n("div",SL,[T(n("input",EL,null,512),[[i,{state:e.viewState,set:r=>{e.options.diff=r},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=n("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),n("div",NL,[T(n("input",RL,null,512),[[i,{state:e.viewState,set:r=>{e.options.origin=r},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),n("div",TL,[T(n("input",DL,null,512),[[i,{state:e.viewState,set:r=>{e.options.title=r},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=n("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),n("div",PL,[T(n("input",AL,null,512),[[i,{state:e.viewState,set:r=>{e.options.body=r},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[Z,e.pullRequestUrl]]),e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,IL)):f("v-if",!0),T(n("div",OL,[e.isUpdate?f("v-if",!0):(a(),l("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.anonymizePullRequest(r)}),["prevent"]))},[...t[28]||(t[28]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1),h(" Anonymize ",-1)])])),e.isUpdate?(a(),l("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ae(r=>e.submitForm(r,()=>{e.updatePullRequest(r)}),["prevent"]))},[...t[29]||(t[29]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-save"})],-1),h(" Update ",-1)])])):f("v-if",!0)],512),[[Z,e.pullRequestUrl]])],2)),[[o,e.viewState]])],2)]),e.details?(a(),l("div",ML,[n("div",VL,[n("h2",LL,[e.options?.title?(a(),l("span",qL,d(e.anonymize(e.details?.pullRequest?.title)),1)):f("v-if",!0),n("span",{class:R(["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}])},d(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(a(),l("small",{key:0,textContent:d(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,$L)):f("v-if",!0)]),e.options?.origin?(a(),l("small",_L,"Pull Request on "+d(e.details?.pullRequest?.baseRepositoryFullName),1)):f("v-if",!0),e.options?.body?(a(),l("div",FL,[Oe(s,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):f("v-if",!0),n("ul",UL,[e.options?.diff?(a(),l("li",BL,[...t[31]||(t[31]=[n("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):f("v-if",!0),e.options?.comments?(a(),l("li",zL,[n("button",{class:R(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[n("span",{textContent:d(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,HL)],2)])):f("v-if",!0)]),n("div",jL,[n("div",GL,[e.options?.diff?(a(),l("div",WL,[n("pre",KL,[n("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,YL)])])):f("v-if",!0)]),n("div",{class:R(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(a(),l("ul",JL,[(a(!0),l(V,null,Q(e.details?.pullRequest?.comments,(r,u)=>(a(),l("li",XL,[n("div",QL,[e.options?.username?(a(),l("h5",ZL," @"+d(e.anonymize(r?.author)),1)):f("v-if",!0),e.options?.date?(a(),l("small",{key:1,textContent:d(e.fmt?.date(r?.updatedDate))},null,8,xL)):f("v-if",!0)]),n("p",eq,[e.options?.body?(a(),Wt(s,{key:0,class:"pr-comment-body",content:e.anonymize(r?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):f("v-if",!0)])]))),256))])):f("v-if",!0)],2)])])):f("v-if",!0)])])}var tq={class:"container paper-page claim-page"},nq={class:"paper-settings-main claim-form"},oq={class:"form-group"},sq={class:"invalid-feedback"},iq={class:"form-group"};function up(e,t){let s=De("field"),i=De("form");return a(),l("div",tq,[t[6]||(t[6]=Se('
My work \xA0/\xA0 Claim

Claim an anonymization

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

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

The questions that come up most.

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

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

Which file formats are supported?

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

What happens when an anonymized repository expires?

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

Ready for review?

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

',2)),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var Gz={class:"paper-empty"},Wz={class:"paper-empty-inner"},Kz={key:0,class:"paper-eyebrow"},Yz={key:1,class:"paper-eyebrow"},Jz={key:2,class:"paper-empty-title"},Xz=["textContent"];function bp(e,t){return a(),l("div",Gz,[n("div",Wz,[e.error?f("v-if",!0):(a(),l("div",Kz,"Working")),e.error?(a(),l("div",Yz,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",Jz,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:d(e.fmt.translate(e.error))},null,8,Xz)):f("v-if",!0)])])}var Qz={class:"container paper-page paper-settings"},Zz={class:"paper-crumbs"},xz={class:"here"},eH={class:"paper-page-title"},tH={class:"paper-settings-body"},nH={class:"paper-settings-toc"},oH={href:"#conf-billing"},sH={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},iH={id:"conf-basics",class:"paper-settings-section"},rH={class:"form-group"},aH={class:"invalid-feedback"},lH={class:"invalid-feedback"},dH={class:"form-group"},uH={class:"invalid-feedback"},cH={class:"form-group"},pH={class:"invalid-feedback"},fH={class:"invalid-feedback"},mH={id:"conf-window",class:"paper-settings-section"},hH={class:"form-grid-2"},gH={class:"form-group"},vH={class:"invalid-feedback"},yH={class:"invalid-feedback"},bH={class:"form-group"},wH={class:"invalid-feedback"},kH={class:"invalid-feedback"},CH={id:"conf-rendering",class:"paper-settings-section"},SH={class:"form-check"},EH={class:"form-check-input",type:"checkbox",id:"link",name:"link"},NH={class:"form-check"},RH={class:"form-check-input",type:"checkbox",id:"image",name:"image"},TH={class:"form-check"},DH={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},PH={class:"form-check"},AH={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},IH={id:"conf-features",class:"paper-settings-section"},OH={class:"form-check"},MH={class:"form-check-input",type:"checkbox",id:"update",name:"update"},VH={class:"form-check"},LH={class:"form-check-input",type:"checkbox",id:"page",name:"page"},qH={id:"conf-plan",class:"paper-settings-section"},$H={key:0,class:"paper-section-copy"},FH={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},_H=["value","checked","onChange"],UH={class:"conference-tier-head"},BH={key:0,class:"conference-tier-pill"},zH={class:"conference-tier-who"},HH={key:0,class:"conference-tier-price"},jH={class:"conference-tier-size"},GH={key:1,class:"conference-tier-per"},WH={key:2,class:"paper-plan-grid"},KH=["value"],YH=["textContent"],JH={class:"paper-plan-price"},XH=["innerHTML"],QH={key:3,class:"settings-notice",role:"status"},ZH={key:0,id:"conf-billing",class:"paper-settings-section"},xH={class:"form-group"},ej={class:"form-group"},tj={class:"form-group"},nj={class:"form-group"},oj={class:"form-grid-3"},sj={class:"form-group"},ij={class:"form-group"},rj={class:"form-group"},aj={class:"form-group"},lj={class:"paper-settings-footer"},dj=["textContent"],uj=["textContent"],cj=["disabled"];function wp(e,t){let s=De("paper-scrollspy"),i=De("field"),o=De("form");return a(),l("div",Qz,[n("div",Zz,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=h(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=h(" \xA0/\xA0 ",-1)),n("span",xz,d(e.editionMode?"Edit":"New"),1)]),n("h1",eH,[h(d(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",tH,[T((a(),l("aside",nH,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Se('BasicsReview windowRendering defaultsFeaturesPlan',5)),T(n("a",oH,"Billing",512),[[Z,e.plan?.pricePerRepo>0]])])])),[[s]]),T((a(),l("form",sH,[n("section",iH,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",rH,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),T(n("div",aH," The name of the conference is invalid. ",512),[[Z,e.conference?.name?.errors?.invalid]]),T(n("div",lH," The name of the conference is required. ",512),[[Z,e.conference?.name?.errors?.required]])]),n("div",dH,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),T(n("input",{type:"url",class:R(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),T(n("div",uH," The url of the conference is invalid. ",512),[[Z,e.conference?.url?.errors?.url]])]),n("div",cH,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[h("3\u201310 characters, letters, numbers, "),n("code",null,"-"),h(" and "),n("code",null,"_"),h(". Authors reference this when they anonymize.")],-1)),T(n("div",{class:"invalid-feedback"}," The conference ID '"+d(e.options?.conferenceID)+"' is already used. ",513),[[Z,e.conference?.conferenceID?.errors?.used]]),T(n("div",pH," The conference ID is required. ",512),[[Z,e.conference?.conferenceID?.errors?.required]]),T(n("div",fH," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Z,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",mH,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",hH,[n("div",gH,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),T(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),T(n("div",vH," Start date is required. ",512),[[Z,e.conference?.startDate?.errors?.required]]),T(n("div",yH," Start date must be before end date. ",512),[[Z,e.conference?.startDate?.errors?.invalid]])]),n("div",bH,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),T(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),T(n("div",wH," End date is required. ",512),[[Z,e.conference?.endDate?.errors?.required]]),T(n("div",kH," End date is invalid. ",512),[[Z,e.conference?.endDate?.errors?.invalid]])])])]),n("section",CH,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",SH,[T(n("input",EH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",NH,[T(n("input",RH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",TH,[T(n("input",DH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",PH,[T(n("input",AH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",IH,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",OH,[T(n("input",MH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",VH,[T(n("input",LH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",qH,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",$H,d(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(V,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",FH,[(a(!0),l(V,null,Q(e.conferenceTiers(),r=>(a(),l("label",{class:R(["conference-tier",{"is-selected":e.options?.plan?.planID===r.id}]),key:r.id},[n("input",{type:"radio",name:"planPicker",value:r.id,checked:e.options?.plan?.planID===r.id,onChange:u=>e.options.plan.planID=r.id},null,40,_H),n("span",UH,[n("strong",null,d(r.name),1),r.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",BH,"Most common")):f("v-if",!0)]),n("span",zH,d(e.conferenceAudience(r.id)),1),r.amount!=null?(a(),l("span",HH,[n("strong",null,d(e.conferenceAmount(r)),1),t[32]||(t[32]=h(" once",-1))])):f("v-if",!0),n("span",jH,"Up to "+d(r.repositories)+" papers \xB7 "+d(e.conferenceBytes(r.storage)),1),r.amount!=null&&r.repositories?(a(),l("span",GH,"About "+d(e.conferenceAmount(r,r.amount/r.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Se('

Every package includes

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

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

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

',2))],64)):e.plans.length?(a(),l("div",WH,[(a(!0),l(V,null,Q(e.plans,r=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}]),key:r.id},[T(n("input",{type:"radio",name:"planPicker",value:r?.id},null,8,KH),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:d(r?.name)},null,8,YH),n("div",JH,d(r.pricePerRepo>0?e.fmt?.number(r.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,XH)],2))),128))])):e.plansLoaded?(a(),l("p",QH,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",ZH,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",xH,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",ej,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),T(n("input",{type:"email",class:R(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",tj,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",nj,[T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",oj,[n("div",sj,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",ij,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",rj,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",aj,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",lj,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,dj)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:d(e.message)},null,8,uj)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},d(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,cj)])])),[[o,e.viewState]])])])}var pj={key:0,class:"dir-card","aria-label":"Repository files"},fj=["onClick"],mj={class:"dir-name"},hj=["href"],gj={class:"dir-name"},vj={class:"dir-meta"},yj={class:"file-card-head"},bj={class:"file-card-path"},wj={class:"breadcrumb paths","aria-label":"Path"},kj={class:"breadcrumb-item breadcrumb-root"},Cj=["href","title","textContent"],Sj=["aria-current"],Ej=["aria-label"],Nj={class:"mobile-sub ms"},Rj=["title"],Tj={class:"ms-item"},Dj={key:1,class:"ms-item"},Pj={key:2,class:"ms-item"},Aj=["aria-label","title"],Ij={class:"ui-icon","aria-hidden":"true"},Oj=["href"],Mj={key:0,class:"file-card-meta"},Vj=["title"],Lj={class:"meta-extra"},qj={key:1,class:"file-card-meta"},$j=["title"],Fj={class:"file-card-actions"},_j={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},Uj=["aria-checked"],Bj=["aria-checked"],zj={key:1,class:"symbols"},Hj=["aria-expanded"],jj={key:0,class:"symbols-menu",role:"menu"},Gj={class:"symbols-head"},Wj=["onClick"],Kj={class:"symbols-name"},Yj={class:"symbols-line"},Jj=["title"],Xj={key:3,class:"tb-view",role:"group","aria-label":"View tools"},Qj=["title"],Zj=["aria-pressed"],xj=["title"],eG={key:4,class:"tb-file",role:"group","aria-label":"File actions"},tG=["target","title","href"],nG=["aria-label","title"],oG={class:"ui-icon","aria-hidden":"true"},sG=["href"],iG=["target","href","download"],rG=["aria-label"],aG={class:"ui-icon","aria-hidden":"true"},lG=["href"],dG={key:6,class:"tb-toc-m"},uG=["aria-expanded"],cG=["onClick"],pG={class:"tb-more"},fG=["aria-expanded"],mG={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},hG={key:0,class:"tb-menu-note"},gG={key:1,class:"tb-menu-note tb-menu-meta"},vG={key:2,class:"tb-menu-sep"},yG={key:4,class:"tb-menu-sep"},bG=["aria-checked"],wG={key:0,class:"tb-menu-check"},kG={class:"ui-icon","aria-hidden":"true"},CG=["href"],SG={key:9,class:"tb-menu-sep"},EG=["target","href"],NG=["target","href"],RG=["target","href","download"],TG=["target","href"],DG=["href"],PG=["target","href"],AG=["placeholder","aria-invalid"],IG=["aria-label"],OG={class:"csv-table"},MG=["aria-label"],VG={class:"csv-rownum"},LG=["aria-label"],qG={key:1,class:"file-card-body"},$G={key:2,class:"md-find-bar",role:"search"},FG=["value"],_G={class:"md-find-nav"},UG=["disabled"],BG=["disabled"],zG={class:"md-find-count","aria-live":"polite"},HG=["aria-pressed"],jG={key:3,class:"reading-layout"},GG=["innerHTML"],WG={key:0,class:"readme-toc","aria-label":"On this page"},KG={class:"toc-rail"},YG=["href","onClick"],JG={class:"file-card-head"},XG={class:"file-card-path"},QG={class:"breadcrumb paths","aria-label":"Path"},ZG={class:"breadcrumb-item breadcrumb-root"},xG=["href","title","textContent"],eW=["aria-current"],tW=["aria-label"],nW={class:"mobile-sub ms"},oW=["title"],sW={class:"ms-item"},iW={key:1,class:"ms-item"},rW={key:2,class:"ms-item"},aW=["aria-label","title"],lW={class:"ui-icon","aria-hidden":"true"},dW=["href"],uW={class:"file-card-meta"},cW=["title"],pW={class:"file-card-actions"},fW={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},mW={key:1,class:"tb-file",role:"group","aria-label":"File actions"},hW=["target","title","href"],gW=["target","href","download"],vW={class:"tb-more"},yW=["aria-expanded"],bW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},wW={key:0,class:"tb-menu-note"},kW={key:1,class:"tb-menu-sep"},CW=["target","href"],SW=["target","href","download"],EW=["target","href"],NW={key:0,class:"media-stage"},RW=["src","alt"],TW={key:1,class:"media-stage"},DW=["src"],PW={key:2,class:"media-stage is-audio"},AW=["src"],IW={key:4,class:"notebook-body"},OW={key:5,class:"file-state"},MW={class:"file-state-msg"},VW={key:0,class:"file-state-actions"},LW=["target","href","download"],qW={key:6,class:"file-state",role:"alert"},$W={class:"file-state-title"},FW={key:0,class:"file-state-msg"},_W={key:1,class:"file-state-msg"},UW={key:2,class:"file-state-actions"},BW=["href"],zW={key:7,class:"file-state"},HW={key:4,class:"file-error container d-flex h-100"},jW={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},GW={class:"paper-error-msg"},WW={key:5,class:"file-error container d-flex h-100"},KW={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},YW={id:"viewer-error-title",class:"paper-empty-title"},JW={class:"paper-error-actions"},XW={key:0,href:"/",class:"btn btn-sm"},QW={key:1,href:"/faq",class:"btn btn-sm"},ZW={key:2,class:"btn btn-outline-ink",href:"/dashboard"},xW={key:6,class:"viewer-loading","aria-busy":"true"},eK={class:"viewer-loading-status",role:"status","aria-live":"polite"},tK={class:"viewer-loading-name sr-only"},nK={key:0},oK={class:"viewer-loading-lines","aria-hidden":"true"},sK={key:7,class:"file-error container d-flex h-100"},iK={key:8,class:"file-error container d-flex h-100"};function kp(e,t){let s=Qe("html-doc"),i=Qe("pdfviewer"),o=Qe("notebook"),r=De("code-editor");return a(),l(V,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",pj,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(V,null,Q(e.rootEntries(),u=>(a(),l("li",{key:u.name},[u.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(u.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",mj,d(u.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,fj)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":u.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(u.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",gj,d(u.name),1),n("span",vj,d(e.formatSize(u.size)),1)],10,hj))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=u=>e.dirExpanded=!0)},"Show all "+d(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",yj,[n("div",bj,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",wj,[n("li",kj,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,Cj)]),(a(!0),l(V,null,Q(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,Ej)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],8,Sj))),256))]),n("span",Nj,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Rj)):f("v-if",!0),n("span",Tj,d(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",Dj,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",Pj,d(e.fmt?.number(e.content.split(` -`).length))+" lines",1)):f("v-if",!0)]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=u=>e.copyPath())},[(a(),l("svg",Ij,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,Oj)]))],8,Aj),[[Z,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",Mj,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Vj),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(d(e.languageName||"Text"),1),n("span",Lj,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.fmt?.number(e.content.split(` -`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",qj,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,$j),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(V,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",Fj,[e.isCsv()?(a(),l("div",_j,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=u=>e.csvView="table")},"Table",10,Uj),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[5]||(t[5]=u=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,Bj)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",zj,[n("button",{type:"button",class:R(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[6]||(t[6]=u=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,Hj),e.symbolsOpen?(a(),l("div",jj,[n("div",Gj,d(e.symbols().length)+" "+d(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(V,null,Q(e.symbols(),u=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:u.line+u.name,onClick:p=>e.goToSymbol(u.line)},[n("span",{class:R(["symbols-kind","is-"+u.kind])},d(u.kind==="class"?"C":u.kind==="function"?"\u0192":"v"),3),n("span",Kj,d(u.name),1),n("span",Yj,d(u.line),1)],8,Wj))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:R(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[7]||(t[7]=u=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,Jj)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?(a(),l("div",Xj,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[8]||(t[8]=u=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,Qj)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[9]||(t[9]=u=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,Zj)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[10]||(t[10]=u=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,xj)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",eG,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,tG),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[11]||(t[11]=u=>e.copyContent())},[(a(),l("svg",oG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,sG)]))],8,nG)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,iG)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=u=>e.copyContent())},[(a(),l("svg",aG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,lG)]))],8,rG)):f("v-if",!0),e.type=="html"&&e.readmeToc().length>=3?(a(),l("div",dG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[13]||(t[13]=ae(u=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,uG),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[15]||(t[15]=u=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:R(["tb-menu-toc","lvl-2",{"is-active":!e.activeHeading}]),onClick:t[14]||(t[14]=u=>e.scrollToHeading(null))},"Introduction",2),(a(!0),l(V,null,Q(e.readmeToc(),u=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+u.id,class:R(["tb-menu-toc","lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:p=>e.scrollToHeading(u.id)},d(u.text),11,cG))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",pG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[16]||(t[16]=ae(u=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",mG,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,fG),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",hG,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",gG,[h(d(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+d(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(V,{key:0},[h(" \xB7 "+d(e.fmt?.number(e.content.split(` -`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",vG)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[17]||(t[17]=u=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",yG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[18]||(t[18]=u=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[19]||(t[19]=u=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[20]||(t[20]=u=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",wG,"\u2713")):f("v-if",!0)],8,bG)):f("v-if",!0),e.isCsv()?(a(),l("button",{key:8,type:"button",role:"menuitem",class:"tb-csv-view",onClick:t[21]||(t[21]=u=>{e.csvView=e.csvView==="table"?"raw":"table",e.moreOpen=!1})},[(a(),l("svg",kG,[n("use",{href:e.csvView==="table"?"#ui-icon-code":"#ui-icon-list"},null,8,CG)])),h(d(e.csvView==="table"?"Show as text":"Show as table"),1)])):f("v-if",!0),e.type!="html"?(a(),l("div",SG)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,EG)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,NG)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,RG)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,TG)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,DG)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,PG)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=u=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=ae(u=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),T(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` -`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=u=>e.gotoValue=u),onKeydown:t[25]||(t[25]=Vt(ae(u=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,AG),[[nt,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},d(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",OG,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(V,null,Q(e.csvRows()[0]||[],(u,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,MG)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.csvRows().slice(1),(u,p)=>(a(),l("tr",{key:p},[n("td",VG,d(p+1),1),(a(!0),l(V,null,Q(u,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(V,null,Q(e.redactParts(c),(g,y)=>(a(),l(V,{key:y},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,d(g.n),1)],8,LG)):(a(),l(V,{key:1},[h(d(g.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,IG)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?T((a(),l("div",qG,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",$G,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=u=>{e.mdFindQuery=u.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Vt(ae(u=>u.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Vt(ae(u=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,FG),n("span",_G,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=u=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,UG),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=u=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,BG)]),n("span",zG,d(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=u=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,HG),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=u=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",jG,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,GG),e.readmeToc().length>=3?(a(),l("aside",WG,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",KG,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading}]),onClick:t[34]||(t[34]=ae(u=>e.scrollToHeading(null),["prevent"]))},"Introduction",2),(a(!0),l(V,null,Q(e.readmeToc(),(u,p)=>(a(),l("a",{key:u.id,href:"#"+u.id,class:R(["lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:ae(c=>e.scrollToHeading(u.id),["prevent"])},d(u.text),11,YG))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Wt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",JG,[n("div",XG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",QG,[n("li",ZG,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,xG)]),(a(!0),l(V,null,Q(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,tW)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],8,eW))),256))]),n("span",nW,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,oW)):f("v-if",!0),n("span",sW,d(e.fileKind()),1),e.imageSize?(a(),l("span",iW,d(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",rW,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=u=>e.copyPath())},[(a(),l("svg",lW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,dW)]))],8,aW),[[Z,e.filePath]])]),n("span",uW,[e.type=="IPython"&&e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,cW),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(d(e.fileKind()),1),e.imageSize?(a(),l(V,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(V,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",pW,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",fW,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),h("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",mW,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,hW),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,gW)])):f("v-if",!0),n("div",vW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=ae(u=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",bW,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,yW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",wW,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",kW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),h(d(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,CW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,SW)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,EW)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=u=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",NW,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=u=>e.onImageLoad(u))},null,40,RW)])):f("v-if",!0),e.type=="media"?(a(),l("div",TW,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,DW)])):f("v-if",!0),e.type=="audio"?(a(),l("div",PW,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,AW)])):f("v-if",!0),e.type=="pdf"?(a(),Wt(i,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",IW,[Oe(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",OW,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",MW,d(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",VW,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,LW)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",qW,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",$W,d(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",FW,d(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",_W,d(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",UW,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,BW),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",zW,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",HW,[n("div",jW,[t[112]||(t[112]=Se('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",GW,[t[110]||(t[110]=h("This repository will be available in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[111]||(t[111]=h(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",WW,[n("section",KW,[n("h1",YW,d(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,d(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(V,{key:0},[n("p",null,d(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,d(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",JW,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",XW,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",QW,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=u=>e.retryContent())},d(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",ZW,d(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",xW,[n("div",eK,[n("strong",null,d(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",tK,d(e.filePath),1),e.fileLoadingSlow?(a(),l("p",nK,d(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",oK,[(a(),l(V,null,Q(10,u=>n("span",{key:u})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",sK,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"repository"),h(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",iK,[...t[114]||(t[114]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"file"),h(".")],-1)])])):f("v-if",!0)],64)}var rK={class:"container page dashboard-page paper-page"},aK={class:"row"},lK={class:"w-100"},dK={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},uK={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},cK={class:"flex-grow-1"},pK={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},fK={class:"d-flex flex-wrap",style:{gap:"6px"}},mK={class:"dropdown"},hK={class:"dropdown-menu","aria-labelledby":"dropdownSort"},gK={class:"form-check dropdown-item"},vK={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},yK={class:"form-check dropdown-item"},bK={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},wK={class:"form-check dropdown-item"},kK={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},CK={class:"form-check dropdown-item"},SK={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},EK={class:"form-check dropdown-item"},NK={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},RK={class:"dropdown"},TK={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},DK={class:"form-check dropdown-item"},PK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},AK={class:"form-check dropdown-item"},IK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},OK={class:"form-check dropdown-item"},MK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},VK={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},LK={class:"filter-chip"},qK=["onClick"],$K={class:"repo-list w-100"},FK={class:"repo-list-item-content"},_K={class:"repo-list-item-main"},UK={class:"repo-list-item-header"},BK=["textContent","href"],zK=["textContent"],HK=["textContent"],jK={class:"repo-source"},GK=["href"],WK={class:"repo-date"},KK={class:"repo-meta"},YK={key:0,title:"Conference"},JK=["title"],XK=["title"],QK=["title"],ZK={key:1},xK={class:"repo-list-item-actions"},eY={class:"dropdown"},tY={class:"dropdown-menu dropdown-menu-right"},nY=["href"],oY=["onClick"],sY=["onClick"],iY=["onClick"],rY=["href"],aY={key:0,class:"repo-list-empty"};function Cp(e,t){let s=De("field"),i=De("form");return a(),l("div",rK,[n("div",aK,[n("div",lK,[t[12]||(t[12]=Se('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

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

',2)),f(" Search + filters row "),T((a(),l("form",dK,[n("div",uK,[n("div",cK,[T(n("input",pK,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",fK,[n("div",mK,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",hK,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",gK,[T(n("input",vK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",yK,[T(n("input",bK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",wK,[T(n("input",kK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",CK,[T(n("input",SK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",EK,[T(n("input",NK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",RK,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",TK,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",DK,[T(n("input",PK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",AK,[T(n("input",IK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",OK,[T(n("input",MK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),T(n("div",VK,[(a(!0),l(V,null,Q(e.filters?.status,(o,r,u)=>T((a(),l("span",LK,[h(d(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,qK)],512)),[[Z,!o]])),256))],512),[[Z,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",$K,[(a(!0),l(V,null,Q(e.filteredPullRequests,(o,r)=>(a(),l("li",{class:R(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",FK,[n("div",_K,[n("div",UK,[n("a",{class:"repo-name",textContent:d(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,BK),n("span",{class:R(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,zK),o?.status=="error"?(a(),l("span",{key:0,textContent:d(": "+o?.statusMessage)},null,8,HK)):f("v-if",!0)],2)]),n("div",jK,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},d(o?.source?.repositoryFullName)+"#"+d(o?.source?.pullRequestId),9,GK)]),n("span",{class:R(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},d(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",WK,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",KK,[o?.conference?(a(),l("span",YK,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" "+d(e.fmt?.number(o?.options?.terms?.length)),1)],8,JK),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),h(" "+d(e.fmt?.number(o?.pageView)),1)],8,XK),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),h(" "+d(e.fmt?.humanTime(o?.lastView)),1)],8,QK),o?.options?.expirationMode!="never"&&o?.status=="ready"?(a(),l("span",ZK,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Expire: "+d(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",xK,[n("div",eY,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",tY,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,nY),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update ",-1)])],8,oY),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable ",-1)])],8,sY),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,iY),[[Z,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View PR ",-1)])],8,rY)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",aY,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var lY={class:"container paper-page user-settings"},dY={class:"settings-nav","aria-label":"Settings"},uY=["aria-current","onClick"],cY={class:"settings-row"},pY=["rows"],fY={class:"settings-syntax"},mY={class:"invalid-feedback"},hY={class:"settings-row"},gY={class:"settings-checks"},vY={class:"settings-check"},yY={class:"form-check-input",type:"checkbox",id:"link",name:"link"},bY={class:"settings-check"},wY={class:"form-check-input",type:"checkbox",id:"image",name:"image"},kY={class:"settings-check"},CY={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},SY={class:"settings-check"},EY={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},NY={class:"settings-check"},RY={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},TY={class:"settings-check"},DY={class:"form-check-input",type:"checkbox",id:"page",name:"page"},PY={class:"settings-row"},AY={class:"settings-check"},IY={class:"form-check-input",type:"checkbox",id:"update",name:"update"},OY={class:"settings-row"},MY={class:"form-control",id:"expiration",name:"expiration"},VY={class:"settings-help"},LY={class:"settings-save"},qY={class:"settings-save-status draft-status",role:"status"},$Y={key:0},FY={key:1},_Y={key:2},UY=["disabled"],BY={key:1,class:"settings-save-error",role:"alert"},zY=["aria-busy"],HY={key:0,role:"status"},jY={key:1,class:"settings-notice",role:"alert"},GY=["disabled"],WY={key:2,class:"settings-notice",role:"status"},KY={key:3,class:"settings-notice",role:"status"},YY=["disabled"],JY={class:"billing-summary"},XY={class:"billing-summary-head"},QY={class:"billing-plan-name"},ZY={key:0,class:"billing-plan-meta"},xY={key:1,class:"billing-plan-meta"},eJ={key:0,class:"billing-summary-actions"},tJ=["disabled"],nJ={id:"settings-quota"},oJ={key:1,role:"status"},sJ={key:0,class:"settings-notice"},iJ={key:1,class:"settings-notice"},rJ={key:2,class:"settings-notice"},aJ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},lJ={key:0,class:"billing-offers"},dJ={key:0,class:"billing-offer is-recommended"},uJ={class:"billing-offer-price"},cJ={class:"billing-offer-list"},pJ=["disabled"],fJ={key:1,class:"billing-offer"},mJ={class:"billing-offer-head"},hJ={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},gJ=["aria-checked","onClick"],vJ={key:0,class:"billing-toggle-save"},yJ={class:"billing-offer-price"},bJ={class:"billing-offer-list"},wJ=["disabled"],kJ={key:1,class:"billing-addons"},CJ={class:"billing-addon-rows"},SJ={class:"billing-addon-price"},EJ=["onClick","disabled"],NJ={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},RJ={class:"billing-buy-info"},TJ={class:"billing-offer-price"},DJ={class:"billing-offer-list"},PJ={class:"billing-buy-form"},AJ=["value"],IJ=["disabled"],OJ={key:1,class:"billing-buy-desc"},MJ={key:2,class:"billing-footnote"},VJ={class:"billing-compare"},LJ={class:"billing-compare-card"},qJ={class:"settings-comparison"},$J={key:0,scope:"col",class:"is-recommended"},FJ={key:1,scope:"col"},_J={key:0,class:"is-recommended"},UJ={key:1},BJ={key:0,class:"is-recommended"},zJ={key:1},HJ={key:0,class:"is-recommended"},jJ={key:1},GJ={key:0,class:"is-recommended"},WJ={key:1},KJ={key:0,class:"is-recommended"},YJ={key:1},JJ={key:0,class:"is-recommended"},XJ={key:1},QJ={key:3,class:"billing-footnote"},ZJ={key:5,class:"billing-section"},xJ={class:"billing-section-head"},eX=["disabled"],tX={key:0,class:"billing-empty"},nX={key:1,class:"billing-history-head","aria-hidden":"true"},oX={key:2,class:"billing-history"},sX={class:"billing-history-main"},iX=["href"],rX=["href"],aX={class:"billing-history-term"},lX={class:"billing-history-paid"},dX={class:"billing-history-status"},uX={class:"billing-manage"},cX={key:0},pX={key:1},fX=["disabled"],mX={class:"billing-conference"},hX={id:"settings-account",class:"settings-account-panel"},gX={class:"paper-account-card"},vX=["src"],yX={class:"paper-account-identity"},bX={class:"paper-account-name"},wX=["disabled"],kX={key:0,role:"status"},CX={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},SX=["disabled"],EX={key:3,role:"status"},NX={class:"paper-danger-zone"},RX={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},TX=["textContent"],DX=["disabled"],PX={key:1,class:"settings-delete-confirm"},AX={for:"delete-username"},IX={class:"settings-actions"},OX=["disabled"],MX=["disabled"];function Sp(e,t){let s=Qe("quota-usage"),i=De("field"),o=De("form");return a(),l("div",lY,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",dY,[(a(),l(V,null,Q([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:u=>e.settingsTab=r.id},d(r.label),9,uY)),64))]),T(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),T((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=r=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=ae(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",cY,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[T(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` +10 log("epoch %d: %.3f", epoch, loss)
`,2)])])):(a(),l("div",oH,[...t[21]||(t[21]=[Se('
ProjectStatusViewsExpires
DeepLearnUtilspaper-7f2a \xB7 ICSE 2027Ready41Mar 31, 2027
vision-bench#212pull request \xB7 FSE 2027Ready12Never
graph-repairgr-91abUpdating5Jan 5, 2027
JarSiftOOPSLA 2025Expired72Sep 28, 2026
',5)])]))],10,eH)])],8,Xz)),[[Z,e.feature===i?.key]])),128))])]),f(" FAQ teaser "),t[24]||(t[24]=Se('
Before you sign in

The questions that come up most.

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

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

Which file formats are supported?

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

What happens when an anonymized repository expires?

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

Ready for review?

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

',2)),Oe(s,{name:"partials/footer.htm",state:e.viewState},null,8,["state"])])}var sH={class:"paper-empty"},iH={class:"paper-empty-inner"},rH={key:0,class:"paper-eyebrow"},aH={key:1,class:"paper-eyebrow"},lH={key:2,class:"paper-empty-title"},dH=["textContent"];function bp(e,t){return a(),l("div",sH,[n("div",iH,[e.error?f("v-if",!0):(a(),l("div",rH,"Working")),e.error?(a(),l("div",aH,"Error")):f("v-if",!0),e.error?f("v-if",!0):(a(),l("h1",lH,[...t[0]||(t[0]=[h(" Loading",-1),n("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(a(),l("h1",{key:3,class:"paper-empty-title",textContent:d(e.fmt.translate(e.error))},null,8,dH)):f("v-if",!0)])])}var uH={class:"container paper-page paper-settings"},cH={class:"paper-crumbs"},pH={class:"here"},fH={class:"paper-page-title"},mH={class:"paper-settings-body"},hH={class:"paper-settings-toc"},gH={href:"#conf-billing"},vH={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},yH={id:"conf-basics",class:"paper-settings-section"},bH={class:"form-group"},wH={class:"invalid-feedback"},kH={class:"invalid-feedback"},CH={class:"form-group"},SH={class:"invalid-feedback"},EH={class:"form-group"},NH={class:"invalid-feedback"},RH={class:"invalid-feedback"},TH={id:"conf-window",class:"paper-settings-section"},DH={class:"form-grid-2"},PH={class:"form-group"},AH={class:"invalid-feedback"},IH={class:"invalid-feedback"},OH={class:"form-group"},MH={class:"invalid-feedback"},VH={class:"invalid-feedback"},LH={id:"conf-rendering",class:"paper-settings-section"},qH={class:"form-check"},$H={class:"form-check-input",type:"checkbox",id:"link",name:"link"},_H={class:"form-check"},FH={class:"form-check-input",type:"checkbox",id:"image",name:"image"},UH={class:"form-check"},BH={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},zH={class:"form-check"},HH={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},jH={id:"conf-features",class:"paper-settings-section"},GH={class:"form-check"},WH={class:"form-check-input",type:"checkbox",id:"update",name:"update"},KH={class:"form-check"},YH={class:"form-check-input",type:"checkbox",id:"page",name:"page"},JH={id:"conf-plan",class:"paper-settings-section"},XH={key:0,class:"paper-section-copy"},QH={class:"conference-tiers",role:"radiogroup","aria-label":"Review package size"},ZH=["value","checked","onChange"],xH={class:"conference-tier-head"},ej={key:0,class:"conference-tier-pill"},tj={class:"conference-tier-who"},nj={key:0,class:"conference-tier-price"},oj={class:"conference-tier-size"},sj={key:1,class:"conference-tier-per"},ij={key:2,class:"paper-plan-grid"},rj=["value"],aj=["textContent"],lj={class:"paper-plan-price"},dj=["innerHTML"],uj={key:3,class:"settings-notice",role:"status"},cj={key:0,id:"conf-billing",class:"paper-settings-section"},pj={class:"form-group"},fj={class:"form-group"},mj={class:"form-group"},hj={class:"form-group"},gj={class:"form-grid-3"},vj={class:"form-group"},yj={class:"form-group"},bj={class:"form-group"},wj={class:"form-group"},kj={class:"paper-settings-footer"},Cj=["textContent"],Sj=["textContent"],Ej=["disabled"];function wp(e,t){let s=De("paper-scrollspy"),i=De("field"),o=De("form");return a(),l("div",uH,[n("div",cH,[t[1]||(t[1]=n("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=h(" \xA0/\xA0 ",-1)),t[3]||(t[3]=n("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=h(" \xA0/\xA0 ",-1)),n("span",pH,d(e.editionMode?"Edit":"New"),1)]),n("h1",fH,[h(d(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=n("em",null,"conference",-1))]),t[44]||(t[44]=n("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue. One payment hosts every submission, so authors don't pay during the review window. ",-1)),n("div",mH,[T((a(),l("aside",hH,[t[7]||(t[7]=n("div",{class:"paper-settings-toc-head"},"On this page",-1)),n("nav",null,[t[6]||(t[6]=Se('BasicsReview windowRendering defaultsFeaturesPlan',5)),T(n("a",gH,"Billing",512),[[Z,e.plan?.pricePerRepo>0]])])])),[[s]]),T((a(),l("form",vH,[n("section",yH,[t[12]||(t[12]=n("div",{class:"paper-section-eyebrow"},"Basics",-1)),n("div",bH,[t[8]||(t[8]=n("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[i,{state:e.viewState,set:r=>{e.options.name=r},value:e.options?.name,form:"conference",options:{}}]]),T(n("div",wH," The name of the conference is invalid. ",512),[[Z,e.conference?.name?.errors?.invalid]]),T(n("div",kH," The name of the conference is required. ",512),[[Z,e.conference?.name?.errors?.required]])]),n("div",CH,[t[9]||(t[9]=n("label",{class:"paper-field-label",for:"url"},"Website",-1)),T(n("input",{type:"url",class:R(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.url=r},value:e.options?.url,form:"conference",options:{}}]]),T(n("div",SH," The url of the conference is invalid. ",512),[[Z,e.conference?.url?.errors?.url]])]),n("div",EH,[t[10]||(t[10]=n("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[i,{state:e.viewState,set:r=>{e.options.conferenceID=r},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=n("small",{class:"form-text text-muted"},[h("3\u201310 characters, letters, numbers, "),n("code",null,"-"),h(" and "),n("code",null,"_"),h(". Authors reference this when they anonymize.")],-1)),T(n("div",{class:"invalid-feedback"}," The conference ID '"+d(e.options?.conferenceID)+"' is already used. ",513),[[Z,e.conference?.conferenceID?.errors?.used]]),T(n("div",NH," The conference ID is required. ",512),[[Z,e.conference?.conferenceID?.errors?.required]]),T(n("div",RH," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[Z,e.conference?.conferenceID?.errors?.pattern]])])]),n("section",TH,[t[17]||(t[17]=n("div",{class:"paper-section-eyebrow"},"Review window",-1)),n("div",DH,[n("div",PH,[t[13]||(t[13]=n("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),T(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.startDate=r},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=n("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),T(n("div",AH," Start date is required. ",512),[[Z,e.conference?.startDate?.errors?.required]]),T(n("div",IH," Start date must be before end date. ",512),[[Z,e.conference?.startDate?.errors?.invalid]])]),n("div",OH,[t[15]||(t[15]=n("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),T(n("input",{type:"date",class:R(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[i,{state:e.viewState,set:r=>{e.options.endDate=r},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=n("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),T(n("div",MH," End date is required. ",512),[[Z,e.conference?.endDate?.errors?.required]]),T(n("div",VH," End date is invalid. ",512),[[Z,e.conference?.endDate?.errors?.invalid]])])])]),n("section",LH,[t[26]||(t[26]=n("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),n("div",qH,[T(n("input",$H,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.link=r},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=n("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=n("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),n("div",_H,[T(n("input",FH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.image=r},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=n("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=n("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),n("div",UH,[T(n("input",BH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.pdf=r},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=n("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=n("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),n("div",zH,[T(n("input",HH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.notebook=r},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=n("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[25]||(t[25]=n("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])]),n("section",jH,[t[31]||(t[31]=n("div",{class:"paper-section-eyebrow"},"Features",-1)),n("div",GH,[T(n("input",WH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.update=r},value:e.options?.options?.update,form:"conference",options:{}}]]),t[27]||(t[27]=n("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=n("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),n("div",KH,[T(n("input",YH,null,512),[[i,{state:e.viewState,set:r=>{e.options.options.page=r},value:e.options?.options?.page,form:"conference",options:{}}]]),t[29]||(t[29]=n("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[30]||(t[30]=n("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),n("section",JH,[t[35]||(t[35]=n("div",{class:"paper-section-eyebrow"},"Plan",-1)),e.editionMode?(a(),l("p",XH,d(e.conferencePlanName(e.options?.plan?.planID))+". The plan and review dates can't change after creation.",1)):e.conferenceTiers().length?(a(),l(V,{key:1},[t[33]||(t[33]=n("p",{class:"paper-section-copy"},"Pick the package that fits the number of submissions you expect. One payment hosts every submission, so authors don't pay.",-1)),n("div",QH,[(a(!0),l(V,null,Q(e.conferenceTiers(),r=>(a(),l("label",{class:R(["conference-tier",{"is-selected":e.options?.plan?.planID===r.id}]),key:r.id},[n("input",{type:"radio",name:"planPicker",value:r.id,checked:e.options?.plan?.planID===r.id,onChange:u=>e.options.plan.planID=r.id},null,40,ZH),n("span",xH,[n("strong",null,d(r.name),1),r.id==="conference"&&e.conferenceTiers().length>1?(a(),l("span",ej,"Most common")):f("v-if",!0)]),n("span",tj,d(e.conferenceAudience(r.id)),1),r.amount!=null?(a(),l("span",nj,[n("strong",null,d(e.conferenceAmount(r)),1),t[32]||(t[32]=h(" once",-1))])):f("v-if",!0),n("span",oj,"Up to "+d(r.repositories)+" papers \xB7 "+d(e.conferenceBytes(r.storage)),1),r.amount!=null&&r.repositories?(a(),l("span",sj,"About "+d(e.conferenceAmount(r,r.amount/r.repositories))+" per paper",1)):f("v-if",!0)],2))),128))]),t[34]||(t[34]=Se('

Every package includes

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

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

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

',2))],64)):e.plans.length?(a(),l("div",ij,[(a(!0),l(V,null,Q(e.plans,r=>(a(),l("label",{class:R(["paper-plan-card",{selected:e.options?.plan?.planID==r?.id}]),key:r.id},[T(n("input",{type:"radio",name:"planPicker",value:r?.id},null,8,rj),[[i,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),n("div",{class:"paper-plan-head",textContent:d(r?.name)},null,8,aj),n("div",lj,d(r.pricePerRepo>0?e.fmt?.number(r.pricePerRepo,2)+" \u20AC per repository":"Free"),1),n("div",{class:"paper-plan-desc",innerHTML:e.sanitize(r?.description)},null,8,dj)],2))),128))])):e.plansLoaded?(a(),l("p",uj,"New conferences are unavailable right now. Please try again later.")):f("v-if",!0)]),e.plan?.pricePerRepo>0?(a(),l("section",cj,[t[43]||(t[43]=n("div",{class:"paper-section-eyebrow"},"Billing",-1)),n("div",pj,[t[36]||(t[36]=n("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.name=r},value:e.options?.billing?.name,form:"conference",options:{}}]])]),n("div",fj,[t[37]||(t[37]=n("label",{class:"paper-field-label",for:"email"},"Email",-1)),T(n("input",{type:"email",class:R(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.email=r},value:e.options?.billing?.email,form:"conference",options:{}}]])]),n("div",mj,[t[38]||(t[38]=n("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address=r},value:e.options?.billing?.address,form:"conference",options:{}}]])]),n("div",hj,[T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.address2=r},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),n("div",gj,[n("div",vj,[t[39]||(t[39]=n("label",{class:"paper-field-label",for:"city"},"City",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.city=r},value:e.options?.billing?.city,form:"conference",options:{}}]])]),n("div",yj,[t[40]||(t[40]=n("label",{class:"paper-field-label",for:"country"},"Country",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.country=r},value:e.options?.billing?.country,form:"conference",options:{}}]])]),n("div",bj,[t[41]||(t[41]=n("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.zip=r},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),n("div",wj,[t[42]||(t[42]=n("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),T(n("input",{type:"text",class:R(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[i,{state:e.viewState,set:r=>{e.options.billing.vat=r},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):f("v-if",!0),n("div",kj,[e.error?(a(),l("div",{key:0,class:"alert alert-danger",role:"alert",textContent:d(e.error)},null,8,Cj)):f("v-if",!0),e.message?(a(),l("div",{key:1,class:"alert alert-success",role:"alert",textContent:d(e.message)},null,8,Sj)):f("v-if",!0),n("button",{id:"send",disabled:e.saving,type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ae(r=>e.submitForm(r,()=>{e.submit(r)}),["prevent"]))},d(e.saving?e.editionMode?"Updating\u2026":"Creating\u2026":e.editionMode?"Update conference":"Create conference"),9,Ej)])])),[[o,e.viewState]])])])}var Nj={key:0,class:"dir-card","aria-label":"Repository files"},Rj=["onClick"],Tj={class:"dir-name"},Dj=["href"],Pj={class:"dir-name"},Aj={class:"dir-meta"},Ij={class:"file-card-head"},Oj={class:"file-card-path"},Mj={class:"breadcrumb paths","aria-label":"Path"},Vj={class:"breadcrumb-item breadcrumb-root"},Lj=["href","title","textContent"],qj=["aria-current"],$j=["aria-label"],_j={class:"mobile-sub ms"},Fj=["title"],Uj={class:"ms-item"},Bj={key:1,class:"ms-item"},zj={key:2,class:"ms-item"},Hj=["aria-label","title"],jj={class:"ui-icon","aria-hidden":"true"},Gj=["href"],Wj={key:0,class:"file-card-meta"},Kj=["title"],Yj={class:"meta-extra"},Jj={key:1,class:"file-card-meta"},Xj=["title"],Qj={class:"file-card-actions"},Zj={key:0,class:"csv-toggle seg-filter",role:"radiogroup","aria-label":"CSV view"},xj=["aria-checked"],eG=["aria-checked"],tG={key:1,class:"symbols"},nG=["aria-expanded"],oG={key:0,class:"symbols-menu",role:"menu"},sG={class:"symbols-head"},iG=["onClick"],rG={class:"symbols-name"},aG={class:"symbols-line"},lG=["title"],dG={key:3,class:"tb-view",role:"group","aria-label":"View tools"},uG=["title"],cG=["aria-pressed"],pG=["title"],fG={key:4,class:"tb-file",role:"group","aria-label":"File actions"},mG=["target","title","href"],hG=["aria-label","title"],gG={class:"ui-icon","aria-hidden":"true"},vG=["href"],yG=["target","href","download"],bG=["aria-label"],wG={class:"ui-icon","aria-hidden":"true"},kG=["href"],CG={key:6,class:"tb-toc-m"},SG=["aria-expanded"],EG=["onClick"],NG={class:"tb-more"},RG=["aria-expanded"],TG={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},DG={key:0,class:"tb-menu-note"},PG={key:1,class:"tb-menu-note tb-menu-meta"},AG={key:2,class:"tb-menu-sep"},IG={key:4,class:"tb-menu-sep"},OG=["aria-checked"],MG={key:0,class:"tb-menu-check"},VG={class:"ui-icon","aria-hidden":"true"},LG=["href"],qG={key:9,class:"tb-menu-sep"},$G=["target","href"],_G=["target","href"],FG=["target","href","download"],UG=["target","href"],BG=["href"],zG=["target","href"],HG=["placeholder","aria-invalid"],jG=["aria-label"],GG={class:"csv-table"},WG=["aria-label"],KG={class:"csv-rownum"},YG=["aria-label"],JG={key:1,class:"file-card-body"},XG={key:2,class:"md-find-bar",role:"search"},QG=["value"],ZG={class:"md-find-nav"},xG=["disabled"],eW=["disabled"],tW={class:"md-find-count","aria-live":"polite"},nW=["aria-pressed"],oW={key:3,class:"reading-layout"},sW=["innerHTML"],iW={key:0,class:"readme-toc","aria-label":"On this page"},rW={class:"toc-rail"},aW=["href","onClick"],lW={class:"file-card-head"},dW={class:"file-card-path"},uW={class:"breadcrumb paths","aria-label":"Path"},cW={class:"breadcrumb-item breadcrumb-root"},pW=["href","title","textContent"],fW=["aria-current"],mW=["aria-label"],hW={class:"mobile-sub ms"},gW=["title"],vW={class:"ms-item"},yW={key:1,class:"ms-item"},bW={key:2,class:"ms-item"},wW=["aria-label","title"],kW={class:"ui-icon","aria-hidden":"true"},CW=["href"],SW={class:"file-card-meta"},EW=["title"],NW={class:"file-card-actions"},RW={key:0,class:"file-card-state",title:"Files over the size limit can't be previewed or downloaded from this link"},TW={key:1,class:"tb-file",role:"group","aria-label":"File actions"},DW=["target","title","href"],PW=["target","href","download"],AW={class:"tb-more"},IW=["aria-expanded"],OW={viewBox:"0 0 24 24",class:"ui-icon","aria-hidden":"true",style:{fill:"currentColor",stroke:"none"}},MW={key:0,class:"tb-menu-note"},VW={key:1,class:"tb-menu-sep"},LW=["target","href"],qW=["target","href","download"],$W=["target","href"],_W={key:0,class:"media-stage"},FW=["src","alt"],UW={key:1,class:"media-stage"},BW=["src"],zW={key:2,class:"media-stage is-audio"},HW=["src"],jW={key:4,class:"notebook-body"},GW={key:5,class:"file-state"},WW={class:"file-state-msg"},KW={key:0,class:"file-state-actions"},YW=["target","href","download"],JW={key:6,class:"file-state",role:"alert"},XW={class:"file-state-title"},QW={key:0,class:"file-state-msg"},ZW={key:1,class:"file-state-msg"},xW={key:2,class:"file-state-actions"},eK=["href"],tK={key:7,class:"file-state"},nK={key:4,class:"file-error container d-flex h-100"},oK={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},sK={class:"paper-error-msg"},iK={key:5,class:"file-error container d-flex h-100"},rK={class:"viewer-error paper-error-card file-error-card m-auto",role:"alert","aria-labelledby":"viewer-error-title"},aK={id:"viewer-error-title",class:"paper-empty-title"},lK={class:"paper-error-actions"},dK={key:0,href:"/",class:"btn btn-sm"},uK={key:1,href:"/faq",class:"btn btn-sm"},cK={key:2,class:"btn btn-outline-ink",href:"/dashboard"},pK={key:6,class:"viewer-loading","aria-busy":"true"},fK={class:"viewer-loading-status",role:"status","aria-live":"polite"},mK={class:"viewer-loading-name sr-only"},hK={key:0},gK={class:"viewer-loading-lines","aria-hidden":"true"},vK={key:7,class:"file-error container d-flex h-100"},yK={key:8,class:"file-error container d-flex h-100"};function kp(e,t){let s=Qe("html-doc"),i=Qe("pdfviewer"),o=Qe("notebook"),r=De("code-editor");return a(),l(V,null,[e.sidebarHidden&&e.type=="html"&&e.content!=null&&e.paths?.length===1&&/^readme/i.test(e.paths[0]||"")&&e.files?.length?(a(),l("section",Nj,[t[46]||(t[46]=n("header",{class:"dir-card-head"},[n("span",{class:"dir-card-title"},"Files"),n("span",{class:"dir-card-sub"},"Snapshot of the repository at review time")],-1)),n("ul",{class:R(["dir-list",{"is-expanded":e.dirExpanded}])},[(a(!0),l(V,null,Q(e.rootEntries(),u=>(a(),l("li",{key:u.name},[u.size==null?(a(),l("button",{key:0,type:"button",class:"dir-row",onClick:p=>e.revealFolder(u.name)},[t[43]||(t[43]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M1.5 3.5h4l1.5 1.5h7.5v8h-13z"})],-1)),n("span",Tj,d(u.name),1),t[44]||(t[44]=n("span",{class:"dir-meta"},"Folder",-1))],8,Rj)):(a(),l("a",{key:1,class:R(["dir-row",{"is-current":u.name===e.paths[0]}]),href:e.safeUrl("/r/"+e.repoId+"/"+encodeURIComponent(u.name))},[t[45]||(t[45]=n("svg",{class:"dir-icon",viewBox:"0 0 16 16","aria-hidden":"true"},[n("path",{d:"M3.5 1.5h6l3 3v10h-9z"})],-1)),n("span",Pj,d(u.name),1),n("span",Aj,d(e.formatSize(u.size)),1)],10,Dj))]))),128))],2),!e.dirExpanded&&e.files.length>8?(a(),l("button",{key:0,type:"button",class:"dir-more",onClick:t[0]||(t[0]=u=>e.dirExpanded=!0)},"Show all "+d(e.files.length)+" items",1)):f("v-if",!0)])):f("v-if",!0),(e.type=="text"||e.type=="code"||e.type=="html"||e.type=="html-doc"&&e.showSource)&&e.content!=null?(a(),l("section",{key:1,class:R(["file-card",{"is-code":e.type!="html","no-wrap":!e.wrapLines}])},[n("header",Ij,[n("div",Oj,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[1]||(t[1]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[47]||(t[47]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",Mj,[n("li",Vj,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,Lj)]),(a(!0),l(V,null,Q(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,$j)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],8,qj))),256))]),n("span",_j,[e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[48]||(t[48]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Fj)):f("v-if",!0),n("span",Uj,d(e.type=="html"?"Markdown":e.languageName||"Text"),1),e.fileSize(e.filePath)!=null?(a(),l("span",Bj,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0),e.type!="html"&&typeof e.content=="string"?(a(),l("span",zj,d(e.fmt?.number(e.content.split(` +`).length))+" lines",1)):f("v-if",!0)]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[2]||(t[2]=u=>e.copyPath())},[(a(),l("svg",jj,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,Gj)]))],8,Hj),[[Z,e.filePath]])]),e.type!="html"&&typeof e.content=="string"?(a(),l("span",Wj,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[49]||(t[49]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Kj),t[50]||(t[50]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(d(e.languageName||"Text"),1),n("span",Yj,[t[51]||(t[51]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1)]),t[52]||(t[52]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.fmt?.number(e.content.split(` +`).length))+" lines",1)])):f("v-if",!0),e.type=="html"?(a(),l("span",Jj,[e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[53]||(t[53]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,Xj),t[54]||(t[54]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),t[56]||(t[56]=h("Markdown",-1)),e.fileSize(e.filePath)!=null?(a(),l(V,{key:1},[t[55]||(t[55]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)])):f("v-if",!0),e.preview&&e.previewPreserved()?(a(),l("button",{key:2,type:"button",class:"rp-preserved-tag",onClick:t[3]||(t[3]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",Qj,[e.isCsv()?(a(),l("div",Zj,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="table"}]),"aria-checked":e.csvView==="table",onClick:t[4]||(t[4]=u=>e.csvView="table")},"Table",10,xj),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.csvView==="raw"}]),"aria-checked":e.csvView==="raw",onClick:t[5]||(t[5]=u=>e.csvView="raw"),title:"Show the file as text with line numbers"},"Text",10,eG)])):f("v-if",!0),e.type!="html"&&e.symbols().length>1?(a(),l("div",tG,[n("button",{type:"button",class:R(["btn btn-sm btn-ghost btn-symbols",{"is-on":e.symbolsOpen}]),"aria-expanded":e.symbolsOpen?"true":"false","aria-haspopup":"true",title:"Symbols in this file",onClick:t[6]||(t[6]=u=>e.symbolsOpen=!e.symbolsOpen)},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-list"})],-1),n("span",{class:"btn-find-label"},"Symbols",-1)])],10,nG),e.symbolsOpen?(a(),l("div",oG,[n("div",sG,d(e.symbols().length)+" "+d(e.symbols().length===1?"symbol":"symbols"),1),(a(!0),l(V,null,Q(e.symbols(),u=>(a(),l("button",{type:"button",class:"symbols-item",role:"menuitem",key:u.line+u.name,onClick:p=>e.goToSymbol(u.line)},[n("span",{class:R(["symbols-kind","is-"+u.kind])},d(u.kind==="class"?"C":u.kind==="function"?"\u0192":"v"),3),n("span",rG,d(u.name),1),n("span",aG,d(u.line),1)],8,iG))),128))])):f("v-if",!0)])):f("v-if",!0),e.type=="html"?(a(),l("button",{key:2,type:"button",class:R(["btn btn-sm btn-ghost btn-icon-only btn-find btn-md-find",{"is-on":e.mdFindOpen}]),"aria-label":"Find on this page",title:"Find on this page ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[7]||(t[7]=u=>e.toggleMdFind())},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],10,lG)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?(a(),l("div",dG,[e.type!="html"?(a(),l("button",{key:0,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-goto","aria-label":"Go to line",title:"Go to line ("+(e.isMac?"\u2318":"Ctrl+")+"G)",onClick:t[8]||(t[8]=u=>e.gotoLine())},[...t[59]||(t[59]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1)])],8,uG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:1,type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost btn-toggle",{"is-on":e.wrapLines}]),"aria-pressed":e.wrapLines?"true":"false","aria-label":"Wrap lines",title:"Wrap lines (Alt+Z)",onClick:t[9]||(t[9]=u=>e.toggleWrap())},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)])],10,cG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:2,type:"button",class:"btn btn-sm btn-ghost btn-icon-only btn-find","aria-label":"Find in file",title:"Find in file ("+(e.isMac?"\u2318":"Ctrl+")+"F)",onClick:t[10]||(t[10]=u=>e.findInFile())},[...t[61]||(t[61]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1)])],8,pG)):f("v-if",!0)])):f("v-if",!0),!e.preview||e.url?(a(),l("div",fG,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="html"?"Open the Markdown source":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,mG),typeof e.content=="string"?(a(),l("button",{key:0,type:"button",class:"tb-seg-btn tb-seg-icon","aria-label":e.contentCopied?"Copied":"Copy file contents",title:e.contentCopied?"Copied":"Copy file contents",onClick:t[11]||(t[11]=u=>e.copyContent())},[(a(),l("svg",gG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,vG)]))],8,hG)):f("v-if",!0),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[62]||(t[62]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,yG)])):f("v-if",!0),typeof e.content=="string"?(a(),l("button",{key:5,type:"button",class:"btn btn-sm btn-icon-only btn-ghost tb-copy-m","aria-label":e.contentCopied?"Copied":"Copy file contents",onClick:t[12]||(t[12]=u=>e.copyContent())},[(a(),l("svg",wG,[n("use",{href:e.contentCopied?"#ui-icon-check":"#project-icon-copy"},null,8,kG)]))],8,bG)):f("v-if",!0),e.type=="html"&&e.readmeToc().length>=3?(a(),l("div",CG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-toc-btn",{"is-on":e.tocOpen}]),"aria-label":"On this page",title:"On this page","aria-haspopup":"true","aria-expanded":e.tocOpen?"true":"false",onClick:t[13]||(t[13]=ae(u=>{e.tocOpen=!e.tocOpen,e.moreOpen=!1},["stop"]))},[...t[63]||(t[63]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-outline"})],-1)])],10,SG),e.tocOpen?(a(),l("div",{key:0,class:"tb-menu tb-toc-menu",role:"menu",onClick:t[15]||(t[15]=u=>e.tocOpen=!1)},[t[64]||(t[64]=n("div",{class:"tb-menu-label"},"On this page",-1)),n("button",{type:"button",role:"menuitem",class:R(["tb-menu-toc","lvl-2",{"is-active":!e.activeHeading}]),onClick:t[14]||(t[14]=u=>e.scrollToHeading(null))},"Introduction",2),(a(!0),l(V,null,Q(e.readmeToc(),u=>(a(),l("button",{type:"button",role:"menuitem",key:"m-"+u.id,class:R(["tb-menu-toc","lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:p=>e.scrollToHeading(u.id)},d(u.text),11,EG))),128))])):f("v-if",!0)])):f("v-if",!0),n("div",NG,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[16]||(t[16]=ae(u=>{e.tocOpen=!1,e.moreOpen=!e.moreOpen},["stop"]))},[(a(),l("svg",TG,[...t[65]||(t[65]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,RG),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[23]||(t[23]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",DG,[t[66]||(t[66]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),typeof e.content=="string"?(a(),l("div",PG,[h(d(e.type=="html"?"Markdown":e.languageName||"Text")+" \xB7 "+d(e.type=="html"&&e.fileSize(e.filePath)!=null?e.formatSize(e.fileSize(e.filePath)):e.content.length<1024?e.content.length+" B":(e.content.length/1024).toFixed(1)+" KB"),1),e.type!="html"?(a(),l(V,{key:0},[h(" \xB7 "+d(e.fmt?.number(e.content.split(` +`).length))+" lines",1)],64)):f("v-if",!0)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",AG)):f("v-if",!0),e.type=="html"?(a(),l("button",{key:3,type:"button",role:"menuitem",onClick:t[17]||(t[17]=u=>e.toggleMdFind())},[...t[67]||(t[67]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type=="html"?(a(),l("div",IG)):f("v-if",!0),e.type!="html"?(a(),l("button",{key:5,type:"button",role:"menuitem",onClick:t[18]||(t[18]=u=>e.findInFile())},[...t[68]||(t[68]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-search"})],-1),h("Find in file",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:6,type:"button",role:"menuitem",onClick:t[19]||(t[19]=u=>e.gotoLine())},[...t[69]||(t[69]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-goto"})],-1),h("Go to line",-1)])])):f("v-if",!0),e.type!="html"?(a(),l("button",{key:7,type:"button",role:"menuitemcheckbox","aria-checked":e.wrapLines?"true":"false",onClick:t[20]||(t[20]=u=>e.toggleWrap())},[t[70]||(t[70]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-wrap"})],-1)),t[71]||(t[71]=h("Wrap lines",-1)),e.wrapLines?(a(),l("span",MG,"\u2713")):f("v-if",!0)],8,OG)):f("v-if",!0),e.isCsv()?(a(),l("button",{key:8,type:"button",role:"menuitem",class:"tb-csv-view",onClick:t[21]||(t[21]=u=>{e.csvView=e.csvView==="table"?"raw":"table",e.moreOpen=!1})},[(a(),l("svg",VG,[n("use",{href:e.csvView==="table"?"#ui-icon-code":"#ui-icon-list"},null,8,LG)])),h(d(e.csvView==="table"?"Show as text":"Show as table"),1)])):f("v-if",!0),e.type!="html"?(a(),l("div",qG)):f("v-if",!0),e.type=="html"&&(!e.preview||e.url)?(a(),l("a",{key:10,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[72]||(t[72]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,$G)):f("v-if",!0),e.type!="html"&&(!e.preview||e.url)?(a(),l("a",{key:11,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h("View raw",-1)])],8,_G)):f("v-if",!0),!e.preview||e.url?(a(),l("a",{key:12,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[74]||(t[74]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,FG)):f("v-if",!0),e.options?.hasWebsite?(a(),l("a",{key:13,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[75]||(t[75]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-globe"})],-1),h("Open website",-1)])],8,UG)):f("v-if",!0),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:14,role:"menuitem",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[76]||(t[76]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h("Edit anonymization",-1)])],8,BG)):f("v-if",!0),e.options?.download?(a(),l("a",{key:15,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[77]||(t[77]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,zG)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[22]||(t[22]=u=>e.copyPath())},[...t[78]||(t[78]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[79]||(t[79]=n("div",{class:"tb-menu-sep"},null,-1)),t[80]||(t[80]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[81]||(t[81]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])]),e.gotoOpen&&e.type!="html"?(a(),l("form",{key:3,class:"goto-pop",role:"dialog","aria-label":"Go to line",onSubmit:t[26]||(t[26]=ae(u=>e.submitGoto(),["prevent"]))},[t[82]||(t[82]=n("label",{class:"goto-label",for:"goto-input"},"Go to line",-1)),T(n("input",{id:"goto-input",class:"goto-input",type:"text",inputmode:"numeric",autocomplete:"off",spellcheck:"false",placeholder:"1\u2013"+e.fmt?.number(typeof e.content=="string"?e.content.split(` +`).length:1),"aria-invalid":e.gotoError?"true":"false","onUpdate:modelValue":t[24]||(t[24]=u=>e.gotoValue=u),onKeydown:t[25]||(t[25]=Vt(ae(u=>e.closeGoto(),["prevent","stop"]),["esc"]))},null,40,HG),[[nt,e.gotoValue]]),n("span",{class:R(["goto-hint",{"is-error":e.gotoError}])},d(e.gotoError||"Line, or line:column"),3)],32)):f("v-if",!0)]),e.isCsv()&&e.csvView==="table"?(a(),l("div",{key:0,class:"csv-table-wrap",tabindex:"0",role:"region","aria-label":"Table view of "+(e.paths?.[e.paths.length-1]||"file")},[n("table",GG,[n("thead",null,[n("tr",null,[t[83]||(t[83]=n("th",{class:"csv-rownum",scope:"col"},[n("span",{class:"sr-only"},"Row")],-1)),(a(!0),l(V,null,Q(e.csvRows()[0]||[],(u,p)=>(a(),l("th",{scope:"col",key:p,class:R({"is-num":e.csvNumCol(p)})},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,WG)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],2))),128))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.csvRows().slice(1),(u,p)=>(a(),l("tr",{key:p},[n("td",KG,d(p+1),1),(a(!0),l(V,null,Q(u,(c,v)=>(a(),l("td",{key:v,class:R({"is-num":e.csvNumCol(v)})},[(a(!0),l(V,null,Q(e.redactParts(c),(g,y)=>(a(),l(V,{key:y},[g.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+g.n},[n("i",null,d(g.n),1)],8,YG)):(a(),l(V,{key:1},[h(d(g.t),1)],64))],64))),128))],2))),128))]))),128))])])],8,jG)):f("v-if",!0),e.type!="html"&&!(e.isCsv()&&e.csvView==="table")?T((a(),l("div",JG,null,512)),[[r,{content:e.content,options:e.aceOption}]]):f("v-if",!0),e.type=="html"&&e.mdFindOpen?(a(),l("div",XG,[n("input",{type:"search",class:"md-find-input",placeholder:"Find on this page","aria-label":"Find on this page",value:e.mdFindQuery,onInput:t[27]||(t[27]=u=>{e.mdFindQuery=u.target.value,e.runMdFind()}),onKeydown:[t[28]||(t[28]=Vt(ae(u=>u.shiftKey?e.stepMdFind(-1):e.stepMdFind(1),["prevent"]),["enter"])),t[29]||(t[29]=Vt(ae(u=>e.toggleMdFind(!1),["prevent"]),["esc"]))]},null,40,QG),n("span",ZG,[n("button",{type:"button","aria-label":"Previous match",onClick:t[30]||(t[30]=u=>e.stepMdFind(-1)),disabled:!e.mdFindTotal},[...t[84]||(t[84]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,xG),n("button",{type:"button","aria-label":"Next match",onClick:t[31]||(t[31]=u=>e.stepMdFind(1)),disabled:!e.mdFindTotal},[...t[85]||(t[85]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,eW)]),n("span",tW,d(e.mdFindQuery?e.mdFindTotal?e.mdFindIndex+1+" of "+e.mdFindTotal:"No results":""),1),n("button",{type:"button",class:R(["md-find-opt",{"is-on":e.mdFindCase}]),"aria-pressed":e.mdFindCase?"true":"false",title:"Match case","aria-label":"Match case",onClick:t[32]||(t[32]=u=>{e.mdFindCase=!e.mdFindCase,e.runMdFind()})},"Aa",10,nW),n("button",{type:"button",class:"md-find-close","aria-label":"Close find",onClick:t[33]||(t[33]=u=>e.toggleMdFind(!1))},"\xD7")])):f("v-if",!0),e.type=="html"?(a(),l("div",oW,[n("div",{class:"file-content markdown-body",innerHTML:e.renderReadme(e.sanitize(e.content))},null,8,sW),e.readmeToc().length>=3?(a(),l("aside",iW,[t[86]||(t[86]=n("div",{class:"readme-toc-head"},"On this page",-1)),n("nav",rW,[n("a",{href:"#",class:R(["lvl-2 toc-top",{"is-active":!e.activeHeading}]),onClick:t[34]||(t[34]=ae(u=>e.scrollToHeading(null),["prevent"]))},"Introduction",2),(a(!0),l(V,null,Q(e.readmeToc(),(u,p)=>(a(),l("a",{key:u.id,href:"#"+u.id,class:R(["lvl-"+u.level,{"is-active":e.activeHeading===u.id}]),onClick:ae(c=>e.scrollToHeading(u.id),["prevent"])},d(u.text),11,aW))),128))])])):f("v-if",!0)])):f("v-if",!0)],2)):f("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(a(),Wt(s,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):f("v-if",!0),e.fileFrame()?(a(),l("section",{key:3,class:R(["file-card file-card-media","view-"+e.type])},[n("header",lW,[n("div",dW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost card-files-btn",{"is-needed":e.sidebarHidden}]),title:"Show file tree",onClick:t[35]||(t[35]=u=>e.sidebarHidden?e.sidebarHidden=!1:e.sidebarCollapsed=!1)},[...t[87]||(t[87]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-sidebar"})],-1),n("span",{class:"card-files-label"},"Files",-1)])],2),n("ol",uW,[n("li",cW,[n("a",{href:e.safeUrl("/r/"+e.repoId+"/"),title:e.repoId,textContent:d(/^[0-9a-f]{8}-[0-9a-f]{4}-/i.test(e.repoId||"")?"repository":e.repoId)},null,8,pW)]),(a(!0),l(V,null,Q(e.paths,(u,p)=>(a(),l("li",{class:"breadcrumb-item","aria-current":p===e.paths.length-1?"page":null},[(a(!0),l(V,null,Q(e.redactParts(u),(c,v)=>(a(),l(V,{key:v},[c.n?(a(),l("span",{key:0,class:"redact-slot",role:"img","aria-label":"Redacted term "+c.n},[n("i",null,d(c.n),1)],8,mW)):(a(),l(V,{key:1},[h(d(c.t),1)],64))],64))),128))],8,fW))),256))]),n("span",hW,[e.type=="IPython"&&e.redactionCount()?(a(),l("b",{key:0,class:"ms-item ms-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[88]||(t[88]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,gW)):f("v-if",!0),n("span",vW,d(e.fileKind()),1),e.imageSize?(a(),l("span",yW,d(e.imageSize),1)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l("span",bW,d(e.formatSize(e.fileSize(e.filePath))),1)):f("v-if",!0)]),T(n("button",{type:"button",class:"btn btn-sm btn-icon-only btn-ghost copy-path-btn","aria-label":e.pathCopied?"Path copied":"Copy file path",title:e.pathCopied?"Path copied":"Copy file path",onClick:t[36]||(t[36]=u=>e.copyPath())},[(a(),l("svg",kW,[n("use",{href:e.pathCopied?"#ui-icon-check":"#ui-icon-link"},null,8,CW)]))],8,wW),[[Z,e.filePath]])]),n("span",SW,[e.type=="IPython"&&e.redactionCount()?(a(),l(V,{key:0},[n("span",{class:"meta-redact",title:e.redactionCount()+" redacted terms"},[h(d(e.redactionCount()),1),t[89]||(t[89]=n("span",{class:"meta-redact-word"}," redacted",-1))],8,EW),t[90]||(t[90]=n("span",{class:"sep"},"\xB7",-1))],64)):f("v-if",!0),h(d(e.fileKind()),1),e.imageSize?(a(),l(V,{key:1},[t[91]||(t[91]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.imageSize),1)],64)):f("v-if",!0),e.fileSize(e.filePath)!=null?(a(),l(V,{key:2},[t[92]||(t[92]=n("span",{class:"sep"},"\xB7",-1)),h(d(e.formatSize(e.fileSize(e.filePath))),1)],64)):f("v-if",!0)]),e.preview&&e.previewPreserved()?(a(),l("button",{key:0,type:"button",class:"rp-preserved-tag",onClick:t[37]||(t[37]=u=>e.openPreserveFiles())},"Left unredacted")):f("v-if",!0),n("div",NW,[e.type=="error"&&e.content==="file_too_big"?(a(),l("span",RW,[...t[93]||(t[93]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),h("Over the size limit",-1)])])):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("div",TW,[n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn",title:e.type=="IPython"?"Open the notebook JSON":"Open the raw file",href:e.safeUrl(e.url)},"Raw",8,DW),n("a",{target:e.preview?"_blank":"_self",class:"tb-seg-btn tb-seg-icon","aria-label":"Download file",title:"Download file",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[94]||(t[94]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1)])],8,PW)])):f("v-if",!0),n("div",AW,[n("button",{type:"button",class:R(["btn btn-sm btn-icon-only btn-ghost tb-more-btn",{"is-on":e.moreOpen}]),"aria-label":"More actions","aria-haspopup":"true","aria-expanded":e.moreOpen?"true":"false",onClick:t[38]||(t[38]=ae(u=>e.moreOpen=!e.moreOpen,["stop"]))},[(a(),l("svg",OW,[...t[95]||(t[95]=[n("circle",{cx:"5",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"12",cy:"12",r:"1.8"},null,-1),n("circle",{cx:"19",cy:"12",r:"1.8"},null,-1)])]))],10,IW),e.moreOpen?(a(),l("div",{key:0,class:"tb-menu",role:"menu",onClick:t[40]||(t[40]=u=>e.moreOpen=!1)},[e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",MW,[t[96]||(t[96]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h("Snapshot \xB7 "+d(e.fmt?.date(e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate)),1)])):f("v-if",!0),e.options?.publishedAt||e.options?.sourceCommitDate||e.options?.anonymizedAt||e.options?.lastUpdateDate?(a(),l("div",VW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:2,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.url)},[t[97]||(t[97]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1)),h(d(e.type=="IPython"?"View notebook JSON":"View raw"),1)],8,LW)):f("v-if",!0),e.type!="error"&&(!e.preview||e.url)?(a(),l("a",{key:3,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[98]||(t[98]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,qW)):f("v-if",!0),e.options?.download?(a(),l("a",{key:4,role:"menuitem",target:e.preview?"_blank":"_self",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[99]||(t[99]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-archive"})],-1),h("Download ZIP",-1)])],8,$W)):f("v-if",!0),n("button",{type:"button",role:"menuitem",onClick:t[39]||(t[39]=u=>e.copyPath())},[...t[100]||(t[100]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-link"})],-1),h("Copy file path",-1)])]),t[101]||(t[101]=n("div",{class:"tb-menu-sep"},null,-1)),t[102]||(t[102]=n("a",{role:"menuitem",href:"/faq"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-help"})]),h("FAQ")],-1)),t[103]||(t[103]=n("a",{role:"menuitem",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-bug"})]),h("Report a bug")],-1))])):f("v-if",!0)])])]),e.type=="image"?(a(),l("div",_W,[n("img",{class:"image-content",src:e.safeUrl(e.url),alt:e.paths[e.paths.length-1],onLoad:t[41]||(t[41]=u=>e.onImageLoad(u))},null,40,FW)])):f("v-if",!0),e.type=="media"?(a(),l("div",UW,[n("video",{class:"video-content",controls:"",preload:"metadata",playsinline:"",src:e.safeUrl(e.url)},null,8,BW)])):f("v-if",!0),e.type=="audio"?(a(),l("div",zW,[n("audio",{controls:"",preload:"metadata",src:e.safeUrl(e.url)},null,8,HW)])):f("v-if",!0),e.type=="pdf"?(a(),Wt(i,{key:3,src:e.safeUrl(e.url)},null,8,["src"])):f("v-if",!0),e.type=="IPython"?(a(),l("div",jW,[Oe(o,{class:"markdown-body",file:e.url,content:e.content},null,8,["file","content"])])):f("v-if",!0),e.type=="binary"?(a(),l("div",GW,[t[105]||(t[105]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1)),t[106]||(t[106]=n("h2",{class:"file-state-title"},"No preview for this file",-1)),n("p",WW,d(e.preview?"Reviewers can open this file; it is not previewed here.":"This is a binary file. Download it to open it on your computer."),1),e.preview?f("v-if",!0):(a(),l("div",KW,[n("a",{target:e.preview?"_blank":"_self",class:"btn btn-primary",href:e.safeUrl(e.downloadUrl()),download:e.preview?e.paths[e.paths.length-1]:null},[...t[104]||(t[104]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-download"})],-1),h("Download file",-1)])],8,YW)]))])):f("v-if",!0),e.type=="error"?(a(),l("div",JW,[t[108]||(t[108]=n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("h2",XW,d(e.content==="file_too_big"?"This file is too large to preview":"This file can't be shown"),1),e.content==="file_too_big"?(a(),l("p",QW,d(e.preview?"Reviewers can open this file; it is not previewed here. Files over 1 MB are only shown on the reviewer page.":"It is over the size limit for anonymized files, so it can't be previewed or downloaded from this link."),1)):(a(),l("p",ZW,d(e.fmt.translate("ERRORS."+e.content)),1)),e.preview?f("v-if",!0):(a(),l("div",xW,[n("a",{class:"btn btn-primary",href:e.safeUrl("/r/"+e.repoId+"/")},"Back to the repository",8,eK),t[107]||(t[107]=n("a",{class:"btn btn-outline-ink",href:"/faq#formats"},"Supported files",-1))]))])):f("v-if",!0),e.content==null&&e.type!="error"?(a(),l("div",tK,[...t[109]||(t[109]=[n("svg",{class:"ui-icon file-state-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-file"})],-1),n("h2",{class:"file-state-title"},"This file is empty",-1),n("p",{class:"file-state-msg"},"It has no content in this snapshot.",-1)])])):f("v-if",!0)],2)):f("v-if",!0),e.type=="rate_limited"?(a(),l("div",nK,[n("div",oK,[t[112]||(t[112]=Se('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",sK,[t[110]||(t[110]=h("This repository will be available in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[111]||(t[111]=h(". The page will reload automatically.",-1))])])])):f("v-if",!0),e.type=="error"&&!e.fileFrame()?(a(),l("div",iK,[n("section",rK,[n("h1",aK,d(e.fmt.translate(e.isSourceAccessError()?"VIEWER_ERRORS.access_title":"VIEWER_ERRORS.title")),1),n("p",null,d(e.fmt.translate("ERRORS."+e.content)),1),e.isSourceAccessError()?(a(),l(V,{key:0},[n("p",null,d(e.fmt.translate("VIEWER_ERRORS.reader_help")),1),n("p",null,d(e.fmt.translate("VIEWER_ERRORS.owner_help")),1)],64)):f("v-if",!0),n("div",lK,[e.isSourceAccessError()?f("v-if",!0):(a(),l("a",dK,"Back to home")),e.isSourceAccessError()?f("v-if",!0):(a(),l("a",uK,"Read the FAQ")),n("button",{type:"button",class:"btn btn-primary",onClick:t[42]||(t[42]=u=>e.retryContent())},d(e.fmt.translate("VIEWER_ERRORS.retry")),1),e.isSourceAccessError()?(a(),l("a",cK,d(e.fmt.translate("VIEWER_ERRORS.dashboard")),1)):f("v-if",!0)])])])):f("v-if",!0),e.type=="loading"&&!e.error?(a(),l("section",pK,[n("div",fK,[n("strong",null,d(e.fmt.translate(e.fileReceivedBytes?"VIEWER_LOADING.receiving":"VIEWER_LOADING.loading")),1),n("span",mK,d(e.filePath),1),e.fileLoadingSlow?(a(),l("p",hK,d(e.fmt.translate("VIEWER_LOADING.slow")),1)):f("v-if",!0)]),n("div",gK,[(a(),l(V,null,Q(10,u=>n("span",{key:u})),64))])])):f("v-if",!0),e.type=="empty"?(a(),l("div",vK,[...t[113]||(t[113]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"repository"),h(".")],-1)])])):f("v-if",!0),e.content==null&&!["empty","loading","error","rate_limited"].includes(e.type)&&!e.fileFrame()?(a(),l("div",yK,[...t[114]||(t[114]=[n("h1",{class:"paper-empty-title m-auto"},[h("Empty "),n("em",null,"file"),h(".")],-1)])])):f("v-if",!0)],64)}var bK={class:"container page dashboard-page paper-page"},wK={class:"row"},kK={class:"w-100"},CK={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},SK={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},EK={class:"flex-grow-1"},NK={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},RK={class:"d-flex flex-wrap",style:{gap:"6px"}},TK={class:"dropdown"},DK={class:"dropdown-menu","aria-labelledby":"dropdownSort"},PK={class:"form-check dropdown-item"},AK={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},IK={class:"form-check dropdown-item"},OK={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},MK={class:"form-check dropdown-item"},VK={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},LK={class:"form-check dropdown-item"},qK={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},$K={class:"form-check dropdown-item"},_K={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},FK={class:"dropdown"},UK={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},BK={class:"form-check dropdown-item"},zK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},HK={class:"form-check dropdown-item"},jK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},GK={class:"form-check dropdown-item"},WK={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},KK={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},YK={class:"filter-chip"},JK=["onClick"],XK={class:"repo-list w-100"},QK={class:"repo-list-item-content"},ZK={class:"repo-list-item-main"},xK={class:"repo-list-item-header"},eY=["textContent","href"],tY=["textContent"],nY=["textContent"],oY={class:"repo-source"},sY=["href"],iY={class:"repo-date"},rY={class:"repo-meta"},aY={key:0,title:"Conference"},lY=["title"],dY=["title"],uY=["title"],cY={key:1},pY={class:"repo-list-item-actions"},fY={class:"dropdown"},mY={class:"dropdown-menu dropdown-menu-right"},hY=["href"],gY=["onClick"],vY=["onClick"],yY=["onClick"],bY=["href"],wY={key:0,class:"repo-list-empty"};function Cp(e,t){let s=De("field"),i=De("form");return a(),l("div",bK,[n("div",wK,[n("div",kK,[t[12]||(t[12]=Se('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

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

',2)),f(" Search + filters row "),T((a(),l("form",CK,[n("div",SK,[n("div",EK,[T(n("input",NK,null,512),[[s,{state:e.viewState,set:o=>{e.search=o},value:e.search,form:null,options:{}}]])]),n("div",RK,[n("div",TK,[t[6]||(t[6]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),n("div",DK,[t[5]||(t[5]=n("h6",{class:"dropdown-header"},"Select order",-1)),n("div",PK,[T(n("input",AK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=n("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),n("div",IK,[T(n("input",OK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=n("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),n("div",MK,[T(n("input",VK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=n("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),n("div",LK,[T(n("input",qK,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=n("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),n("div",$K,[T(n("input",_K,null,512),[[s,{state:e.viewState,set:o=>{e.orderBy=o},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=n("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),n("div",FK,[t[11]||(t[11]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),n("div",UK,[t[10]||(t[10]=n("h6",{class:"dropdown-header"},"Select status",-1)),n("div",BK,[T(n("input",zK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.ready=o},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=n("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),n("div",HK,[T(n("input",jK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.expired=o},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=n("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),n("div",GK,[T(n("input",WK,null,512),[[s,{state:e.viewState,set:o=>{e.filters.status.removed=o},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=n("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[i,e.viewState]]),f(" Active filter chips "),T(n("div",KK,[(a(!0),l(V,null,Q(e.filters?.status,(o,r,u)=>T((a(),l("span",YK,[h(d(e.fmt?.title(r))+" ",1),n("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:p=>{e.filters.status[r]=!0}}," \xD7 ",8,JK)],512)),[[Z,!o]])),256))],512),[[Z,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),f(" Pull request list "),n("ul",XK,[(a(!0),l(V,null,Q(e.filteredPullRequests,(o,r)=>(a(),l("li",{class:R(["repo-list-item",{"repo-inactive":o?.status=="expired"||o?.status=="removed"||o?.status=="error"}])},[n("div",QK,[n("div",ZK,[n("div",xK,[n("a",{class:"repo-name",textContent:d(o?.pullRequestId),href:e.safeUrl("/pr/"+o?.pullRequestId)},null,8,eY),n("span",{class:R(["status-badge",{"status-removed":o?.status=="removed"||o?.status=="expired"||o?.status=="removing"||o?.status=="expiring","status-preparing":o?.status=="preparing"||o?.status=="download","status-ready":o?.status=="ready","status-error":o?.status=="error"}])},[n("span",{textContent:d(e.fmt?.title(o?.status))},null,8,tY),o?.status=="error"?(a(),l("span",{key:0,textContent:d(": "+o?.statusMessage)},null,8,nY)):f("v-if",!0)],2)]),n("div",oY,[n("span",null,[t[13]||(t[13]=n("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),n("a",{href:e.safeUrl("https://github.com/"+o?.source?.repositoryFullName+"/pull/"+o?.source?.pullRequestId)},d(o?.source?.repositoryFullName)+"#"+d(o?.source?.pullRequestId),9,sY)]),n("span",{class:R(["status-badge",{"status-ready":o?.merged,"status-removed":o?.state=="open","status-error":o?.state=="closed"&&!o?.merged}]),style:{"font-size":"10px"}},d(e.fmt?.title(o?.merged?"merged":o?.state)),3),n("span",iY,"anonymized "+d(e.fmt?.humanTime(o?.anonymizeDate)),1)])]),n("div",rY,[o?.conference?(a(),l("span",aY,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-conference"})],-1)),h(" "+d(o?.conference),1)])):f("v-if",!0),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+o?.options?.terms?.join(", ")},[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),h(" "+d(e.fmt?.number(o?.options?.terms?.length)),1)],8,lY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(o?.pageView)},[t[16]||(t[16]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1)),h(" "+d(e.fmt?.number(o?.pageView)),1)],8,dY),n("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(o?.lastView)},[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-calendar"})],-1)),h(" "+d(e.fmt?.humanTime(o?.lastView)),1)],8,uY),o?.options?.expirationMode!="never"&&o?.status=="ready"?(a(),l("span",cY,[t[18]||(t[18]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),h(" Expire: "+d(e.fmt?.humanTime(o?.options?.expirationDate)),1)])):f("v-if",!0)])]),n("div",pY,[n("div",fY,[t[24]||(t[24]=n("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),n("div",mY,[n("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+o?.pullRequestId)},[...t[19]||(t[19]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit ",-1)])],8,hY),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updatePullRequest(o),["prevent"])},[...t[20]||(t[20]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-refresh"})],-1),h(" Force update ",-1)])],8,gY),[[Z,o?.status=="ready"||o?.status=="error"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.updatePullRequest(o),["prevent"])},[...t[21]||(t[21]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-check-circle"})],-1),h(" Enable ",-1)])],8,vY),[[Z,o?.status=="removed"]]),T(n("a",{class:"dropdown-item",href:"#",onClick:ae(u=>e.removePullRequest(o),["prevent"])},[...t[22]||(t[22]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1),h(" Remove ",-1)])],8,yY),[[Z,o?.status=="ready"]]),n("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+o?.pullRequestId+"/")},[...t[23]||(t[23]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" View PR ",-1)])],8,bY)])])])],2))),256)),e.filteredPullRequests?.length==0?(a(),l("li",wY,[...t[25]||(t[25]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1),n("span",null,"No pull requests to display.",-1)])])):f("v-if",!0)])])])}var kY={class:"container paper-page user-settings"},CY={class:"settings-nav","aria-label":"Settings"},SY=["aria-current","onClick"],EY={class:"settings-row"},NY=["rows"],RY={class:"settings-syntax"},TY={class:"invalid-feedback"},DY={class:"settings-row"},PY={class:"settings-checks"},AY={class:"settings-check"},IY={class:"form-check-input",type:"checkbox",id:"link",name:"link"},OY={class:"settings-check"},MY={class:"form-check-input",type:"checkbox",id:"image",name:"image"},VY={class:"settings-check"},LY={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},qY={class:"settings-check"},$Y={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},_Y={class:"settings-check"},FY={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},UY={class:"settings-check"},BY={class:"form-check-input",type:"checkbox",id:"page",name:"page"},zY={class:"settings-row"},HY={class:"settings-check"},jY={class:"form-check-input",type:"checkbox",id:"update",name:"update"},GY={class:"settings-row"},WY={class:"form-control",id:"expiration",name:"expiration"},KY={class:"settings-help"},YY={class:"settings-save"},JY={class:"settings-save-status draft-status",role:"status"},XY={key:0},QY={key:1},ZY={key:2},xY=["disabled"],eJ={key:1,class:"settings-save-error",role:"alert"},tJ=["aria-busy"],nJ={key:0,role:"status"},oJ={key:1,class:"settings-notice",role:"alert"},sJ=["disabled"],iJ={key:2,class:"settings-notice",role:"status"},rJ={key:3,class:"settings-notice",role:"status"},aJ=["disabled"],lJ={class:"billing-summary"},dJ={class:"billing-summary-head"},uJ={class:"billing-plan-name"},cJ={key:0,class:"billing-plan-meta"},pJ={key:1,class:"billing-plan-meta"},fJ={key:0,class:"billing-summary-actions"},mJ=["disabled"],hJ={id:"settings-quota"},gJ={key:1,role:"status"},vJ={key:0,class:"settings-notice"},yJ={key:1,class:"settings-notice"},bJ={key:2,class:"settings-notice"},wJ={key:4,class:"billing-section","aria-labelledby":"settings-plan-comparison"},kJ={key:0,class:"billing-offers"},CJ={key:0,class:"billing-offer is-recommended"},SJ={class:"billing-offer-price"},EJ={class:"billing-offer-list"},NJ=["disabled"],RJ={key:1,class:"billing-offer"},TJ={class:"billing-offer-head"},DJ={class:"billing-toggle",role:"radiogroup","aria-label":"Billing frequency"},PJ=["aria-checked","onClick"],AJ={key:0,class:"billing-toggle-save"},IJ={class:"billing-offer-price"},OJ={class:"billing-offer-list"},MJ=["disabled"],VJ={key:1,class:"billing-addons"},LJ={class:"billing-addon-rows"},qJ={class:"billing-addon-price"},$J=["onClick","disabled"],_J={key:2,class:"billing-buy",id:"settings-addons-title",tabindex:"-1"},FJ={class:"billing-buy-info"},UJ={class:"billing-offer-price"},BJ={class:"billing-offer-list"},zJ={class:"billing-buy-form"},HJ=["value"],jJ=["disabled"],GJ={key:1,class:"billing-buy-desc"},WJ={key:2,class:"billing-footnote"},KJ={class:"billing-compare"},YJ={class:"billing-compare-card"},JJ={class:"settings-comparison"},XJ={key:0,scope:"col",class:"is-recommended"},QJ={key:1,scope:"col"},ZJ={key:0,class:"is-recommended"},xJ={key:1},eX={key:0,class:"is-recommended"},tX={key:1},nX={key:0,class:"is-recommended"},oX={key:1},sX={key:0,class:"is-recommended"},iX={key:1},rX={key:0,class:"is-recommended"},aX={key:1},lX={key:0,class:"is-recommended"},dX={key:1},uX={key:3,class:"billing-footnote"},cX={key:5,class:"billing-section"},pX={class:"billing-section-head"},fX=["disabled"],mX={key:0,class:"billing-empty"},hX={key:1,class:"billing-history-head","aria-hidden":"true"},gX={key:2,class:"billing-history"},vX={class:"billing-history-main"},yX=["href"],bX=["href"],wX={class:"billing-history-term"},kX={class:"billing-history-paid"},CX={class:"billing-history-status"},SX={class:"billing-manage"},EX={key:0},NX={key:1},RX=["disabled"],TX={class:"billing-conference"},DX={id:"settings-account",class:"settings-account-panel"},PX={class:"paper-account-card"},AX=["src"],IX={class:"paper-account-identity"},OX={class:"paper-account-name"},MX=["disabled"],VX={key:0,role:"status"},LX={key:1,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},qX=["disabled"],$X={key:3,role:"status"},_X={class:"paper-danger-zone"},FX={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},UX=["textContent"],BX=["disabled"],zX={key:1,class:"settings-delete-confirm"},HX={for:"delete-username"},jX={class:"settings-actions"},GX=["disabled"],WX=["disabled"];function Sp(e,t){let s=Qe("quota-usage"),i=De("field"),o=De("form");return a(),l("div",kY,[t[107]||(t[107]=n("header",{class:"settings-title page-head page-head-main"},[n("h1",null,"Settings"),n("p",{class:"paper-page-lede"},"Defaults for new anonymizations, hosting and your account.")],-1)),n("nav",CY,[(a(),l(V,null,Q([{id:"defaults",label:"Anonymization defaults"},{id:"billing",label:"Hosting & billing"},{id:"account",label:"Account"}],r=>n("button",{type:"button","aria-current":e.settingsTab===r.id?"page":null,onClick:u=>e.settingsTab=r.id},d(r.label),9,SY)),64))]),T(n("div",null,[t[41]||(t[41]=n("p",{class:"settings-scope"},"For new anonymizations only. Existing repositories keep their settings.",-1)),T((a(),l("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onInput:t[1]||(t[1]=r=>e.unsavedChanges=!0),onSubmit:t[2]||(t[2]=ae(r=>e.submitForm(r,()=>{e.saveDefault(r)}),["prevent"]))},[n("section",EY,[t[26]||(t[26]=n("div",null,[n("label",{class:"settings-label",for:"terms"},"Terms to redact"),n("p",{class:"settings-help"},"One term per line.")],-1)),n("div",null,[T(n("textarea",{class:"form-control",id:"terms",name:"terms",rows:Math.min(14,Math.max(3,String(e.terms||"").split(` `).length+1)),placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},null,8,pY),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",fY,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),T(n("div",mY,"Terms are in an invalid format.",512),[[Z,e.defaultsForm?.terms?.errors?.format]])])]),n("section",hY,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",gY,[n("label",vY,[T(n("input",yY,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",bY,[T(n("input",wY,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Display images",-1))]),n("label",kY,[T(n("input",CY,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Display PDFs",-1))]),n("label",SY,[T(n("input",EY,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Display notebooks",-1))]),n("label",NY,[T(n("input",RY,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",TY,[T(n("input",DY,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",PY,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",AY,[T(n("input",IY,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",OY,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[T((a(),l("select",MY,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",VY,d(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",LY,[n("div",qY,[e.draftRestored?(a(),l("span",$Y,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",FY,"Unsaved changes"+d(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",_Y,d(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:R(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},d(e.saving?"Saving\u2026":"Save defaults"),11,UY),e.error?(a(),l("div",BY,d(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[Z,e.settingsTab==="defaults"]]),T(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",HY,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",jY,[h(d(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,GY)])):f("v-if",!0),e.billingNotice?(a(),l("p",WY,d(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",KY,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,YY)])):f("v-if",!0),n("section",JY,[n("div",XY,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",QY,d(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",ZY,[h(d(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+d(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(V,{key:0},[h(" \xB7 "+d(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",xY,d(e.billing.allowance.repositories)+" repositories \xB7 "+d(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+d(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",eJ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>e.billingPortal()),disabled:e.billingBusy},d(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,tJ)])):f("v-if",!0)]),n("div",nJ,[e.quota?(a(),Wt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",oJ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",sJ,[h("Your free repositories are used up. Add the next one for "+d(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=h(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",iJ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",rJ,[...t[47]||(t[47]=[h("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),h(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",aJ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",lJ,[e.profilePackPlan()?(a(),l("article",dJ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",uJ,[n("strong",null,d(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=h(" once",-1))]),n("ul",cJ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=r=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,pJ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",fJ,[n("div",mJ,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",hJ,[(a(!0),l(V,null,Q(e.profileAuthorPlansByValue(),r=>(a(),l("button",{type:"button",role:"radio",key:r.id,"aria-checked":e.profileSelectedPlan()?.id===r.id?"true":"false",class:R({"is-on":e.profileSelectedPlan()?.id===r.id}),onClick:u=>e.profilePlan=r.id},[h(d(r.interval==="year"?"Yearly":"Monthly"),1),r.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",vJ,"\u2212"+d(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,gJ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",yJ,[n("strong",null,d(e.billingAmount(e.profileSelectedPlan())),1),h(" per "+d(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",bJ,[n("li",null,d(e.profileSelectedPlan()?.repositories)+" repositories, "+d(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=r=>e.checkout(e.profileSelectedPlan().id))},d(e.billingBusy?"Please wait\u2026":"Subscribe"),9,wJ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",kJ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",CJ,[(a(!0),l(V,null,Q(e.profileSingleAddons(),r=>(a(),l("li",{key:r.id},[n("div",null,[n("strong",null,d(r.name),1),n("span",null,d(e.profileAddonBlurb(r.id)),1)]),n("span",SJ,d(e.billingAmount(r)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(r.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,EJ)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",NJ,[n("div",RJ,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=r=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,d(e.profileAddon().name),1),n("p",TJ,[n("strong",null,d(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=h(" once",-1))]),n("ul",DJ,[(a(!0),l(V,null,Q(e.profileAddonFeatures(e.profileAddon().id),r=>(a(),l("li",{key:r},d(r),1))),128))])]),n("div",PJ,[e.profileRepositories().length?(a(),l(V,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),T(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=r=>e.billingRepository=r)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(V,null,Q(e.profileRepositories(),r=>(a(),l("option",{key:r.repoId,value:r.repoId},d(r.repoId)+" \xB7 "+d(e.profileRepositoryExpiry(r)),9,AJ))),128))],512),[[Rt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=r=>e.checkout(e.profileAddon().id,e.billingRepository))},d(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,IJ),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",OJ,[...t[68]||(t[68]=[h("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),h(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",MJ,[...t[69]||(t[69]=[h("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),h("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",VJ,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",LJ,[n("table",qJ,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[h("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",$J,[t[70]||(t[70]=h("Paper pack",-1)),n("small",null,d(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",FJ,[t[71]||(t[71]=h("Author",-1)),n("small",null,d(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,d(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",_J,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",UJ,d(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,d(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",BJ,d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",zJ,d(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,d(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",HJ,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",jJ,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",GJ,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",WJ,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",KJ,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",YJ,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",JJ,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",XJ,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",QJ,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",ZJ,[n("div",xJ,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,eX))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",tX,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",nX,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",oX,[(a(!0),l(V,null,Q(e.profilePurchases(!0).concat(e.profilePurchases(!1)),r=>(a(),l("li",{class:R(["billing-history-row",{"is-ended":!["active","overdue"].includes(r.status)}]),key:r.id},[n("div",sX,[n("strong",null,[h(d(e.profileGrantName(r)),1),r.repoId?(a(),l(V,{key:0},[t[88]||(t[88]=h(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(r.repoId)},d(r.repoId),9,iX)],64)):r.conference?(a(),l(V,{key:1},[t[89]||(t[89]=h(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(r.conference)},d(r.conference),9,rX)],64)):f("v-if",!0)]),n("span",null,d([r.purchasedAt?"Bought "+e.billingDate(r.purchasedAt):"",r.parts.length?e.profilePackSummary(r):["refunded","disputed"].includes(r.status)?"Payment "+r.status+", so what it paid for has ended":r.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",aX,d(e.profilePurchaseTerm(r)),1),n("div",lX,d(r.amount!=null?e.billingPrice(r):""),1),n("div",dX,[n("span",{class:R(["settings-status","is-"+r.status])},d(e.profilePurchaseStatus(r)),3)])],2))),128))])):f("v-if",!0),n("div",uX,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",cX,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",pX,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[h("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),h(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,fX)):f("v-if",!0)])])):f("v-if",!0),n("p",mX,[t[92]||(t[92]=h("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(V,{key:0},[h("Review packages start at "+d(e.billingAmount(e.profileConferencePlan()))+" once for up to "+d(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(V,{key:1},[h("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=h()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,zY),[[Z,e.settingsTab==="billing"]]),T(n("section",hX,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",gX,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,vX)):f("v-if",!0),n("div",yX,[n("div",bX,"@"+d(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=ae(r=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),T(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=r=>e.accountEmail=r),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=r=>e.emailSaved=!1)},null,40,wX),[[nt,e.accountEmail]]),e.emailLoading?(a(),l("p",kX,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",CX,d(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=r=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},d(e.emailSaving?"Saving\u2026":"Save email address"),9,SX),e.emailSaved?(a(),l("p",EX,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[h("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",NX,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(a(),l("div",RX,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=h()),n("span",{textContent:d(e.deleteError)},null,8,TX)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),h(d(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,DX),e.confirmDeleteAccount?(a(),l("div",PX,[n("label",AX,"Type "+d(e.user?.username)+" to confirm",1),T(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[nt,e.deleteUsername]]),n("div",IX,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},d(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,OX),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,MX)])])):f("v-if",!0)])],512),[[Z,e.settingsTab==="account"]])])}var VX={class:"pr-page"},LX={class:"container paper-page pr-page-inner"},qX={class:"pr-header"},$X={class:"pr-title-row"},FX={class:"paper-page-title pr-title"},_X=["textContent"],UX={key:1,class:"text-muted"},BX=["href"],zX={class:"pr-header-meta"},HX={key:0,class:"pr-meta-item"},jX=["textContent"],GX={key:1,class:"pr-meta-item"},WX=["textContent"],KX={key:2,class:"pr-meta-item"},YX=["textContent"],JX={key:0,class:"pr-body-card"},XX={key:1,class:"paper-tabs",role:"tablist"},QX=["aria-selected","tabindex"],ZX=["aria-selected","tabindex"],xX=["textContent"],eQ={class:"paper-tab-content"},tQ={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},nQ=["innerHTML"],oQ={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},sQ={class:"pr-comments"},iQ={class:"pr-comment"},rQ={class:"pr-comment-head"},aQ={key:0,class:"pr-comment-author"},lQ=["textContent"],dQ=["textContent"],uQ={key:0,class:"pr-comment-body"},cQ={key:0,class:"paper-table-empty"};function Ep(e,t){let s=Qe("markdown");return a(),l("div",VX,[n("div",LX,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",qX,[n("div",$X,[n("h1",FX,[e.details?.title?(a(),l("span",{key:0,textContent:d(e.details?.title)},null,8,_X)):f("v-if",!0),e.details?.title?f("v-if",!0):(a(),l("span",UX,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,BX)):f("v-if",!0)]),n("div",zX,[n("span",{class:R(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:R(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),h(" "+d(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(a(),l("span",HX,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=h()),n("span",{textContent:d(e.details?.baseRepositoryFullName)},null,8,jX)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",GX,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=h()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,WX)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",KX,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=h(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,YX)])):f("v-if",!0)])]),e.details?.body?(a(),l("section",JX,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),Oe(s,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(a(),l("nav",XX,[e.details?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,QX)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,xX)],42,ZX)):f("v-if",!0)])):f("v-if",!0),n("div",eQ,[e.details?.diff&&e.tabState?.active=="diff"?(a(),l("div",tQ,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,nQ)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",oQ,[n("ul",sQ,[(a(!0),l(V,null,Q(e.details?.comments,(i,o)=>(a(),l("li",iQ,[n("div",rQ,[i?.author?(a(),l("span",aQ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=h(" @",-1)),n("span",{textContent:d(i?.author)},null,8,lQ)])):f("v-if",!0),i?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(i?.updatedDate))},null,8,dQ)):f("v-if",!0)]),i?.body?(a(),l("div",uQ,[Oe(s,{content:i?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",cQ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var pQ={class:"repository-task status-page"},fQ={class:"page-head-main"},mQ={class:"task-lede"},hQ={class:"task-columns"},gQ={class:"task-preparation","aria-label":"Repository preparation"},vQ={key:0,class:"text-danger",role:"alert"},yQ={key:1,class:"paper-section-copy"},bQ={key:2,class:"paper-ratelimit-card",role:"status"},wQ={class:"paper-error-msg"},kQ=["aria-valuenow"],CQ={class:"paper-progress-label"},SQ=["textContent"],EQ={key:0},NQ=["textContent"],RQ={class:"paper-progress-pct"},TQ={key:4,class:"paper-error-card",role:"alert"},DQ={key:0,class:"paper-error-msg"},PQ={key:1,class:"paper-error-msg"},AQ={key:2},IQ=["href"],OQ={class:"paper-error-actions"},MQ=["href"],VQ={key:5,class:"share-link"},LQ={class:"share-link-row"},qQ={class:"share-link-buttons"},$Q={class:"ui-icon","aria-hidden":"true"},FQ=["href"],_Q=["textContent"],UQ=["href"],BQ={class:"share-link-note"},zQ=["href"],HQ={class:"share-link-next"},jQ={class:"share-link-next-actions"},GQ=["href"],WQ={class:"task-summary","aria-label":"Repository summary"},KQ=["title"],YQ={key:1};function Np(e,t){return a(),l("div",pQ,[n("header",{class:R(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",fQ,[n("div",null,[n("h1",null,d(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",mQ,d(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",hQ,[n("section",gQ,[e.error?(a(),l("p",vQ,[t[5]||(t[5]=h("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",yQ,[...t[6]||(t[6]=[h(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),h(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",bQ,[t[9]||(t[9]=Se('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",wQ,[t[7]||(t[7]=h("Anonymization will resume automatically in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[8]||(t[8]=h(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:R(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:Ae("width: "+e.progress+"%;")},null,4),n("div",CQ,[n("span",{textContent:d(e.fmt?.title(e.repo?.status))},null,8,SQ),e.repo?.statusMessage?(a(),l("span",EQ,[t[10]||(t[10]=h("\xA0\xB7\xA0",-1)),n("span",{textContent:d(e.repo?.statusMessage)},null,8,NQ)])):f("v-if",!0),n("span",RQ,d(e.progress||0)+"%",1)])],10,kQ)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",TQ,[t[14]||(t[14]=Se('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",DQ,d(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",PQ,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),e.repo?.statusMessage==="quota_exceeded"?(a(),l("p",AQ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,IQ),t[11]||(t[11]=h(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",OQ,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit anonymization",-1)])],8,MQ),t[13]||(t[13]=Se(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",VQ,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",LQ,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},d(e.shareUrl),33),n("div",qQ,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",$Q,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,FQ)])),n("span",{"aria-live":"polite",textContent:d(e.copied?"Copied":"Copy link")},null,8,_Q)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" Open repository ",-1)])],8,UQ)])]),n("p",BQ,[h(d(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=h("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(V,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,zQ)],64)):f("v-if",!0)]),n("div",HQ,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",jQ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,GQ),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",WQ,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=h("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),h(d(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),h(d(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,KQ)):(a(),l("dd",YQ,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,d(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var JQ={class:"container paper-page admin-page overview-page billing-page"},XQ={class:"bl-toolbar"},QQ={class:"seg-filter",role:"radiogroup","aria-label":"Period"},ZQ=["aria-checked","onClick"],xQ={key:0,class:"bl-basis"},eZ={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},tZ={key:1,class:"ov-performance-message bl-message",role:"status"},nZ={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},oZ=["aria-busy"],sZ={class:"ov-kpi-card"},iZ={class:"ov-kpi-value"},rZ={class:"ov-kpi-sub"},aZ={class:"ov-kpi-card"},lZ={key:0,class:"ov-kpi-sub"},dZ={key:1,class:"ov-kpi-sub"},uZ={class:"ov-kpi-card"},cZ={class:"ov-kpi-label"},pZ={class:"ov-kpi-value"},fZ={class:"ov-kpi-sub"},mZ={class:"ov-kpi-card"},hZ={class:"ov-kpi-value"},gZ={class:"ov-kpi-sub"},vZ={class:"ov-kpi-card"},yZ={class:"ov-kpi-value"},bZ={class:"ov-kpi-sub"},wZ={class:"ov-kpi-card"},kZ={class:"ov-kpi-sub"},CZ={key:3,class:"bl-health","aria-label":"Webhook health"},SZ={class:"bl-health-title"},EZ={class:"bl-health-item"},NZ=["title"],RZ={key:1,class:"bl-health-item"},TZ={key:4,class:"ov-chart-card bl-chart-card"},DZ={class:"ov-chart-head"},PZ={class:"ov-chart-title"},AZ={key:0,class:"ov-chart-legends"},IZ=["aria-label"],OZ={class:"ov-yaxis","aria-hidden":"true"},MZ=["data-tip"],VZ={class:"ov-spark-x bl-x"},LZ={key:1,class:"ov-performance-empty bl-empty",role:"status"},qZ={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},$Z={class:"ov-panel-head"},FZ={class:"ov-panel-meta"},_Z={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},UZ={class:"ov-metrics-table"},BZ={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},zZ={scope:"row",class:"bl-plan-name"},HZ=["title","onClick"],jZ={class:"num"},GZ={class:"num"},WZ={class:"num"},KZ={class:"num"},YZ={class:"num"},JZ={class:"num"},XZ={class:"num"},QZ={class:"num"},ZZ={class:"num"},xZ={class:"num"},ex={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},tx={class:"seg-bar"},nx={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},ox=["aria-checked"],sx={class:"count"},ix=["aria-checked"],rx={class:"count"},ax=["aria-checked"],lx={class:"count"},dx=["aria-checked"],ux={class:"count"},cx={class:"seg-countline",role:"status"},px={key:0,class:"alert alert-danger bl-alert"},fx=["aria-expanded"],mx={class:"search-wrap"},hx={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},gx={class:"admin-filter-inline"},vx={id:"bl-plan",class:"form-control form-control-sm"},yx=["label"],bx=["value"],wx={class:"admin-filter-inline"},kx={id:"bl-status",class:"form-control form-control-sm"},Cx=["value"],Sx={key:0,class:"admin-filter-inline","aria-label":"Pagination"},Ex=["disabled"],Nx={class:"bl-page"},Rx=["disabled"],Tx={key:0,class:"admin-filter-row"},Dx={class:"admin-active-chips"},Px={class:"key"},Ax=["onClick"],Ix={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},Ox={class:"ov-metrics-table bl-grant-table"},Mx={scope:"col"},Vx={scope:"col"},Lx={scope:"row",class:"bl-user"},qx=["title","href"],$x={key:1,class:"ov-muted"},Fx={class:"bl-plan-cell"},_x={key:0},Ux={class:"bl-state"},Bx={key:0},zx={key:3},Hx={key:0,class:"bl-flag"},jx={key:1,class:"ov-muted"},Gx={class:"bl-flag is-bad"},Wx={key:0},Kx={key:1,class:"ov-muted"},Yx={class:"bl-scope"},Jx=["href"],Xx={class:"ui-icon","aria-hidden":"true"},Qx=["href"],Zx={key:1,class:"ov-muted"},xx={key:2,class:"paper-table-empty"},eee={key:3,class:"admin-empty"},tee={key:4,class:"admin-toolbar bl-pager"},nee={key:0,class:"pagination-compact"},oee=["disabled"],see=["max"],iee=["disabled"],ree={class:"admin-filter-inline"},aee={id:"bl-limit",class:"form-control form-control-sm"};function Rp(e,t){let s=De("field"),i=De("form");return a(),l("div",JQ,[t[79]||(t[79]=Se('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",XQ,[n("div",QQ,[(a(!0),l(V,null,Q(e.periods,o=>(a(),l("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.period===o.id}]),key:o.id,"aria-checked":e.period===o.id,onClick:r=>e.setPeriod(o.id)},d(o.label),11,ZQ))),128))]),e.summary?(a(),l("p",xQ,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",eZ,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=o=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",tZ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),h(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",nZ,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+d(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+d(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+d(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(V,{key:0},Q(6,o=>n("div",{class:"ov-kpi-card",key:o,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(V,{key:1},[n("div",sZ,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",iZ,d(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",rZ,d(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+d(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",aZ,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:R(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},d(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",lZ,"+ "+d(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",dZ,d(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",uZ,[n("div",cZ,"Sales \xB7 "+d(e.periodPhrase()),1),n("div",pZ,d(e.fmt?.number(e.summary.sales.count)),1),n("div",fZ,d(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",mZ,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",hZ,d(e.fmt?.number(e.summary.allTime.count)),1),n("div",gZ,d(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",vZ,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",yZ,d(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",bZ,"at period end, of "+d(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",wZ,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},d(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",kZ,d(e.fmt?.number(e.summary.reversals.refunds))+" "+d(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+d(e.fmt?.number(e.summary.reversals.disputes))+" "+d(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,oZ),f(" \u2500\u2500 Webhook health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?.webhooks?(a(),l("section",CZ,[n("span",SZ,[n("span",{class:R(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=h("Stripe webhooks",-1))]),n("span",EZ,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(V,{key:0},[h(" \xB7 oldest "+d(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:R(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=h()),n("code",null,d(e.summary.webhooks.lastError.error),1),h(" on "+d(e.summary.webhooks.lastError.type)+" \xB7 "+d(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,NZ)):(a(),l("span",RZ,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),h(" none",-1)])])),n("span",{class:R(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",TZ,[n("div",DZ,[n("span",PZ,"Sales per "+d(e.bucketName())+" \xB7 "+d(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",AZ,[(a(!0),l(V,null,Q(e.families,o=>(a(),l("span",{class:"ov-chart-legend",key:o.id},[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),h(d(o.label)+" \xB7 "+d(e.fmt?.number(e.familyTotal(o.id))),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(V,{key:0},[n("div",{class:R(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",OZ,[n("span",null,d(e.fmt?.number(e.chartMax())),1),n("span",null,d(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(V,null,Q(e.summary.series,(o,r)=>(a(),l("div",{class:R(["ov-spark-col has-tip bl-col",{"is-zero":!e.bucketTotal(o)}]),key:r,"data-tip":e.bucketTip(o)},[n("span",{class:"bl-stack",style:Ae({height:e.bucketTotal(o)/e.chartMax()*100+"%"})},[(a(!0),l(V,null,Q(e.families,u=>T((a(),l("i",{key:u.id,class:R("bl-"+u.id),style:Ae({flexGrow:o[u.id]})},null,6)),[[Z,o[u.id]]])),128))],4)],10,MZ))),128))],10,IZ),n("div",VZ,[n("span",null,d(e.bucketLabel(e.summary.series[0])),1),n("span",null,d(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,d(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",LZ,"No sales "+d(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",qZ,[n("div",$Z,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",FZ,d(e.fmt?.number(e.plansWithActivity().length))+" of "+d(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",_Z,[n("table",UZ,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",BZ,d(e.periodPhrase().replace(/^./,o=>o.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(V,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.summary.plans,o=>(a(),l("tr",{key:o.planId,class:R({"bl-idle":!o.active&&!o.sales&&!o.allTimeSales})},[n("th",zZ,[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),n("button",{type:"button",class:"bl-link",title:"Show "+o.name+" grants",onClick:r=>e.filterPlan(o.planId)},d(o.name),9,HZ)]),n("td",jZ,d(e.fmt?.number(o.active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",GZ,d(e.fmt?.number(o.sales)),1),n("td",WZ,d(e.revenueOn()?o.revenueComplete===!1?"Incomplete":e.moneyText(o.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",KZ,d(e.fmt?.number(o.allTimeSales)),1),n("td",YZ,d(e.revenueOn()?o.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(o.allTimeRevenue):"\u2014"),1)],2))),128))]),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",JZ,d(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",XZ,d(e.fmt?.number(e.planTotals().sales)),1),n("td",QZ,d(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",ZZ,d(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",xZ,d(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",ex,[t[78]||(t[78]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",tx,[n("div",nx,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=o=>e.setStateView("all"))},[t[43]||(t[43]=h("All ",-1)),n("span",sx,d(e.fmt?.number(e.stateCount("all"))),1)],10,ox),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=o=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=h("Active ",-1)),n("span",rx,d(e.fmt?.number(e.stateCount("active"))),1)],10,ix),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=o=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=h("Expired ",-1)),n("span",lx,d(e.fmt?.number(e.stateCount("expired"))),1)],10,ax),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=o=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=h("Revoked ",-1)),n("span",ux,d(e.fmt?.number(e.stateCount("revoked"))),1)],10,dx)]),n("p",cx,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=h(" shown",-1))])]),e.grantsError?(a(),l("div",px,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.reloadGrants())},"Retry")])):f("v-if",!0),T((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ae(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=h("Filters",-1)),e.query.plan||e.query.status?(a(),l(V,{key:0},[h(" ("+d((e.query.plan?1:0)+(e.query.status?1:0))+")",1)],64)):f("v-if",!0)],8,fx),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",mx,[T(n("input",hx,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]])]),n("span",gx,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),T((a(),l("select",vx,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,Q(e.families,o=>(a(),l("optgroup",{key:o.id,label:o.label},[(a(!0),l(V,null,Q((e.summary?.plans||[]).filter(r=>r.family===o.id),r=>(a(),l("option",{key:r.planId,value:r.planId},d(r.name),9,bx))),128))],8,yx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.plan=o},value:e.query?.plan,form:null,options:{}}]])]),n("span",wx,[t[56]||(t[56]=n("label",{for:"bl-status"},"Stripe status",-1)),T((a(),l("select",kx,[t[55]||(t[55]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,Q(e.statuses,o=>(a(),l("option",{key:o,value:o},d(o.replace(/_/g," ")),9,Cx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.status=o},value:e.query?.status,form:null,options:{}}]])]),t[59]||(t[59]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",Sx,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,Ex),n("span",Nx,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Rx)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",Tx,[n("div",Dx,[(a(!0),l(V,null,Q(e.chips,o=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",Px,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:r=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Ax)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",Ix,[n("table",Ox,[t[71]||(t[71]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[65]||(t[65]=n("th",{scope:"col"},"User",-1)),t[66]||(t[66]=n("th",{scope:"col"},"Plan",-1)),t[67]||(t[67]=n("th",{scope:"col"},"Status",-1)),n("th",Mx,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=o=>e.sortBy("purchasedAt"))},[t[62]||(t[62]=h("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[61]||(t[61]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",Vx,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=o=>e.sortBy("until"))},[t[64]||(t[64]=h("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[68]||(t[68]=n("th",{scope:"col"},"Cancelling",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Revoked",-1)),t[70]||(t[70]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.grants,o=>(a(),l("tr",{key:o.id},[n("th",Lx,[o.user?(a(),l("a",{key:0,title:o.user,href:e.safeUrl("/admin/users/"+o.user)},d(o.user),9,qx)):(a(),l("span",$x,"Deleted user"))]),n("td",null,[n("span",Fx,[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),h(d(e.planName(o.planId)),1)]),o.pack?(a(),l("small",_x,"Part of a paper pack")):f("v-if",!0)]),n("td",null,[n("span",Ux,[n("span",{class:R(["status-dot",o.state==="active"?"st-ready":o.state==="revoked"?"st-error":"st-expired"])},null,2),h(d(o.state==="active"?"Active":o.state==="revoked"?"Revoked":"Expired"),1)]),["active","paid"].includes(o.status)?f("v-if",!0):(a(),l("small",Bx,"Stripe: "+d(e.statusText(o)),1))]),n("td",null,d(o.purchasedAt?e.fmt?.date(o.purchasedAt):"\u2014"),1),n("td",null,[o.never?(a(),l(V,{key:0},[h("Never ends")],64)):o.until?(a(),l(V,{key:1},[h(d(e.fmt?.date(o.until)),1)],64)):(a(),l(V,{key:2},[h("\u2014")],64)),o.subscription&&o.state==="active"?(a(),l("small",zx,d(o.cancelAtPeriodEnd?"Ends":"Renews"),1)):f("v-if",!0)]),n("td",null,[o.cancelAtPeriodEnd?(a(),l("span",Hx,"Cancelling")):(a(),l("span",jx,"\u2014"))]),n("td",null,[o.revoked?(a(),l(V,{key:0},[n("span",Gx,d(e.revocationText(o.revocationReason)),1),o.revokedAt?(a(),l("small",Wx,d(e.fmt?.date(o.revokedAt)),1)):f("v-if",!0)],64)):(a(),l("span",Kx,"\u2014"))]),n("td",Yx,[e.scopeHref(o.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(o.scope))},[(a(),l("svg",Xx,[n("use",{href:o.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,Qx)])),n("span",null,d(o.scope.id),1)],8,Jx)):(a(),l("span",Zx,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",xx,[t[72]||(t[72]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",eee,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",tee,[t[77]||(t[77]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",nee,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,oee),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,see),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[74]||(t[74]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,iee)])):f("v-if",!0),n("span",ree,[t[76]||(t[76]=n("label",{for:"bl-limit"},"Per page",-1)),T((a(),l("select",aee,[...t[75]||(t[75]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var lee={class:"paper-footer"},dee={class:"paper-footer-inner"},uee={class:"paper-footer-col"},cee={key:0,href:"/dashboard"},pee={key:1,href:"/conferences"},fee={class:"paper-footer-foot"};function Tp(e,t){return a(),l("footer",lee,[n("div",dee,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[h("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",uee,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",cee,"My work")):f("v-if",!0),e.user?(a(),l("a",pee,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Se('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",fee,[n("span",null,"\xA9 "+d(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var ur={"partials/reviewConsent.htm":Qc,"partials/connections.htm":Zc,"partials/signin.htm":xc,"partials/404.htm":ep,"partials/admin/billing.htm":Rp,"partials/admin/emails.htm":Xc,"partials/admin/conferences.htm":tp,"partials/admin/errors.htm":np,"partials/admin/overview.htm":op,"partials/admin/queues.htm":sp,"partials/admin/repositories.htm":ip,"partials/admin/user.htm":rp,"partials/admin/users.htm":ap,"partials/anonymize.htm":lp,"partials/anonymizePullRequest.htm":dp,"partials/claim.htm":up,"partials/conference.htm":cp,"partials/conferences.htm":pp,"partials/dashboard.htm":fp,"partials/explorer.htm":mp,"partials/faq.htm":hp,"partials/gist.htm":gp,"partials/header.htm":vp,"partials/home.htm":yp,"partials/loading.htm":bp,"partials/newConference.htm":wp,"partials/pageView.htm":kp,"partials/pr-dashboard.htm":Cp,"partials/profile.htm":Sp,"partials/pullRequest.htm":Ep,"partials/status.htm":Np,"partials/footer.htm":Tp};var mee={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function Dp(e,t){return a(),l("svg",mee,[...t[0]||(t[0]=[Se('',1)])])}function Pp(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=o=>{o.preventDefault();let r=o.clientX,u=t.sidebarWidth,p=v=>{t.sidebarWidth=Math.min(520,Math.max(220,u+v.clientX-r)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},c=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",c),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",c)}),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let i={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(i){let o=Nt(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Ap(e=(...t)=>fetch(...t)){async function t(i,o,r,u={}){let p=new URL(o,window.location.href);for(let[g,y]of Object.entries(u.params||{}))if(y!=null)for(let m of Array.isArray(y)?y:[y])p.searchParams.append(g,typeof m=="object"?JSON.stringify(m):m);let c=new AbortController,v;u.timeout?.then?u.timeout.then(()=>c.abort()):u.timeout&&(v=setTimeout(()=>c.abort(),u.timeout));try{let g={Accept:"application/json, text/plain, */*",...u.headers},y=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);y&&p.origin===window.location.origin&&(g["X-XSRF-TOKEN"]=decodeURIComponent(y[1]));let m;r!==void 0&&(r instanceof FormData?m=r:(g["Content-Type"]||(g["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(r)));let b=await e(p.href,{method:i,headers:g,body:m,credentials:"same-origin",signal:c.signal}),E;if(u.onDownloadProgress&&b.ok&&b.body?.getReader&&typeof TextDecoder<"u"){let w=b.body.getReader(),D=new TextDecoder,O=[],_=0;try{for(;;){let{value:j,done:oe}=await w.read();if(oe)break;O.push(D.decode(j,{stream:!0})),_+=j.byteLength,u.onDownloadProgress(_)}O.push(D.decode()),E=O.join("")}finally{w.releaseLock()}}else E=await b.text();let S=E;if(u.transformResponse)S=u.transformResponse(E);else if(E&&(/json/i.test(b.headers.get("content-type")||"")||/^[\[{]/.test(E.trim())))try{S=JSON.parse(E)}catch{}let N={data:S,status:b.status,headers:w=>b.headers.get(w)};if(!b.ok)throw N;return N}catch(g){throw g.name==="AbortError"?{status:-1,data:null}:g}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,u)=>t(i.toUpperCase(),o,r,u);return s}var Ip={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var Op=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var Mp={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=St(null);return mn(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let c="";e.baseUrl&&(c=''),u.srcdoc=c+r}ut(()=>e.content,o,{immediate:!0}),ut(()=>e.baseUrl,o,{immediate:!0}),ut(()=>e.allowScripts,o,{immediate:!0})}),()=>Pe("html-doc",{ref:t})}};var Vp={name:"pdfviewer",props:["src"],setup(e){let t=St(null);return mn(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,c=[],v=!1,g=null,y=1,m=0,b=1,E=0,S=0,N=612/792,w=0,D=null,O=new Map,_=0;function j(A){let U=O.get(A);U&&(U.cancelled=!0,U.task?.cancel?.(),O.delete(A));let x=A.querySelector("canvas");x&&(x.width=0,x.height=0),A.innerHTML="",delete A.dataset.state}let oe=document.createElement("div");oe.className="pdf-toolbar";let F=document.createElement("div");F.className="pdf-pages",F.tabIndex=0,F.setAttribute("aria-label","PDF pages"),u.appendChild(oe),u.appendChild(F);function B(A,U,x){let K=document.createElement("button");return K.type="button",K.className="pdf-toolbar-btn",K.title=U,K.setAttribute("aria-label",U),K.innerHTML='',K.addEventListener("click",x),K}let I=B("fa-chevron-up","Previous page",function(){Ue(b-1)}),L=B("fa-chevron-down","Next page",function(){Ue(b+1)}),k=document.createElement("input");k.type="text",k.className="pdf-toolbar-page",k.setAttribute("aria-label","Page number"),k.title="Page number \u2014 type a page and press Enter",k.addEventListener("keydown",function(A){A.key==="Enter"&&(Ue(parseInt(k.value,10)),k.blur())}),k.addEventListener("blur",function(){k.value=String(b)});let q=document.createElement("span");q.className="pdf-toolbar-count";let W=B("fa-search-minus","Zoom out",function(){ye(o[Math.max(0,ue()-1)])}),H=B("fa-search-plus","Zoom in",function(){ye(o[Math.min(o.length-1,ue()+1)])}),J=document.createElement("button");J.type="button",J.className="pdf-toolbar-btn pdf-toolbar-zoom",J.title="Reset zoom to fit the width",J.setAttribute("aria-label","Reset zoom to fit the width"),J.addEventListener("click",function(){ye(1)}),oe.appendChild(I),oe.appendChild(L);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(k),ne.appendChild(q),oe.appendChild(ne);let G=document.createElement("span");G.className="pdf-toolbar-group pdf-toolbar-right",G.appendChild(W),G.appendChild(J),G.appendChild(H),oe.appendChild(G);function ue(){let A=0;for(let U=0;U=A,J.textContent=y===1||!m?"Fit":Math.round(Re()/(m*96/72)*100)+"%",W.disabled=ue()===0,H.disabled=ue()===o.length-1}function Me(A){let U=c[A-1];U&&(F.scrollTop+=U.getBoundingClientRect().top-F.getBoundingClientRect().top)}function Ue(A){if(!p||isNaN(A))return;let U=Math.min(Math.max(1,A),p.numPages);c[U-1]&&(Me(U),b=U,E=U,S=Date.now()+800,he(),X())}function We(){if(!c.length||Date.now(){}),D=null),g&&(clearTimeout(g),g=null),p&&(p.destroy(),p=null),c=[],b=1,F.innerHTML="",he()}function tt(){F.innerHTML="";let A=document.createElement("div");A.className="pdf-viewer-error",A.textContent="This PDF could not be displayed.",F.appendChild(A)}function Re(){let A=Math.max(120,F.clientWidth-24);return Math.round(Math.min(A,r)*y)}function Be(A,U,x){let K=window.devicePixelRatio||1,ee=A.getViewport({scale:1}),le=parseFloat(U.style.width);if(!le)return;let se=A.getViewport({scale:le/ee.width*K}),ie=document.createElement("canvas");return ie.width=Math.floor(se.width),ie.height=Math.floor(se.height),ie.style.width=le+"px",ie.style.height=Math.floor(se.height/K)+"px",U.innerHTML="",U.appendChild(ie),U.style.height=ie.style.height,x.task=A.render({canvasContext:ie.getContext("2d"),viewport:se}),x.task.promise}function X(){if(!p)return;let A=w,U=F.getBoundingClientRect(),x=U.top-i,K=U.top+F.clientHeight+i,ee=c.map((se,ie)=>({slot:se,i:ie,rect:se.getBoundingClientRect()})).filter(se=>se.rect.top<=K&&se.rect.bottom>=x).sort((se,ie)=>Math.abs(se.rect.top-U.top)-Math.abs(ie.rect.top-U.top)).slice(0,6),le=new Set(ee.map(se=>se.slot));for(let se of O.keys())le.has(se)||j(se);for(let{slot:se,i:ie}of ee){if(se.dataset.state||_>=2)continue;let te={cancelled:!1,task:null};O.set(se,te),_++,se.dataset.state="rendering";let Ce;p.getPage(ie+1).then(fe=>{if(Ce=fe,!(te.cancelled||A!==w))return Be(Ce,se,te)}).then(()=>{te.cancelled||A!==w||(se.dataset.state="done",E&&Date.now(){!te.cancelled&&A===w&&(se.dataset.state="failed")}).finally(()=>{_--,Ce?.cleanup?.(),p&&X()})}}function me(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,We(),X()}))}function de(){let A=!1;function U(){A||(A=!0,X())}window.requestAnimationFrame(U),window.setTimeout(U,50)}function pe(){w++,c.forEach(j);let A=Re();c.forEach(function(U){delete U.dataset.state,U.innerHTML="",U.style.width=A+"px",U.style.height=Math.round(A/N)+"px"}),X()}function ye(A){if(!p||!c.length||A===y)return;let U=b;y=A,he(),pe(),Ue(U)}function Ve(){p&&(g&&clearTimeout(g),g=setTimeout(function(){g=null,p&&c.length&&pe()},250))}function P(A){if(ze(),!A)return;let U=w;D=pdfjsLib.getDocument({url:A,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),D.promise.then(function(x){if(U!==w){x.destroy();return}return p=x,p.getPage(1).then(function(K){if(U!==w)return;let ee=K.getViewport({scale:1});ee.width&&ee.height&&(N=ee.width/ee.height),m=ee.width||0;let le=Re();for(let se=1;se<=p.numPages;se++){let ie=document.createElement("div");ie.className="pdf-viewer-page",ie.style.width=le+"px",ie.style.height=Math.round(le/N)+"px",F.appendChild(ie),c.push(ie)}he(),de()})}).catch(function(){U===w&&tt()})}F.addEventListener("scroll",me,{passive:!0}),$(window).on("resize",Ve),he(),ut(()=>e.src,P,{immediate:!0}),io(function(){F.removeEventListener("scroll",me),$(window).off("resize",Ve),ze()})}),()=>Pe("pdfviewer",{ref:t})}};var hee={key:0,class:"quota-row quota-usage"},gee={class:"quota-header"},vee={class:"quota-label"},yee={class:"project-type-svg","aria-hidden":"true"},bee=["href"],wee={key:0,class:"quota-percent"},kee={key:1,class:"quota-unlimited-tag"},Cee={class:"quota-value"},See={key:0},Eee=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],Nee={key:1,class:"quota-remaining"},Ree={key:2,class:"quota-remaining quota-limit"};function Lp(e,t){return e.quota?(a(),l("div",hee,[(a(),l(V,null,Q([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:R(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",gee,[n("span",vee,[(a(),l("svg",yee,[n("use",{href:"#"+s.icon},null,8,bee)])),h(d(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",wee,d(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",kee,"Unlimited")):f("v-if",!0)]),n("div",Cee,[n("strong",null,d(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",See," / "+d(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:R(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[s.key].percent+"%"})},null,4))],10,Eee)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",Ree,d(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var Tee={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:Lp},Dee=new Set(ge),Fp=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` +jane.smith@example.org`},null,8,NY),[[i,{state:e.viewState,set:r=>{e.terms=r},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),n("details",RY,[t[25]||(t[25]=n("summary",null,"Regex & replacement syntax",-1)),n("p",null,[t[21]||(t[21]=h("Matches become ",-1)),n("code",null,d(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[22]||(t[22]=h(". Use ",-1)),t[23]||(t[23]=n("code",null,"term=>replacement",-1)),t[24]||(t[24]=h(" for a custom replacement. Regex is supported.",-1))])]),T(n("div",TY,"Terms are in an invalid format.",512),[[Z,e.defaultsForm?.terms?.errors?.format]])])]),n("section",DY,[t[35]||(t[35]=n("h2",null,"Reviewer display",-1)),n("div",null,[n("div",PY,[n("label",AY,[T(n("input",IY,null,512),[[i,{state:e.viewState,set:r=>{e.options.link=r},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=h("Keep links",-1))]),n("label",OY,[T(n("input",MY,null,512),[[i,{state:e.viewState,set:r=>{e.options.image=r},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[28]||(t[28]=h("Display images",-1))]),n("label",VY,[T(n("input",LY,null,512),[[i,{state:e.viewState,set:r=>{e.options.pdf=r},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[29]||(t[29]=h("Display PDFs",-1))]),n("label",qY,[T(n("input",$Y,null,512),[[i,{state:e.viewState,set:r=>{e.options.notebook=r},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[30]||(t[30]=h("Display notebooks",-1))]),n("label",_Y,[T(n("input",FY,null,512),[[i,{state:e.viewState,set:r=>{e.options.loc=r},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[31]||(t[31]=h("Show line counts",-1))]),n("label",UY,[T(n("input",BY,null,512),[[i,{state:e.viewState,set:r=>{e.options.page=r},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[32]||(t[32]=h("GitHub Pages",-1))])]),t[33]||(t[33]=n("p",{class:"settings-help"},"Images and PDFs are not anonymized.",-1)),t[34]||(t[34]=n("p",{class:"settings-help"},"GitHub Pages must use the anonymized branch.",-1))])]),n("section",zY,[t[38]||(t[38]=n("h2",null,"Source updates",-1)),n("div",null,[n("label",HY,[T(n("input",jY,null,512),[[i,{state:e.viewState,set:r=>{e.options.update=r},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[36]||(t[36]=h("Auto-update from GitHub",-1))]),t[37]||(t[37]=n("p",{class:"settings-help"},"Latest commit, at most once an hour.",-1))])]),n("section",GY,[t[40]||(t[40]=n("label",{class:"settings-label",for:"expiration"},"On expiration",-1)),n("div",null,[T((a(),l("select",WY,[...t[39]||(t[39]=[n("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),n("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[i,{state:e.viewState,set:r=>{e.options.expirationMode=r},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),n("p",KY,d(e.options.expirationMode==="redirect"?"Redirecting reveals the original repository. Choose the date per anonymization.":"Set the expiration date for each repository."),1)])]),n("footer",YY,[n("div",JY,[e.draftRestored?(a(),l("span",XY,"Your unsaved draft was restored.")):e.unsavedChanges?(a(),l("span",QY,"Unsaved changes"+d(e.draftSaved?" \xB7 Draft saved in this tab":""),1)):(a(),l("span",ZY,d(e.message?"Defaults saved":"No unsaved changes"),1))]),e.draftRestored||e.unsavedChanges?(a(),l("button",{key:0,type:"button",class:"draft-discard",onClick:t[0]||(t[0]=r=>e.discardDraft())},"Discard changes")):f("v-if",!0),n("button",{id:"save",type:"submit",class:R(["btn btn-ink",{"is-saving":e.saving}]),disabled:e.saving||!(e.unsavedChanges||e.draftRestored)},d(e.saving?"Saving\u2026":"Save defaults"),11,xY),e.error?(a(),l("div",eJ,d(e.error),1)):f("v-if",!0)])],32)),[[o,e.viewState]])],512),[[Z,e.settingsTab==="defaults"]]),T(n("section",{id:"settings-billing","aria-busy":e.billingLoading||e.billingBusy},[t[95]||(t[95]=n("p",{class:"settings-scope"},"Your plan and usage. Reviewer access is always free.",-1)),e.billingLoading?(a(),l("p",nJ,"Loading billing\u2026")):f("v-if",!0),e.billingError?(a(),l("div",oJ,[h(d(e.billingError)+" ",1),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[3]||(t[3]=r=>e.loadBilling()),disabled:e.billingBusy},"Try again",8,sJ)])):f("v-if",!0),e.billingNotice?(a(),l("p",iJ,d(e.billingNotice),1)):f("v-if",!0),e.billingPending?(a(),l("div",rJ,[t[42]||(t[42]=n("strong",null,"Confirming your payment",-1)),t[43]||(t[43]=n("p",null,"Your allowance will update after confirmation. Please do not pay again.",-1)),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[4]||(t[4]=r=>e.refreshBilling()),disabled:e.billingBusy},"Check payment status",8,aJ)])):f("v-if",!0),n("section",lJ,[n("div",dJ,[n("div",null,[t[44]||(t[44]=n("p",{class:"billing-eyebrow"},"Current plan",-1)),n("h2",uJ,d(e.profileAuthorGrant()?e.profileGrantName(e.profileAuthorGrant()):e.billing?.enabled?"Free":"Account allowance"),1),e.profileAuthorGrant()?(a(),l("p",cJ,[h(d(e.profileAuthorGrant().cancelAtPeriodEnd?"Renewal cancelled \xB7 access until ":"Renews ")+d(e.billingDate(e.profileAuthorGrant().until)),1),e.profileAuthorPurchase()?.amount!=null?(a(),l(V,{key:0},[h(" \xB7 "+d(e.billingPrice(e.profileAuthorPurchase())),1)],64)):f("v-if",!0)])):e.billing?.allowance?(a(),l("p",pJ,d(e.billing.allowance.repositories)+" repositories \xB7 "+d(e.billingBytes(e.billing.allowance.storage))+" \xB7 links up to "+d(e.billing.freeExpirationMonths||5)+" months",1)):f("v-if",!0)]),e.profileAuthorGrant()&&e.billing?.portal?(a(),l("div",fJ,[n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[5]||(t[5]=r=>e.billingPortal()),disabled:e.billingBusy},d(e.profileAuthorGrant().cancelAtPeriodEnd?"Resume renewal":"Change or cancel plan"),9,mJ)])):f("v-if",!0)]),n("div",hJ,[e.quota?(a(),Wt(s,{key:0,quota:e.quota,fmt:e.fmt},null,8,["quota","fmt"])):(a(),l("p",gJ,"Loading usage\u2026"))]),e.quota?.repository&&!e.quota.repository.unlimited&&e.quota.repository.used>=e.quota.repository.total?(a(),l("p",vJ,[h("Your free repositories are used up. Add the next one for "+d(e.profileSlotPlan()?e.billingPrice(e.profileSlotPlan()):"a one-time payment")+" when you create it, or ",1),t[45]||(t[45]=n("a",{href:"/dashboard"},"remove work you no longer need",-1)),t[46]||(t[46]=h(".",-1))])):f("v-if",!0),e.profileAuthorGrant()?.status==="past_due"?(a(),l("p",yJ,"A subscription payment is overdue. Update your payment details in Manage billing and invoices.")):f("v-if",!0),e.profilePastSubscription()?(a(),l("p",bJ,[...t[47]||(t[47]=[h("Your previous subscription has ended. Never-expiring repositories stay online for a 90-day grace period. ",-1),n("a",{href:"/dashboard"},"Review expiration dates",-1),h(".",-1)])])):f("v-if",!0),t[48]||(t[48]=n("p",{class:"billing-footnote"},"Co-authored, paid and conference repositories aren't counted here.",-1))]),e.billing?.enabled&&!e.profileAuthorGrant()&&(e.profilePackPlan()||e.profileAuthorPlans().length)?(a(),l("section",wJ,[t[85]||(t[85]=n("h2",{class:"billing-section-title",id:"settings-plan-comparison",tabindex:"-1"},"Get more",-1)),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?f("v-if",!0):(a(),l("div",kJ,[e.profilePackPlan()?(a(),l("article",CJ,[t[54]||(t[54]=n("span",{class:"billing-offer-pill"},"Recommended",-1)),t[55]||(t[55]=n("div",{class:"billing-offer-head"},[n("p",{class:"billing-eyebrow"},"For one paper")],-1)),t[56]||(t[56]=n("h3",null,"Paper pack",-1)),n("p",SJ,[n("strong",null,d(e.billingAmount(e.profilePackPlan())),1),t[49]||(t[49]=h(" once",-1))]),n("ul",EJ,[t[50]||(t[50]=n("li",null,"One more repository, outside your free ones",-1)),n("li",null,"Its own "+d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" of storage",1),t[51]||(t[51]=n("li",null,"Automatic updates for 180 days",-1)),t[52]||(t[52]=n("li",null,"Online for up to a year",-1)),t[53]||(t[53]=n("li",null,"No subscription",-1))]),n("button",{type:"button",class:"btn btn-ink",onClick:t[6]||(t[6]=r=>e.openProfileAddon("repo_pack")),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy a Paper pack",8,NJ)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("article",RJ,[n("div",TJ,[t[57]||(t[57]=n("p",{class:"billing-eyebrow"},"For many papers",-1)),n("div",DJ,[(a(!0),l(V,null,Q(e.profileAuthorPlansByValue(),r=>(a(),l("button",{type:"button",role:"radio",key:r.id,"aria-checked":e.profileSelectedPlan()?.id===r.id?"true":"false",class:R({"is-on":e.profileSelectedPlan()?.id===r.id}),onClick:u=>e.profilePlan=r.id},[h(d(r.interval==="year"?"Yearly":"Monthly"),1),r.interval==="year"&&e.profileAnnualSavings()?(a(),l("span",AJ,"\u2212"+d(e.profileAnnualSavings())+"%",1)):f("v-if",!0)],10,PJ))),128))])]),t[62]||(t[62]=n("h3",null,"Author subscription",-1)),n("p",IJ,[n("strong",null,d(e.billingAmount(e.profileSelectedPlan())),1),h(" per "+d(e.profileSelectedPlan()?.interval==="year"?"year":"month"),1)]),n("ul",OJ,[n("li",null,d(e.profileSelectedPlan()?.repositories)+" repositories, "+d(e.billingBytes(e.profileSelectedPlan()?.storage)),1),t[58]||(t[58]=n("li",null,"Automatic updates",-1)),t[59]||(t[59]=n("li",null,"Links that never expire",-1)),t[60]||(t[60]=n("li",null,"Coauthors included",-1)),t[61]||(t[61]=n("li",null,"Cancel renewal anytime",-1))]),n("button",{type:"button",class:"btn btn-outline-ink",disabled:e.billingBusy||e.billing.checkoutEnabled===!1,onClick:t[7]||(t[7]=r=>e.checkout(e.profileSelectedPlan().id))},d(e.billingBusy?"Please wait\u2026":"Subscribe"),9,MJ)])):f("v-if",!0)])),e.profileSingleAddons().length&&!(e.showRepositoryPass&&e.profileAddon()&&!e.billingPending)?(a(),l("div",VJ,[t[63]||(t[63]=n("div",{class:"billing-addons-head"},[n("h3",{class:"billing-subtitle"},"Or pay for one thing"),n("span",null,"One-time")],-1)),n("ul",LJ,[(a(!0),l(V,null,Q(e.profileSingleAddons(),r=>(a(),l("li",{key:r.id},[n("div",null,[n("strong",null,d(r.name),1),n("span",null,d(e.profileAddonBlurb(r.id)),1)]),n("span",qJ,d(e.billingAmount(r)),1),n("button",{type:"button",class:"settings-text-button",onClick:u=>e.openProfileAddon(r.id),disabled:e.billingPending||e.billing.checkoutEnabled===!1},"Buy",8,$J)]))),128))])])):f("v-if",!0),e.showRepositoryPass&&e.profileAddon()&&!e.billingPending?(a(),l("div",_J,[n("div",FJ,[n("button",{type:"button",class:"btn btn-outline-ink billing-back",onClick:t[8]||(t[8]=r=>e.showRepositoryPass=!1)},"\u2190 All options"),n("h3",null,d(e.profileAddon().name),1),n("p",UJ,[n("strong",null,d(e.billingAmount(e.profileAddon())),1),t[64]||(t[64]=h(" once",-1))]),n("ul",BJ,[(a(!0),l(V,null,Q(e.profileAddonFeatures(e.profileAddon().id),r=>(a(),l("li",{key:r},d(r),1))),128))])]),n("div",zJ,[e.profileRepositories().length?(a(),l(V,{key:0},[t[66]||(t[66]=n("label",{class:"paper-field-label",for:"billing-repository"},"Which repository?",-1)),T(n("select",{id:"billing-repository",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=r=>e.billingRepository=r)},[t[65]||(t[65]=n("option",{value:"",disabled:""},"Choose a repository",-1)),(a(!0),l(V,null,Q(e.profileRepositories(),r=>(a(),l("option",{key:r.repoId,value:r.repoId},d(r.repoId)+" \xB7 "+d(e.profileRepositoryExpiry(r)),9,HJ))),128))],512),[[Rt,e.billingRepository]]),n("button",{type:"button",class:"btn btn-ink",disabled:e.billingBusy||!e.billingRepository||e.billing.checkoutEnabled===!1,onClick:t[10]||(t[10]=r=>e.checkout(e.profileAddon().id,e.billingRepository))},d(e.billingBusy?"Please wait\u2026":"Continue to checkout"),9,jJ),t[67]||(t[67]=n("p",{class:"billing-footnote"},"One-time payment. Tax shown at checkout.",-1))],64)):(a(),l("p",GJ,[...t[68]||(t[68]=[h("You have no repositories yet. ",-1),n("a",{href:"/anonymize"},"Create one",-1),h(" first.",-1)])])),["repo_slot","repo_pack"].includes(e.profileAddon().id)?(a(),l("p",WJ,[...t[69]||(t[69]=[h("Adding a new repository? ",-1),n("a",{href:"/anonymize"},"Start creating it",-1),h("; the form offers this once your free repositories are in use.",-1)])])):f("v-if",!0)])])):f("v-if",!0),n("details",KJ,[t[84]||(t[84]=n("summary",null,"Compare all features",-1)),n("div",YJ,[n("table",JJ,[t[83]||(t[83]=n("caption",{class:"sr-only"},"Free, Paper pack and Author hosting",-1)),n("thead",null,[n("tr",null,[t[72]||(t[72]=n("th",{scope:"col"},[n("span",{class:"sr-only"},"Feature")],-1)),t[73]||(t[73]=n("th",{scope:"col"},[h("Free"),n("small",null,"\u20AC0")],-1)),e.profilePackPlan()?(a(),l("th",XJ,[t[70]||(t[70]=h("Paper pack",-1)),n("small",null,d(e.billingPrice(e.profilePackPlan())),1)])):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("th",QJ,[t[71]||(t[71]=h("Author",-1)),n("small",null,d(e.billingPrice(e.profileSelectedPlan())),1)])):f("v-if",!0)])]),n("tbody",null,[n("tr",null,[t[74]||(t[74]=n("th",{scope:"row"},"Repositories",-1)),n("td",null,d(e.billing.allowance?.repositories),1),e.profilePackPlan()?(a(),l("td",ZJ,"+1")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",xJ,d(e.profileSelectedPlan()?.repositories),1)):f("v-if",!0)]),n("tr",null,[t[75]||(t[75]=n("th",{scope:"row"},"Source storage",-1)),n("td",null,d(e.billingBytes(e.billing.allowance?.storage))+" total",1),e.profilePackPlan()?(a(),l("td",eX,d(e.billingBytes(e.profileSlotPlan()?.storage||e.profilePassPlan()?.storage))+" for it",1)):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",tX,d(e.billingBytes(e.profileSelectedPlan()?.storage))+" total",1)):f("v-if",!0)]),n("tr",null,[t[76]||(t[76]=n("th",{scope:"row"},"Latest expiration",-1)),n("td",null,d(e.billing.freeExpirationMonths||5)+" months ahead",1),e.profilePackPlan()?(a(),l("td",nX,"1 year after purchase")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",oX,"Never")):f("v-if",!0)]),n("tr",null,[t[77]||(t[77]=n("th",{scope:"row"},"Automatic updates",-1)),t[78]||(t[78]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",sX,"180 days")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",iX,"Yes")):f("v-if",!0)]),n("tr",null,[t[79]||(t[79]=n("th",{scope:"row"},"Renews",-1)),t[80]||(t[80]=n("td",null,"No",-1)),e.profilePackPlan()?(a(),l("td",rX,"No")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",aX,"Until cancelled")):f("v-if",!0)]),n("tr",null,[t[81]||(t[81]=n("th",{scope:"row"},"Reviewer access",-1)),t[82]||(t[82]=n("td",null,"Free",-1)),e.profilePackPlan()?(a(),l("td",lX,"Free")):f("v-if",!0),e.profileAuthorPlans().length?(a(),l("td",dX,"Free")):f("v-if",!0)])])])])]),e.billing.checkoutEnabled===!1?(a(),l("p",uX,"New purchases are not available right now. Existing billing can still be managed below.")):f("v-if",!0)])):f("v-if",!0),e.billing?.enabled?(a(),l("section",cX,[n("div",pX,[t[86]||(t[86]=n("h2",{class:"billing-section-title"},"Purchases",-1)),e.billingPending?f("v-if",!0):(a(),l("button",{key:0,type:"button",class:"settings-text-button",onClick:t[11]||(t[11]=r=>e.refreshBilling()),disabled:e.billingBusy},"Refresh payment status",8,fX))]),(e.billing.purchases||[]).length?f("v-if",!0):(a(),l("p",mX,"No purchases yet.")),(e.billing.purchases||[]).length?(a(),l("div",hX,[...t[87]||(t[87]=[n("span",null,"Purchase",-1),n("span",null,"Period",-1),n("span",null,"Amount",-1),n("span",null,"Status",-1)])])):f("v-if",!0),(e.billing.purchases||[]).length?(a(),l("ul",gX,[(a(!0),l(V,null,Q(e.profilePurchases(!0).concat(e.profilePurchases(!1)),r=>(a(),l("li",{class:R(["billing-history-row",{"is-ended":!["active","overdue"].includes(r.status)}]),key:r.id},[n("div",vX,[n("strong",null,[h(d(e.profileGrantName(r)),1),r.repoId?(a(),l(V,{key:0},[t[88]||(t[88]=h(" \xB7 ",-1)),n("a",{href:"/anonymize/"+encodeURIComponent(r.repoId)},d(r.repoId),9,yX)],64)):r.conference?(a(),l(V,{key:1},[t[89]||(t[89]=h(" \xB7 ",-1)),n("a",{href:"/conference/"+encodeURIComponent(r.conference)},d(r.conference),9,bX)],64)):f("v-if",!0)]),n("span",null,d([r.purchasedAt?"Bought "+e.billingDate(r.purchasedAt):"",r.parts.length?e.profilePackSummary(r):["refunded","disputed"].includes(r.status)?"Payment "+r.status+", so what it paid for has ended":r.recurring?"Account subscription":""].filter(Boolean).join(" \xB7 ")),1)]),n("div",wX,d(e.profilePurchaseTerm(r)),1),n("div",kX,d(r.amount!=null?e.billingPrice(r):""),1),n("div",CX,[n("span",{class:R(["settings-status","is-"+r.status])},d(e.profilePurchaseStatus(r)),3)])],2))),128))])):f("v-if",!0),n("div",SX,[n("div",null,[t[90]||(t[90]=n("strong",null,"Invoices and payment details",-1)),e.billing.portal?(a(),l("p",EX,"Download receipts, update your card or change renewal in Stripe.")):(a(),l("p",NX,"Invoices appear here after your first purchase.")),t[91]||(t[91]=n("p",null,[h("Need a refund? "),n("a",{href:"mailto:tdurieux@anonymous.4open.science"},"Email the maintainer"),h(" with the payment date, or read the "),n("a",{href:"/faq#faq-plans"},"refund policy"),h(".")],-1))]),e.billing.portal?(a(),l("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[12]||(t[12]=r=>e.billingPortal()),disabled:e.billingBusy},"Manage billing and invoices",8,RX)):f("v-if",!0)])])):f("v-if",!0),n("p",TX,[t[92]||(t[92]=h("Organizing a conference? ",-1)),e.profileConferencePlan()?(a(),l(V,{key:0},[h("Review packages start at "+d(e.billingAmount(e.profileConferencePlan()))+" once for up to "+d(e.profileConferencePlan().repositories)+" submissions, and authors pay nothing.",1)],64)):(a(),l(V,{key:1},[h("One payment hosts every submission, and authors pay nothing.")],64)),t[93]||(t[93]=h()),t[94]||(t[94]=n("a",{href:"/conference/new"},"Create a conference",-1))])],8,tJ),[[Z,e.settingsTab==="billing"]]),T(n("section",DX,[t[105]||(t[105]=n("p",{class:"settings-scope"},"Your identity, repository access, and account.",-1)),n("div",PX,[e.user?.photo?(a(),l("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,AX)):f("v-if",!0),n("div",IX,[n("div",OX,"@"+d(e.user?.username),1),t[96]||(t[96]=n("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[97]||(t[97]=n("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),n("form",{class:"paper-account-email",onSubmit:t[16]||(t[16]=ae(r=>e.saveAccountEmail(),["prevent"]))},[t[98]||(t[98]=n("label",{class:"paper-field-label",for:"account-email"},"Email address",-1)),t[99]||(t[99]=n("p",{id:"account-email-help",class:"paper-section-copy"},"Used for account alerts. Your address is never shown on anonymous pages.",-1)),T(n("input",{id:"account-email",class:"form-control",type:"email",autocomplete:"email",maxlength:"254",required:"","onUpdate:modelValue":t[13]||(t[13]=r=>e.accountEmail=r),"aria-describedby":"account-email-help",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady,onInput:t[14]||(t[14]=r=>e.emailSaved=!1)},null,40,MX),[[nt,e.accountEmail]]),e.emailLoading?(a(),l("p",VX,"Loading your email address\u2026")):f("v-if",!0),e.emailError?(a(),l("p",LX,d(e.emailError),1)):f("v-if",!0),!e.emailCSRFReady&&!e.emailLoading?(a(),l("button",{key:2,class:"btn btn-outline-ink mt-2",type:"button",onClick:t[15]||(t[15]=r=>e.loadAccountEmail())},"Try again")):f("v-if",!0),n("button",{class:"btn btn-ink mt-2",type:"submit",disabled:e.emailLoading||e.emailSaving||!e.emailCSRFReady},d(e.emailSaving?"Saving\u2026":"Save email address"),9,qX),e.emailSaved?(a(),l("p",$X,"Email address saved.")):f("v-if",!0)],32),t[106]||(t[106]=n("a",{class:"paper-settings-connection-link",href:"/connections"},[n("i",{class:"fab fa-github","aria-hidden":"true"}),n("span",null,[h("GitHub connections"),n("small",null,"Manage repository access and legacy OAuth.")]),n("span",{"aria-hidden":"true"},"\u2192")],-1)),n("div",_X,[t[103]||(t[103]=n("div",{class:"paper-danger-head"},"Delete account",-1)),t[104]||(t[104]=n("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(a(),l("div",FX,[t[100]||(t[100]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1)),t[101]||(t[101]=h()),n("span",{textContent:d(e.deleteError)},null,8,UX)])):f("v-if",!0),n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[17]||(t[17]=r=>e.confirmDeleteAccount=!0),disabled:e.deletingAccount},[t[102]||(t[102]=n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-trash"})],-1)),h(d(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,BX),e.confirmDeleteAccount?(a(),l("div",zX,[n("label",HX,"Type "+d(e.user?.username)+" to confirm",1),T(n("input",{id:"delete-username",class:"form-control","onUpdate:modelValue":t[18]||(t[18]=r=>e.deleteUsername=r),autocomplete:"off"},null,512),[[nt,e.deleteUsername]]),n("div",jX,[n("button",{type:"button",class:"btn btn-outline-danger",onClick:t[19]||(t[19]=r=>e.deleteAccount()),disabled:e.deletingAccount||e.deleteUsername!==e.user?.username},d(e.deletingAccount?"Deleting\u2026":"Delete permanently"),9,GX),n("button",{type:"button",class:"btn btn-outline-ink",onClick:t[20]||(t[20]=r=>{e.confirmDeleteAccount=!1,e.deleteUsername=""}),disabled:e.deletingAccount},"Cancel",8,WX)])])):f("v-if",!0)])],512),[[Z,e.settingsTab==="account"]])])}var KX={class:"pr-page"},YX={class:"container paper-page pr-page-inner"},JX={class:"pr-header"},XX={class:"pr-title-row"},QX={class:"paper-page-title pr-title"},ZX=["textContent"],xX={key:1,class:"text-muted"},eQ=["href"],tQ={class:"pr-header-meta"},nQ={key:0,class:"pr-meta-item"},oQ=["textContent"],sQ={key:1,class:"pr-meta-item"},iQ=["textContent"],rQ={key:2,class:"pr-meta-item"},aQ=["textContent"],lQ={key:0,class:"pr-body-card"},dQ={key:1,class:"paper-tabs",role:"tablist"},uQ=["aria-selected","tabindex"],cQ=["aria-selected","tabindex"],pQ=["textContent"],fQ={class:"paper-tab-content"},mQ={key:0,role:"tabpanel",id:"pr-diff-panel","aria-labelledby":"pr-diff-tab"},hQ=["innerHTML"],gQ={key:1,role:"tabpanel",id:"pr-comments-panel","aria-labelledby":"pr-comments-tab"},vQ={class:"pr-comments"},yQ={class:"pr-comment"},bQ={class:"pr-comment-head"},wQ={key:0,class:"pr-comment-author"},kQ=["textContent"],CQ=["textContent"],SQ={key:0,class:"pr-comment-body"},EQ={key:0,class:"paper-table-empty"};function Ep(e,t){let s=Qe("markdown");return a(),l("div",KX,[n("div",YX,[t[17]||(t[17]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"Reviewer"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Pull request")],-1)),n("header",JX,[n("div",XX,[n("h1",QX,[e.details?.title?(a(),l("span",{key:0,textContent:d(e.details?.title)},null,8,ZX)):f("v-if",!0),e.details?.title?f("v-if",!0):(a(),l("span",xX,"Untitled pull request"))]),e.options?.isAdmin||e.options?.isOwner?(a(),l("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[4]||(t[4]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),n("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,eQ)):f("v-if",!0)]),n("div",tQ,[n("span",{class:R(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[n("span",{class:R(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),h(" "+d(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(a(),l("span",nQ,[t[5]||(t[5]=n("i",{class:"fab fa-github"},null,-1)),t[6]||(t[6]=h()),n("span",{textContent:d(e.details?.baseRepositoryFullName)},null,8,oQ)])):f("v-if",!0),e.details?.updatedDate?(a(),l("span",sQ,[t[7]||(t[7]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-clock"})],-1)),t[8]||(t[8]=h()),n("span",{textContent:d(e.fmt?.date(e.details?.updatedDate))},null,8,iQ)])):f("v-if",!0),e.details?.anonymizeDate?(a(),l("span",rQ,[t[9]||(t[9]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-shield"})],-1)),t[10]||(t[10]=h(" Anonymized ",-1)),n("span",{textContent:d(e.fmt?.date(e.details?.anonymizeDate))},null,8,aQ)])):f("v-if",!0)])]),e.details?.body?(a(),l("section",lQ,[t[11]||(t[11]=n("div",{class:"paper-section-eyebrow"},"Description",-1)),Oe(s,{content:e.details?.body},null,8,["content"])])):f("v-if",!0),e.details?.diff||e.details?.comments?(a(),l("nav",dQ,[e.details?.diff?(a(),l("button",{key:0,class:R(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",id:"pr-diff-tab","aria-selected":e.tabState?.active==="diff","aria-controls":"pr-diff-panel",tabindex:e.tabState?.active==="diff"?0:-1,onKeydown:t[0]||(t[0]=i=>e.previewTabKeydown(i)),onClick:t[1]||(t[1]=i=>e.tabState.active="diff")},[...t[12]||(t[12]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-code"})],-1),h(" Diff ",-1)])],42,uQ)):f("v-if",!0),e.details?.comments?(a(),l("button",{key:1,class:R(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",id:"pr-comments-tab","aria-selected":e.tabState?.active==="comments","aria-controls":"pr-comments-panel",tabindex:e.tabState?.active==="comments"?0:-1,onKeydown:t[2]||(t[2]=i=>e.previewTabKeydown(i)),onClick:t[3]||(t[3]=i=>e.tabState.active="comments")},[t[13]||(t[13]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1)),n("span",{textContent:d(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,pQ)],42,cQ)):f("v-if",!0)])):f("v-if",!0),n("div",fQ,[e.details?.diff&&e.tabState?.active=="diff"?(a(),l("div",mQ,[n("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,hQ)])):f("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(a(),l("div",gQ,[n("ul",vQ,[(a(!0),l(V,null,Q(e.details?.comments,(i,o)=>(a(),l("li",yQ,[n("div",bQ,[i?.author?(a(),l("span",wQ,[t[14]||(t[14]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-user"})],-1)),t[15]||(t[15]=h(" @",-1)),n("span",{textContent:d(i?.author)},null,8,kQ)])):f("v-if",!0),i?.updatedDate?(a(),l("span",{key:1,class:"pr-comment-date",textContent:d(e.fmt?.date(i?.updatedDate))},null,8,CQ)):f("v-if",!0)]),i?.body?(a(),l("div",SQ,[Oe(s,{content:i?.body},null,8,["content"])])):f("v-if",!0)]))),256)),e.details?.comments?.length?f("v-if",!0):(a(),l("li",EQ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-comment"})],-1),n("span",null,"No comments on this pull request.",-1)])]))])])):f("v-if",!0)])])])}var NQ={class:"repository-task status-page"},RQ={class:"page-head-main"},TQ={class:"task-lede"},DQ={class:"task-columns"},PQ={class:"task-preparation","aria-label":"Repository preparation"},AQ={key:0,class:"text-danger",role:"alert"},IQ={key:1,class:"paper-section-copy"},OQ={key:2,class:"paper-ratelimit-card",role:"status"},MQ={class:"paper-error-msg"},VQ=["aria-valuenow"],LQ={class:"paper-progress-label"},qQ=["textContent"],$Q={key:0},_Q=["textContent"],FQ={class:"paper-progress-pct"},UQ={key:4,class:"paper-error-card",role:"alert"},BQ={key:0,class:"paper-error-msg"},zQ={key:1,class:"paper-error-msg"},HQ={key:2},jQ=["href"],GQ={class:"paper-error-actions"},WQ=["href"],KQ={key:5,class:"share-link"},YQ={class:"share-link-row"},JQ={class:"share-link-buttons"},XQ={class:"ui-icon","aria-hidden":"true"},QQ=["href"],ZQ=["textContent"],xQ=["href"],eZ={class:"share-link-note"},tZ=["href"],nZ={class:"share-link-next"},oZ={class:"share-link-next-actions"},sZ=["href"],iZ={class:"task-summary","aria-label":"Repository summary"},rZ=["title"],aZ={key:1};function Np(e,t){return a(),l("div",NQ,[n("header",{class:R(["page-head",{"task-ready":e.repo?.status==="ready"}])},[t[3]||(t[3]=n("div",{class:"paper-crumbs"},[n("a",{href:"/dashboard"},"My work"),h(" \xA0/\xA0 "),n("span",{class:"here"},"Review link")],-1)),n("div",RQ,[n("div",null,[n("h1",null,d(e.repo?.status==="ready"?"Your review link is ready":"Prepare your anonymous review link"),1),n("p",TQ,d(e.repo?.status==="ready"?"Share this link with reviewers in your submission.":"Your settings are saved. Track preparation before sharing the link."),1)])]),t[4]||(t[4]=n("ol",{class:"task-trail flow-trail","aria-label":"Repository progress"},[n("li",null,"1. Repository"),n("li",null,"2. Review and hosting"),n("li",{"aria-current":"step"},"3. Review link")],-1))],2),n("div",DQ,[n("section",PQ,[e.error?(a(),l("p",AQ,[t[5]||(t[5]=h("Unable to load repository status. ",-1)),n("button",{type:"button",class:"task-text-button",onClick:t[0]||(t[0]=s=>e.getStatus())},"Try again")])):f("v-if",!0),e.repo?.status!=="ready"?(a(),l("p",IQ,[...t[6]||(t[6]=[h(" The repository will take a few minutes to get ready, depending on its size. Visit the ",-1),n("a",{href:"/faq"},"FAQ",-1),h(" for more information. ",-1)])])):f("v-if",!0),e.rateLimitResetAt?(a(),l("div",OQ,[t[9]||(t[9]=Se('
Temporarily paused
GitHub API rate limit reached
',1)),n("p",MQ,[t[7]||(t[7]=h("Anonymization will resume automatically in ",-1)),n("strong",null,d(e.rateLimitCountdown),1),t[8]||(t[8]=h(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):f("v-if",!0),e.repo?.status!=="ready"&&e.repo?.status!="error"&&!e.rateLimitResetAt?(a(),l("div",{key:3,class:R(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[n("div",{class:"paper-progress-bar",style:Ae("width: "+e.progress+"%;")},null,4),n("div",LQ,[n("span",{textContent:d(e.fmt?.title(e.repo?.status))},null,8,qQ),e.repo?.statusMessage?(a(),l("span",$Q,[t[10]||(t[10]=h("\xA0\xB7\xA0",-1)),n("span",{textContent:d(e.repo?.statusMessage)},null,8,_Q)])):f("v-if",!0),n("span",FQ,d(e.progress||0)+"%",1)])],10,VQ)):f("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(a(),l("div",UQ,[t[14]||(t[14]=Se('
Anonymization failed
Something went wrong while preparing this repository.
',1)),e.repo?.statusMessage?(a(),l("p",BQ,d(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):f("v-if",!0),e.repo?.statusMessage?f("v-if",!0):(a(),l("p",zQ,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),e.repo?.statusMessage==="quota_exceeded"?(a(),l("p",HQ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Review this repository\u2019s hosting",8,jQ),t[11]||(t[11]=h(", then retry preparation.",-1))])):f("v-if",!0),t[15]||(t[15]=n("ul",{class:"paper-error-hints"},[n("li",null,"Make sure the source URL points to a repository or pull request you can access."),n("li",null,"Check that the chosen branch and commit still exist on GitHub."),n("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),n("div",GQ,[n("a",{class:"btn btn-primary",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[12]||(t[12]=[n("svg",{class:"ui-icon mr-1","aria-hidden":"true"},[n("use",{href:"#ui-icon-edit"})],-1),h(" Edit anonymization",-1)])],8,WQ),t[13]||(t[13]=Se(' Read the FAQ Report a bug in Anonymous GitHub',2))])])):f("v-if",!0),e.repo?.status=="ready"?(a(),l("div",KQ,[t[24]||(t[24]=n("div",{class:"share-link-label",id:"share-url-label"},"Review link",-1)),n("div",YQ,[n("code",{id:"share-url",class:"share-link-url",tabindex:"0",role:"textbox","aria-readonly":"true","aria-labelledby":"share-url-label",onFocus:t[1]||(t[1]=s=>e.selectShareUrl(s))},d(e.shareUrl),33),n("div",JQ,[n("button",{type:"button",class:"btn btn-primary share-copy",onClick:t[2]||(t[2]=s=>e.copyShareUrl())},[(a(),l("svg",XQ,[n("use",{href:e.copied?"#ui-icon-check":"#project-icon-copy"},null,8,QQ)])),n("span",{"aria-live":"polite",textContent:d(e.copied?"Copied":"Copy link")},null,8,ZQ)]),n("a",{class:"btn share-open",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-eye"})],-1),h(" Open repository ",-1)])],8,xQ)])]),n("p",eZ,[h(d(e.repo?.options?.expirationMode!=="never"&&e.repo?.options?.expirationDate?"Expires "+e.fmt.date(e.repo.options.expirationDate):"Never expires"),1),t[18]||(t[18]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),t[19]||(t[19]=h("Reviewers don\u2019t need an account",-1)),e.repo?.options?.page?(a(),l(V,{key:0},[t[17]||(t[17]=n("span",{"aria-hidden":"true"}," \xB7 ",-1)),n("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"Open GitHub page",8,tZ)],64)):f("v-if",!0)]),n("div",nZ,[t[22]||(t[22]=n("h2",null,"Need to change something?",-1)),t[23]||(t[23]=n("p",null,"Edit the redacted terms or the expiry at any time. The link stays the same.",-1)),n("p",oZ,[n("a",{href:e.safeUrl("/anonymize/"+e.repoId)},"Edit anonymization",8,sZ),t[20]||(t[20]=n("span",{"aria-hidden":"true"},"\xB7",-1)),t[21]||(t[21]=n("a",{href:"/dashboard"},"Go to My work",-1))])])])):f("v-if",!0)]),n("aside",iZ,[n("dl",null,[t[28]||(t[28]=n("dt",null,"Source",-1)),e.repo?.source?.fullName?(a(),l("dd",{key:0,class:"task-source",title:"https://github.com/"+e.repo.source.fullName},[t[25]||(t[25]=h("github.com/",-1)),t[26]||(t[26]=n("wbr",null,null,-1)),h(d(e.repo.source.fullName.split("/")[0])+"/",1),t[27]||(t[27]=n("wbr",null,null,-1)),h(d(e.repo.source.fullName.split("/").slice(1).join("/")),1)],8,rZ)):(a(),l("dd",aZ,"Loading\u2026")),t[29]||(t[29]=n("dt",null,"Lifetime",-1)),n("dd",null,d(e.repo?.options?.expirationMode==="never"?"Never expire while subscribed":e.repo?.options?.expirationDate?"Until "+e.fmt.date(e.repo.options.expirationDate):"Loading\u2026"),1),t[30]||(t[30]=n("dt",null,"Review access",-1)),t[31]||(t[31]=n("dd",null,"Anonymous and free",-1))])])])])}var lZ={class:"container paper-page admin-page overview-page billing-page"},dZ={class:"bl-toolbar"},uZ={class:"seg-filter",role:"radiogroup","aria-label":"Period"},cZ=["aria-checked","onClick"],pZ={key:0,class:"bl-basis"},fZ={key:0,class:"ov-performance-message ov-performance-warning bl-message",role:"alert"},mZ={key:1,class:"ov-performance-message bl-message",role:"status"},hZ={key:2,class:"ov-performance-message ov-performance-warning bl-message",role:"status"},gZ=["aria-busy"],vZ={class:"ov-kpi-card"},yZ={class:"ov-kpi-value"},bZ={class:"ov-kpi-sub"},wZ={class:"ov-kpi-card"},kZ={key:0,class:"ov-kpi-sub"},CZ={key:1,class:"ov-kpi-sub"},SZ={class:"ov-kpi-card"},EZ={class:"ov-kpi-label"},NZ={class:"ov-kpi-value"},RZ={class:"ov-kpi-sub"},TZ={class:"ov-kpi-card"},DZ={class:"ov-kpi-value"},PZ={class:"ov-kpi-sub"},AZ={class:"ov-kpi-card"},IZ={class:"ov-kpi-value"},OZ={class:"ov-kpi-sub"},MZ={class:"ov-kpi-card"},VZ={class:"ov-kpi-sub"},LZ={key:3,class:"bl-health","aria-label":"Webhook health"},qZ={class:"bl-health-title"},$Z={class:"bl-health-item"},_Z=["title"],FZ={key:1,class:"bl-health-item"},UZ={key:4,class:"ov-chart-card bl-chart-card"},BZ={class:"ov-chart-head"},zZ={class:"ov-chart-title"},HZ={key:0,class:"ov-chart-legends"},jZ=["aria-label"],GZ={class:"ov-yaxis","aria-hidden":"true"},WZ=["data-tip"],KZ={class:"ov-spark-x bl-x"},YZ={key:1,class:"ov-performance-empty bl-empty",role:"status"},JZ={key:5,class:"ov-panel-card bl-plans","aria-labelledby":"bl-plans-heading"},XZ={class:"ov-panel-head"},QZ={class:"ov-panel-meta"},ZZ={class:"ov-metrics-scroll",tabindex:"0",role:"region","aria-label":"Sales by plan, scroll for more columns"},xZ={class:"ov-metrics-table"},ex={key:0,scope:"colgroup",colspan:"2",class:"bl-group"},tx={scope:"row",class:"bl-plan-name"},nx=["title","onClick"],ox={class:"num"},sx={class:"num"},ix={class:"num"},rx={class:"num"},ax={class:"num"},lx={class:"num"},dx={class:"num"},ux={class:"num"},cx={class:"num"},px={class:"num"},fx={class:"bl-grants",id:"bl-grants","aria-labelledby":"bl-grants-heading"},mx={class:"seg-bar"},hx={class:"seg-filter",role:"radiogroup","aria-label":"Filter by state"},gx=["aria-checked"],vx={class:"count"},yx=["aria-checked"],bx={class:"count"},wx=["aria-checked"],kx={class:"count"},Cx=["aria-checked"],Sx={class:"count"},Ex={class:"seg-countline",role:"status"},Nx={key:0,class:"alert alert-danger bl-alert"},Rx=["aria-expanded"],Tx={class:"search-wrap"},Dx={type:"search",class:"form-control","aria-label":"Search by user",placeholder:"Search by user\u2026",autocomplete:"off"},Px={class:"admin-filter-inline"},Ax={id:"bl-plan",class:"form-control form-control-sm"},Ix=["label"],Ox=["value"],Mx={class:"admin-filter-inline"},Vx={id:"bl-status",class:"form-control form-control-sm"},Lx=["value"],qx={key:0,class:"admin-filter-inline","aria-label":"Pagination"},$x=["disabled"],_x={class:"bl-page"},Fx=["disabled"],Ux={key:0,class:"admin-filter-row"},Bx={class:"admin-active-chips"},zx={class:"key"},Hx=["onClick"],jx={key:1,class:"ov-metrics-scroll bl-grant-scroll",tabindex:"0",role:"region","aria-label":"Subscriptions and purchases, scroll for more columns"},Gx={class:"ov-metrics-table bl-grant-table"},Wx={scope:"col"},Kx={scope:"col"},Yx={scope:"row",class:"bl-user"},Jx=["title","href"],Xx={key:1,class:"ov-muted"},Qx={class:"bl-plan-cell"},Zx={key:0},xx={class:"bl-state"},eee={key:0},tee={key:3},nee={key:0,class:"bl-flag"},oee={key:1,class:"ov-muted"},see={class:"bl-flag is-bad"},iee={key:0},ree={key:1,class:"ov-muted"},aee={class:"bl-scope"},lee=["href"],dee={class:"ui-icon","aria-hidden":"true"},uee=["href"],cee={key:1,class:"ov-muted"},pee={key:2,class:"paper-table-empty"},fee={key:3,class:"admin-empty"},mee={key:4,class:"admin-toolbar bl-pager"},hee={key:0,class:"pagination-compact"},gee=["disabled"],vee=["max"],yee=["disabled"],bee={class:"admin-filter-inline"},wee={id:"bl-limit",class:"form-control form-control-sm"};function Rp(e,t){let s=De("field"),i=De("form");return a(),l("div",lZ,[t[79]||(t[79]=Se('
Admin \xA0/\xA0 Billing

Billing

',2)),n("div",dZ,[n("div",uZ,[(a(!0),l(V,null,Q(e.periods,o=>(a(),l("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.period===o.id}]),key:o.id,"aria-checked":e.period===o.id,onClick:r=>e.setPeriod(o.id)},d(o.label),11,cZ))),128))]),e.summary?(a(),l("p",pZ,"Sales are new checkouts and subscriptions. Revenue uses Stripe list prices; renewals count toward MRR.")):f("v-if",!0)]),e.summaryError?(a(),l("div",fZ,[t[15]||(t[15]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,d(e.summaryError),1),n("button",{type:"button",class:"btn btn-sm",onClick:t[0]||(t[0]=o=>e.loadSummary())},"Retry")])):f("v-if",!0),e.summary&&!e.summary.revenue?.available?(a(),l("div",mZ,[...t[16]||(t[16]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-info"})],-1),n("span",null,[n("b",null,"Revenue unavailable."),h(" Stripe is not configured on this server, so amounts can't be looked up. Counts are complete.")],-1)])])):f("v-if",!0),e.summary?.revenue?.missingSales||e.summary?.revenue?.missingAllTimeSales||e.summary?.revenue?.missingSubscriptions?(a(),l("div",hZ,[t[17]||(t[17]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),n("span",null,"Some Stripe prices are unavailable. Affected totals are marked incomplete: "+d(e.fmt?.number(e.summary.revenue.missingSales||0))+" period sales, "+d(e.fmt?.number(e.summary.revenue.missingAllTimeSales||0))+" historical sales, "+d(e.fmt?.number(e.summary.revenue.missingSubscriptions||0))+" active subscriptions.",1)])):f("v-if",!0),f(" \u2500\u2500 Summary tiles \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",{class:R(["ov-kpi-row bl-kpi-row",{"is-loading":e.summaryLoading}]),"aria-busy":e.summaryLoading?"true":"false","aria-label":"Billing summary"},[!e.summary&&e.summaryLoading?(a(),l(V,{key:0},Q(6,o=>n("div",{class:"ov-kpi-card",key:o,"aria-hidden":"true"},[...t[18]||(t[18]=[n("span",{class:"skeleton skeleton-line-sm",style:{width:"60%"}},null,-1),n("span",{class:"skeleton bl-skeleton-value"},null,-1),n("span",{class:"skeleton skeleton-line-sm",style:{width:"80%"}},null,-1)])])),64)):f("v-if",!0),e.summary?(a(),l(V,{key:1},[n("div",vZ,[t[19]||(t[19]=n("div",{class:"ov-kpi-label"},"Active subscriptions",-1)),n("div",yZ,d(e.fmt?.number(e.summary.subscriptions.active)),1),n("div",bZ,d(e.fmt?.number(e.summary.subscriptions.monthly))+" monthly \xB7 "+d(e.fmt?.number(e.summary.subscriptions.annual))+" annual",1)]),n("div",wZ,[t[20]||(t[20]=n("div",{class:"ov-kpi-label"},"MRR",-1)),n("div",{class:R(["ov-kpi-value",{"bl-muted-value":!e.revenueOn()}])},d(e.revenueOn()?e.summary.subscriptions.complete===!1?"Incomplete":e.money(e.summary.subscriptions.mrr)[0]||e.fmt?.money(0):"Unavailable"),3),e.revenueOn()&&e.money(e.summary.subscriptions.mrr).length>1?(a(),l("div",kZ,"+ "+d(e.money(e.summary.subscriptions.mrr).slice(1).join(" \xB7 ")),1)):(a(),l("div",CZ,d(e.revenueOn()?"Annual plans \xF7 12":"Needs Stripe prices"),1))]),n("div",SZ,[n("div",EZ,"Sales \xB7 "+d(e.periodPhrase()),1),n("div",NZ,d(e.fmt?.number(e.summary.sales.count)),1),n("div",RZ,d(e.revenueOn()?e.summary.sales.complete===!1?"Revenue incomplete":e.moneyText(e.summary.sales.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",TZ,[t[21]||(t[21]=n("div",{class:"ov-kpi-label"},"All-time sales",-1)),n("div",DZ,d(e.fmt?.number(e.summary.allTime.count)),1),n("div",PZ,d(e.revenueOn()?e.summary.allTime.complete===!1?"Revenue incomplete":e.moneyText(e.summary.allTime.revenue,e.fmt?.money(0)):"Revenue unavailable"),1)]),n("div",AZ,[t[22]||(t[22]=n("div",{class:"ov-kpi-label"},"Cancelling",-1)),n("div",IZ,d(e.fmt?.number(e.summary.subscriptions.cancelling)),1),n("div",OZ,"at period end, of "+d(e.fmt?.number(e.summary.subscriptions.active))+" active",1)]),n("div",MZ,[t[23]||(t[23]=n("div",{class:"ov-kpi-label"},"Refunds & disputes",-1)),n("div",{class:R(["ov-kpi-value",{"ov-val-warn":e.summary.reversals.disputes>0}])},d(e.fmt?.number(e.summary.reversals.refunds+e.summary.reversals.disputes)),3),n("div",VZ,d(e.fmt?.number(e.summary.reversals.refunds))+" "+d(e.summary.reversals.refunds===1?"refund":"refunds")+" \xB7 "+d(e.fmt?.number(e.summary.reversals.disputes))+" "+d(e.summary.reversals.disputes===1?"dispute":"disputes"),1)])],64)):f("v-if",!0)],10,gZ),f(" \u2500\u2500 Webhook health \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?.webhooks?(a(),l("section",LZ,[n("span",qZ,[n("span",{class:R(["ov-svc-dot",{"ov-dot-ok":e.webhookState()==="ok","ov-dot-warn":e.webhookState()==="warn","bl-dot-bad":e.webhookState()==="bad"}]),"aria-hidden":"true"},null,2),t[24]||(t[24]=h("Stripe webhooks",-1))]),n("span",$Z,[t[25]||(t[25]=n("span",{class:"k"},"Pending",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.pending)),1),e.summary.webhooks.pending?(a(),l(V,{key:0},[h(" \xB7 oldest "+d(e.age(e.summary.webhooks.oldestPendingSeconds)),1)],64)):f("v-if",!0)]),n("span",{class:R(["bl-health-item",{"is-bad":e.summary.webhooks.failed}])},[t[26]||(t[26]=n("span",{class:"k"},"Failed",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.failed)),1)],2),e.summary.webhooks.lastError?(a(),l("span",{key:0,class:"bl-health-item bl-health-error",title:e.summary.webhooks.lastError.type+": "+e.summary.webhooks.lastError.error},[t[27]||(t[27]=n("span",{class:"k"},"Last error",-1)),t[28]||(t[28]=h()),n("code",null,d(e.summary.webhooks.lastError.error),1),h(" on "+d(e.summary.webhooks.lastError.type)+" \xB7 "+d(e.fmt?.humanTime(e.summary.webhooks.lastError.receivedAt)),1)],8,_Z)):(a(),l("span",FZ,[...t[29]||(t[29]=[n("span",{class:"k"},"Last error",-1),h(" none",-1)])])),n("span",{class:R(["bl-health-item",{"is-warn":e.summary.webhooks.unreviewedRevocations}])},[t[30]||(t[30]=n("span",{class:"k"},"Unreviewed reversals",-1)),h(" "+d(e.fmt?.number(e.summary.webhooks.unreviewedRevocations)),1)],2)])):f("v-if",!0),f(" \u2500\u2500 Sales over time \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",UZ,[n("div",BZ,[n("span",zZ,"Sales per "+d(e.bucketName())+" \xB7 "+d(e.periodPhrase()),1),e.seriesSales()?(a(),l("span",HZ,[(a(!0),l(V,null,Q(e.families,o=>(a(),l("span",{class:"ov-chart-legend",key:o.id},[n("span",{class:R(["bl-swatch","bl-"+o.id]),"aria-hidden":"true"},null,2),h(d(o.label)+" \xB7 "+d(e.fmt?.number(e.familyTotal(o.id))),1)]))),128))])):f("v-if",!0)]),e.seriesSales()?(a(),l(V,{key:0},[n("div",{class:R(["ov-spark-bars ov-has-axis bl-bars",{"is-dense":e.summary.series.length>45}]),role:"img","aria-label":e.fmt?.number(e.seriesSales())+" sales, "+e.periodPhrase()+", by plan family"},[n("div",GZ,[n("span",null,d(e.fmt?.number(e.chartMax())),1),n("span",null,d(e.fmt?.number(e.chartMax()/2)),1),t[31]||(t[31]=n("span",null,"0",-1))]),(a(!0),l(V,null,Q(e.summary.series,(o,r)=>(a(),l("div",{class:R(["ov-spark-col has-tip bl-col",{"is-zero":!e.bucketTotal(o)}]),key:r,"data-tip":e.bucketTip(o)},[n("span",{class:"bl-stack",style:Ae({height:e.bucketTotal(o)/e.chartMax()*100+"%"})},[(a(!0),l(V,null,Q(e.families,u=>T((a(),l("i",{key:u.id,class:R("bl-"+u.id),style:Ae({flexGrow:o[u.id]})},null,6)),[[Z,o[u.id]]])),128))],4)],10,WZ))),128))],10,jZ),n("div",KZ,[n("span",null,d(e.bucketLabel(e.summary.series[0])),1),n("span",null,d(e.bucketLabel(e.summary.series[Math.floor(e.summary.series.length/2)])),1),n("span",null,d(e.bucketLabel(e.summary.series[e.summary.series.length-1])),1)])],64)):(a(),l("p",YZ,"No sales "+d(e.period==="all"?"yet":"in the "+e.periodPhrase())+".",1))])):f("v-if",!0),f(" \u2500\u2500 By plan \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),e.summary?(a(),l("section",JZ,[n("div",XZ,[t[32]||(t[32]=n("h2",{class:"ov-panel-title",id:"bl-plans-heading"},"By plan",-1)),n("span",QZ,d(e.fmt?.number(e.plansWithActivity().length))+" of "+d(e.fmt?.number(e.summary.plans.length))+" plans sold",1)]),n("div",ZZ,[n("table",xZ,[t[41]||(t[41]=n("caption",{class:"sr-only"},"Active grants, sales and revenue per plan",-1)),n("thead",null,[n("tr",null,[t[33]||(t[33]=n("th",{scope:"col",rowspan:"2"},"Plan",-1)),t[34]||(t[34]=n("th",{scope:"col",rowspan:"2",class:"num"},"Active",-1)),e.period!=="all"?(a(),l("th",ex,d(e.periodPhrase().replace(/^./,o=>o.toUpperCase())),1)):f("v-if",!0),t[35]||(t[35]=n("th",{scope:"colgroup",colspan:"2",class:"bl-group"},"All time",-1))]),n("tr",null,[e.period!=="all"?(a(),l(V,{key:0},[t[36]||(t[36]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[37]||(t[37]=n("th",{scope:"col",class:"num"},"Revenue",-1))],64)):f("v-if",!0),t[38]||(t[38]=n("th",{scope:"col",class:"num"},"Sales",-1)),t[39]||(t[39]=n("th",{scope:"col",class:"num"},"Revenue",-1))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.summary.plans,o=>(a(),l("tr",{key:o.planId,class:R({"bl-idle":!o.active&&!o.sales&&!o.allTimeSales})},[n("th",tx,[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),n("button",{type:"button",class:"bl-link",title:"Show "+o.name+" grants",onClick:r=>e.filterPlan(o.planId)},d(o.name),9,nx)]),n("td",ox,d(e.fmt?.number(o.active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",sx,d(e.fmt?.number(o.sales)),1),n("td",ix,d(e.revenueOn()?o.revenueComplete===!1?"Incomplete":e.moneyText(o.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",rx,d(e.fmt?.number(o.allTimeSales)),1),n("td",ax,d(e.revenueOn()?o.allTimeRevenueComplete===!1?"Incomplete":e.moneyText(o.allTimeRevenue):"\u2014"),1)],2))),128))]),n("tfoot",null,[n("tr",null,[t[40]||(t[40]=n("th",{scope:"row"},"Total",-1)),n("td",lx,d(e.fmt?.number(e.planTotals().active)),1),e.period!=="all"?(a(),l(V,{key:0},[n("td",dx,d(e.fmt?.number(e.planTotals().sales)),1),n("td",ux,d(e.revenueOn()?e.summary.sales.complete===!1?"Incomplete":e.moneyText(e.summary.sales.revenue):"\u2014"),1)],64)):f("v-if",!0),n("td",cx,d(e.fmt?.number(e.planTotals().allTimeSales)),1),n("td",px,d(e.revenueOn()?e.summary.allTime.complete===!1?"Incomplete":e.moneyText(e.summary.allTime.revenue):"\u2014"),1)])])])]),t[42]||(t[42]=n("p",{class:"ov-performance-note bl-note"},"A paper pack counts once, under Paper pack. Active means paid time remains and the payment wasn't reversed.",-1))])):f("v-if",!0),f(" \u2500\u2500 Subscriptions and purchases \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),n("section",fx,[t[78]||(t[78]=n("div",{class:"bl-section-head"},[n("h2",{class:"ov-panel-title",id:"bl-grants-heading"},"Subscriptions and purchases")],-1)),n("div",mx,[n("div",hx,[n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="all"}]),"aria-checked":e.stateView()==="all",onClick:t[1]||(t[1]=o=>e.setStateView("all"))},[t[43]||(t[43]=h("All ",-1)),n("span",vx,d(e.fmt?.number(e.stateCount("all"))),1)],10,gx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="active","is-empty":!e.stateCount("active")}]),"aria-checked":e.stateView()==="active",onClick:t[2]||(t[2]=o=>e.setStateView("active"))},[t[44]||(t[44]=n("span",{class:"seg-dot ok","aria-hidden":"true"},null,-1)),t[45]||(t[45]=h("Active ",-1)),n("span",bx,d(e.fmt?.number(e.stateCount("active"))),1)],10,yx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="expired","is-empty":!e.stateCount("expired")}]),"aria-checked":e.stateView()==="expired",onClick:t[3]||(t[3]=o=>e.setStateView("expired"))},[t[46]||(t[46]=n("span",{class:"seg-dot off","aria-hidden":"true"},null,-1)),t[47]||(t[47]=h("Expired ",-1)),n("span",kx,d(e.fmt?.number(e.stateCount("expired"))),1)],10,wx),n("button",{type:"button",role:"radio",class:R(["seg-chip",{active:e.stateView()==="revoked","is-empty":!e.stateCount("revoked")}]),"aria-checked":e.stateView()==="revoked",onClick:t[4]||(t[4]=o=>e.setStateView("revoked"))},[t[48]||(t[48]=n("span",{class:"seg-dot bad","aria-hidden":"true"},null,-1)),t[49]||(t[49]=h("Revoked ",-1)),n("span",Sx,d(e.fmt?.number(e.stateCount("revoked"))),1)],10,Cx)]),n("p",Ex,[n("strong",null,d(e.total>=0?e.fmt.number(e.total):"\u2026"),1),t[50]||(t[50]=h(" shown",-1))])]),e.grantsError?(a(),l("div",Nx,[t[51]||(t[51]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-warning"})],-1)),h(" "+d(e.grantsError)+" ",1),n("button",{type:"button",class:"btn btn-sm",onClick:t[5]||(t[5]=o=>e.reloadGrants())},"Retry")])):f("v-if",!0),T((a(),l("form",{class:"w-100 admin-filter-toolbar","aria-label":"Subscriptions and purchases","accept-charset":"UTF-8",onSubmit:t[9]||(t[9]=ae(()=>{},["prevent"]))},[n("button",{type:"button",class:"btn btn-sm admin-filters-toggle",onClick:t[6]||(t[6]=o=>e.filtersOpen=!e.filtersOpen),"aria-expanded":e.filtersOpen?"true":"false"},[t[52]||(t[52]=h("Filters",-1)),e.query.plan||e.query.status?(a(),l(V,{key:0},[h(" ("+d((e.query.plan?1:0)+(e.query.status?1:0))+")",1)],64)):f("v-if",!0)],8,Rx),n("div",{class:R(["admin-filter-row",{"is-open":e.filtersOpen}])},[n("div",Tx,[T(n("input",Dx,null,512),[[s,{state:e.viewState,set:o=>{e.query.search=o},value:e.query?.search,form:null,options:{}}]])]),n("span",Px,[t[54]||(t[54]=n("label",{for:"bl-plan"},"Plan",-1)),T((a(),l("select",Ax,[t[53]||(t[53]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,Q(e.families,o=>(a(),l("optgroup",{key:o.id,label:o.label},[(a(!0),l(V,null,Q((e.summary?.plans||[]).filter(r=>r.family===o.id),r=>(a(),l("option",{key:r.planId,value:r.planId},d(r.name),9,Ox))),128))],8,Ix))),128))])),[[s,{state:e.viewState,set:o=>{e.query.plan=o},value:e.query?.plan,form:null,options:{}}]])]),n("span",Mx,[t[56]||(t[56]=n("label",{for:"bl-status"},"Stripe status",-1)),T((a(),l("select",Vx,[t[55]||(t[55]=n("option",{value:""},"Any",-1)),(a(!0),l(V,null,Q(e.statuses,o=>(a(),l("option",{key:o,value:o},d(o.replace(/_/g," ")),9,Lx))),128))])),[[s,{state:e.viewState,set:o=>{e.query.status=o},value:e.query?.status,form:null,options:{}}]])]),t[59]||(t[59]=n("span",{class:"admin-filter-spacer"},null,-1)),e.totalPage>1?(a(),l("span",qx,[n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[7]||(t[7]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1,"aria-label":"Previous page"},[...t[57]||(t[57]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1)])],8,$x),n("span",_x,d(e.query?.page)+"/"+d(e.totalPage||1),1),n("button",{class:"btn btn-sm btn-icon",type:"button",onClick:t[8]||(t[8]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage,"aria-label":"Next page"},[...t[58]||(t[58]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,Fx)])):f("v-if",!0)],2),e.chips?.length?(a(),l("div",Ux,[n("div",Bx,[(a(!0),l(V,null,Q(e.chips,o=>(a(),l("span",{class:"admin-active-chip",key:o?.key},[n("span",zx,d(o?.label),1),n("span",null,d(o?.value),1),n("button",{type:"button",onClick:r=>e.clearFilter(o.key),"aria-label":"Clear filter"},[...t[60]||(t[60]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-close"})],-1)])],8,Hx)]))),128))])])):f("v-if",!0)],32)),[[i,e.viewState]]),e.grants?.length?(a(),l("div",jx,[n("table",Gx,[t[71]||(t[71]=n("caption",{class:"sr-only"},"Subscriptions and purchases",-1)),n("thead",null,[n("tr",null,[t[65]||(t[65]=n("th",{scope:"col"},"User",-1)),t[66]||(t[66]=n("th",{scope:"col"},"Plan",-1)),t[67]||(t[67]=n("th",{scope:"col"},"Status",-1)),n("th",Wx,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="purchasedAt"}]),onClick:t[10]||(t[10]=o=>e.sortBy("purchasedAt"))},[t[62]||(t[62]=h("Started ",-1)),e.sortIcon("purchasedAt")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("purchasedAt")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[61]||(t[61]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),n("th",Kx,[n("button",{type:"button",class:R(["sortable",{active:e.query?.sort=="until"}]),onClick:t[11]||(t[11]=o=>e.sortBy("until"))},[t[64]||(t[64]=h("Renews / ends ",-1)),e.sortIcon("until")?(a(),l("svg",{key:0,class:R(["ui-icon sort-direction",{ascending:e.sortIcon("until")==="fa-arrow-up"}]),"aria-hidden":"true"},[...t[63]||(t[63]=[n("use",{href:"#project-icon-arrow"},null,-1)])],2)):f("v-if",!0)],2)]),t[68]||(t[68]=n("th",{scope:"col"},"Cancelling",-1)),t[69]||(t[69]=n("th",{scope:"col"},"Revoked",-1)),t[70]||(t[70]=n("th",{scope:"col"},"Applies to",-1))])]),n("tbody",null,[(a(!0),l(V,null,Q(e.grants,o=>(a(),l("tr",{key:o.id},[n("th",Yx,[o.user?(a(),l("a",{key:0,title:o.user,href:e.safeUrl("/admin/users/"+o.user)},d(o.user),9,Jx)):(a(),l("span",Xx,"Deleted user"))]),n("td",null,[n("span",Qx,[n("span",{class:R(["bl-swatch","bl-"+o.family]),"aria-hidden":"true"},null,2),h(d(e.planName(o.planId)),1)]),o.pack?(a(),l("small",Zx,"Part of a paper pack")):f("v-if",!0)]),n("td",null,[n("span",xx,[n("span",{class:R(["status-dot",o.state==="active"?"st-ready":o.state==="revoked"?"st-error":"st-expired"])},null,2),h(d(o.state==="active"?"Active":o.state==="revoked"?"Revoked":"Expired"),1)]),["active","paid"].includes(o.status)?f("v-if",!0):(a(),l("small",eee,"Stripe: "+d(e.statusText(o)),1))]),n("td",null,d(o.purchasedAt?e.fmt?.date(o.purchasedAt):"\u2014"),1),n("td",null,[o.never?(a(),l(V,{key:0},[h("Never ends")],64)):o.until?(a(),l(V,{key:1},[h(d(e.fmt?.date(o.until)),1)],64)):(a(),l(V,{key:2},[h("\u2014")],64)),o.subscription&&o.state==="active"?(a(),l("small",tee,d(o.cancelAtPeriodEnd?"Ends":"Renews"),1)):f("v-if",!0)]),n("td",null,[o.cancelAtPeriodEnd?(a(),l("span",nee,"Cancelling")):(a(),l("span",oee,"\u2014"))]),n("td",null,[o.revoked?(a(),l(V,{key:0},[n("span",see,d(e.revocationText(o.revocationReason)),1),o.revokedAt?(a(),l("small",iee,d(e.fmt?.date(o.revokedAt)),1)):f("v-if",!0)],64)):(a(),l("span",ree,"\u2014"))]),n("td",aee,[e.scopeHref(o.scope)?(a(),l("a",{key:0,href:e.safeUrl(e.scopeHref(o.scope))},[(a(),l("svg",dee,[n("use",{href:o.scope.kind==="conference"?"#project-icon-conference":"#project-type-repo"},null,8,uee)])),n("span",null,d(o.scope.id),1)],8,lee)):(a(),l("span",cee,"Account"))])]))),128))])])])):f("v-if",!0),e.total===0?(a(),l("div",pee,[t[72]||(t[72]=n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#project-icon-inbox"})],-1)),n("span",null,d(e.hasFilters()?"No subscriptions or purchases match these filters.":"No subscriptions or purchases yet."),1),e.hasFilters()?(a(),l("button",{key:0,type:"button",class:"btn btn-sm",onClick:t[12]||(t[12]=o=>e.clearFilters())},"Clear filters")):f("v-if",!0)])):f("v-if",!0),e.total<0&&!e.grantsError?(a(),l("div",fee,"Loading subscriptions and purchases\u2026")):f("v-if",!0),e.total>0?(a(),l("div",mee,[t[77]||(t[77]=n("span",{"aria-hidden":"true"},null,-1)),e.totalPage>1?(a(),l("div",hee,[n("button",{class:"btn btn-sm",onClick:t[13]||(t[13]=o=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[73]||(t[73]=[n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-left"})],-1),h(" Previous",-1)])],8,gee),T(n("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,vee),[[s,{state:e.viewState,set:o=>{e.query.page=o},value:e.query?.page,form:null,options:{}}]]),n("span",null,"of "+d(e.totalPage),1),n("button",{class:"btn btn-sm",onClick:t[14]||(t[14]=o=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[74]||(t[74]=[h("Next ",-1),n("svg",{class:"ui-icon","aria-hidden":"true"},[n("use",{href:"#ui-icon-chevron-right"})],-1)])],8,yee)])):f("v-if",!0),n("span",bee,[t[76]||(t[76]=n("label",{for:"bl-limit"},"Per page",-1)),T((a(),l("select",wee,[...t[75]||(t[75]=[n("option",{value:"10"},"10",-1),n("option",{value:"25"},"25",-1),n("option",{value:"50"},"50",-1),n("option",{value:"100"},"100",-1)])])),[[s,{state:e.viewState,set:o=>{e.query.limit=o},value:e.query?.limit,form:null,options:{}}]])])])):f("v-if",!0)])])}var kee={class:"paper-footer"},Cee={class:"paper-footer-inner"},See={class:"paper-footer-col"},Eee={key:0,href:"/dashboard"},Nee={key:1,href:"/conferences"},Ree={class:"paper-footer-foot"};function Tp(e,t){return a(),l("footer",kee,[n("div",Cee,[t[3]||(t[3]=n("div",{class:"paper-footer-brand"},[n("div",{class:"paper-footer-mark"},[h("Anonymous "),n("em",null,"GitHub")]),n("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-anonymous peer review. ")],-1)),n("div",See,[t[0]||(t[0]=n("div",{class:"paper-footer-head"},"Product",-1)),t[1]||(t[1]=n("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(a(),l("a",Eee,"My work")):f("v-if",!0),e.user?(a(),l("a",Nee,"Conferences")):f("v-if",!0),t[2]||(t[2]=n("a",{href:"/faq"},"FAQ",-1))]),t[4]||(t[4]=Se('',2))]),t[6]||(t[6]=n("div",{class:"paper-footer-rule"},null,-1)),n("div",Ree,[n("span",null,"\xA9 "+d(e.year||new Date().getFullYear())+" Anonymous GitHub \xB7 GPL-3.0 licensed",1),t[5]||(t[5]=n("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])}var ur={"partials/reviewConsent.htm":Qc,"partials/connections.htm":Zc,"partials/signin.htm":xc,"partials/404.htm":ep,"partials/admin/billing.htm":Rp,"partials/admin/emails.htm":Xc,"partials/admin/conferences.htm":tp,"partials/admin/errors.htm":np,"partials/admin/overview.htm":op,"partials/admin/queues.htm":sp,"partials/admin/repositories.htm":ip,"partials/admin/user.htm":rp,"partials/admin/users.htm":ap,"partials/anonymize.htm":lp,"partials/anonymizePullRequest.htm":dp,"partials/claim.htm":up,"partials/conference.htm":cp,"partials/conferences.htm":pp,"partials/dashboard.htm":fp,"partials/explorer.htm":mp,"partials/faq.htm":hp,"partials/gist.htm":gp,"partials/header.htm":vp,"partials/home.htm":yp,"partials/loading.htm":bp,"partials/newConference.htm":wp,"partials/pageView.htm":kp,"partials/pr-dashboard.htm":Cp,"partials/profile.htm":Sp,"partials/pullRequest.htm":Ep,"partials/status.htm":Np,"partials/footer.htm":Tp};var Tee={class:"ui-icon-definitions","aria-hidden":"true",focusable:"false"};function Dp(e,t){return a(),l("svg",Tee,[...t[0]||(t[0]=[Se('',1)])])}function Pp(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1,t.sidebarHidden=!1,t.dirExpanded=!1,t.moreOpen=!1,t.tocOpen=!1,t.gotoOpen=!1,t.gotoValue="",t.gotoError="",t.mdFindOpen=!1,t.mdFindQuery="",t.mdFindTotal=0,t.mdFindIndex=0,t.mdFindCase=!1,t.accountOpen=!1,t.helpOpen=!1,t.sidebarWidth=Math.min(520,Math.max(220,Number(localStorage.getItem("sidebarWidth"))||(window.innerWidth>=1280?320:280))),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px"),t.startSidebarResize=o=>{o.preventDefault();let r=o.clientX,u=t.sidebarWidth,p=v=>{t.sidebarWidth=Math.min(520,Math.max(220,u+v.clientX-r)),document.documentElement.style.setProperty("--sidebar-w",t.sidebarWidth+"px")},c=()=>{window.removeEventListener("pointermove",p),window.removeEventListener("pointerup",c),document.body.classList.remove("is-resizing"),localStorage.setItem("sidebarWidth",String(t.sidebarWidth))};document.body.classList.add("is-resizing"),window.addEventListener("pointermove",p),window.addEventListener("pointerup",c)}),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"},t.watchGroup(["options.diff","options.comments"],()=>{t.options[t.prTabState.active]||(t.prTabState.active=t.options.diff?"diff":t.options.comments?"comments":null)})),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let i={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(i){let o=Nt(()=>t.fmt.orderBy(t.fmt.filter(i[1](),t[i[2]]),t.orderBy));Object.defineProperty(t,i[0],{configurable:!0,get:()=>o.value})}}function Ap(e=(...t)=>fetch(...t)){async function t(i,o,r,u={}){let p=new URL(o,window.location.href);for(let[g,y]of Object.entries(u.params||{}))if(y!=null)for(let m of Array.isArray(y)?y:[y])p.searchParams.append(g,typeof m=="object"?JSON.stringify(m):m);let c=new AbortController,v;u.timeout?.then?u.timeout.then(()=>c.abort()):u.timeout&&(v=setTimeout(()=>c.abort(),u.timeout));try{let g={Accept:"application/json, text/plain, */*",...u.headers},y=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);y&&p.origin===window.location.origin&&(g["X-XSRF-TOKEN"]=decodeURIComponent(y[1]));let m;r!==void 0&&(r instanceof FormData?m=r:(g["Content-Type"]||(g["Content-Type"]="application/json;charset=utf-8"),m=JSON.stringify(r)));let b=await e(p.href,{method:i,headers:g,body:m,credentials:"same-origin",signal:c.signal}),E;if(u.onDownloadProgress&&b.ok&&b.body?.getReader&&typeof TextDecoder<"u"){let w=b.body.getReader(),D=new TextDecoder,O=[],F=0;try{for(;;){let{value:j,done:oe}=await w.read();if(oe)break;O.push(D.decode(j,{stream:!0})),F+=j.byteLength,u.onDownloadProgress(F)}O.push(D.decode()),E=O.join("")}finally{w.releaseLock()}}else E=await b.text();let S=E;if(u.transformResponse)S=u.transformResponse(E);else if(E&&(/json/i.test(b.headers.get("content-type")||"")||/^[\[{]/.test(E.trim())))try{S=JSON.parse(E)}catch{}let N={data:S,status:b.status,headers:w=>b.headers.get(w)};if(!b.ok)throw N;return N}catch(g){throw g.name==="AbortError"?{status:-1,data:null}:g}finally{clearTimeout(v)}}let s={};for(let i of["get","delete","head"])s[i]=(o,r)=>t(i.toUpperCase(),o,void 0,r);for(let i of["post","put","patch"])s[i]=(o,r,u)=>t(i.toUpperCase(),o,r,u);return s}var Ip={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((i,o)=>{e=i,t=o}),resolve:e,reject:t}}};var Op=function(e){function t(s){return s=s||{used:0,total:0},s.unlimited=!s.total,s.percent=s.unlimited?0:Math.min(100,s.used*100/s.total),s.level=s.unlimited?"unlimited":s.percent>=95?"danger":s.percent>=80?"warn":"ok",s}return{decorate:t,load:function(){return e.get("/api/user/quota").then(s=>{let i=s.data||{};return i.storage=t(i.storage),i.file=t(i.file),i.repository=t(i.repository),i})}}};var Mp={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=St(null);return mn(()=>{let i=[t.value][0];i.classList.add("html-doc");function o(){i.innerHTML="";let r=e.content;if(typeof r!="string")return;let u=document.createElement("iframe");u.className="html-doc-frame",u.setAttribute("title","Rendered HTML document");let p=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&p.push("allow-scripts","allow-forms","allow-modals"),u.setAttribute("sandbox",p.join(" ")),u.setAttribute("referrerpolicy","no-referrer"),i.appendChild(u);let c="";e.baseUrl&&(c=''),u.srcdoc=c+r}ut(()=>e.content,o,{immediate:!0}),ut(()=>e.baseUrl,o,{immediate:!0}),ut(()=>e.allowScripts,o,{immediate:!0})}),()=>Pe("html-doc",{ref:t})}};var Vp={name:"pdfviewer",props:["src"],setup(e){let t=St(null);return mn(()=>{let s=[t.value],i=400,o=[.5,.75,1,1.25,1.5,2,3],r=1e3,u=s[0];u.classList.add("pdf-viewer");let p=null,c=[],v=!1,g=null,y=1,m=0,b=1,E=0,S=0,N=612/792,w=0,D=null,O=new Map,F=0;function j(A){let U=O.get(A);U&&(U.cancelled=!0,U.task?.cancel?.(),O.delete(A));let x=A.querySelector("canvas");x&&(x.width=0,x.height=0),A.innerHTML="",delete A.dataset.state}let oe=document.createElement("div");oe.className="pdf-toolbar";let _=document.createElement("div");_.className="pdf-pages",_.tabIndex=0,_.setAttribute("aria-label","PDF pages"),u.appendChild(oe),u.appendChild(_);function B(A,U,x){let K=document.createElement("button");return K.type="button",K.className="pdf-toolbar-btn",K.title=U,K.setAttribute("aria-label",U),K.innerHTML='',K.addEventListener("click",x),K}let I=B("fa-chevron-up","Previous page",function(){Ue(b-1)}),L=B("fa-chevron-down","Next page",function(){Ue(b+1)}),k=document.createElement("input");k.type="text",k.className="pdf-toolbar-page",k.setAttribute("aria-label","Page number"),k.title="Page number \u2014 type a page and press Enter",k.addEventListener("keydown",function(A){A.key==="Enter"&&(Ue(parseInt(k.value,10)),k.blur())}),k.addEventListener("blur",function(){k.value=String(b)});let q=document.createElement("span");q.className="pdf-toolbar-count";let W=B("fa-search-minus","Zoom out",function(){ye(o[Math.max(0,ue()-1)])}),H=B("fa-search-plus","Zoom in",function(){ye(o[Math.min(o.length-1,ue()+1)])}),J=document.createElement("button");J.type="button",J.className="pdf-toolbar-btn pdf-toolbar-zoom",J.title="Reset zoom to fit the width",J.setAttribute("aria-label","Reset zoom to fit the width"),J.addEventListener("click",function(){ye(1)}),oe.appendChild(I),oe.appendChild(L);let ne=document.createElement("span");ne.className="pdf-toolbar-group",ne.appendChild(k),ne.appendChild(q),oe.appendChild(ne);let G=document.createElement("span");G.className="pdf-toolbar-group pdf-toolbar-right",G.appendChild(W),G.appendChild(J),G.appendChild(H),oe.appendChild(G);function ue(){let A=0;for(let U=0;U=A,J.textContent=y===1||!m?"Fit":Math.round(Re()/(m*96/72)*100)+"%",W.disabled=ue()===0,H.disabled=ue()===o.length-1}function Me(A){let U=c[A-1];U&&(_.scrollTop+=U.getBoundingClientRect().top-_.getBoundingClientRect().top)}function Ue(A){if(!p||isNaN(A))return;let U=Math.min(Math.max(1,A),p.numPages);c[U-1]&&(Me(U),b=U,E=U,S=Date.now()+800,he(),X())}function We(){if(!c.length||Date.now(){}),D=null),g&&(clearTimeout(g),g=null),p&&(p.destroy(),p=null),c=[],b=1,_.innerHTML="",he()}function tt(){_.innerHTML="";let A=document.createElement("div");A.className="pdf-viewer-error",A.textContent="This PDF could not be displayed.",_.appendChild(A)}function Re(){let A=Math.max(120,_.clientWidth-24);return Math.round(Math.min(A,r)*y)}function Be(A,U,x){let K=window.devicePixelRatio||1,ee=A.getViewport({scale:1}),le=parseFloat(U.style.width);if(!le)return;let se=A.getViewport({scale:le/ee.width*K}),ie=document.createElement("canvas");return ie.width=Math.floor(se.width),ie.height=Math.floor(se.height),ie.style.width=le+"px",ie.style.height=Math.floor(se.height/K)+"px",U.innerHTML="",U.appendChild(ie),U.style.height=ie.style.height,x.task=A.render({canvasContext:ie.getContext("2d"),viewport:se}),x.task.promise}function X(){if(!p)return;let A=w,U=_.getBoundingClientRect(),x=U.top-i,K=U.top+_.clientHeight+i,ee=c.map((se,ie)=>({slot:se,i:ie,rect:se.getBoundingClientRect()})).filter(se=>se.rect.top<=K&&se.rect.bottom>=x).sort((se,ie)=>Math.abs(se.rect.top-U.top)-Math.abs(ie.rect.top-U.top)).slice(0,6),le=new Set(ee.map(se=>se.slot));for(let se of O.keys())le.has(se)||j(se);for(let{slot:se,i:ie}of ee){if(se.dataset.state||F>=2)continue;let te={cancelled:!1,task:null};O.set(se,te),F++,se.dataset.state="rendering";let Ce;p.getPage(ie+1).then(fe=>{if(Ce=fe,!(te.cancelled||A!==w))return Be(Ce,se,te)}).then(()=>{te.cancelled||A!==w||(se.dataset.state="done",E&&Date.now(){!te.cancelled&&A===w&&(se.dataset.state="failed")}).finally(()=>{F--,Ce?.cleanup?.(),p&&X()})}}function me(){v||(v=!0,window.requestAnimationFrame(function(){v=!1,We(),X()}))}function de(){let A=!1;function U(){A||(A=!0,X())}window.requestAnimationFrame(U),window.setTimeout(U,50)}function pe(){w++,c.forEach(j);let A=Re();c.forEach(function(U){delete U.dataset.state,U.innerHTML="",U.style.width=A+"px",U.style.height=Math.round(A/N)+"px"}),X()}function ye(A){if(!p||!c.length||A===y)return;let U=b;y=A,he(),pe(),Ue(U)}function Ve(){p&&(g&&clearTimeout(g),g=setTimeout(function(){g=null,p&&c.length&&pe()},250))}function P(A){if(ze(),!A)return;let U=w;D=pdfjsLib.getDocument({url:A,isEvalSupported:!1,standardFontDataUrl:"/script/external/pdf-standard-fonts/",cMapUrl:"/script/external/pdf-cmaps/",cMapPacked:!0}),D.promise.then(function(x){if(U!==w){x.destroy();return}return p=x,p.getPage(1).then(function(K){if(U!==w)return;let ee=K.getViewport({scale:1});ee.width&&ee.height&&(N=ee.width/ee.height),m=ee.width||0;let le=Re();for(let se=1;se<=p.numPages;se++){let ie=document.createElement("div");ie.className="pdf-viewer-page",ie.style.width=le+"px",ie.style.height=Math.round(le/N)+"px",_.appendChild(ie),c.push(ie)}he(),de()})}).catch(function(){U===w&&tt()})}_.addEventListener("scroll",me,{passive:!0}),$(window).on("resize",Ve),he(),ut(()=>e.src,P,{immediate:!0}),io(function(){_.removeEventListener("scroll",me),$(window).off("resize",Ve),ze()})}),()=>Pe("pdfviewer",{ref:t})}};var Dee={key:0,class:"quota-row quota-usage"},Pee={class:"quota-header"},Aee={class:"quota-label"},Iee={class:"project-type-svg","aria-hidden":"true"},Oee=["href"],Mee={key:0,class:"quota-percent"},Vee={key:1,class:"quota-unlimited-tag"},Lee={class:"quota-value"},qee={key:0},$ee=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],_ee={key:1,class:"quota-remaining"},Fee={key:2,class:"quota-remaining quota-limit"};function Lp(e,t){return e.quota?(a(),l("div",Dee,[(a(),l(V,null,Q([{key:"repository",label:"Repositories",kind:"count",icon:"project-type-repo"},{key:"storage",label:"Storage",kind:"bytes",icon:"project-icon-storage"},{key:"file",label:"Files",kind:"count",icon:"project-icon-file"}],s=>n("div",{class:R(["quota-item","quota-"+e.quota[s.key].level]),key:s.key},[n("div",Pee,[n("span",Aee,[(a(),l("svg",Iee,[n("use",{href:"#"+s.icon},null,8,Oee)])),h(d(s.label),1)]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",Mee,d(e.quota[s.key].percent>0&&e.quota[s.key].percent<1?"<1":e.fmt.number(e.quota[s.key].percent,0))+"% used",1)),e.quota[s.key].unlimited?(a(),l("span",Vee,"Unlimited")):f("v-if",!0)]),n("div",Lee,[n("strong",null,d(e.formatAmount(e.quota[s.key].used,s.kind)),1),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("span",qee," / "+d(e.formatAmount(e.quota[s.key].total,s.kind)),1))]),e.quota[s.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:R(["quota-track","quota-"+e.quota[s.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":s.label+" quota","aria-valuenow":Math.min(e.quota[s.key].used,e.quota[s.key].total),"aria-valuemax":e.quota[s.key].total,"aria-valuetext":e.fmt.number(e.quota[s.key].percent,0)+"% used"},[e.quota[s?.key].unlimited?f("v-if",!0):(a(),l("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[s.key].percent+"%"})},null,4))],10,$ee)),!e.quota[s.key].unlimited&&e.quota[s.key].used=e.quota[s.key].total?(a(),l("p",Fee,d(e.quota[s.key].used>e.quota[s.key].total?"Limit exceeded":"Limit reached"),1)):f("v-if",!0)],2)),64))])):f("v-if",!0)}var Uee={props:["quota","fmt"],setup(e){return{formatAmount:(t,s)=>s==="bytes"?e.fmt.humanFileSize(e.quota?.storage?.unit==="bytes"?t*8:t).replace(/([a-zA-Z]+)$/," $1"):e.fmt.number(t)}},render:Lp},Bee=new Set(ge),_p=e=>e?.querySelectorAll("pre code.language-diff, pre code.lang-diff").forEach(t=>{if(t.querySelector(".md-diff-line"))return;let s=t.innerHTML.replace(/\n$/,"").split(` `);t.innerHTML=s.map(i=>{let o=i.replace(/^(<[^>]+>)+/,"").charAt(0),r=i.startsWith("@@")?"hunk":o==="+"?"add":o==="-"?"remove":"";return`${i||" "}`}).join(` -`)}),qp=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},_p=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(o=>{o.classList.contains("is-hunk")||o.style.setProperty("--hang",qp(o.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` +`)}),qp=(e,t=0)=>{let s=(String(e).slice(t).match(/^[ \t]*/)[0]||"").replace(/\t/g," ").length;return Math.min(t+s+4,24)},Fp=e=>{e?.closest?.(".reviewer-preview")&&e.querySelectorAll("pre code").forEach(t=>{let s=t.querySelectorAll(".md-diff-line");if(s.length){s.forEach(o=>{o.classList.contains("is-hunk")||o.style.setProperty("--hang",qp(o.textContent,1)+"ch")});return}if(t.querySelector(".code-line"))return;let i=[];t.innerHTML=t.innerHTML.replace(/\n$/,"").split(` `).map(o=>{let r=i.join("");o.replace(/<\/?span\b[^>]*>/g,p=>(p.startsWith("]+>/g,"");return`${r}${o||" "}${"".repeat(i.length)}`}).join(` -`)})},Up={props:["content","terms","options"],setup(e){let t=St(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../"),Fp(t.value),_p(t.value)};return mn(()=>{s(),ut(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>Pe("markdown",{ref:t})}},Pee={props:["file","terms","options"],setup(e){let t=St(null),s=()=>je(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),Fp(t.value),_p(t.value)});return mn(s),ut(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return Pe("gist-file",{ref:t},Pe(Up,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||o||"none").toLowerCase();return Pe("gist-file",{ref:t},Pe("pre",{class:"line-numbers"},Pe("code",{class:"language-"+(r[u]||u),key:i.content},i.content||"")))}}},Aee=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let o=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",o),s.classList.toggle("is-at-end",o&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!o)return;let r=t.clientWidth-16,u=Math.max(24,r*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(r-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),Iee={props:["file","content"],setup(e){let t=St(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await Xn("notebook"),r!==s)return;t.value.innerHTML=qs(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),Aee(t.value)}catch(u){r===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return mn(()=>{o(),ut(()=>[e.file,e.content],o)}),io(()=>{s++,i?.abort()}),()=>Pe("notebook",{ref:t})}},Oee={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return Pe("loc",t.map(([i,o])=>Pe("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Bp={Markdown:Up,GistFile:Pee,Notebook:Iee,Loc:Oee,HtmlDoc:Mp,QuotaUsage:Tee,Pdfviewer:id(async()=>(await Xn("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Vp))},zp={async mounted(e,{value:t}){e._editorValue=t;try{if(await ni(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),$p(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),$p(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function $p(e,t={}){let s=Dee.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Hp={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let r=t.find(u=>s.has(u.hash.slice(1)));r&&t.forEach(u=>u.classList.toggle("active",u===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});je(()=>{t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)}),t[0]&&!t.some(o=>o.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function jp(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,o;for(;o=i.exec(e);)o.index>s&&t.push(e.slice(s,o.index)),t.push(Pe("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+o[1]},[Pe("i",null,o[1])])),s=o.index+o[0].length;return t.length?(s{s.push(r),u=1024&&iLee(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");ut(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let b="";p().split("/").filter(Boolean).forEach(E=>{b+="/"+E,o[b]=!0})},{immediate:!0});let c=Nt(()=>{if(!e.searchQuery||!e.searchResults)return null;let b=new Set,E=new Set;return e.searchResults.forEach(S=>{b.add(S.path?`${S.path}/${S.name}`:S.name);let N="";(S.path||"").split("/").filter(Boolean).forEach(w=>{N=N?N+"/"+w:w,E.add(N)})}),{files:b,folders:E}}),v=()=>[...i.value.querySelectorAll("li > a")],g=b=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!b)return;if(r=b.dataset.path,b.classList.add("tree-focused"),e.selectedPath===void 0){b.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let E=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(E){let S=b.getBoundingClientRect(),N=E.getBoundingClientRect();S.topN.bottom&&(E.scrollTop+=S.bottom-N.bottom)}i.value.focus({preventScroll:!0})};function y(b){let E=v(),S=i.value.querySelector(".tree-focused")||E[0],N=E.indexOf(S);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(b.key)||(b.preventDefault(),b.key==="ArrowDown"&&g(E[(N+1)%E.length]),b.key==="ArrowUp"&&g(E[(N-1+E.length)%E.length]),!S))return;let w=S.closest("li");b.key==="ArrowRight"&&w.classList.contains("folder")&&(w.classList.contains("open")?g(w.querySelector(":scope > ul > li > a")):S.click()),b.key==="ArrowLeft"&&(w.classList.contains("folder")&&w.classList.contains("open")?S.click():g(w.parentElement.closest("li.folder")?.querySelector(":scope > a"))),b.key==="Enter"&&S.click()}function m(b,E=""){let S=[...b].sort((N,w)=>+!!w.children-+!!N.children||N.name.localeCompare(w.name));return Pe("ul",S.flatMap(N=>{let w=N,D=w.name,O=(E+"/"+D).slice(1);if(c.value&&!c.value.files.has(O)&&!c.value.folders.has(O))return[];for(;w.children?.length===1&&w.children[0].children&&e.page?.loadedFolders?.[(E+"/"+D).slice(1)];)w=w.children[0],D+="/"+w.name;let _=E+"/"+D,j=!!w.children,oe=c.value?o[_]!==!1:!!o[_],F=j&&e.page?.options?.truncatedFolders?.includes(_.slice(1)),B=Pe("span",{class:j?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},j?Pe("svg",{viewBox:"0 0 14 12",focusable:"false"},Pe("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),I=!1,L=D,k="",q="";if(D.length>80){let ne=D.length-12;for(let G=D.length-18;G<=D.length-6;G++)if(G>0&&"-_. ".includes(D[G])){ne=G;break}if(I=!/XXXX-\d+/.test(D.slice(Math.max(0,ne-12))),L=D.slice(0,ne).trimEnd(),k=D.slice(ne).trimStart(),I){let G=Math.max(8,30-k.length-1);if(L.length>G&&!/XXXX-\d+/.test(L)){let ue=-1;for(let Me=Math.min(G,L.length);Me>=4;Me--)if(".-_".includes(L[Me])){ue=Me;break}let he=D.slice(0,D.length-k.length);L=(ue>0?L.slice(0,ue):L.slice(0,G)).trimEnd(),q=he.slice(L.length)}}}let W=Pe("span",{class:{"tree-name":!0,"tree-name-split":I,"tree-name-wrap":!I},title:D.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},I?[Pe("span",{class:{"tree-name-head":!0,"is-cut":!!q}},jp(L)),q?Pe("span",{class:"tree-name-middle"},q):null,Pe("span",{class:"tree-name-tail"},k)]:Mee(D)),H=ne=>{if(g(ne.currentTarget),!j){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",_));return}ne.preventDefault(),o[_]=!oe,o[_]&&!w.children.length&&e.page.getFiles(_.slice(1)),je(()=>g(v().find(G=>G.dataset.path===r)))},J=Pe("a",{"data-path":_,"aria-expanded":e.selectedPath!==void 0&&j?String(oe):void 0,"aria-current":e.selectedPath!==void 0&&!j&&p()===_?"page":void 0,href:j?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(_)}`,class:{"tree-focused":r===_},onClick:H},[j?Pe("span",{class:"tree-toggle"}):Pe("span",{class:"tree-spacer"}),B,W,F?Pe("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Pe("i",{class:"fas fa-exclamation-triangle"})):null]);return Pe("li",{key:_,class:{file:!0,folder:j,open:oe,active:p()===_,truncated:F},title:j?"":`Size: ${Vee(w.size||0)}`},[J,j&&oe?w.children.length||!e.page?.loadedFolders?.[_.slice(1)]?m(w.children,_):Pe("ul",Pe("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>Pe("tree",{ref:i,tabindex:0,onKeydown:y},e.file?.length?c.value?.files.size===0?Pe("div",{class:"tree-search-empty"},"No files found"):m(u.value):"Empty repository")}};function Kp(){return st({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Yp(e,t){if(!e[t]){let s=Kp();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var Jp={beforeMount(e,{value:t}){e._formState=Yp(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function qee(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Wp(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?qee(t):t??""),Ja(e)}function Ja(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!o)}var Xp={beforeMount(e,{value:t}){var u;let s=t.form&&Yp(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=Kp()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,c=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(c=e.value===""?null:Number(e.value)),e.type==="date"&&(c=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}p.set(c),Ja(e),p.change?.()}};e._field.commit=o;let r=p=>{let c=e._field.binding.options?.debounce||0,v=typeof c=="number"?c:c[p.type]??c.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:Wp,updated(e,{value:t}){e._field.binding=t,Wp(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function Qp(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&Ja(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var Zp=Symbol("session"),$ee=/^\/(w|api|github)(\/|$)/;function xp(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Kn);return s==null&&e?.startsWith("ERRORS.")&&(s=Kn.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var Fee={...wa,translate:xp};function _ee(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function Uee(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?ol(window):null,o=()=>{let m=i;return i=null,m};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let r=new Map,u=Ap(t.fetch),p,c;function v(){let m=kt(),b={url(S){return S===void 0?c.currentRoute.value.fullPath:(c.push(S),b)},replace(S){return c.replace(S)},path(){return c.currentRoute.value.path},search(){return c.currentRoute.value.query}},E=new Proxy({},{get(S,N){let w=c.currentRoute.value.params[N];return Array.isArray(w)?w.join("/"):w}});return{takeReviewHandoff:o,http:u,...m,location:b,params:E,window,promises:Ip,html:{trustAsHtml:S=>S},translate:(S,N)=>Promise.resolve(xp(S,N)),quotaService:Op(u)}}function g(m){return{name:m.template,setup(){let b=Ls(Mt(Zp),r);m.setup(b,v()),Pp(m.template,b);let E=[];return()=>ur[m.template](b,E)}}}c=Mu({history:t.history||Au(),routes:Jc.map(m=>m.redirect?m:{path:m.path,component:g(m),meta:{title:m.title,preserveExplorer:m.preserveExplorer}})});let y=Qd({setup(){p=Ls(null,r),p.fmt=Fee,p.window=window,p.Math=Math,p.sanitize=S=>DOMPurify.sanitize(S??""),p.highlightRedactions=S=>(p.site_options,Vc(S)),p.submitForm=Qp,p.safeUrl=_ee;let m=v();Lc(p,m.http,m.location,m.timeout),so(Zp,p),ut(()=>p.title,S=>{document.title=S||"Anonymous GitHub"});let b=[],E=S=>{let N=S.target.closest?.("a[href]");if(S.defaultPrevented||S.button!==0||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||!N||N.hasAttribute("download")||N.target&&N.target!=="_self"||N.dataset.toggle||N.getAttribute("href").startsWith("#"))return;let D=new URL(N.href,window.location.href);s||/^\/review-link\/?$/i.test(D.pathname)||D.origin!==window.location.origin||$ee.test(D.pathname)||(S.preventDefault(),c.push(D.pathname+D.search+D.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",E),io(()=>document.removeEventListener("click",E)),()=>[Dp(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:Pe("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},ur["partials/header.htm"](p,b)),Pe("main",{class:"app-view align-items-stretch w-100"},Pe(ma,null,{default:({Component:S,route:N})=>S?Pe(S,{key:N.meta.preserveExplorer?N.matched[0]?.path:N.path}):null})),Pe("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((S,N)=>Pe("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:N},[Pe("div",{class:"toast-header"},[Pe("strong",{class:"mr-auto"},S.title),Pe("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(S)},"\xD7")]),Pe("div",{class:"toast-body"},S.body)])))]}});for(let[m,b]of Object.entries(Bp))y.component(m,b);return y.component("Tree",Gp),y.component("PartialView",{props:["name","state"],setup(m){let b=[];return()=>ur[m.name](m.state,b)}}),y.directive("field",Xp),y.directive("form",Jp),y.directive("code-editor",zp),y.directive("paper-scrollspy",Hp),y.use(c),c.beforeEach(async m=>{if(m.path==="/review-link"&&!s||s&&m.path!=="/review-link")return window.location.assign(m.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await Xn("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await Xn("org")}),c.afterEach(m=>{if(!p)return;p.title=m.meta.title,p.emit("routeChange",{title:m.meta.title}),p.emit("routeUpdate",{title:m.meta.title});let b=document.querySelector(".app-view");!m.meta.preserveExplorer&&b&&(b.scrollTop=0)}),y.mount(e),{app:y,router:c,state:p}}document.querySelector("#app")&&(window.anonymousApp=Uee());})(); +`)})},Up={props:["content","terms","options"],setup(e){let t=St(null),s=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../"),_p(t.value),Fp(t.value)};return mn(()=>{s(),ut(()=>[e.content,e.terms,e.options],s,{deep:!0})}),()=>Pe("markdown",{ref:t})}},zee={props:["file","terms","options"],setup(e){let t=St(null),s=()=>je(()=>{t.value?.querySelectorAll("pre code").forEach(i=>window.Prism?.highlightElement(i)),_p(t.value),Fp(t.value)});return mn(s),ut(()=>[e.file?.content,e.terms,e.options],s,{deep:!0}),()=>{let i=e.file||{},o=(i.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(o)||i.language==="Markdown")return Pe("gist-file",{ref:t},Pe(Up,{content:i.content,terms:e.terms,options:e.options}));let r={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},u=(i.language||o||"none").toLowerCase();return Pe("gist-file",{ref:t},Pe("pre",{class:"line-numbers"},Pe("code",{class:"language-"+(r[u]||u),key:i.content},i.content||"")))}}},Hee=e=>e?.querySelectorAll(".nb-input pre").forEach(t=>{if(t.parentElement?.classList.contains("nb-code-scroll"))return;let s=document.createElement("div");s.className="nb-code-scroll",t.replaceWith(s),s.appendChild(t);let i=()=>{let o=t.scrollWidth-t.clientWidth>1;if(s.classList.toggle("is-overflowing",o),s.classList.toggle("is-at-end",o&&t.scrollLeft+t.clientWidth>=t.scrollWidth-2),!o)return;let r=t.clientWidth-16,u=Math.max(24,r*t.clientWidth/t.scrollWidth);s.style.setProperty("--thumb-w",u+"px"),s.style.setProperty("--thumb-x",(r-u)*t.scrollLeft/(t.scrollWidth-t.clientWidth)+"px")};t.addEventListener("scroll",i,{passive:!0}),window.ResizeObserver?new ResizeObserver(i).observe(t):i(),i()}),jee={props:["file","content"],setup(e){let t=St(null),s=0,i,o=async()=>{let r=++s;i?.abort(),i=new AbortController;try{let u=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:i.signal}).then(p=>{if(!p.ok)throw Error("Notebook request failed");return p.json()});if(await Xn("notebook"),r!==s)return;t.value.innerHTML=qs(DOMPurify.sanitize(nb.parse(u).render())),t.value.querySelectorAll("pre code").forEach(p=>window.Prism?.highlightElement(p)),Hee(t.value)}catch(u){r===s&&u.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return mn(()=>{o(),ut(()=>[e.file,e.content],o)}),io(()=>{s++,i?.abort()}),()=>Pe("notebook",{ref:t})}},Gee={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,i])=>i.code),s=t.reduce((i,[,o])=>i+o.code,0);return Pe("loc",t.map(([i,o])=>Pe("div",{class:"lang",title:`${i}: ${o.code.toLocaleString()} lines`,style:{width:o.code*100/s+"%",background:langColors[i]}})))}}},Bp={Markdown:Up,GistFile:zee,Notebook:jee,Loc:Gee,HtmlDoc:Mp,QuotaUsage:Uee,Pdfviewer:id(async()=>(await Xn("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",Vp))},zp={async mounted(e,{value:t}){e._editorValue=t;try{if(await ni(),e._editorDisposed)return;let s=e._editorValue,i=ace.edit(e);e._editor=i,i.setValue(String(s.content??""),-1),$p(e,s.options),e._editorCleanup=s.options?.onLoad?.(i)}catch(s){e._editorDisposed||(e.textContent=s.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),$p(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editorCleanup?.(),e._editor?.destroy()}};function $p(e,t={}){let s=Bee.has(t.mode)?t.mode:"text";e._editor.session.setMode("ace/mode/"+s),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Hp={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],s=new Set,i=new IntersectionObserver(o=>{o.forEach(u=>u.isIntersecting?s.add(u.target.id):s.delete(u.target.id));let r=t.find(u=>s.has(u.hash.slice(1)));r&&t.forEach(u=>u.classList.toggle("active",u===r))},{rootMargin:"-20% 0px -60% 0px",threshold:0});je(()=>{t.forEach(o=>{let r=document.getElementById(o.hash.slice(1));r&&i.observe(r)}),t[0]&&!t.some(o=>o.classList.contains("active"))&&t[0].classList.add("active")}),e._observer=i},beforeUnmount(e){e._observer?.disconnect()}};function jp(e){let t=[],s=0,i=/\bXXXX-(\d+)\b/g,o;for(;o=i.exec(e);)o.index>s&&t.push(e.slice(s,o.index)),t.push(Pe("span",{class:"redact-slot",role:"img","aria-label":"Redacted term "+o[1]},[Pe("i",null,o[1])])),s=o.index+o[0].length;return t.length?(s{s.push(r),u=1024&&iYee(e.file)),p=()=>e.selectedPath??"/"+(Array.isArray(s.params.path)?s.params.path.join("/"):s.params.path||"");ut(()=>[s.params.repoId,s.params.path,e.selectedPath],()=>{let b="";p().split("/").filter(Boolean).forEach(E=>{b+="/"+E,o[b]=!0})},{immediate:!0});let c=Nt(()=>{if(!e.searchQuery||!e.searchResults)return null;let b=new Set,E=new Set;return e.searchResults.forEach(S=>{b.add(S.path?`${S.path}/${S.name}`:S.name);let N="";(S.path||"").split("/").filter(Boolean).forEach(w=>{N=N?N+"/"+w:w,E.add(N)})}),{files:b,folders:E}}),v=()=>[...i.value.querySelectorAll("li > a")],g=b=>{if(i.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),!b)return;if(r=b.dataset.path,b.classList.add("tree-focused"),e.selectedPath===void 0){b.scrollIntoView?.({block:"nearest"}),i.value.focus();return}let E=i.value.scrollHeight>i.value.clientHeight?i.value:i.value.closest(".leftCol-body");if(E){let S=b.getBoundingClientRect(),N=E.getBoundingClientRect();S.topN.bottom&&(E.scrollTop+=S.bottom-N.bottom)}i.value.focus({preventScroll:!0})};function y(b){let E=v(),S=i.value.querySelector(".tree-focused")||E[0],N=E.indexOf(S);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(b.key)||(b.preventDefault(),b.key==="ArrowDown"&&g(E[(N+1)%E.length]),b.key==="ArrowUp"&&g(E[(N-1+E.length)%E.length]),!S))return;let w=S.closest("li");b.key==="ArrowRight"&&w.classList.contains("folder")&&(w.classList.contains("open")?g(w.querySelector(":scope > ul > li > a")):S.click()),b.key==="ArrowLeft"&&(w.classList.contains("folder")&&w.classList.contains("open")?S.click():g(w.parentElement.closest("li.folder")?.querySelector(":scope > a"))),b.key==="Enter"&&S.click()}function m(b,E=""){let S=[...b].sort((N,w)=>+!!w.children-+!!N.children||N.name.localeCompare(w.name));return Pe("ul",S.flatMap(N=>{let w=N,D=w.name,O=(E+"/"+D).slice(1);if(c.value&&!c.value.files.has(O)&&!c.value.folders.has(O))return[];for(;w.children?.length===1&&w.children[0].children&&e.page?.loadedFolders?.[(E+"/"+D).slice(1)];)w=w.children[0],D+="/"+w.name;let F=E+"/"+D,j=!!w.children,oe=c.value?o[F]!==!1:!!o[F],_=j&&e.page?.options?.truncatedFolders?.includes(F.slice(1)),B=Pe("span",{class:j?"tree-icon-folder":"far fa-file tree-icon-file","aria-hidden":"true"},j?Pe("svg",{viewBox:"0 0 14 12",focusable:"false"},Pe("path",{d:"M1.5 10.5v-9h4l1.5 2h5.5v7z"})):null),I=!1,L=D,k="",q="";if(D.length>80){let ne=D.length-12;for(let G=D.length-18;G<=D.length-6;G++)if(G>0&&"-_. ".includes(D[G])){ne=G;break}if(I=!/XXXX-\d+/.test(D.slice(Math.max(0,ne-12))),L=D.slice(0,ne).trimEnd(),k=D.slice(ne).trimStart(),I){let G=Math.max(8,30-k.length-1);if(L.length>G&&!/XXXX-\d+/.test(L)){let ue=-1;for(let Me=Math.min(G,L.length);Me>=4;Me--)if(".-_".includes(L[Me])){ue=Me;break}let he=D.slice(0,D.length-k.length);L=(ue>0?L.slice(0,ue):L.slice(0,G)).trimEnd(),q=he.slice(L.length)}}}let W=Pe("span",{class:{"tree-name":!0,"tree-name-split":I,"tree-name-wrap":!I},title:D.replace(/\bXXXX-(\d+)\b/g,"[redacted term $1]")},I?[Pe("span",{class:{"tree-name-head":!0,"is-cut":!!q}},jp(L)),q?Pe("span",{class:"tree-name-middle"},q):null,Pe("span",{class:"tree-name-tail"},k)]:Wee(D)),H=ne=>{if(g(ne.currentTarget),!j){e.selectedPath!==void 0&&(ne.preventDefault(),t("select",F));return}ne.preventDefault(),o[F]=!oe,o[F]&&!w.children.length&&e.page.getFiles(F.slice(1)),je(()=>g(v().find(G=>G.dataset.path===r)))},J=Pe("a",{"data-path":F,"aria-expanded":e.selectedPath!==void 0&&j?String(oe):void 0,"aria-current":e.selectedPath!==void 0&&!j&&p()===F?"page":void 0,href:j?void 0:`/r/${encodeURIComponent(s.params.repoId)}${encodePathForUrl(F)}`,class:{"tree-focused":r===F},onClick:H},[j?Pe("span",{class:"tree-toggle"}):Pe("span",{class:"tree-spacer"}),B,W,_?Pe("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Pe("i",{class:"fas fa-exclamation-triangle"})):null]);return Pe("li",{key:F,class:{file:!0,folder:j,open:oe,active:p()===F,truncated:_},title:j?"":`Size: ${Kee(w.size||0)}`},[J,j&&oe?w.children.length||!e.page?.loadedFolders?.[F.slice(1)]?m(w.children,F):Pe("ul",Pe("li",{class:"tree-empty"},"Empty folder")):null])}))}return()=>Pe("tree",{ref:i,tabindex:0,onKeydown:y},e.file?.length?c.value?.files.size===0?Pe("div",{class:"tree-search-empty"},"No files found"):m(u.value):"Empty repository")}};function Kp(){return st({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Yp(e,t){if(!e[t]){let s=Kp();Object.defineProperty(s,"invalid",{get(){return Object.values(s.errors).some(Boolean)||Object.keys(s).some(i=>i!=="invalid"&&s[i]&&typeof s[i]=="object"&&s[i].invalid)}}),e[t]=s}return e[t]}var Jp={beforeMount(e,{value:t}){e._formState=Yp(t,e.name),e.addEventListener("submit",s=>s.preventDefault())}};function Jee(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Wp(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?Jee(t):t??""),Ja(e)}function Ja(e){let t=e._field.validation;if(!t)return;let s=e.validity;for(let[i,o]of Object.entries({required:s.valueMissing,pattern:s.patternMismatch,min:s.rangeUnderflow,max:s.rangeOverflow,date:s.badInput,email:s.typeMismatch&&e.type==="email",url:s.typeMismatch&&e.type==="url"}))t.setValidity(i,e.disabled||!o)}var Xp={beforeMount(e,{value:t}){var u;let s=t.form&&Yp(t.state,t.form),i=s&&e.name?s[u=e.name]||(s[u]=Kp()):null;e._field={binding:t,validation:i,timer:null};let o=()=>{clearTimeout(e._field.timer),e._field.timer=null;let p=e._field.binding,c=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(c=e.value===""?null:Number(e.value)),e.type==="date"&&(c=e.value?new Date(e.value+"T00:00:00"):null),i){i.setDirty();for(let v of Object.keys(i.errors))i.setValidity(v,!0)}p.set(c),Ja(e),p.change?.()}};e._field.commit=o;let r=p=>{let c=e._field.binding.options?.debounce||0,v=typeof c=="number"?c:c[p.type]??c.default??0;clearTimeout(e._field.timer),v?e._field.timer=setTimeout(o,v):o()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",r),e.addEventListener("blur",()=>{i&&(i.touched=!0),e._field.timer&&o()})},mounted:Wp,updated(e,{value:t}){e._field.binding=t,Wp(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:s}=e._field,i=t.form&&t.state[t.form];i&&i[e.name]===s&&delete i[e.name]}};function Qp(e,t){let s=e.target.closest("form");if(s?._formState&&(s._formState.submitted=!0),s?.querySelectorAll("input, select, textarea").forEach(i=>{i._field?.timer&&i._field.commit(),i._field&&Ja(i)}),s&&!s.checkValidity()){let i=s.querySelector("input:invalid, select:invalid, textarea:invalid");i?.scrollIntoView?.({block:"center"}),i?.focus(),s.reportValidity();return}return t()}var Zp=Symbol("session"),Xee=/^\/(w|api|github)(\/|$)/;function xp(e,t={}){let s=e?.split(".").reduce((i,o)=>i?.[o],Kn);return s==null&&e?.startsWith("ERRORS.")&&(s=Kn.ERRORS.unknown_error),String(s??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(i,o)=>t[o]??"")}var Qee={...wa,translate:xp};function Zee(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function xee(e="#app",t={}){let s=!!document.querySelector('meta[name="review-consent-page"][content="1"]'),i=s&&window.location.pathname==="/review-link"?ol(window):null,o=()=>{let m=i;return i=null,m};!t.history&&window.location.pathname==="/"&&/^#!\/r\/[^/?#]+/.test(window.location.hash)&&window.history.replaceState(window.history.state,"",window.location.hash.slice(2));let r=new Map,u=Ap(t.fetch),p,c;function v(){let m=kt(),b={url(S){return S===void 0?c.currentRoute.value.fullPath:(c.push(S),b)},replace(S){return c.replace(S)},path(){return c.currentRoute.value.path},search(){return c.currentRoute.value.query}},E=new Proxy({},{get(S,N){let w=c.currentRoute.value.params[N];return Array.isArray(w)?w.join("/"):w}});return{takeReviewHandoff:o,http:u,...m,location:b,params:E,window,promises:Ip,html:{trustAsHtml:S=>S},translate:(S,N)=>Promise.resolve(xp(S,N)),quotaService:Op(u)}}function g(m){return{name:m.template,setup(){let b=Ls(Mt(Zp),r);m.setup(b,v()),Pp(m.template,b);let E=[];return()=>ur[m.template](b,E)}}}c=Mu({history:t.history||Au(),routes:Jc.map(m=>m.redirect?m:{path:m.path,component:g(m),meta:{title:m.title,preserveExplorer:m.preserveExplorer}})});let y=Qd({setup(){p=Ls(null,r),p.fmt=Qee,p.window=window,p.Math=Math,p.sanitize=S=>DOMPurify.sanitize(S??""),p.highlightRedactions=S=>(p.site_options,Vc(S)),p.submitForm=Qp,p.safeUrl=Zee;let m=v();Lc(p,m.http,m.location,m.timeout),so(Zp,p),ut(()=>p.title,S=>{document.title=S||"Anonymous GitHub"});let b=[],E=S=>{let N=S.target.closest?.("a[href]");if(S.defaultPrevented||S.button!==0||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||!N||N.hasAttribute("download")||N.target&&N.target!=="_self"||N.dataset.toggle||N.getAttribute("href").startsWith("#"))return;let D=new URL(N.href,window.location.href);s||/^\/review-link\/?$/i.test(D.pathname)||D.origin!==window.location.origin||Xee.test(D.pathname)||(S.preventDefault(),c.push(D.pathname+D.search+D.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",E),io(()=>document.removeEventListener("click",E)),()=>[Dp(p,[]),s||/^\/(r|repository)\//.test(p.path||"")?null:Pe("header",{class:["app-header",{"is-contained":p.path==="/"||p.path==="/faq","is-signin":p.path==="/signin"}]},ur["partials/header.htm"](p,b)),Pe("main",{class:"app-view align-items-stretch w-100"},Pe(ma,null,{default:({Component:S,route:N})=>S?Pe(S,{key:N.meta.preserveExplorer?N.matched[0]?.path:N.path}):null})),Pe("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},p.toasts.map((S,N)=>Pe("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:N},[Pe("div",{class:"toast-header"},[Pe("strong",{class:"mr-auto"},S.title),Pe("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>p.removeToast(S)},"\xD7")]),Pe("div",{class:"toast-body"},S.body)])))]}});for(let[m,b]of Object.entries(Bp))y.component(m,b);return y.component("Tree",Gp),y.component("PartialView",{props:["name","state"],setup(m){let b=[];return()=>ur[m.name](m.state,b)}}),y.directive("field",Xp),y.directive("form",Jp),y.directive("code-editor",zp),y.directive("paper-scrollspy",Hp),y.use(c),c.beforeEach(async m=>{if(m.path==="/review-link"&&!s||s&&m.path!=="/review-link")return window.location.assign(m.fullPath),!1;p?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await Xn("markdown"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(m.path)&&await Xn("org")}),c.afterEach(m=>{if(!p)return;p.title=m.meta.title,p.emit("routeChange",{title:m.meta.title}),p.emit("routeUpdate",{title:m.meta.title});let b=document.querySelector(".app-view");!m.meta.preserveExplorer&&b&&(b.scrollTop=0)}),y.mount(e),{app:y,router:c,state:p}}document.querySelector("#app")&&(window.anonymousApp=xee());})(); /*! Bundled license information: @vue/shared/dist/shared.esm-bundler.js: diff --git a/scripts/preview-errors.js b/scripts/preview-errors.js index 16fd6f1..d69b497 100644 --- a/scripts/preview-errors.js +++ b/scripts/preview-errors.js @@ -26,12 +26,13 @@ app.use('/api', async (req, res) => { {service:'api',module:'route',event:'request_failed',errorCode:'repository_unavailable',severity:'error',status:503,requestId:id}, ]; if (scenario === 'diagnostics') samples = [{service:'api',module:'route',event:'application_log',severity:'error',httpStatus:500,requestId:id,method:'GET',route:'/api/repo/:repoId/file/:path',errorType:'TypeError',errorStack:'at printError (build/server/routes/route-utils.js:200:7)\nat (build/server/routes/repository-public.js:312:11)',causeType:'RangeError',causeStack:'at (build/core/repository.js:410:9)'},{service:'api',module:'requests',event:'request_completed',severity:'info',status:500,requestId:id,method:'GET',route:'/api/repo/:repoId/file/:path',ms:283}]; + if (scenario === 'occurrences') samples = Array.from({length:50}, (_,i) => ({service:'api',module:'route',event:'application_log',severity:'error',httpStatus:500,requestId:id,...(i%2?{method:'GET',route:'/api/repo/:repoId/file/:path'}:{})})); if (scenario === 'many') samples = Array.from({length:50}, (_,i) => ({...samples[i%4],errorCode:'synthetic_event_'+(i+1)})); if (req.path === '/admin/errors/investigation') return res.json({state:scenario === 'unreachable' ? 'unreachable' : scenario === 'disabled' ? 'disabled' : scenario === 'empty' ? 'empty':'ready',window:req.query.window||'1h',start,end:scenario==='stale'?start:now,captured:['disabled','unreachable','empty'].includes(scenario)?0:samples.reduce((sum,_,i)=>sum+[18,9,5,2][i%4],0),groups:['disabled','unreachable','empty'].includes(scenario)?[]:samples.map((sample,i)=>({fingerprint:String(i),sample:{...sample,release:'abcdef1234567'},count:[18,9,5,2][i%4],first:start,last:now})),telemetry:{missing:[],instances:[{service:'api',instance:'synthetic-api',last:now,dropped:0}],collector:{state:'reachable',dropped:0}}}); if (req.path === '/admin/errors/correlation') return res.json({state:'ready',start,end:now,events:samples.map(sample=>({...sample,timestamp:now}))}); if (req.path === '/admin/errors/stats') return res.json({available:true,last24h:34,prev24h:20,severity:{error:29,warn:5,info:0},unique:{error:3,warn:1,info:0},buckets:[],dropped:0}); if (req.path === '/admin/errors' && req.method === 'DELETE') historyCleared = true; - if (req.path === '/admin/errors') return res.json({available:true,redisCollecting:true,total:historyCleared?0:samples.length,max:1000,entries:historyCleared?[]:samples.map((sample,i)=>({ts:now,level:sample.severity,module:sample.module,message:sample.errorCode||sample.errorType||sample.event,count:i+1,raw:[sample]}))}); + if (req.path === '/admin/errors') return res.json({available:true,redisCollecting:true,total:historyCleared?0:samples.length,max:1000,entries:historyCleared?[]:samples.map((sample,i)=>({ts:scenario==='occurrences'?new Date(Date.now()-i*11000).toISOString():now,level:sample.severity,module:sample.module,message:sample.errorCode||sample.errorType||sample.event,count:i+1,raw:[sample]}))}); return res.json([]); }); app.use((req,res,next)=>{ req.url=req.url.replace(/\.[a-f0-9]{10}\.min\./,'.min.'); next(); }); diff --git a/test/vue-ui.test.js b/test/vue-ui.test.js index b2ef798..68f22a2 100644 --- a/test/vue-ui.test.js +++ b/test/vue-ui.test.js @@ -81,6 +81,24 @@ describe("Vue 3 UI", function () { let ui; afterEach(() => ui?.close()); + it("renders useful history occurrences with visible times and selected tabs", async () => { + const entries=[0,2,1].map(n=>({ts:new Date(Date.UTC(2026,10,14,12,n)).toISOString(),level:'error',module:'route',message:'application_log',raw:[{event:'application_log',service:'api',httpStatus:500,...(n===2?{method:'GET',route:'/api/repo/:repoId/file/:path'}:{})}]})); + ui=await browser('/',{'/api/user':{username:'admin',isAdmin:true,status:'ready'},'/api/admin/errors':{available:true,total:3,entries},'/api/admin/errors/investigation':{state:'disabled',groups:[]}}); + await ui.go('/admin/errors'); const doc=ui.window.document; + doc.querySelector('#error-source-history').click();await delay(20); + doc.querySelector('button.errors-row-main').click();await delay(20); + const tab=[...doc.querySelectorAll('.history-source .detail-tabs button')].find(b=>b.textContent.startsWith('Occurrences')); + tab.click();await delay(20); + expect(tab.getAttribute('aria-pressed')).equal('true');expect(tab.classList.contains('active')).equal(true); + const items=[...doc.querySelectorAll('.history-occurrence-list li')];expect(items).length(3); + expect(items.map(item=>item.querySelector('time').getAttribute('datetime'))).deep.equal([entries[1].ts,entries[2].ts,entries[0].ts]); + expect(items[0].textContent).include('GET /api/repo/:repoId/file/:path'); + expect(items[1].textContent).include('Request route was not captured.').and.include('Exception frames were not captured.'); + expect(items[0].querySelector('time').classList.contains('when-abs')).equal(false); + const record=items[0].querySelector('details');record.querySelector('summary').click();expect(record.open).equal(true); + expect(record.querySelector('.history-occurrence-record pre').textContent).include('application_log');expect(ui.errors).deep.equal([]); + }); + it("shows normalized request routes and exception frames in both admin sources", async () => { const now=new Date().toISOString(), requestId='aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa'; const sample={event:'application_log',service:'api',module:'route',severity:'error',httpStatus:500,method:'GET',route:'/api/repo/:repoId/file/:path',errorType:'TypeError',errorStack:'at printError (build/server/routes/route-utils.js:200:7)',causeType:'RangeError',causeStack:'at (build/core/repository.js:410:9)',requestId};