3 lines
78 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

System.register(["./chunk-vendor.js"],(function(t){"use strict";var e,n,o,i,s,r,c,a,l,u,f;return{setters:[function(t){e=t.S,n=t.o,o=t.a,i=t.D,s=t.f,r=t.r,c=t.T,a=t._,l=t.t,u=t.c,f=t.h}],execute:function(){function d(...t){return JSON.stringify(t,((t,e)=>"object"==typeof e?e:String(e)))}function m(t,e={}){const{hash:n=d,cache:o=new Map}=e;return function(...e){const i=n.apply(this,e);if(o.has(i))return o.get(i);let s=t.apply(this,e);return s instanceof Promise&&(s=s.catch((t=>{throw o.delete(i),t}))),o.set(i,s),s}}t({$:function(){const t=tt[st()-1];if(t)return t.url},A:function(){const t=(new Date).getTime(),e=`${Math.round(Math.random()*(Math.pow(2,31)-1))}.${Math.round(t/1e3)}`,n="GH1.1."+e,o=new Date(t+31536e6).toUTCString();return ye("_octo",n,o),e},C:A,D:function(t,e){const[n,o]=ee(t.start,!0,e),[i,s]=ee(t.end,!1,e);if(!n||!i)return;let r=o,c=s;-1===r&&(r=0);-1===c&&(c=i.childNodes.length);if(!n.ownerDocument)throw new Error("DOMRange needs to be inside document");const a=n.ownerDocument.createRange();return a.setStart(n,r),a.setEnd(i,c),a},E:async function(t,e,n=!1){const o=je.get(t);null==o||o.abort();const i=t.closest(".js-updatable-content[data-url], .js-updatable-content [data-url]");!n&&i&&i===t&&(Se[i.getAttribute("data-url")]=e);return ke(t,e)},F:we,G:async function(t){if(je.get(t))return;const e=t.hasAttribute("data-retain-focus"),n=t.getAttribute("data-url"),o=new AbortController;je.set(t,o);try{const i=await fetch(n,{signal:o.signal,headers:{Accept:"text/html","X-Requested-With":"XMLHttpRequest"}});if(!i.ok)return;const s=await i.text();return be(t,e)?void console.warn("Failed to update content with interactions",t):(Se[n]=s,ke(t,s,e))}catch(i){}finally{je.delete(t)}},H:Ce,I:function(t,e){const n=t.selectionEnd||0,o=t.value.substring(0,n),i=t.value.substring(n),s=""===t.value||o.match(/\n$/)?"":"\n";t.value=o+s+e+i,t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1})),t.focus()},J:function(t,e,n){let o=t.value.substring(0,t.selectionEnd||0),i=t.value.substring(t.selectionEnd||0);o=o.replace(e,n),i=i.replace(e,n),t.value=o+i,t.selectionStart=o.length,t.selectionEnd=o.length,t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1}))},K:b,L:Q,M:function(t,e,n){return[...Ie(t,(t=>{const n=e(t);return null!=n?[t,n]:null}))].sort(((t,e)=>n(t[1],e[1]))).map((([t])=>t))},N:function(t,e){return t.score>e.score?-1:t.score<e.score?1:t.text<e.text?-1:t.text>e.text?1:0},O:async function(){await async function(){const t=document.querySelector("link[rel=sso-session]"),e=document.querySelector("meta[name=sso-expires-around]");if(!(t instanceof HTMLLinkElement))return!0;if(!function(t){if(!(t instanceof HTMLMetaElement))return!0;const e=parseInt(t.content);return(new Date).getTime()/1e3>e}(e))return!0;const n=t.href,o=await fetch(n,{headers:{Accept:"application/json","X-Requested-With":"XMLHttpRequest"}});return await o.json()}()||(Ne||(Ne=async function(){const t=document.querySelector("link[rel=sso-modal]"),e=await Ce({content:y(document,t.href),dialogClass:"sso-modal"});let n=null;const o=window.external;if(o.ssoComplete=function(t){t.error?(n=!1,Pe(n)):(n=!0,Pe(n),function(t){const e=document.querySelector("meta[name=sso-expires-around]");e&&e.setAttribute("content",t)}(t.expiresAround),window.focus()),o.ssoComplete=null},await function(t){return new Promise((e=>{t.addEventListener("dialog:remove",e,{once:!0})}))}(e),!n)throw new Error("sso prompt canceled")}().then(Ve).catch(Ve)),await Ne)},P:function(t,e){t.removeEventListener("keydown",pt),t.removeEventListener("keyup",ht),t.removeEventListener("input",gt);const n=dt.get(t);n&&(null!=n.timer&&n.listener===e&&clearTimeout(n.timer),dt.delete(t))},Q:function(t,e){let n=$e(t,e);if(n&&-1===e.indexOf("/")){const o=t.substring(t.lastIndexOf("/")+1);n+=$e(o,e)}return n},R:cn,S:function(t){const e=Et(t);e&&rn(e)},T:ge,U:function(t,e=!1){let n=document.domain;if(null==n)throw new Error("Unable to get document domain");n.endsWith(".github.com")&&(n="github.com");const o=(new Date).getTime(),i=new Date(o-1).toUTCString(),s="https:"===location.protocol?"; secure":"",r="; expires="+i;!1===e&&(n="."+n);try{document.cookie=`${t}=''; path=/; domain=${n}${r}${s}`}catch(c){}},W:ve,X:ln,Y:an,Z:function(t){const e=t.match(mn);if(e)return void gn(yn(e[1],e[2]));let n,o;for(let i=0,s=hn.length;i<s;i++){const[e,o]=hn[i];if(n=t.match(o),n){let t=null,o=null;switch(e){case"organization":t=n[1],o=n[2];break;case"repository":t=`${n[1]}/${n[2]}`,o=n[3]}return void(t&&o&&gn(bn(t,o)))}}for(let i=0,s=pn.length;i<s;i++)if(o=t.match(pn[i]),o)return void gn(vn(o[1],o[2]))},_:H,a:y,a$:Bn,a0:function(){const t=tt[st()+1];if(t)return t.url},a2:function(t,e){St.set(t,e),n=e,n.catch((()=>{}));var n},a3:Ot,a4:function(){return`${window.location.protocol}//${window.location.host}${function(){const t=An("meta[name=analytics-location]");return t?t.content:window.location.pathname}()+function(){const t=An("meta[name=analytics-location-query-strip]");let e="";t||(e=window.location.search);const n=An("meta[name=analytics-location-params]");n&&(e+=(e?"&":"?")+n.content);for(const o of document.querySelectorAll("meta[name=analytics-param-rename]")){const t=o.content.split(":",2);e=e.replace(new RegExp(`(^|[?&])${t[0]}($|=)`,"g"),`$1${t[1]}$2`)}return e}()}`},a5:kt,a6:S,a7:k,a8:function(t){return jn.get(t)},a9:Cn,aA:Do,aB:Oo,aC:function(t,e){for(const n in e){const o=e[n],i=t.elements.namedItem(n);(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)&&(i.value=o)}},aD:ot,aE:rn,aF:_o,aG:$o,aH:Wo,aI:function(){window.history.replaceState(null,"","#"),Zo()},aJ:function(){return Po},aK:_e,aL:Io,aM:async function(t){return jn.get(t)||Sn(await function(t,e){return new Promise((n=>{t.addEventListener(e,n,{once:!0})}))}(t,"codeEditor:ready"))},aN:function(t,e){return async function n(o){const i=await self.fetch(g(t,e));if(h(i,new ResponseError$1(i)),200===i.status)return i;if(202===i.status)return await new Promise((t=>setTimeout(t,o))),n(1.5*o);throw new ResponseError$1(i)}(1e3)},aO:function(t){Eo(t),Ao(t);const e=Lo.pop();e&&wo(e)},aP:function(t){const e=Co();e&&Lo.push(e);wo(t)},aQ:Ao,aR:at,aS:function(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},aT:be,aU:xe,aV:function(t,e){Ao(t),xo(t,e)},aW:function(t){const e=t.getAttribute("data-hydro-click-payload")||"",n=t.getAttribute("data-hydro-click-hmac")||"",o=t.getAttribute("data-hydro-client-context")||"";an(e,n,o)},aX:function t(e,n){const o=e.nextElementSibling;if(o instanceof HTMLElement)return o.classList.contains(n)?o:t(o,n);return null},aY:function(){return new Promise(window.requestAnimationFrame)},aZ:Kn,a_:K,aa:function(t){try{sessionStorage.removeItem(t)}catch(e){}},ab:function(t){try{return sessionStorage.getItem(t)}catch(e){return null}},ac:function(t,e){try{sessionStorage.setItem(t,e)}catch(n){}},ad:function(t,e){const n=t.closest("[data-notification-id]");e.hasAttribute("data-status")&&function(t,e){t.classList.toggle("notification-archived","archived"===e),t.classList.toggle("notification-unread","unread"===e),t.classList.toggle("notification-read","read"===e)}(n,e.getAttribute("data-status"));e.hasAttribute("data-subscription-status")&&function(t,e){t.classList.toggle("notification-unsubscribed","unsubscribed"===e)}(n,e.getAttribute("data-subscription-status"));e.hasAttribute("data-starred-status")&&function(t,e){t.classList.toggle("notification-starred","starred"===e)}(n,e.getAttribute("data-starred-status"))},ae:Et,af:async function(t,e,n=1/0,o){const i=o?ft(o):null;for(let r=0;r<e;r++)try{const e=i?Promise.race([t(),i]):t();return await e}catch(Mn){if("AbortError"===Mn.name)throw Mn;if(r===e-1)throw Mn;const i=1e3*Math.pow(2,r),c=(s=.1*i,Math.floor(Math.random()*Math.floor(s)));await ut(Math.min(n,i+c),o)}var s;throw new Error("retry failed")},ag:function*(t,e){for(let n=0;n<t.length;n+=e)yield t.slice(n,n+e)},ah:function(t){const e=[];return function(n){e.push(n),1===e.length&&queueMicrotask((()=>{const n=[...e];e.length=0,t(n)}))}},ai:async function(){const t=await fetch("/sessions/in_sudo",{headers:{accept:"application/json","X-Requested-With":"XMLHttpRequest"}});if(t.ok){return"true"===await t.text()||Fn()}return Fn()},aj:Ae,ak:function(t){const e=t.getAttribute("data-details-container")||".js-details-container",n=t.closest(e).classList;return n.contains("Details--on")||n.contains("open")},al:Oe,am:function(){if("Intl"in window)try{return(new window.Intl.DateTimeFormat).resolvedOptions().timeZone}catch(t){}},an:ye,ao:zn,ap:async function(t){return function(t){const e=t;return e.clientExtensionResults=t.getClientExtensionResults(),Hn(qn,Vn,e)}(await navigator.credentials.get(function(t){return Hn(Mn,Nn,t)}(t)))},ar:xt,as:Lt,at:he,au:function(t){const e=t.querySelectorAll(".js-characters-remaining-container");for(const n of e){he(n.querySelector(".js-characters-remaining-field"))}},av:me,aw:function(t){const e=dt.get(t);e&&e.listener.call(null,t)},ax:xo,ay:wo,az:Eo,b:function(t){Q(function(t){return(t.getAttribute("aria-label")||t.innerText||"").trim()}(t))},b0:async function(){var t;if(await(null===(t=window.PublicKeyCredential)||void 0===t?void 0:t.isUserVerifyingPlatformAuthenticatorAvailable()))return"supported";return"unsupported"},b1:async function(t){return function(t){const e=t;return e.clientExtensionResults=t.getClientExtensionResults(),Hn(qn,Pn,e)}(await navigator.credentials.create(function(t){return Hn(Mn,In,t)}(t)))},b2:ut,b3:xn,b4:yn,b5:vn,b6:bn,b7:function(t,e,n){if(e){const o=t.innerHTML.trim().match(n||function(t){const e=t.toLowerCase().split("");let n="";for(let o=0;o<e.length;o++){const t=e[o].replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");n+=0===o?`(.*)(${t})`:`([^${t}]*?)(${t})`}return new RegExp(n+"(.*?)$","i")}(e));if(!o)return;let i=!1;const s=[];for(let t=1;t<o.length;++t){const e=o[t];e&&(t%2==0?i||(s.push("<mark>"),i=!0):i&&(s.push("</mark>"),i=!1),s.push(e))}t.innerHTML=s.join("")}else{const e=t.innerHTML.trim(),n=e.replace(/<\/?mark>/g,"");e!==n&&(t.innerHTML=n)}},b8:dn,b9:function(t){const e=pe(t),n=me(t.value);return e-n<0},c:function(t,e){if("boolean"==typeof e){if(!(t instanceof HTMLInputElement))throw new TypeError("only checkboxes can be set to boolean value");t.checked=e}else{if("checkbox"===t.type)throw new TypeError("checkbox can't be set to string value");t.value=e}M(t,"change",!1)},d:function(t){return new URLSearchParams(new FormData(t)).toString()},e:lt,f:v,g:function(){return Promise.resolve()},h:C,i:Zt,j:function(t,e,n={wait:null}){dt.set(t,{keypressed:!1,inputed:!1,timer:void 0,listener:e,wait:null!=n.wait?n.wait:100}),t.addEventListener("keydown",pt),t.addEventListener("keyup",ht),t.addEventListener("input",gt)},k:function(){return Ht},l:j,m:m,n:ce,o:x,p:p,q:function(t){const e=Qt(t),n=function(t){const e=t.match(/(file-.+?-)L\d+?/i);return e?e[1]:""}(t);return{blobRange:e,anchorPrefix:n}},r:q,s:T,t:Qt,u:function({anchorPrefix:t,blobRange:e}){return e?`#${t}${function(t){const{start:e,end:n}=oe(t);return null!=e.column&&null!=n.column?`L${e.line}C${e.column}-L${n.line}C${n.column}`:e.line===n.line?"L"+e.line:`L${e.line}-L${n.line}`}(e)}`:"#"},v:_,w:function(t,e){e.appendChild(t.extractContents()),t.insertNode(e)},y:Ct,z:function(){let t="";const e=ge("_octo"),n=[];for(const o of e){const e=o.value.split(".");if("GH1"===e.shift()&&e.length>1){const o=(e.shift()||"").split("-");1===o.length&&(o[1]="1");const i=[Number(o[0]),Number(o[1])];t=e.join("."),n.push([i,t])}}t="",n.length>0&&(t=String(n.sort().reverse()[0][1]));return t}});class ResponseError extends Error{constructor(t,e){super(`${t} for HTTP ${e.status}`),this.response=e}}function p(t,e){const n=t.createElement("template");return n.innerHTML=e,t.importNode(n.content,!0)}class ResponseError$1 extends Error{constructor(t){super(),this.response=t,this.framesToPop=1}}function h(t,e){if(t.status>=200&&t.status<300)return t;{const n=t.statusText?" "+t.statusText:"";throw e.message=`HTTP ${t.status}${n}`,e}}function g(t,e){const n=e?Object.assign({},e):{},o=new Request(t,n);return o.headers.append("X-Requested-With","XMLHttpRequest"),o}async function y(t,e,n){const o=await self.fetch(g(e,n));return h(o,new ResponseError$1(o)),function(t,e){const n=e.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new ResponseError("expected response with text/html, but was "+n,e);const o=e.headers.get("x-html-safe");if(!o)throw new ResponseError("missing X-HTML-Safe nonce",e);if(!t.includes(o))throw new ResponseError("response X-HTML-Safe nonce did not match",e)}(function(t){const e=[...t.querySelectorAll("meta[name=html-safe-nonce]")].map((t=>t.content));if(e.length<1)throw new Error("could not find html-safe-nonce on document");return e}(t),o),p(t,await o.text())}class Subscription{constructor(t){this.closed=!1,this.unsubscribe=()=>{t(),this.closed=!0}}}function v(t,e,n,o={capture:!1}){return t.addEventListener(e,n,o),new Subscription((()=>{t.removeEventListener(e,n,o)}))}function b(...t){return new Subscription((()=>{for(const e of t)e.unsubscribe()}))}let w=!1;const E=new e;function L(t){const e=t.target;if(e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE)for(const n of E.matches(e))n.data.call(null,e)}function x(t,e){w||(w=!0,document.addEventListener("focus",L,!0)),E.add(t,e),document.activeElement instanceof HTMLElement&&document.activeElement.matches(t)&&e(document.activeElement)}function A(t,e,n){function o(e){const i=e.currentTarget;i&&(i.removeEventListener(t,n),i.removeEventListener("blur",o))}x(e,(function(e){e.addEventListener(t,n),e.addEventListener("blur",o)}))}function j(t,e){function n(t){const{currentTarget:o}=t;o&&(o.removeEventListener("input",e),o.removeEventListener("blur",n))}x(t,(function(t){t.addEventListener("input",e),t.addEventListener("blur",n)}))}function S(t){const e=t.closest("form");if(!(e instanceof HTMLFormElement))return;let n=k(e);if(t.name){const o=t.matches("input[type=submit]")?"Submit":"",i=t.value||o;n||(n=document.createElement("input"),n.type="hidden",n.classList.add("is-submit-button-value"),e.prepend(n)),n.name=t.name,n.value=i}else n&&n.remove()}function k(t){const e=t.querySelector("input.is-submit-button-value");return e instanceof HTMLInputElement?e:null}function T(){const t=document.getElementById("ajax-error-message");t&&(t.hidden=!1)}function C(){const t=document.getElementById("ajax-error-message");t&&(t.hidden=!0)}function M(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:n}))}function q(t,e){e&&(!function(t,e){if(!(t instanceof HTMLFormElement))throw new TypeError("The specified element is not of type HTMLFormElement.");if(!(e instanceof HTMLElement))throw new TypeError("The specified element is not of type HTMLElement.");if("submit"!==e.type)throw new TypeError("The specified element is not a submit button.");if(!t||t!==e.form)throw new Error("The specified element is not owned by the form element.")}(t,e),S(e)),M(t,"submit",!0)&&t.submit()}function H(t){if(!(t instanceof HTMLElement))return!1;const e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n||t.isContentEditable}n("deprecatedAjaxError","[data-remote]",(function(t){const e=t.detail,{error:n,text:o}=e;t.currentTarget===t.target&&"abort"!==n&&"canceled"!==n&&(/<html/.test(o)?(T(),t.stopImmediatePropagation()):setTimeout((function(){t.defaultPrevented||T()}),0))})),n("deprecatedAjaxSend","[data-remote]",(function(){C()})),n("click",".js-ajax-error-dismiss",(function(){C()})),n("click",".js-remote-submit-button",(async function(t){const e=t.currentTarget.form;let n;t.preventDefault();try{n=await fetch(e.action,{method:e.method,body:new FormData(e),headers:{Accept:"application/json"}})}catch(o){}n&&!n.ok&&T()}));const R=["input[pattern]","input[required]","textarea[required]","input[data-required-change]","textarea[data-required-change]","input[data-required-value]","textarea[data-required-value]"].join(",");function D(t){const e=t.getAttribute("data-required-value"),n=t.getAttribute("data-required-value-prefix");if(t.value===e)t.setCustomValidity("");else{let o=e;n&&(o=n+o),t.setCustomValidity(o)}}j("[data-required-value]",(function(t){D(t.currentTarget)})),n("change","[data-required-value]",(function(t){const e=t.currentTarget;D(e),_(e.form)})),j("[data-required-trimmed]",(function(t){const e=t.currentTarget;""===e.value.trim()?e.setCustomValidity(e.getAttribute("data-required-trimmed")):e.setCustomValidity("")})),n("change","[data-required-trimmed]",(function(t){const e=t.currentTarget;""===e.value.trim()?e.setCustomValidity(e.getAttribute("data-required-trimmed")):e.setCustomValidity(""),_(e.form)})),x(R,(t=>{let e=t.checkValidity();function n(){const n=t.checkValidity();n!==e&&t.form&&_(t.form),e=n}t.addEventListener("input",n),t.addEventListener("blur",(function e(){t.removeEventListener("input",n),t.removeEventListener("blur",e)}))}));const O=new WeakMap;function _(t){const e=t.checkValidity();for(const n of t.querySelectorAll("button[data-disable-invalid]"))n.disabled=!e}o("button[data-disable-invalid]",{constructor:HTMLButtonElement,initialize(t){const e=t.form;e&&(!function(t){O.get(t)||(t.addEventListener("change",(()=>_(t))),O.set(t,!0))}(e),t.disabled=!e.checkValidity())}}),o("input[data-required-change], textarea[data-required-change]",(function(t){const e=t,n="radio"===e.type&&e.form?e.form.elements.namedItem(e.name).value:null;function o(t){const o=e.form;if(t&&"radio"===e.type&&o&&n)for(const i of o.elements.namedItem(e.name))i instanceof HTMLInputElement&&i.setCustomValidity(e.value===n?"unchanged":"");else e.setCustomValidity(e.value===(n||e.defaultValue)?"unchanged":"")}e.addEventListener("input",o),e.addEventListener("change",o),o(),e.form&&_(e.form)})),document.addEventListener("reset",(function(t){if(t.target instanceof HTMLFormElement){const e=t.target;setTimeout((()=>_(e)))}}));var $=-1/0;function I(t){return t.toLowerCase()===t}function P(t){return t.toUpperCase()===t}function N(t,e,n,o){for(var i=t.length,s=e.length,r=t.toLowerCase(),c=e.toLowerCase(),a=function(t){for(var e=t.length,n=new Array(e),o="/",i=0;i<e;i++){var s=t[i];"/"===o?n[i]=.9:"-"===o||"_"===o||" "===o?n[i]=.8:"."===o?n[i]=.6:I(o)&&P(s)?n[i]=.7:n[i]=0,o=s}return n}(e),l=0;l<i;l++){n[l]=new Array(s),o[l]=new Array(s);for(var u=$,f=l===i-1?-.005:-.01,d=0;d<s;d++)if(r[l]===c[d]){var m=$;l?d&&(m=Math.max(o[l-1][d-1]+a[d],n[l-1][d-1]+1)):m=-.005*d+a[d],n[l][d]=m,o[l][d]=u=Math.max(m,u+f)}else n[l][d]=$,o[l][d]=u+=f}}function V(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var n=t.length,o=0,i=0;o<n;o+=1)if(0===(i=e.indexOf(t[o],i)+1))return!1;return!0}const z=(t,e,n)=>{if(!V(t,e))return-1/0;const o=function(t,e){var n=t.length,o=e.length;if(!n||!o)return $;if(n===o)return 1/0;if(o>1024)return $;var i=new Array(n),s=new Array(n);return N(t,e,i,s),s[n-1][o-1]}(t,e);return o<n?-1/0:o},B=(t,e,n)=>{t.innerHTML="";let o=0;for(const i of function(t,e){var n=t.length,o=e.length,i=new Array(n);if(!n||!o)return i;if(n===o){for(var s=0;s<n;s++)i[s]=s;return i}if(o>1024)return i;var r=new Array(n),c=new Array(n);N(t,e,r,c);for(var a=!1,l=(s=n-1,o-1);s>=0;s--)for(;l>=0;l--)if(r[s][l]!==$&&(a||r[s][l]===c[s][l])){a=s&&l&&c[s][l]===r[s-1][l-1]+1,i[s]=l--;break}return i}(e,n)){""!==n.slice(o,i)&&t.appendChild(document.createTextNode(n.slice(o,i))),o=i+1;const e=document.createElement("mark");e.textContent=n[i],t.appendChild(e)}t.appendChild(document.createTextNode(n.slice(o)))},W=new WeakMap,X=new WeakMap,U=new WeakMap,F=t=>{if(!U.has(t)&&t instanceof HTMLElement){const e=(t.getAttribute("data-value")||t.textContent||"").trim();return U.set(t,e),e}return U.get(t)||""};class FuzzyListElement extends HTMLElement{connectedCallback(){const t=this.querySelector("ul");if(!t)return;const e=new Set(t.querySelectorAll("li")),n=this.querySelector("input");n instanceof HTMLInputElement&&n.addEventListener("input",(()=>{this.value=n.value}));const o=new MutationObserver((t=>{let n=!1;for(const o of t)if("childList"===o.type&&o.addedNodes.length)for(const t of o.addedNodes)if(t instanceof HTMLLIElement&&!e.has(t)){const o=F(t);n=n||V(this.value,o),e.add(t)}n&&this.sort()}));o.observe(t,{childList:!0});const i={handler:o,items:e,lazyItems:new Map,timer:null};X.set(this,i)}disconnectedCallback(){const t=X.get(this);t&&(t.handler.disconnect(),X.delete(this))}addLazyItems(t,e){const n=X.get(this);if(!n)return;const{lazyItems:o}=n,{value:i}=this;let s=!1;for(const r of t)o.set(r,e),s=s||Boolean(i)&&V(i,r);s&&this.sort()}sort(){const t=W.get(this);t&&(t.aborted=!0);const e={aborted:!1};W.set(this,e);const{minScore:n,markSelector:o,maxMatches:i,value:s}=this,r=X.get(this);if(!r)return;if(!this.dispatchEvent(new CustomEvent("fuzzy-list-will-sort",{cancelable:!0,detail:s})))return;const{items:c,lazyItems:a}=r,l=this.hasAttribute("mark-selector"),u=this.querySelector("ul");if(!u)return;const f=[];if(s){for(const t of c){const e=F(t),o=z(s,e,n);o!==-1/0&&f.push({item:t,score:o})}for(const[t,e]of a){const o=z(s,t,n);o!==-1/0&&f.push({text:t,render:e,score:o})}f.sort(((t,e)=>e.score-t.score)).splice(i)}else{let t=f.length;for(const e of c){if(t>=i)break;f.push({item:e,score:1}),t+=1}for(const[e,n]of a){if(t>=i)break;f.push({text:e,render:n,score:1}),t+=1}}requestAnimationFrame((()=>{if(e.aborted)return;const t=u.querySelector('input[type="radio"]:checked');u.innerHTML="";let n=0;const i=()=>{if(e.aborted)return;const r=Math.min(f.length,n+100),d=document.createDocumentFragment();for(let t=n;t<r;t+=1){const e=f[t];let n=null;if("render"in e&&"text"in e){const{render:t,text:o}=e;n=t(o),c.add(n),U.set(n,o),a.delete(o)}else"item"in e&&(n=e.item);n instanceof HTMLElement&&(l&&B(o&&n.querySelector(o)||n,l?s:"",F(n)),d.appendChild(n))}n=r;let m=!1;if(t instanceof HTMLInputElement)for(const e of d.querySelectorAll('input[type="radio"]:checked'))e instanceof HTMLInputElement&&e.value!==t.value&&(e.checked=!1,m=!0);if(u.appendChild(d),t&&m&&t.dispatchEvent(new Event("change",{bubbles:!0})),r<f.length)requestAnimationFrame(i);else{u.hidden=0===f.length;const t=this.querySelector("[data-fuzzy-list-show-on-empty]");t&&(t.hidden=f.length>0),this.dispatchEvent(new CustomEvent("fuzzy-list-sorted",{detail:f.length}))}};i()}))}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}get markSelector(){return this.getAttribute("mark-selector")||""}set markSelector(t){t?this.setAttribute("mark-selector",t):this.removeAttribute("mark-selector")}get minScore(){return Number(this.getAttribute("min-score")||0)}set minScore(t){Number.isNaN(t)||this.setAttribute("min-score",String(t))}get maxMatches(){return Number(this.getAttribute("max-matches")||1/0)}set maxMatches(t){Number.isNaN(t)||this.setAttribute("max-matches",String(t))}static get observedAttributes(){return["value","mark-selector","min-score","max-matches"]}attributeChangedCallback(t,e,n){if(e===n)return;const o=X.get(this);o&&(o.timer&&window.clearTimeout(o.timer),o.timer=window.setTimeout((()=>this.sort()),100))}}function K(){return/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null}function J(t){const e=(t.getAttribute("data-platforms")||"").split(","),n=K();return Boolean(n&&e.includes(n))}t("V",FuzzyListElement),window.customElements.get("fuzzy-list")||(window.FuzzyListElement=FuzzyListElement,window.customElements.define("fuzzy-list",FuzzyListElement)),o(".js-remove-unless-platform",(function(t){J(t)||t.remove()})),o(".js-show-for-platform",{constructor:HTMLElement,add(t){J(t)&&(t.hidden=!1)}}),o(".js-hide-for-platform",{constructor:HTMLElement,add(t){J(t)&&(t.hidden=!0)}});const Y=t("B","interactive"===document.readyState||"complete"===document.readyState?Promise.resolve():new Promise((t=>{document.addEventListener("DOMContentLoaded",(()=>{t()}))}))),G=t("x","complete"===document.readyState?Promise.resolve():new Promise((t=>{window.addEventListener("load",t)})));let Z=null;function Q(t){Z&&(Z.textContent="",Z.textContent=t)}!async function(){await Y,Z=document.createElement("div"),Z.setAttribute("aria-live","polite"),Z.classList.add("sr-only"),document.body.append(Z)}();const tt=[];let et,nt=0;function ot(){return et}function it(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(Mn){return 0}}function st(){return it()-1+nt}function rt(t){et=t;const e=location.href;tt[st()]={url:e,state:et},tt.length=it(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}function ct(){return(new Date).getTime()}function at(t,e,n){nt=0;const o=Object.assign({},{_id:ct()},t);history.pushState(o,e,n),rt(o)}function lt(t,e,n){const o=Object.assign({},{_id:ot()._id},t);history.replaceState(o,e,n),rt(o)}async function ut(t,e){let n;const o=new Promise((e=>{n=self.setTimeout(e,t)}));if(!e)return o;try{await Promise.race([o,ft(e)])}catch(Mn){throw self.clearTimeout(n),Mn}}function ft(t){return new Promise(((e,n)=>{const o=new Error("aborted");o.name="AbortError",t.aborted?n(o):t.addEventListener("abort",(()=>n(o)))}))}et=function(){const t={_id:(new Date).getTime()};return rt(t),t}(),window.addEventListener("popstate",(function(t){const e=t.state;if(!e||!e._id)return;e._id<(ot()._id||NaN)?nt--:nt++,rt(e)}),!0),window.addEventListener("hashchange",(function(){if(it()>tt.length){const t={_id:ct()};history.replaceState(t,"",location.href),rt(t)}}),!0);const dt=new WeakMap;function mt(t){const e=dt.get(t);e&&(null!=e.timer&&clearTimeout(e.timer),e.timer=window.setTimeout((()=>{null!=e.timer&&(e.timer=null),e.inputed=!1,e.listener.call(null,t)}),e.wait))}function pt(t){const e=t.currentTarget,n=dt.get(e);n&&(n.keypressed=!0,null!=n.timer&&clearTimeout(n.timer))}function ht(t){const e=t.currentTarget,n=dt.get(e);n&&(n.keypressed=!1,n.inputed&&mt(e))}function gt(t){const e=t.currentTarget,n=dt.get(e);n&&(n.inputed=!0,n.keypressed||mt(e))}const yt={},vt={};function bt(){const t=vt[document.location.pathname];if(t)for(const e of t){const t=document.querySelector("#"+e.id);t&&t.replaceWith(e)}}function wt(){const t=yt[document.location.pathname];if(!t)return;const e=document.head;for(const n of document.querySelectorAll("head [data-pjax-transient]"))n.remove();for(const n of t)n.matches("title, script, link[rel=stylesheet]")?n.matches("link[rel=stylesheet]")&&e.append(n):(n.setAttribute("data-pjax-transient",""),e.append(n))}function Et(t,e=location.hash){return Lt(t,xt(e))}function Lt(t,e){return""===e?null:t.getElementById(e)||t.getElementsByName(e)[0]}function xt(t){try{return decodeURIComponent(t.slice(1))}catch(e){return""}}(async()=>{await Y,yt[document.location.pathname]=Array.from(document.querySelectorAll("head [data-pjax-transient]")),vt[document.location.pathname]=Array.from(document.querySelectorAll("[data-pjax-replace]"))})(),document.addEventListener("pjax:beforeReplace",(function(t){const e=t.detail.contents||[];for(let n=0;n<e.length;n++){const t=e[n];t instanceof Element&&("pjax-head"===t.id?(yt[document.location.pathname]=Array.from(t.children),e[n]=null):t.hasAttribute("data-pjax-replace")&&(vt[document.location.pathname]||(vt[document.location.pathname]=[]),vt[document.location.pathname].push(t),e[n]=null))}}));const At=m((function(){var t,e;return((null===(e=null===(t=document.head)||void 0===t?void 0:t.querySelector('meta[name="enabled-features"]'))||void 0===e?void 0:e.content)||"").split(",")}));const jt=t("a1",m((function(t){return-1!==At().indexOf(t)})));const St=new WeakMap;function kt(t){var e,n;const o=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="expected-hostname"]'))||void 0===n?void 0:n.content;if(!o)return!1;return o.replace(/\.$/,"").split(".").slice(-2).join(".")!==t.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".")}let Tt=[];function Ct(t,e=!1){var n,o;void 0===t.timestamp&&(t.timestamp=(new Date).getTime()),t.loggedIn=!!(null===(o=null===(n=document.head)||void 0===n?void 0:n.querySelector('meta[name="user-login"]'))||void 0===o?void 0:o.content),Tt.push(t),e?qt():async function(){await G,null==Mt&&(Mt=window.requestIdleCallback(qt))}()}let Mt=null;function qt(){var t,e;if(Mt=null,kt(document))return;const n=null===(e=null===(t=document.head)||void 0===t?void 0:t.querySelector('meta[name="browser-stats-url"]'))||void 0===e?void 0:e.content;if(!n)return;const o=JSON.stringify({stats:Tt});navigator.sendBeacon&&navigator.sendBeacon(n,o),Tt=[]}let Ht,Rt=null;function Dt(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}async function Ot(t){const e=Object.assign({push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},t);e.requestUrl=e.url;const n=Bt(e.url),o=n.hash,i=e.container,s=Wt(i);"GET"===e.type&&(n.search+=`${n.search?"&":""}_pjax=${encodeURIComponent(s)}`,e.url=n.toString()),Ht||(Ht={id:Nt(),url:window.location.href,title:document.title,container:s,fragment:e.fragment},lt(Ht,Ht.title,Ht.url));let r=jt("JS_HTTP_CACHE_HEADERS")?null:function(t,e){const n=function(t,e){const n=t.querySelectorAll("link[rel=pjax-prefetch]");for(const o of n)if(o.href===e)return o;return null}(t,e);if(n){const t=St.get(n);return n.remove(),St.delete(n),t||null}return null}(i,e.requestUrl);if(!r){null==Rt||Rt.abort();const{signal:t}=Rt=new AbortController;r=fetch(e.url,{signal:t,method:e.type,body:e.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":s,"X-Requested-With":"XMLHttpRequest"}})}var c,a;!0===e.push&&!0!==e.replace&&(c=Ht.id,a=Vt(i),Kt[c]=a,Yt.push(c),Gt(Jt,0),Gt(Yt,20),at(null,"",e.requestUrl)),Dt(i,"pjax:start",{url:e.url}),Dt(i,"pjax:send");const l=await r;if(!l.ok){const t=Dt(i,"pjax:error");if("GET"===e.type&&t){const t=l.headers.get("X-PJAX-URL"),n=t?zt(Bt(t)):e.requestUrl;Ct({pjaxFailureReason:"response_error"}),_t(n)}return Dt(i,"pjax:complete"),void Dt(i,"pjax:end")}const u=Ht,f=function(){for(const t of document.getElementsByTagName("meta")){const e=t.getAttribute("http-equiv");if(e&&"X-PJAX-VERSION"===e.toUpperCase())return t.content}return null}(),d=l.headers.get("X-PJAX-Version"),m=function(t,e,n){const o={url:Ft(e,n.requestUrl),title:""},i=/<html/i.test(t);if("text/html"!==(e.headers.get("Content-Type")||"").split(";",1)[0].trim())return o;let s,r;if(i){const e=t.match(/<head[^>]*>([\s\S.]*)<\/head>/i),n=t.match(/<body[^>]*>([\s\S.]*)<\/body>/i);s=e?Array.from(p(document,e[0]).childNodes):[],r=n?Array.from(p(document,n[0]).childNodes):[]}else s=r=Array.from(p(document,t).childNodes);if(0===r.length)return o;const c=Xt(s,"title",HTMLTitleElement);let a;if(o.title=c.length>0&&c[c.length-1].textContent||"",n.fragment){if("body"===n.fragment)a=r;else{const t=Xt(r,n.fragment,Element);a=t.length>0?[t[0]]:[]}if(a.length&&("body"===n.fragment?o.contents=a:o.contents=a.flatMap((t=>Array.from(t.childNodes))),!o.title)){const t=a[0];t instanceof Element&&(o.title=t.getAttribute("title")||t.getAttribute("data-title")||"")}}else i||(o.contents=r);if(o.contents){o.contents=o.contents.filter((function(t){return!(t instanceof Element)||!t.matches("title")}));for(const n of o.contents)if(n instanceof Element)for(const t of n.querySelectorAll("title"))t.remove();const t=Xt(o.contents,"script[src]",HTMLScriptElement);for(const n of t)n.remove();o.scripts=t,o.contents=o.contents.filter((e=>-1===t.indexOf(e)));const e=Xt(o.contents,"link[rel=stylesheet]",HTMLLinkElement);for(const n of e)n.remove();o.stylesheets=e,o.contents=o.contents.filter((t=>!e.includes(t)))}o.title&&(o.title=o.title.trim());return o}(await l.text(),l,e),{contents:h}=m,g=Bt(m.url);if(o&&(g.hash=o,m.url=g.href),f&&d&&f!==d)return Ct({pjaxFailureReason:"version_mismatch"}),void _t(m.url);if(!h)return Ct({pjaxFailureReason:"missing_response_body"}),void _t(m.url);Ht={id:null!=e.id?e.id:Nt(),url:m.url,title:m.title,container:s,fragment:e.fragment},!0!==e.push&&!0!==e.replace||lt(Ht,m.title,m.url);const y=document.activeElement,v=null!=e.container&&e.container.contains(y);if(y instanceof HTMLElement&&v)try{y.blur()}catch(Mn){}m.title&&(document.title=m.title),Dt(i,"pjax:beforeReplace",{contents:h,state:Ht,previousState:u}),Ut(i,h),bt(),wt();const b=i.querySelector("input[autofocus], textarea[autofocus]");b&&document.activeElement!==b&&b.focus(),m.scripts&&function(t){const e=document.querySelectorAll("script[src]");for(const n of t){const{src:t}=n;if(Array.from(e).some((e=>e.src===t)))continue;const o=document.createElement("script"),i=n.getAttribute("type");i&&(o.type=i),o.src=t,document.head&&document.head.appendChild(o)}}(m.scripts),m.stylesheets&&function(t){const e=document.querySelectorAll("link[rel=stylesheet]");for(const n of t)Array.from(e).some((t=>t.href===n.href))||document.head&&document.head.appendChild(n)}(m.stylesheets);let w=e.scrollTo;if(o){const t=Et(document,o);if(t){w=t.getBoundingClientRect().top+window.pageYOffset}}"number"==typeof w&&window.scrollTo(window.pageXOffset,w),Dt(i,"pjax:success"),Dt(i,"pjax:complete"),Dt(i,"pjax:end")}function _t(t){Ht&&lt(null,"",Ht.url),window.location.replace(t)}let $t=!0;const It=window.location.href,Pt=window.history.state;function Nt(){return(new Date).getTime()}function Vt(t){const e=t.cloneNode(!0);return[Wt(t),Array.from(e.childNodes),Date.now()]}function zt(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),t.href.replace(/\?($|#)/,"$1")}function Bt(t){const e=document.createElement("a");return e.href=t,e}function Wt(t){if(t.id)return"#"+t.id;throw new Error("pjax container has no id")}function Xt(t,e,n){let o=[];for(const i of t)i instanceof Element&&(i instanceof n&&i.matches(e)&&o.push(i),o=o.concat(Array.from(i.querySelectorAll(e))));return o}function Ut(t,e){t.innerHTML="";for(const n of e)null!=n&&t.appendChild(n)}function Ft(t,e){const n=t.headers.get("X-PJAX-URL");return n?zt(Bt(n)):e}Pt&&Pt.container&&(Ht=Pt),"state"in window.history&&($t=!1);const Kt={},Jt=[],Yt=[];function Gt(t,e){for(;t.length>e;){const e=t.shift();if(null==e)return;delete Kt[e]}}function Zt(t){return!function(t){return t.offsetWidth<=0&&t.offsetHeight<=0}(t)}function Qt(t){const e=t.match(/#?(?:L)(\d+)((?:C)(\d+))?/g);if(e){if(1===e.length){const t=te(e[0]);if(!t)return;return Object.freeze({start:t,end:t})}if(2===e.length){const t=te(e[0]),n=te(e[1]);if(!t||!n)return;return oe(Object.freeze({start:t,end:n}))}}else;}function te(t){const e=t.match(/L(\d+)/),n=t.match(/C(\d+)/);return e?Object.freeze({line:parseInt(e[1]),column:n?parseInt(n[1]):null}):null}function ee(t,e,n){const o=[null,0],i=n(t.line);if(!i)return o;if(null==t.column)return[i,-1];let s=t.column-1;const r=ne(i);for(let c=0;c<r.length;c++){const t=r[c],n=s-(t.textContent||"").length;if(0===n){const n=r[c+1];return e&&n?[n,0]:[t,s]}if(n<0)return[t,s];s=n}return o}function ne(t){if(t.nodeType===Node.TEXT_NODE)return[t];if(!t.childNodes||!t.childNodes.length)return[];let e=[];for(const n of t.childNodes)e=e.concat(ne(n));return e}function oe(t){const e=[t.start,t.end];return e.sort(ie),e[0]===t.start&&e[1]===t.end?t:Object.freeze({start:e[0],end:e[1]})}function ie(t,e){return t.line===e.line&&t.column===e.column?0:t.line===e.line&&"number"==typeof t.column&&"number"==typeof e.column?t.column-e.column:t.line-e.line}window.addEventListener("popstate",(function(t){$t||null==Rt||Rt.abort();const e=Ht,n=t.state;let o=null;if(n&&n.container){if($t&&It===n.url)return;if(e){if(e.id===n.id)return;o=e.id<n.id?"forward":"back"}const[t,i,s]=Kt[n.id]||[],r=document.querySelector(t||n.container);if(r instanceof HTMLElement){e&&function(t,e,n){let o,i;Kt[e]=n,"forward"===t?(o=Yt,i=Jt):(o=Jt,i=Yt);o.push(e);const s=i.pop();s&&delete Kt[s];Gt(o,20)}(o,e.id,Vt(r)),Dt(r,"pjax:popstate",{state:n,direction:o,cachedAt:s});const t={id:n.id,url:n.url,container:r,push:!1,fragment:n.fragment||"",scrollTo:!1};i?(Dt(r,"pjax:start"),Ht=n,n.title&&(document.title=n.title),Dt(r,"pjax:beforeReplace",{contents:i,state:n,previousState:e}),Ut(r,i),bt(),wt(),Dt(r,"pjax:end")):Ot(t),r.offsetHeight}else Ct({pjaxFailureReason:"no_container"}),_t(location.href)}$t=!1}));const se=[];let re=0;function ce(t){!async function(){se.push(t),await Y,function(){const t=re;re=se.length,ae(se.slice(t),null,window.location.href)}()}()}function ae(t,e,n){const o=window.location.hash.slice(1),i={oldURL:e,newURL:n,target:o?document.getElementById(o):null};for(const s of t)s.call(null,i)}ce.clear=()=>{se.length=re=0};let le=window.location.href;window.addEventListener("popstate",(function(){le=window.location.href})),window.addEventListener("hashchange",(function(t){const e=window.location.href;try{ae(se,t.oldURL||le,e)}finally{le=e}}));let ue,fe,de=null;function me(t){const e=t.split("");let n=0;for(const o of e){n+=Array.from(o.split(/[\ufe00-\ufe0f]/).join("")).length}return n/e.length}function pe(t){return t.hasAttribute("data-maxlength")?parseInt(t.getAttribute("data-maxlength")||""):t.maxLength}function he(t){const e=pe(t);!function(t,e,n){const o=n.closest(".js-characters-remaining-container");if(!o)return;const i=o.querySelector(".js-characters-remaining"),s=String(i.getAttribute("data-suffix")),r=e-me(t);r<=20?(i.textContent=`${r} ${s}`,i.classList.toggle("text-red",r<=5),i.hidden=!1):i.hidden=!0}(t.value,e,t)}function ge(t){const e=[];for(const n of function(){try{return document.cookie.split(";")}catch(t){return[]}}()){const[o,i]=n.trim().split("=");t===o&&void 0!==i&&e.push({key:o,value:i})}return e}function ye(t,e,n=null,o=!1,i="lax"){let s=document.domain;if(null==s)throw new Error("Unable to get document domain");s.endsWith(".github.com")&&(s="github.com");const r="https:"===location.protocol?"; secure":"",c=n?"; expires="+n:"";!1===o&&(s="."+s);try{document.cookie=`${t}=${e}; path=/; domain=${s}${c}${r}; samesite=${i}`}catch(a){}}function ve(t){if(!window._octo)return;const e=Math.floor((new Date).getTime()/1e3);t.timestamp=e;const n='meta[name="octolytics-event-url"]';if(document.head&&document.head.querySelector(n)){const e=document.head.querySelector(n).content,o=JSON.stringify(t);navigator.sendBeacon&&navigator.sendBeacon(e,o)}}function be(t,e=!1){return we(t)||function(t,e){const n=function(t){if(ue instanceof Element)return ue;if(t&&t.ownerDocument&&t.ownerDocument.activeElement)return t.ownerDocument.activeElement;return null}(t);if(null===n)return!1;if(e&&n===t)return!1;if(n===t&&H(n))return!0;if(t.contains(n)&&!function(t){if(t instanceof i)return!0;if(!(fe instanceof Element))return!1;const e=t.closest(Le);if(!e)return!1;const n=fe.closest(Le);return e===n}(n))return!0;return fe instanceof Element&&t.contains(fe)&&!!fe.closest("details[open] > summary")}(t,e)||function(t){return t.matches(":active")}(t)||function(t){return!(!t.closest(".is-dirty")&&!t.querySelector(".is-dirty"))}(t)}function we(t){for(const e of t.querySelectorAll("input, textarea"))if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&Ee(e))return!0;return!1}function Ee(t){if(t instanceof HTMLInputElement&&("checkbox"===t.type||"radio"===t.type)){if(t.checked!==t.defaultChecked)return!0}else if(t.value!==t.defaultValue)return!0;return!1}document.addEventListener("pjax:start",(function(){de=window.location.href})),document.addEventListener("pjax:end",(function(){ae(se,de,window.location.href)})),x(".js-characters-remaining-field",(function(t){function e(){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&he(t)}e(),t.addEventListener("input",e),t.addEventListener("blur",(()=>{t.removeEventListener("input",e)}),{once:!0})})),n("click","[data-octo-click]",(function(t){if(!window._octo)return;const e=t.currentTarget,n=e instanceof HTMLElement&&e.getAttribute("data-octo-click")||"",o={};o.event_type=n;const i={},s={},r={};let c=[];e instanceof HTMLElement&&e.hasAttribute("data-octo-dimensions")&&(c=(e.getAttribute("data-octo-dimensions")||"").split(","));const a=document.head?document.head.querySelectorAll('meta[name^="octolytics-"]'):[];for(const u of a)if(u instanceof HTMLMetaElement)if(u.name.startsWith("octolytics-dimension-")){i[u.name.replace(/^octolytics-dimension-/,"")]=u.content}else if(u.name.startsWith("octolytics-measure-")){s[u.name.replace(/^octolytics-measure-/,"")]=u.content}else if(u.name.startsWith("octolytics-context-")){r[u.name.replace(/^octolytics-context-/,"")]=u.content}else if(u.name.startsWith("octolytics-actor-")){i[u.name.replace(/^octolytics-/,"").replace(/-/g,"_")]=u.content}else if(u.name.startsWith("octolytics-")){o[u.name.replace(/^octolytics-/,"").replace(/-/g,"_")]=u.content}const l=document.querySelector("meta[name=visitor-payload]");if(l instanceof HTMLMetaElement){const t=JSON.parse(atob(l.content));Object.assign(i,t)}if(e instanceof HTMLElement&&e.hasAttribute("data-ga-click")){const t=(e.getAttribute("data-ga-click")||"").split(",").map((t=>t.trim()));i.category=t[0],i.action=t[1]}for(const u of c){const t=u.split(":"),e=t.shift();e&&(i[e]=t.join(":"))}o.dimensions=i,o.measures=s,o.context=r,ve(o)})),document.addEventListener("mouseup",(function(t){fe=t.target}));const Le="a[href], button";function xe(t,e){return Ae(function(t){if(t.activeElement!==t.body)return t.activeElement;var e=t.querySelectorAll(":hover"),n=e.length;if(n)return e[n-1]}(t),e)}function Ae(t,e){var n=t;if(!n)return Promise.resolve(e());var o=n.ownerDocument.documentElement;var i=function(t){for(var e=[];t;){var n=t.getBoundingClientRect(),o=n.top,i=n.left;e.push({element:t,top:o,left:i}),t=t.parentElement}return e}(n);return Promise.resolve(e()).then((function(t){var e=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(o.contains(n.element))return n}}(i);if(e){n=e.element;var s=e.top,r=e.left,c=n.getBoundingClientRect(),a=c.top,l=c.left;!function(t,e,n){var o=t.ownerDocument,i=o.defaultView;function s(t){return t.offsetParent?{top:t.scrollTop,left:t.scrollLeft}:{top:i.pageYOffset,left:i.pageXOffset}}function r(t,e,n){if(0===e&&0===n)return[0,0];var r=s(t),c=r.top+n,a=r.left+e;t===o||t===i||t===o.documentElement||t===o.body?o.defaultView.scrollTo(a,c):(t.scrollTop=c,t.scrollLeft=a);var l=s(t);return[l.left-r.left,l.top-r.top]}function c(t){var e=t;if(e.offsetParent&&e!==o.body){for(;e!==o.body;){if(!e.parentElement)return;e=e.parentElement;var n=i.getComputedStyle(e),s=n.position,r=n.overflowY,c=n.overflowX;if("fixed"===s||"auto"===r||"auto"===c||"scroll"===r||"scroll"===c)break}return e}}var a=c(t),l=0,u=0;for(;a;){var f=r(a,e-l,n-u);if(l+=f[0],u+=f[1],l===e&&u===n)break;a=c(a)}}(n,l-r,a-s)}return t}))}const je=new WeakMap,Se=t("aq",{});function ke(t,e,n=!1){return xe(document,(()=>{const o=p(document,e.trim()),i=n&&t.ownerDocument&&t===t.ownerDocument.activeElement?o.querySelector("*"):null,s=Array.from(t.querySelectorAll("details[open][id]")).map((t=>t.id));"DETAILS"===t.tagName&&t.id&&t.hasAttribute("open")&&s.push(t.id);for(const e of t.querySelectorAll(".js-updatable-content-preserve-scroll-position")){const t=e.getAttribute("data-updatable-content-scroll-position-id");Te.set(t,e.scrollTop)}for(const t of s){const e=o.querySelector("#"+t);e&&e.setAttribute("open","")}t.replaceWith(o),i instanceof HTMLElement&&i.focus()}))}const Te=new Map;async function Ce(t){const e=document.querySelector("#site-details-dialog").content.cloneNode(!0),n=e.querySelector("details"),o=n.querySelector("details-dialog"),i=n.querySelector(".js-details-dialog-spinner");t.detailsClass&&n.classList.add(...t.detailsClass.split(" ")),t.dialogClass&&o.classList.add(...t.dialogClass.split(" ")),document.body.append(e);const r=await t.content;return i.remove(),o.prepend(r),n.addEventListener("toggle",(()=>{n.hasAttribute("open")||(s(o,"dialog:remove"),n.remove())})),o}o(".js-updatable-content-preserve-scroll-position",{constructor:HTMLElement,add(t){const e=t.getAttribute("data-updatable-content-scroll-position-id");if(!e)return;const n=Te.get(e);null!=n&&(t.scrollTop=n)}});const Me="ontransitionend"in window;function qe(t){return"height"===getComputedStyle(t).transitionProperty}function He(t,e){t.style.transition="none",e(),t.offsetHeight,t.style.transition=""}function Re(t,e){const n=t.getAttribute("data-details-container-group");return n?(Ae(t,(()=>{for(const o of function(t){return[...document.querySelectorAll(".js-details-container")].filter((e=>e.getAttribute("data-details-container-group")===t))}(n))o!==t&&De(o,e)})),n):null}function De(t,e){t.classList.toggle("open",e),t.classList.toggle("Details--on",e);for(const n of function(t){return[...t.querySelectorAll(".js-details-target")].filter((e=>e.closest(".js-details-container")===t))}(t))n.setAttribute("aria-expanded",e.toString())}function Oe(t,e){var n,o;const i=t.getAttribute("data-details-container")||".js-details-container",s=t.closest(i),r=null!==(n=null==e?void 0:e.force)&&void 0!==n?n:!s.classList.contains("open"),c=null!==(o=null==e?void 0:e.withGroup)&&void 0!==o&&o;!function(t,e){if(!Me)return void e();const n=Array.from(t.querySelectorAll(".js-transitionable"));t.classList.contains("js-transitionable")&&n.push(t);for(const o of n){const t=qe(o);o instanceof HTMLElement&&(o.addEventListener("transitionend",(()=>{o.style.display="",o.style.visibility="",t&&He(o,(function(){o.style.height=""}))}),{once:!0}),o.style.boxSizing="content-box",o.style.display="block",o.style.visibility="visible",t&&He(o,(function(){o.style.height=getComputedStyle(o).height})),o.offsetHeight)}e();for(const o of n)if(o instanceof HTMLElement&&qe(o)){const t=getComputedStyle(o).height;o.style.boxSizing="",o.style.height="0px"===t?o.scrollHeight+"px":"0px"}}(s,(()=>{De(s,r);const e=c?Re(s,r):null;Promise.resolve().then((()=>{!function(t){const e=t.querySelectorAll("input[autofocus], textarea[autofocus]"),n=e[e.length-1];n&&document.activeElement!==n&&n.focus()}(s),function(t){t.classList.contains("tooltipped")&&(t.classList.remove("tooltipped"),t.addEventListener("mouseleave",(()=>{t.classList.add("tooltipped"),t.blur()}),{once:!0}))}(t),s.dispatchEvent(new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:r}})),e&&s.dispatchEvent(new CustomEvent("details:toggled-group",{bubbles:!0,cancelable:!1,detail:{open:r,group:e}}))}))}))}function _e(t){let e=!1,n=t.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(e=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!e),n.classList.toggle("Details--on",!e),e=!1),n=n.parentElement}function $e(t,e){let n=t;if(n===e)return 1;const o=n.length;let i=0,s=0;for(let l=0;l<e.length;l++){const t=e[l],r=n.indexOf(t.toLowerCase()),c=n.indexOf(t.toUpperCase()),a=Math.min(r,c),u=a>-1?a:Math.max(r,c);if(-1===u)return 0;i+=.1,n[u]===t&&(i+=.1),0===u&&(i+=.8,0===l&&(s=1))," "===n.charAt(u-1)&&(i+=.8),n=n.substring(u+1,o)}const r=e.length,c=i/r;let a=(c*(r/o)+c)/2;return s&&a+.1<1&&(a+=.1),a}function*Ie(t,e){for(const n of t){const t=e(n);null!=t&&(yield t)}}function Pe(t){const e=document.querySelector(".sso-modal");e&&(e.classList.remove("success","error"),t?e.classList.add("success"):e.classList.add("error"))}n("click",".js-details-target",(function(t){const e=t.altKey;Oe(t.currentTarget,{withGroup:e}),t.preventDefault()})),n("click",".js-close-menu",(function(t){var e;const n=t.target;if(!(n instanceof HTMLElement))return;const o=n.getAttribute("data-details-container")||".js-details-container";null===(e=n.closest(o).querySelector(".js-open-menu"))||void 0===e||e.focus()})),ce((function({target:t}){t&&_e(t)})),o(".js-sso-modal-complete",(function(t){if(window.opener&&window.opener.external.ssoComplete){const e=t.getAttribute("data-error"),n=t.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:e,expiresAround:n}),window.close()}else{const e=t.getAttribute("data-fallback-url");e&&(window.location.href=e)}}));let Ne=null;function Ve(){Ne=null}let ze=!1,Be=0;const We=[];function Xe(){We.length?ze||(window.addEventListener("resize",Fe),document.addEventListener("scroll",Fe),ze=!0):(window.removeEventListener("resize",Fe),document.removeEventListener("scroll",Fe),ze=!1)}function Ue(){Ke(!0)}function Fe(){Ke()}function Ke(t=!1){for(const e of We)if(e.element.offsetHeight>0){const{element:n,placeholder:o,top:i}=e,s=n.getBoundingClientRect();if(o){const r=o.getBoundingClientRect();n.classList.contains("is-stuck")?r.top>on(n,i)?Ye(e):Ge(e):s.top<=on(n,i)?Je(e):t&&Ge(e)}else s.top<=on(n,i)?Je(e):Ye(e)}}function Je({element:t,placeholder:e,top:n}){if(e){const o=t.getBoundingClientRect();sn(t,on(t,n)),t.style.left=o.left+"px",t.style.width=o.width+"px",t.style.marginTop="0",t.style.position="fixed",e.style.display="block"}t.classList.add("is-stuck")}function Ye({element:t,placeholder:e}){e&&(t.style.position="static",t.style.marginTop=e.style.marginTop,e.style.display="none"),t.classList.remove("is-stuck")}function Ge({element:t,placeholder:e,offsetParent:n,top:o}){if(e){const i=t.getBoundingClientRect(),s=e.getBoundingClientRect();if(sn(t,on(t,o)),t.style.left=s.left+"px",t.style.width=s.width+"px",n){const e=n.getBoundingClientRect();e.bottom<i.height+parseInt(String(o))&&(t.style.top=e.bottom-i.height+"px")}}}function Ze(t){if(function(t){const{position:e}=window.getComputedStyle(t);return/sticky/.test(e)}(t))return null;const e=t.previousElementSibling;if(e&&e.classList.contains("is-placeholder"))return e;const n=document.createElement("div");return n.style.visibility="hidden",n.style.display="none",n.style.height=window.getComputedStyle(t).height,n.className=t.className,n.classList.remove("js-sticky"),n.classList.add("is-placeholder"),t.parentNode.insertBefore(n,t)}async function Qe(t){await G,function(t){const e=Ze(t),n=window.getComputedStyle(t).position;t.style.position="static";const o=t.offsetParent;t.style.position="fixed";const i=nn(t),s={element:t,placeholder:e,offsetParent:o,top:"auto"===i?0:parseInt(i||"0")};t.style.position=n,We.push(s)}(t),Ke(),Xe()}function tn(){for(const t of document.querySelectorAll(".js-position-sticky, .js-notification-shelf-offset-top"))en(t)}function en(t){if(t.classList.contains("js-notification-top-shelf"))return;sn(t,(parseInt(nn(t))||0)+Be)}function nn(t){const e=t.getAttribute("data-original-top");if(null!=e)return e;const n=window.getComputedStyle(t).top;return t.setAttribute("data-original-top",n),n}function on(t,e){return t.classList.contains("js-notification-top-shelf")?e:e+Be}function sn(t,e){t.style.setProperty("top",e+"px","important")}function rn(t){const e=t.ownerDocument;t.scrollIntoView(),setTimeout((()=>{e&&e.defaultView&&e.defaultView.scrollBy(0,-cn(e))}),0)}function cn(t){Ue();const e=t.querySelectorAll(".js-sticky-offset-scroll"),n=t.querySelectorAll(".js-position-sticky");return Math.max(0,...Array.from(e).map((t=>{const{top:e,height:n}=t.getBoundingClientRect();return 0===e?n:0})))+Math.max(0,...Array.from(n).map((t=>{const{top:e,height:n}=t.getBoundingClientRect(),o=parseInt(getComputedStyle(t).top);if(!t.parentElement)return 0;const i=t.parentElement.getBoundingClientRect().top;return e===o&&i<0?n:0})))}function an(t,e,n){const o={hydroEventPayload:t,hydroEventHmac:e,visitorPayload:"",visitorHmac:"",hydroClientContext:n},i=document.querySelector("meta[name=visitor-payload]");i instanceof HTMLMetaElement&&(o.visitorPayload=i.content);const s=document.querySelector("meta[name=visitor-hmac]")||"";s instanceof HTMLMetaElement&&(o.visitorHmac=s.content),Ct(o,!0)}function ln(t){an(t.getAttribute("data-hydro-view")||"",t.getAttribute("data-hydro-view-hmac")||"",t.getAttribute("data-hydro-client-context")||"")}o(".js-sticky",{constructor:HTMLElement,add(t){Qe(t)},remove(t){!function(t){const e=We.map((t=>t.element)).indexOf(t);We.splice(e,1)}(t),Xe()}}),o(".js-notification-top-shelf",{constructor:HTMLElement,add(t){!async function(t){if(null===t.offsetParent)return;await G;const e=Math.floor(t.getBoundingClientRect().height);e>0&&(Be=e,tn(),Ue())}(t)},remove(){for(const t of document.querySelectorAll(".js-notification-top-shelf"))t.remove();Be>0&&(Be=0,tn(),Ue())}}),o(".js-notification-shelf-offset-top, .js-position-sticky",{constructor:HTMLElement,add:en});const un=.6,fn=.4;function dn(t){const e=function(t){const e=[...Object.values(t)].reduce(((t,e)=>t+e.visitCount),0);return new Map(Object.keys(t).map((n=>[n,t[n].visitCount/e])))}(t),n=function(t){const e=(o=[...Object.keys(t)],i=e=>t[e].lastVisitedAt,o.sort(((t,e)=>i(t)-i(e)))),n=e.length;var o,i;return new Map(e.map(((t,e)=>[t,(e+1)/n])))}(t);return function(t){return o=e.get(t)||0,i=n.get(t)||0,o*un+i*fn;var o,i}}const mn=/^\/orgs\/([a-z0-9-]+)\/teams\/([\w-]+)/,pn=[/^\/([^/]+)\/([^/]+)\/?$/,/^\/([^/]+)\/([^/]+)\/blob/,/^\/([^/]+)\/([^/]+)\/tree/,/^\/([^/]+)\/([^/]+)\/issues/,/^\/([^/]+)\/([^/]+)\/pulls?/,/^\/([^/]+)\/([^/]+)\/pulse/],hn=[["organization",/^\/orgs\/([a-z0-9-]+)\/projects\/([0-9-]+)/],["repository",/^\/([^/]+)\/([^/]+)\/projects\/([0-9-]+)/]];function gn(t){const e=xn(),n=Math.floor(Date.now()/1e3),o=e[t]||{lastVisitedAt:n,visitCount:0};o.visitCount+=1,o.lastVisitedAt=n,e[t]=o,Ln(function(t){const e=Object.keys(t);if(e.length<=100)return t;const n=dn(t),o=e.sort(((t,e)=>n(e)-n(t))).slice(0,50);return Object.fromEntries(o.map((e=>[e,t[e]])))}(e))}function yn(t,e){return`team:${t}/${e}`}function vn(t,e){return`repository:${t}/${e}`}function bn(t,e){return`project:${t}/${e}`}const wn=/^(team|repository|project):[^/]+\/[^/]+(\/([^/]+))?$/,En="jump_to:page_views";function Ln(t){!function(t,e){try{window.localStorage.setItem(t,e)}catch(n){}}(En,JSON.stringify(t))}function xn(){const t=function(t){try{return window.localStorage.getItem(t)}catch(e){return null}}(En);if(!t)return{};let e;try{e=JSON.parse(t)}catch(o){return Ln({}),{}}const n={};for(const i in e)i.match(wn)&&(n[i]=e[i]);return n}function An(t){const e=document.querySelectorAll(t);if(e.length>0)return e[e.length-1]}const jn=new WeakMap;function Sn(t){if(!(t instanceof CustomEvent))throw new Error("assert: event is not a CustomEvent");const e=t.detail.editor;if(!t.target)throw new Error("assert: event.target is null");return jn.set(t.target,e),e}function kn(t){let e=t;const n=e.ownerDocument;if(!n)return;if(!e.offsetParent)return;const o=n.defaultView.HTMLElement;if(e!==n.body){for(;e!==n.body;){if(!(e.parentElement instanceof o))return;e=e.parentElement;const{position:t,overflowY:n,overflowX:i}=getComputedStyle(e);if("fixed"===t||"auto"===n||"auto"===i||"scroll"===n||"scroll"===i)break}return e instanceof Document?null:e}}function Tn(t,e){let n=e;const o=t.ownerDocument;if(!o)return;const i=o.documentElement;if(!i)return;if(t===i)return;const s=Cn(t,n);if(!s)return;n=s._container;const r=n===o.documentElement&&o.defaultView?{top:o.defaultView.pageYOffset,left:o.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},c=s.top-r.top,a=s.left-r.left,l=n.clientHeight,u=n.clientWidth;return{top:c,left:a,bottom:l-(c+t.offsetHeight),right:u-(a+t.offsetWidth),height:l,width:u}}function Cn(t,e){let n=t;const o=n.ownerDocument;if(!o)return;const i=o.documentElement;if(!i)return;const s=o.defaultView.HTMLElement;let r=0,c=0;const a=n.offsetHeight,l=n.offsetWidth;for(;n!==o.body&&n!==e;){if(r+=n.offsetTop||0,c+=n.offsetLeft||0,!(n.offsetParent instanceof s))return;n=n.offsetParent}let u,f,d;if(e&&e!==o&&e!==o.defaultView&&e!==o.documentElement&&e!==o.body){if(!(e instanceof s))return;d=e,u=e.scrollHeight,f=e.scrollWidth}else d=i,u=function(t,e){return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight)}(o.body,i),f=function(t,e){return Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)}(o.body,i);return{top:r,left:c,bottom:u-(r+a),right:f-(c+l),_container:d}}function Mn(t){const e="==".slice(0,(4-t.length%4)%4),n=t.replace(/-/g,"+").replace(/_/g,"/")+e,o=atob(n),i=new ArrayBuffer(o.length),s=new Uint8Array(i);for(let r=0;r<o.length;r++)s[r]=o.charCodeAt(r);return i}function qn(t){const e=new Uint8Array(t);let n="";for(const o of e)n+=String.fromCharCode(o);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Hn(t,e,n){if("copy"===e)return n;if("convert"===e)return t(n);if(e instanceof Array)return n.map((n=>Hn(t,e[0],n)));if(e instanceof Object){const o={};for(const[i,s]of Object.entries(e))if(i in n)null!=n[i]?o[i]=Hn(t,s.schema,n[i]):o[i]=null;else if(s.required)throw new Error("Missing key: "+i);return o}}function Rn(t){return{required:!0,schema:t}}function Dn(t){return{required:!1,schema:t}}n("codeEditor:ready",".js-code-editor",Sn);const On={type:Rn("copy"),id:Rn("convert"),transports:Dn("copy")},_n={appid:Dn("copy"),appidExclude:Dn("copy"),credProps:Dn("copy")},$n={appid:Dn("copy"),appidExclude:Dn("copy"),credProps:Dn("copy")},In={publicKey:Rn({rp:Rn("copy"),user:Rn({id:Rn("convert"),name:Rn("copy"),displayName:Rn("copy")}),challenge:Rn("convert"),pubKeyCredParams:Rn("copy"),timeout:Dn("copy"),excludeCredentials:Dn([On]),authenticatorSelection:Dn("copy"),attestation:Dn("copy"),extensions:Dn(_n)}),signal:Dn("copy")},Pn={type:Rn("copy"),id:Rn("copy"),rawId:Rn("convert"),response:Rn({clientDataJSON:Rn("convert"),attestationObject:Rn("convert")}),clientExtensionResults:Rn($n)},Nn={mediation:Dn("copy"),publicKey:Rn({challenge:Rn("convert"),timeout:Dn("copy"),rpId:Dn("copy"),allowCredentials:Dn([On]),userVerification:Dn("copy"),extensions:Dn(_n)}),signal:Dn("copy")},Vn={type:Rn("copy"),id:Rn("copy"),rawId:Rn("convert"),response:Rn({clientDataJSON:Rn("convert"),authenticatorData:Rn("convert"),signature:Rn("convert"),userHandle:Rn("convert")}),clientExtensionResults:Rn($n)};function zn(){return!!(navigator.credentials&&navigator.credentials.create&&navigator.credentials.get&&window.PublicKeyCredential)}function Bn(){return zn()?"supported":"unsupported"}let Wn=!1;async function Xn(){const t=document.querySelector("link[rel=sudo-modal]"),e=document.querySelector(".js-sudo-prompt");if(e instanceof HTMLTemplateElement)return e;if(t){const e=await y(document,function(t){const e=new URL(t,window.location.origin),n=new URLSearchParams(e.search.slice(1));return n.set("webauthn-support",Bn()),e.search=n.toString(),e.toString()}(t.href));return document.body.appendChild(e),document.querySelector(".js-sudo-prompt")}throw new Error("couldn't load sudo prompt")}let Un=!1;async function Fn(){if(Wn)return!1;Wn=!0,Un=!1;const t=(await Xn()).content.cloneNode(!0),e=await Ce({content:t});return await new Promise((t=>{e.addEventListener("dialog:remove",(function(){Wn=!1,t()}),{once:!0})})),Un}function Kn(t){if(t.querySelector(".js-task-list-field")){const e=t.querySelectorAll("task-lists");for(const t of e)t instanceof c&&(t.disabled=!1)}}function Jn(t,e,n){const o=t.querySelector(".js-comment-update");!function(t){for(const e of t.querySelectorAll("task-lists"))e instanceof c&&(e.disabled=!0)}(t),ro(t);const i=o.elements.namedItem("task_list_track");i instanceof Element&&i.remove();const s=o.elements.namedItem("task_list_operation");s instanceof Element&&s.remove();const r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("name","task_list_track"),r.setAttribute("value",e),o.appendChild(r);const a=document.createElement("input");if(a.setAttribute("type","hidden"),a.setAttribute("name","task_list_operation"),a.setAttribute("value",JSON.stringify(n)),o.appendChild(a),!o.elements.namedItem("task_list_key")){const t=o.querySelector(".js-task-list-field").getAttribute("name").split("[")[0],e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name","task_list_key"),e.setAttribute("value",t),o.appendChild(e)}t.classList.remove("is-comment-stale"),q(o)}r(".js-sudo-form",(async function(t,e){try{await e.text()}catch(n){if(!n.response)throw n;let e;switch(n.response.status){case 401:e="Incorrect password.";break;case 429:e="Too many password attempts. Please wait and try again later.";break;default:e="Failed to receive a response. Please try again later."}return t.querySelector(".js-sudo-error").textContent=e,t.querySelector(".js-sudo-error").hidden=!1,void(t.querySelector(".js-sudo-password").value="")}Un=!0,t.closest("details").removeAttribute("open")})),o(".js-task-list-container .js-task-list-field",(function(t){const e=t.closest(".js-task-list-container");Kn(e),ro(e)})),n("task-lists-move","task-lists",(function(t){const{src:e,dst:n}=t.detail;Jn(t.currentTarget.closest(".js-task-list-container"),"reordered",{operation:"move",src:e,dst:n})})),n("task-lists-check","task-lists",(function(t){const{position:e,checked:n}=t.detail;Jn(t.currentTarget.closest(".js-task-list-container"),"checked:"+(n?1:0),{operation:"check",position:e,checked:n})})),r(".js-task-list-container .js-comment-update",(async function(t,e){const n=t.closest(".js-task-list-container"),o=t.elements.namedItem("task_list_track");o instanceof Element&&o.remove();const i=t.elements.namedItem("task_list_operation");let s;i instanceof Element&&i.remove();try{s=await e.json()}catch(r){let t;try{t=JSON.parse(r.response.text)}catch(Mn){}if(t&&t.stale){const t=n.querySelector(".js-task-list-field");t.classList.add("session-resumable-canceled"),t.classList.remove("js-session-resumable")}else window.location.reload()}s&&(i&&s.json.source&&(n.querySelector(".js-task-list-field").value=s.json.source),Kn(n),requestAnimationFrame((()=>ro(n))))}));let Yn=!1,Gn=!1;function Zn(t){const e="insertLineBreak"===t.inputType;Yn=!!e}function Qn(t){const e=t;if(!Yn){if(!("insertLineBreak"===e.inputType))return}!function(t){const e=function(t,e){const n=e[0];if(!n||!t)return;const o=t.substring(0,n).split("\n"),i=o[o.length-2],s=null==i?void 0:i.match(so);if(!s)return;const r=s[0],c=s[1],a=s[2],l=parseInt(s[3],10),u=Boolean(s[4]);let f=`${isNaN(l)?a:l+1+"."} ${u?"[ ] ":""}`,d=t.indexOf("\n",n);d<0&&(d=t.length);const m=t.substring(n,d);m.startsWith(f)&&(f="");if(i.replace(r,"").trim().length>0||m.trim().length>0){const e=`${c}${f}`;return{text:t.substring(0,n)+e+t.substring(n),selection:[n+e.length,n+e.length]}}{const e=n-("\n"+r).length;return{text:t.substring(0,e)+t.substring(n),selection:[e,e]}}}(t.value,[t.selectionStart,t.selectionEnd]);if(void 0===e)return;t.value=e.text,t.selectionStart=e.selection[0],t.selectionEnd=e.selection[1]}(e.target),Yn=!1}function to(t){if(Gn)return;const e=t;if("Enter"===e.key&&e.shiftKey){const t=e.target,n=function(t,e){const n=e[0];if(!n||!t)return;const o=t.substring(0,n).split("\n"),i=o[o.length-1],s=null==i?void 0:i.match(io);if(!s)return;const r="\n"+(s[1]||"");return{text:t.substring(0,n)+r+t.substring(n),selection:[n+r.length,n+r.length]}}(t.value,[t.selectionStart,t.selectionEnd]);if(void 0===n)return;t.value=n.text,t.selectionStart=n.selection[0],t.selectionEnd=n.selection[1],e.preventDefault(),s(t,"change")}}function eo(){Gn=!0}function no(){Gn=!1}function oo(t){if(Gn)return;const e=t;if("Escape"===e.key)return void function(t){const e=t.target;"backward"===e.selectionDirection?e.selectionEnd=e.selectionStart:e.selectionStart=e.selectionEnd}(t);if("Tab"!==e.key)return;const n=e.target,o=function(t,e,n){const o=e[0]||0,i=e[1]||o;if(null===e[0]||o===i)return;const s=t.substring(0,o).lastIndexOf("\n")+1,r=t.indexOf("\n",i-1),c=r>0?r:t.length-1,a=t.substring(s,c).split("\n");let l=!1,u=0,f=0;const d=[];for(const g of a){const t=g.match(/^\s*/);if(t){let e=t[0];const o=g.substring(e.length);if(n){const t=e.length;e=e.slice(0,-2),u=l?u:e.length-t,l=!0,f+=e.length-t}else e+=" ",u=2,f+=2;d.push(e+o)}}const m=d.join("\n"),p=t.substring(0,s)+m+t.substring(c),h=[Math.max(s,o+u),i+f];return{text:p,selection:h}}(n.value,[n.selectionStart,n.selectionEnd],e.shiftKey);void 0!==o&&(e.preventDefault(),n.value=o.text,n.selectionStart=o.selection[0],n.selectionEnd=o.selection[1])}jt("TASK_LIST_AUTOCOMPLETE")&&o(".js-task-list-field",{subscribe:t=>b(v(t,"keydown",oo),v(t,"keydown",to),v(t,"beforeinput",Zn),v(t,"input",Qn),v(t,"compositionstart",eo),v(t,"compositionend",no))});const io=/^(\s*)?/;const so=/^(\s*)([*-]|(\d+)\.)\s(\[[\sx]\]\s)?/;function ro(t){if(!jt("TASK_LISTS_UI"))return;if(t.closest(".js-timeline-item"))return;const e=t.querySelectorAll("[type=checkbox]"),n=e.length,o=Array.from(e).filter((t=>t.checked)).length,i=document.querySelectorAll("subtasks-progress[data-type=checklist]");for(const s of i)s.setAttribute("data-completed",String(o)),s.setAttribute("data-total",String(n))}let co=class ActionsPolicyFormElement extends HTMLElement{connectedCallback(){this.submitButton.disabled=!0,this.toggleSpecificOptions()}enableForm(){this.submitButton.disabled=!1}toggleSpecificOptions(){this.selectRadio.checked?this.specificOptions.hidden=!1:this.specificOptions.hidden=!0}};function ao(t,e){let n=t;const o=t.ownerDocument;n!==o&&n!==o.defaultView&&n!==o.documentElement&&n!==o.body||(n=o);if(n instanceof o.defaultView.Document){const t=null!=e.top?e.top:o.defaultView.pageYOffset,n=null!=e.left?e.left:o.defaultView.pageXOffset;return void o.defaultView.scrollTo(n,t)}if(!(n instanceof o.defaultView.HTMLElement))throw new Error("invariant");n.scrollTop=e.top,null!=e.left&&(n.scrollLeft=e.left)}a([l],co.prototype,"specificOptions",void 0),a([l],co.prototype,"submitButton",void 0),a([l],co.prototype,"selectRadio",void 0),co=a([u],co);const lo=navigator.userAgent.match(/Macintosh/),uo=lo?"metaKey":"ctrlKey",fo=lo?"Meta":"Control";let mo=!1,po={x:0,y:0};function ho(t){t instanceof MouseEvent&&(po.x===t.clientX&&po.y===t.clientY||(mo=!1),po={x:t.clientX,y:t.clientY})}function go(t){if(mo)return;const e=t.currentTarget,{target:n}=t;if(!(n instanceof Element&&e instanceof HTMLElement&&e.closest(".js-active-navigation-container")))return;const o=n.closest(".js-navigation-item");o&&To(o,e)}o(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:t=>b(v(t,"mouseover",ho),v(t,"mouseover",go))});let yo=0;function vo(t){if(t.target!==document.body&&t.target instanceof HTMLElement&&!t.target.classList.contains("js-navigation-enable"))return;mo=!0;const e=Co();let n=!1;if(e){const o=e.querySelector(".js-navigation-item.navigation-focus")||e;n=s(o,"navigation:keydown",{hotkey:f(t),originalEvent:t,originalTarget:t.target})}n||t.preventDefault()}function bo(t){const e=t.modifierKey||t.altKey||t.ctrlKey||t.metaKey;s(t.currentTarget,"navigation:open",{modifierKey:e,shiftKey:t.shiftKey})||t.preventDefault()}function wo(t){const e=Co();t!==e&&(e&&Eo(e),t.classList.add("js-active-navigation-container"))}function Eo(t){t.classList.remove("js-active-navigation-container")}o(".js-active-navigation-container",{add(){yo++,1===yo&&document.addEventListener("keydown",vo)},remove(){yo--,0===yo&&document.removeEventListener("keydown",vo)}}),n("navigation:keydown",".js-active-navigation-container",(function(t){const e=t.currentTarget,n=t.detail.originalTarget.matches("input, textarea"),o=t.target;if(o.classList.contains("js-navigation-item"))if(n){if(lo)switch(f(t.detail.originalEvent)){case"Control+n":So(o,e);break;case"Control+p":jo(o,e)}switch(f(t.detail.originalEvent)){case"ArrowUp":jo(o,e);break;case"ArrowDown":So(o,e);break;case"Enter":case fo+"+Enter":ko(o,t.detail.originalEvent[uo])}}else{if(lo)switch(f(t.detail.originalEvent)){case"Control+n":So(o,e);break;case"Control+p":jo(o,e);break;case"Alt+v":!function(t,e){const n=Mo(e);let o=n.indexOf(t);const i=kn(t);if(null==i)return;let s,r;for(;(s=n[o-1])&&(r=Tn(s,i))&&r.top>=0;)o--;if(s){if(To(s,e))return;Ho(i,s)}}(o,e);break;case"Control+v":!function(t,e){const n=Mo(e);let o=n.indexOf(t);const i=kn(t);if(null==i)return;let s,r;for(;(s=n[o+1])&&(r=Tn(s,i))&&r.bottom>=0;)o++;if(s){if(To(s,e))return;Ho(i,s)}}(o,e)}switch(f(t.detail.originalEvent)){case"j":case"J":So(o,e);break;case"k":case"K":jo(o,e);break;case"o":case"Enter":case fo+"+Enter":ko(o,t.detail[uo])}}else{const o=Mo(e)[0];if(o)if(n){if(lo)switch(f(t.detail.originalEvent)){case"Control+n":To(o,e)}switch(f(t.detail.originalEvent)){case"ArrowDown":To(o,e)}}else{if(lo)switch(f(t.detail.originalEvent)){case"Control+n":case"Control+v":To(o,e)}switch(f(t.detail.originalEvent)){case"j":To(o,e)}}}if(n){if(lo)switch(f(t.detail.originalEvent)){case"Control+n":case"Control+p":t.preventDefault()}switch(f(t.detail.originalEvent)){case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Enter":t.preventDefault()}}else{if(lo)switch(f(t.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":t.preventDefault()}switch(f(t.detail.originalEvent)){case"j":case"k":t.preventDefault();break;case"o":case"Enter":case uo+"+Enter":t.preventDefault()}}})),n("click",".js-active-navigation-container .js-navigation-item",(function(t){bo(t)})),n("navigation:keyopen",".js-active-navigation-container .js-navigation-item",(function(t){const e=t.currentTarget.classList.contains("js-navigation-open")?t.currentTarget:t.currentTarget.querySelector(".js-navigation-open");if(e instanceof HTMLAnchorElement){if(t.detail.modifierKey)window.open(e.href,"_blank"),window.focus();else{e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))&&e.click()}t.preventDefault()}else bo(t)}));const Lo=[];function xo(t,e){const n=e||t,o=Mo(t)[0],i=n.closest(".js-navigation-item")||o;if(wo(t),i instanceof HTMLElement){if(To(i,t))return;Ro(kn(i),i)}}function Ao(t){const e=t.querySelectorAll(".js-navigation-item.navigation-focus");for(const n of e)n.classList.remove("navigation-focus")}function jo(t,e){const n=Mo(e),o=n.indexOf(t),i=n[o-1];if(i){if(To(i,e))return;const t=kn(i);"page"===qo(e)?Ho(t,i):Ro(t,i)}}function So(t,e){const n=Mo(e),o=n.indexOf(t),i=n[o+1];if(i){if(To(i,e))return;const t=kn(i);"page"===qo(e)?Ho(t,i):Ro(t,i)}}function ko(t,e=!1){s(t,"navigation:keyopen",{modifierKey:e})}function To(t,e){return!s(t,"navigation:focus")||(Ao(e),t.classList.add("navigation-focus"),!1)}function Co(){return document.querySelector(".js-active-navigation-container")}function Mo(t){const e=[];for(const n of t.querySelectorAll(".js-navigation-item"))n instanceof HTMLElement&&Zt(n)&&e.push(n);return e}function qo(t){return t.getAttribute("data-navigation-scroll")||"item"}function Ho(t,e,n="smooth"){const o=Tn(e,t);o&&(o.bottom<=0?e.scrollIntoView({behavior:n,block:"start"}):o.top<=0&&e.scrollIntoView({behavior:n,block:"end"}))}function Ro(t,e){const n=Cn(e,t),o=Tn(e,t);if(null!=n&&null!=o)if(o.bottom<=0&&document.body){ao(t,{top:(null!=t.offsetParent?t.scrollHeight:document.body.scrollHeight)-(n.bottom+o.height)})}else o.top<=0&&ao(t,{top:n.top})}async function Do(t,e=!0){const n=t.querySelector('[name="codespace[location]"]');if(!n||n.value)return;const o=t.querySelector("button[type=submit]");o instanceof HTMLInputElement&&(o.disabled=!0);const i=t.getAttribute("data-codespace-locations-url");if(!i)return;const s=await Oo(i);return e&&s&&(n.value=s.current),s}async function Oo(t){const e=await fetch(t,{headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}});if(!e.ok){const t=new Error,n=e.statusText?" "+e.statusText:"";throw t.message=`HTTP ${e.status}${n}`,t}return e.json()}function _o(t){var e;const n=t.querySelector(".js-inline-comment-form-container");n.classList.add("open"),null===(e=n.querySelector(".js-write-tab"))||void 0===e||e.click(),n.querySelector(".js-comment-field").focus(),s(n,"inlinecomment:focus")}function $o(t){t.reset();const e=t.closest(".js-inline-comment-form-container");e.classList.remove("open"),s(e,"inlinecomment:collapse")}n("submit",".js-prefetch-codespace-location",(async function(t){const e=t.currentTarget;t.preventDefault(),await Do(e),e.submit()})),n("click",".js-toggle-inline-comment-form",(function(t){_o(t.currentTarget.closest(".js-line-comments"))})),n("quote-selection",".js-line-comments",(function(t){_o(t.currentTarget)})),A("keydown",".js-inline-comment-form-container form .js-comment-field",(function(t){const e=t.target;if(!e.classList.contains("js-navigation-enable")&&"Escape"===t.key&&0===e.value.length){$o(e.closest("form")),t.preventDefault()}})),n("click",".js-hide-inline-comment-form",(function(t){const e=t.currentTarget.closest("form"),n=t.currentTarget.closest(".js-inline-comment-form-container").querySelector(".js-multi-line-preview");n&&(n.hidden=!0),!we(e)||confirm(t.target.getAttribute("data-confirm-cancel-text"))?$o(e):t.preventDefault()}));class DiffPosition{constructor(t,e,n){this.diffId=t,this.side=e,this.lineNumber=n,this.element=Lt(document,this.anchor())}sideForCommenting(){return this.element&&this.element.classList.contains("blob-num-context")?"right":{R:"right",L:"left"}[this.side]}isContext(){return!!this.element&&this.element.classList.contains("blob-num-context")}anchor(){return`${this.diffId}${this.anchorSuffix()}`}anchorSuffix(){return`${this.side}${this.lineNumber}`}is(t){return this.diffId===t.diffId&&this.side===t.side&&this.lineNumber===t.lineNumber}}class DiffRange{constructor(t,e,n,o,i){this.elements=new Set,this.isParsed=!1,this.isSplit=!1,this._rows=new Set,this._isAcrossHunks=!1,this._isContextOnly=!0,this._includesExpandedLine=!1,this.diffId=t,this.diffTable=document.querySelector(`.js-diff-table[data-diff-anchor="${t}"]`),this.diffTable&&(this.isSplit=this.diffTable.classList.contains("js-file-diff-split")),this.start=new DiffPosition(t,e,n),this.end=new DiffPosition(t,o,i),this.lineCount=0,this.parse()}anchor(){const t=[];return t.push(this.start.anchor()),this.start.is(this.end)||t.push(this.end.anchorSuffix()),t.join("-")}parse(){if(!this.diffTable)return;let t=this.unify(this.diffTable.querySelectorAll(".js-linkable-line-number"));t=this.filterInRange(t),this.lineCount=t.length,this.elements=this.expandRelatedElements(t),this.isParsed=!0}unify(t){if(!this.isSplit)return Array.from(t);const e=[];let n=[],o=[];for(const i of t)i.classList.contains("blob-num-addition")?n.push(i):i.classList.contains("blob-num-deletion")?o.push(i):(e.push(...o,...n,i),n=[],o=[]);return e.push(...o,...n),e}filterInRange(t){if(!this.start.element||!this.end.element)return[];let e=t.indexOf(this.start.element),n=t.indexOf(this.end.element);if(e>n){[e,n]=[n,e];const[t,o]=[this.end,this.start];this.start=t,this.end=o}return t.slice(e,n+1)}isContextOnly(){return this.isParsed||this.parse(),this._isContextOnly}isAcrossHunks(){return this.isParsed||this.parse(),this._isAcrossHunks}includesExpandedLine(){return this.isParsed||this.parse(),this._includesExpandedLine}rows(){return this.isParsed||this.parse(),this._rows}expandRelatedElements(t){const e=this.isSplit,n=t[0],o=t[t.length-1];if(n&&o){const t=n.closest("[data-hunk]"),e=o.closest("[data-hunk]");if(t&&e){t.getAttribute("data-hunk")!==e.getAttribute("data-hunk")&&(this._isAcrossHunks=!0)}}return t.reduce(((t,n)=>{!this._includesExpandedLine&&n.closest(".blob-expanded")&&(this._includesExpandedLine=!0);const o=n.parentElement;o instanceof HTMLElement&&this._rows.add(o);const i=n.classList.contains("blob-num-deletion")||n.classList.contains("blob-num-addition");if(i&&(this._isContextOnly=!1),!o)return t;if(e&&i){return Array.from(o.children).indexOf(n)<2?t.add(o.children[0]).add(o.children[1]):t.add(o.children[2]).add(o.children[3])}for(const e of Array.from(o.children))t.add(e);return t}),new Set)}}function Io(t){const e=t.match(/^#?(diff-[a-f0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);if(null!=e&&6===e.length)return e;const n=t.match(/^#?(discussion-diff-[0-9]+)(L|R)(\d+)(?:-(L|R)(\d+))?$/i);return null!=n&&6===n.length?n:null}let Po=null,No=null,Vo=!1,zo=null;function Bo(t){return!!t.closest(".js-multi-line-comments-enabled")}function Wo(t,e){if(!Bo(t))return!1;const{start:{lineNumber:n},end:{lineNumber:o}}=e;return(n!==o||!e.isContextOnly())&&(!e.isAcrossHunks()&&!e.includesExpandedLine())}function Xo(t){return t.closest(".js-diff-table").classList.contains("is-selecting")}function Uo(t,e){let n=t.id;if(e){const e=Io(n);if(!e)return;const o=e[1],i=e[2],s=e[3];if(Po&&Po.diffId===o){if(i===Po.start.side&&s<Po.start.lineNumber)return;const e=new DiffRange(o,Po.start.side,Po.start.lineNumber,i,+s);n=e.anchor();const r=t.closest(".js-file-content[data-hydro-view]");if(r instanceof HTMLElement&&function(t,e){const n={starting_diff_position:e.start.side+e.start.lineNumber,ending_diff_position:e.end.side+e.end.lineNumber,line_count:e.lineCount};t.setAttribute("data-hydro-client-context",JSON.stringify(n)),ln(t)}(r,e),Vo&&Xo(t)){t.closest(".js-diff-table").classList.toggle("is-commenting",Wo(t,e))}No=function(){if(Wo(t,e)){const n=`.js-add-line-comment[data-side="${e.end.sideForCommenting()}"]`,o=t.closest("tr").querySelector(n);o&&e&&o.click()}}}}window.history.replaceState(null,null,"#"+n),Zo()}function Fo(t){if(!(t instanceof HTMLElement))return null;if(t.classList.contains("js-linkable-line-number"))return t;const e=t.previousElementSibling;return e?Fo(e):null}function Ko(t){Po&&(t.target.closest(".js-diff-table")||(window.history.replaceState(null,null,"#"),Zo()))}function Jo(t){const e=t.target;if(!(e instanceof Element))return;zo&&function(){if(!zo)return;Uo(zo,!1);const t=zo.closest(".js-diff-table");zo=null,t.classList.add("is-selecting"),t.classList.add("is-commenting"),document.addEventListener("mouseup",(function(e){t.classList.remove("is-selecting"),t.classList.remove("is-selecting","is-commenting"),No&&No(),No=null,Go(t),e.preventDefault()}),{once:!0})}();const n=e.closest(".blob-code, .js-linkable-line-number");var o;return n?n.classList.contains("blob-code")?function(t){const e=Fo(t);e&&Xo(e)&&Uo(e,!0)}(n):void(n.classList.contains("js-linkable-line-number")&&Xo(o=n)&&Uo(o,!0)):void 0}function Yo(t){t.addEventListener("mouseenter",Jo,{capture:!0})}function Go(t){Vo=!1,t.removeEventListener("mouseenter",Jo,{capture:!0}),setTimeout((()=>{document.addEventListener("click",Ko,{once:!0})}),0)}function Zo(){if(Po){for(const t of Po.elements)t.classList.remove("selected-line","selected-line-top","selected-line-bottom","selected-line-left","selected-line-right");Po=null}const t=Io(window.location.hash);if(!t)return;const e=t[1],n=t[2],o=t[3],i=t[4]||n,s=t[5]||o;Po=new DiffRange(e,n,+o,i,+s);const r=Array.from(Po.elements)[0];r&&(r.closest(".js-diff-table").classList.contains("file-diff-split")?function(){if(!Po)return;for(const s of Po.elements)s.classList.add("selected-line");const t=[],e=[],n=[],o=[];for(const s of Po.rows()){const[i,r,c,a]=s.children;t.push(i),e.push(r),n.push(c),o.push(a)}function i(t){for(const[e,n]of t.entries()){if(n.classList.contains("empty-cell"))continue;const o=t[e-1];o&&o.classList.contains("selected-line")||n.classList.add("selected-line-top");const i=t[e+1];i&&i.classList.contains("selected-line")||n.classList.add("selected-line-bottom")}}i(t),i(e),i(n),i(o);for(const[s,r]of e.entries())o[s].classList.contains("selected-line")||r.classList.add("selected-line-right");for(const[s,r]of n.entries())e[s].classList.contains("selected-line")||r.classList.add("selected-line-left")}():function(){if(!Po)return;for(const o of Po.elements)o.classList.add("selected-line");const t=Array.from(Po.rows()),e=t[0];for(const o of e.children)o.classList.add("selected-line-top");const n=t[t.length-1];for(const o of n.children)o.classList.add("selected-line-bottom")}())}n("mousedown",".js-add-line-comment",(function(t){const e=t.target.parentElement;if(!e)return;if(!Bo(t.target))return;const n=Fo(e);if(!n)return;const o=t.target.closest(".js-diff-table");Yo(o),zo=n,Vo=!0,t.target.addEventListener("mouseup",(function(){Go(o),zo=null,Vo=!1}),{once:!0}),Po&&Po.lineCount>1&&t.preventDefault()})),n("mousedown",".js-linkable-line-number",(function(t){if(!(t instanceof MouseEvent))return;if(0!==t.button)return;const e=t.target;if(!(e instanceof Element))return;const n=e.closest(".js-diff-table");n.classList.add("is-selecting"),Yo(n),document.addEventListener("mouseup",(function(){e.closest(".js-diff-table").classList.remove("is-selecting"),Go(n)}),{once:!0}),Uo(e,t instanceof MouseEvent&&t.shiftKey),t.preventDefault()})),ce(Zo),o(".blob-expanded",Zo),o(".js-diff-progressive-loader",(function(t){t.addEventListener("load",Zo)})),o(".js-diff-entry-loader",(function(t){t.addEventListener("load",Zo)})),n("click",".js-rich-diff.collapsed .js-expandable",(function(t){if(!(t.target instanceof Element))return;t.preventDefault();t.target.closest(".js-rich-diff").classList.remove("collapsed")})),n("click",".js-show-rich-diff",(function(t){const e=t.currentTarget.closest(".js-warn-no-visible-changes");if(!e)return;e.classList.add("d-none");const n=e.parentElement.querySelector(".js-no-rich-changes");n&&n.classList.remove("d-none")}))}}}));
//# sourceMappingURL=chunk-frameworks-90086a98.js.map