"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([["github-elements"],{65578:(e,t,i)=>{i(92495),i(20761),i(74057),i(91707),i(62044),i(90204);var n=i(94147);i(78143),i(27552),i(72705),i(81028),i(44911),i(92284),window.IncludeFragmentElement.prototype.fetch=e=>(e.headers.append("X-Requested-With","XMLHttpRequest"),window.fetch(e)),i(52558);var s=i(39595);function r(e,t,i,n){var s,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(r<3?s(a):r>3?s(t,i,a):s(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}let a=class GitCloneHelpElement extends HTMLElement{updateURL(e){let t=e.currentTarget,i=t.getAttribute("data-url")||"";if(this.helpField.value=i,t.matches(".js-git-protocol-clone-url"))for(let e of this.helpTexts)e.textContent=i;for(let e of this.cloneURLButtons)e.classList.remove("selected");t.classList.add("selected")}};function l(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function o(e,t){var i=l(e,t,"get");return i.get?i.get.call(e):i.value}function u(e,t,i){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,i)}function d(e,t,i){var n=l(e,t,"set");return!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i),i}r([s.aC],a.prototype,"helpField",void 0),r([s.zV],a.prototype,"helpTexts",void 0),r([s.zV],a.prototype,"cloneURLButtons",void 0),a=r([s.p_],a);var h=new WeakMap,c=new WeakMap,m=new WeakMap,p=new WeakMap;let f=class MarkedTextElement extends HTMLElement{get query(){return this.ownerInput?this.ownerInput.value:this.getAttribute("query")||""}set query(e){this.setAttribute("query",e)}get ownerInput(){let e=this.ownerDocument.getElementById(this.getAttribute("data-owner-input")||"");return e instanceof HTMLInputElement?e:null}connectedCallback(){this.handleEvent(),this.ownerInput?.addEventListener("input",this),d(this,m,new MutationObserver(()=>this.handleEvent()))}handleEvent(){o(this,p)&&cancelAnimationFrame(o(this,p)),d(this,p,requestAnimationFrame(()=>this.mark()))}disconnectedCallback(){this.ownerInput?.removeEventListener("input",this),o(this,m).disconnect()}mark(){let e=this.textContent||"",t=this.query;if(e===o(this,h)&&t===o(this,c))return;d(this,h,e),d(this,c,t),o(this,m).disconnect();let i=0,n=document.createDocumentFragment();for(let s of(this.positions||function(e,t){let i=[],n=0;for(let s=0;se.length)continue;""!==e.slice(i,s)&&n.appendChild(document.createTextNode(e.slice(i,s))),i=s+1;let t=document.createElement("mark");t.textContent=e[s],n.appendChild(t)}n.appendChild(document.createTextNode(e.slice(i))),this.replaceChildren(n),o(this,m).observe(this,{attributes:!0,childList:!0,subtree:!0})}constructor(...e){super(...e),u(this,h,{writable:!0,value:void 0}),u(this,c,{writable:!0,value:void 0}),u(this,m,{writable:!0,value:void 0}),u(this,p,{writable:!0,value:void 0}),d(this,h,""),d(this,c,"")}};f.observedAttributes=["query","data-owner-input"],window.customElements.get("marked-text")||(window.MarkedTextElement=f,window.customElements.define("marked-text",f));var v=i(72177);let g=class PasswordStrengthElement extends HTMLElement{connectedCallback(){this.addEventListener("input",b)}disconnectedCallback(){this.removeEventListener("input",b)}};function b(e){let t=e.currentTarget;if(!(t instanceof g))return;let i=e.target;if(!(i instanceof HTMLInputElement))return;let n=i.form;if(!(n instanceof HTMLFormElement))return;let s=function(e,t){let i={valid:!1,hasMinimumCharacterCount:e.length>=t.minimumCharacterCount,hasMinimumPassphraseLength:0!==t.passphraseLength&&e.length>=t.passphraseLength,hasLowerCase:/[a-z]/.test(e),hasNumber:/\d/.test(e)};return i.valid=i.hasMinimumPassphraseLength||i.hasMinimumCharacterCount&&i.hasLowerCase&&i.hasNumber,i}(i.value,{minimumCharacterCount:Number(t.getAttribute("minimum-character-count")),passphraseLength:Number(t.getAttribute("passphrase-length"))});if(s.valid){i.setCustomValidity("");let e=t.querySelector("dl.form-group");e&&(e.classList.remove("errored"),e.classList.add("successed"))}else"true"!==t.getAttribute("skip-custom-validity")&&i.setCustomValidity(t.getAttribute("invalid-message")||"Invalid");(function(e,t){let i=e.querySelector("[data-more-than-n-chars]"),n=e.querySelector("[data-min-chars]"),s=e.querySelector("[data-number-requirement]"),r=e.querySelector("[data-letter-requirement]"),a=e.getAttribute("error-class")?.split(" ").filter(e=>e.length>0)||[],l=e.getAttribute("pass-class")?.split(" ").filter(e=>e.length>0)||[];for(let e of[i,n,s,r])e?.classList.remove(...a,...l);if(t.hasMinimumPassphraseLength&&i)i.classList.add(...l);else if(t.valid)n.classList.add(...l),s.classList.add(...l),r.classList.add(...l);else{let e=t.hasMinimumCharacterCount?l:a,o=t.hasNumber?l:a,u=t.hasLowerCase?l:a;i?.classList.add(...a),n.classList.add(...e),s.classList.add(...o),r.classList.add(...u)}})(t,s),(0,v.t)(n)}function w(e,t,i,n){var s,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(r<3?s(a):r>3?s(t,i,a):s(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}window.customElements.get("password-strength")||(window.PasswordStrengthElement=g,window.customElements.define("password-strength",g)),i(21424);let E=class PollIncludeFragmentElement extends n.T{async fetch(e,t){let i=await super.fetch(e),n=t||this.intervalMilliseconds;(!n||isNaN(n))&&(n=1e3);let s=isNaN(this.backoffMultiplier)?1.5:this.backoffMultiplier;return 202===i.status?(await new Promise(e=>{this.pollingTimeout=setTimeout(e,n)}),this.fetch(e,n*s)):i}refetch(){return this.cancelPolling(),super.refetch()}connectedCallback(){super.connectedCallback(),this.retryButton&&this.retryButton.addEventListener("click",()=>{this.refetch()})}disconnectedCallback(){this.cancelPolling()}cancelPolling(){this.pollingTimeout&&clearTimeout(this.pollingTimeout)}constructor(...e){super(...e),this.intervalMilliseconds=1e3,this.backoffMultiplier=1.5,this.pollingTimeout=null}};w([s.aC],E.prototype,"retryButton",void 0),w([s.CF],E.prototype,"intervalMilliseconds",void 0),w([s.CF],E.prototype,"backoffMultiplier",void 0),E=w([s.p_],E);var y=i(35908);let x=e=>void 0===e||/\n/.test(e),C=["position:absolute;","overflow:auto;","word-wrap:break-word;","top:0px;","left:-9999px;"],L=["box-sizing","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","line-height","max-height","min-height","padding-bottom","padding-left","padding-right","padding-top","border-bottom","border-left","border-right","border-top","text-decoration","text-indent","text-transform","width","word-spacing"],k=new WeakMap,M=new WeakMap,A=class SlashCommandExpander{destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}activate(e,t){this.input===document.activeElement&&this.setMenu(e,t)}deactivate(){let e=this.menu,t=this.combobox;return!!e&&!!t&&(this.menu=null,this.combobox=null,e.removeEventListener("combobox-commit",this.oncommit),e.removeEventListener("mousedown",this.onmousedown),t.destroy(),e.remove(),!0)}setMenu(e,t){this.deactivate(),this.menu=t,t.id||(t.id=`text-expander-${Math.floor(1e5*Math.random()).toString()}`),this.expander.append(t);let i=t.querySelector(".js-command-list-container");i?this.combobox=new y.A(this.input,i):this.combobox=new y.A(this.input,t);let{top:n,left:s}=function(e,t=e.selectionEnd){let{mirror:i,marker:n}=function(e,t){let i,n;let s=e.nodeName.toLowerCase();if("textarea"!==s&&"input"!==s)throw Error("expected textField to a textarea or input");let r=k.get(e);if(r&&r.parentElement===e.parentElement)r.textContent="";else{r=document.createElement("div"),k.set(e,r);let t=window.getComputedStyle(e),i=C.slice(0);"textarea"===s?i.push("white-space:pre-wrap;"):i.push("white-space:nowrap;");for(let e=0,n=L.length;e{i.remove()},5e3),{top:r.top-s.top,left:r.left-s.left}}(this.input,e.position),r=parseInt(window.getComputedStyle(this.input).fontSize);t.style.top=`${n+r}px`,t.style.left=`${s}px`,this.combobox.start(),t.addEventListener("combobox-commit",this.oncommit),t.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1)}setValue(e){if(null==e)return;let t=this.match;if(!t)return;let{cursor:i,value:n}=this.replaceCursorMark(e);n=n?.length===0?n:`${n} `;let s=t.position-t.key.length,r=t.position+t.text.length;this.input.focus();let a=!1;try{this.input.setSelectionRange(s,r),a=document.execCommand("insertText",!1,n)}catch{a=!1}if(!a){let e=this.input.value.substring(0,t.position-t.key.length),i=this.input.value.substring(t.position+t.text.length);this.input.value=e+n+i}this.deactivate(),i=s+(i||n.length),this.input.selectionStart=i,this.input.selectionEnd=i}replaceCursorMark(e){let t=/%cursor%/gm,i=t.exec(e);return i?{cursor:i.index,value:e.replace(t,"")}:{cursor:null,value:e}}async onCommit({target:e}){if(!(e instanceof HTMLElement)||!this.combobox)return;let t=this.match;if(!t)return;let n={item:e,key:t.key,value:null},s=new CustomEvent("text-expander-value",{cancelable:!0,detail:n}),r=!this.expander.dispatchEvent(s),{onValue:a}=await i.e("app_assets_modules_github_slash-command-expander-element_slash-command-suggester_ts").then(i.bind(i,68824));await a(this.expander,t.key,e),!r&&n.value&&this.setValue(n.value)}onBlur(){if(this.interactingWithMenu){this.interactingWithMenu=!1;return}this.deactivate()}onPaste(){this.justPasted=!0}async delay(e){return new Promise(t=>setTimeout(t,e))}async onInput(){if(this.justPasted){this.justPasted=!1;return}let e=this.findMatch();if(e){if(this.match=e,await this.delay(this.appropriateDelay()),this.match!==e)return;let t=await this.notifyProviders(e);if(!this.match)return;t?this.activate(e,t):this.deactivate()}else this.match=null,this.deactivate()}appropriateDelay(){return 250}findMatch(){let e=this.input.selectionEnd,t=this.input.value;for(let i of this.expander.getKeys()){let n=function(e,t,i){let n=e.lastIndexOf(t,i-1);if(-1===n||e.lastIndexOf(" ",i-1)>n||e.lastIndexOf("\n",i-1)>n)return;let s=e[n-1];if(!s||"\n"===s)return{word:e.substring(n+t.length,i),position:n+t.length,beginningOfLine:x(s)}}(t,i,e);if(n)return{text:n.word,key:i,position:n.position,beginningOfLine:n.beginningOfLine}}}async notifyProviders(e){let t=[],n=e=>t.push(e),s=new CustomEvent("text-expander-change",{cancelable:!0,detail:{provide:n,text:e.text,key:e.key}});if(!this.expander.dispatchEvent(s))return;let{onChange:r}=await i.e("app_assets_modules_github_slash-command-expander-element_slash-command-suggester_ts").then(i.bind(i,68824));return r(this.expander,e.key,n,e.text),(await Promise.all(t)).filter(e=>e.matched).map(e=>e.fragment)[0]}onMousedown(){this.interactingWithMenu=!0}onKeydown(e){"Escape"===e.key&&this.deactivate()&&(e.stopImmediatePropagation(),e.preventDefault())}constructor(e,t){this.expander=e,this.input=t,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithMenu=!1,t.addEventListener("paste",this.onpaste),t.addEventListener("input",this.oninput),t.addEventListener("keydown",this.onkeydown),t.addEventListener("blur",this.onblur)}},T=class SlashCommandExpanderElement extends HTMLElement{getKeys(){let e=this.getAttribute("keys");return e?e.split(" "):[]}connectedCallback(){let e=this.querySelector('input[type="text"], textarea');if(!(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement))return;let t=new A(this,e);M.set(this,t)}disconnectedCallback(){let e=M.get(this);e&&(e.destroy(),M.delete(this))}setValue(e){let t=M.get(this);t&&t.setValue(e)}setMenu(e,t=!1){let i=M.get(this);i&&i.match&&(t&&(i.interactingWithMenu=!0),i.setMenu(i.match,e))}closeMenu(){let e=M.get(this);e&&e.setValue("")}isLoading(){let e=this.getElementsByClassName("js-slash-command-expander-loading")[0];if(e){let t=e.cloneNode(!0);t.classList.remove("d-none"),this.setMenu(t)}}showError(){let e=this.getElementsByClassName("js-slash-command-expander-error")[0];if(e){let t=e.cloneNode(!0);t.classList.remove("d-none"),this.setMenu(t)}}};function _(e,t,i,n){var s,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(r<3?s(a):r>3?s(t,i,a):s(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a}window.customElements.get("slash-command-expander")||(window.SlashCommandExpanderElement=T,window.customElements.define("slash-command-expander",T));let q=class TextSuggesterElement extends HTMLElement{acceptSuggestion(){this.suggestion?.textContent&&(this.input.value=this.suggestion.textContent,this.input.dispatchEvent(new Event("input")),this.suggestionContainer&&(this.suggestionContainer.hidden=!0),this.input.focus())}};function S(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function I(e,t){var i=S(e,t,"get");return i.get?i.get.call(e):i.value}function z(e,t,i){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,i)}function j(e,t,i){var n=S(e,t,"set");return!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i),i}_([s.aC],q.prototype,"input",void 0),_([s.aC],q.prototype,"suggestionContainer",void 0),_([s.aC],q.prototype,"suggestion",void 0),q=_([s.p_],q);var N=new WeakMap,F=new WeakMap,H=new WeakMap,R=new WeakMap,W=new WeakMap,P=new WeakMap;let O=class VirtualFilterInputElement extends HTMLElement{static get observedAttributes(){return["src","loading","data-property","aria-owns"]}get filtered(){if(I(this,P))return I(this,P);if(this.hasAttribute("aria-owns")){let e=this.ownerDocument.getElementById(this.getAttribute("aria-owns")||"");e&&(e instanceof Set||e&&"object"==typeof e&&"size"in e&&"add"in e&&"delete"in e&&"clear"in e)&&j(this,P,e)}return j(this,P,I(this,P)||new Set)}set filtered(e){j(this,P,e)}get input(){return this.querySelector("input, textarea")}get src(){return this.getAttribute("src")||""}set src(e){this.setAttribute("src",e)}get loading(){return"lazy"===this.getAttribute("loading")?"lazy":"eager"}set loading(e){this.setAttribute("loading",e)}get accept(){return this.getAttribute("accept")||""}set accept(e){this.setAttribute("accept",e)}get property(){return this.getAttribute("data-property")||""}set property(e){this.setAttribute("data-property",e)}reset(){this.filtered.clear(),j(this,W,new Set)}clear(){this.input&&(this.input.value="",this.input.dispatchEvent(new Event("input")))}attributeChangedCallback(e,t,i){let n=this.isConnected&&this.src,s="eager"===this.loading,r=t!==i;("src"===e||"data-property"===e)&&r&&(j(this,H,null),I(this,R)&&clearTimeout(I(this,R))),n&&s&&("src"===e||"loading"===e||"accept"===e||"data-property"===e)&&r?(cancelAnimationFrame(I(this,F)),j(this,F,requestAnimationFrame(()=>this.load()))):"aria-owns"===e&&j(this,P,null)}connectedCallback(){this.src&&"eager"===this.loading&&(cancelAnimationFrame(I(this,F)),j(this,F,requestAnimationFrame(()=>this.load())));let e=this.input;if(!e)return;let t=this.getAttribute("aria-owns");null!==t&&this.attributeChangedCallback("aria-owns","",t),e.setAttribute("autocomplete","off"),e.setAttribute("spellcheck","false"),this.src&&"lazy"===this.loading&&(document.activeElement===e?this.load():e.addEventListener("focus",()=>{this.load()},{once:!0})),e.addEventListener("input",this)}disconnectedCallback(){this.input?.removeEventListener("input",this)}handleEvent(e){"input"===e.type&&(I(this,R)&&clearTimeout(I(this,R)),j(this,R,window.setTimeout(()=>this.filterItems(),(this.input?.value?.length,300))))}async load(){I(this,N)?.abort(),j(this,N,new AbortController);let{signal:e}=I(this,N);if(!this.src)throw Error("missing src");if(await new Promise(e=>setTimeout(e,0)),!e.aborted){this.dispatchEvent(new Event("loadstart"));try{let t=await this.fetch(this.request(),{signal:e,headers:{"X-Requested-With":"XMLHttpRequest"}});if(location.origin+this.src!==t.url)return;if(!t.ok)throw Error(`Failed to load resource: the server responded with a status of ${t.status}`);j(this,W,new Set((await t.json())[this.property])),j(this,H,null),this.dispatchEvent(new Event("loadend"))}catch(t){if(e.aborted){this.dispatchEvent(new Event("loadend"));return}throw(async()=>{this.dispatchEvent(new Event("error")),this.dispatchEvent(new Event("loadend"))})(),t}this.filtered.clear(),this.filterItems()}}request(){return new Request(this.src,{method:"GET",credentials:"same-origin",headers:{Accept:this.accept||"application/json"}})}fetch(e,t){return fetch(e,t)}filterItems(){let e;let t=this.input?.value.trim()??"",i=I(this,H);if(j(this,H,t),t!==i){for(let n of(this.dispatchEvent(new CustomEvent("virtual-filter-input-filter")),i&&t.includes(i)?e=this.filtered:(e=I(this,W),this.filtered.clear()),e))this.filter(n,t)?this.filtered.add(n):this.filtered.delete(n);this.dispatchEvent(new CustomEvent("virtual-filter-input-filtered"))}}constructor(...e){super(...e),z(this,N,{writable:!0,value:void 0}),z(this,F,{writable:!0,value:void 0}),z(this,H,{writable:!0,value:void 0}),z(this,R,{writable:!0,value:void 0}),z(this,W,{writable:!0,value:void 0}),z(this,P,{writable:!0,value:void 0}),j(this,F,0),j(this,H,null),j(this,W,new Set),j(this,P,null),this.filter=(e,t)=>String(e).includes(t)}};function V(e,t,i){if(!t.has(e))throw TypeError("attempted to "+i+" private field on non-instance");return t.get(e)}function B(e,t){var i=V(e,t,"get");return i.get?i.get.call(e):i.value}function D(e,t,i){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,i)}function $(e,t,i){var n=V(e,t,"set");return!function(e,t,i){if(t.set)t.set.call(e,i);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=i}}(e,n,i),i}window.customElements.get("virtual-filter-input")||(window.VirtualFilterInputElement=O,window.customElements.define("virtual-filter-input",O));let X=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&t.target instanceof et&&"eager"===t.target.updating&&t.target.update()});var K=new WeakMap,U=new WeakMap,G=new WeakMap,J=new WeakMap,Q=new WeakMap,Y=new WeakMap,Z=new WeakMap;let ee=Symbol.iterator,et=class VirtualListElement extends HTMLElement{static get observedAttributes(){return["data-updating","aria-activedescendant"]}get updating(){return"lazy"===this.getAttribute("data-updating")?"lazy":"eager"}set updating(e){this.setAttribute("data-updating",e)}get size(){return B(this,U).size}get range(){let e=this.getBoundingClientRect().height,{scrollTop:t}=this,i=`${t}-${e}`;if(B(this,Q).has(i))return B(this,Q).get(i);let n=0,s=0,r=0,a=0,l=B(this,G);for(let i of B(this,U)){let o=l.get(i)||B(this,J);if(r+o=e)break}return[n,s]}get list(){let e=this.querySelector("ul, ol, tbody");if(!e)throw Error("virtual-list must have a container element inside: any of
    ,
      , ");return e}attributeChangedCallback(e,t,i){if(t===i||!this.isConnected)return;let n="data-updating"===e&&"eager"===i,s="data-sorted"===e&&this.hasAttribute("data-sorted");if((n||s)&&this.update(),"aria-activedescendant"===e){let e=this.getIndexByElementId(i);this.dispatchEvent(new ActiveDescendantChangedEvent(e,i)),"eager"===this.updating&&this.update()}}connectedCallback(){this.addEventListener("scroll",()=>this.update()),this.updateSync=this.updateSync.bind(this),X.observe(this)}update(){B(this,Z)&&cancelAnimationFrame(B(this,Z)),!B(this,K)&&this.hasAttribute("data-sorted")?$(this,Z,requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("virtual-list-sort",{cancelable:!0}))&&this.sort()})):$(this,Z,requestAnimationFrame(this.updateSync))}renderItem(e){let t={item:e,fragment:document.createDocumentFragment()};return this.dispatchEvent(new CustomEvent("virtual-list-render-item",{detail:t})),t.fragment.children[0]}recalculateHeights(e){let t=this.list;if(!t)return;let i=this.renderItem(e);if(!i)return;t.append(i);let n=t.children[0].getBoundingClientRect().height;t.replaceChildren(),n&&($(this,J,n),B(this,G).set(e,n))}getIndexByElementId(e){if(!e)return -1;let t=0;for(let[,i]of B(this,Y)){if(i.id===e||i.querySelector(`#${e}`))return t;t++}return -1}updateSync(){let e=this.list,[t,i]=this.range;if(ii){a=!1;break}let d=null;if(s.has(e))d=s.get(e);else{if(!(d=this.renderItem(e)))continue;d.querySelector("[aria-setsize]")?.setAttribute("aria-setsize",B(this,U).size.toString()),d.querySelector("[aria-posinset]")?.setAttribute("aria-posinset",(r+1).toString()),s.set(e,d)}d.querySelector("[tabindex]")?.setAttribute("data-scrolltop",o.toString()),o+=u,n.set(e,d)}e.replaceChildren(...n.values()),e.style.paddingTop=`${l}px`;let d=this.size*B(this,J);e.style.height=`${d||0}px`;let h=!1,c=this.getBoundingClientRect().bottom;for(let[e,t]of n){let{height:i,bottom:n}=t.getBoundingClientRect();h=h||n>=c,B(this,G).set(e,i)}if(!a&&this.size>n.size&&!h)return B(this,Q).delete(`${this.scrollTop}-${this.getBoundingClientRect().height}`),this.update();this.dispatchEvent(new RenderedEvent(s)),this.dispatchEvent(new CustomEvent("virtual-list-updated"))}resetRenderCache(){$(this,Y,new Map)}has(e){return B(this,U).has(e)}add(e){return B(this,U).add(e),$(this,K,!1),Number.isFinite(B(this,J))||this.recalculateHeights(e),this.resetRenderCache(),this.dispatchEvent(new Event("virtual-list-data-updated")),"eager"===this.updating&&this.update(),this}delete(e){let t=B(this,U).delete(e);return $(this,K,!1),B(this,G).delete(e),this.resetRenderCache(),this.dispatchEvent(new Event("virtual-list-data-updated")),"eager"===this.updating&&this.update(),t}clear(){B(this,U).clear(),B(this,G).clear(),$(this,J,1/0),$(this,K,!0),this.resetRenderCache(),this.dispatchEvent(new Event("virtual-list-data-updated")),"eager"===this.updating&&this.update()}forEach(e,t){for(let i of this)e.call(t,i,i,this)}entries(){return B(this,U).entries()}values(){return B(this,U).values()}keys(){return B(this,U).keys()}union(e){return B(this,U).union(e)}intersection(e){return B(this,U).intersection(e)}difference(e){return B(this,U).difference(e)}symmetricDifference(e){return B(this,U).symmetricDifference(e)}isSubsetOf(e){return B(this,U).isSubsetOf(e)}isSupersetOf(e){return B(this,U).isSupersetOf(e)}isDisjointFrom(e){return B(this,U).isDisjointFrom(e)}[ee](){return B(this,U)[Symbol.iterator]()}sort(e){return $(this,U,new Set(Array.from(this).sort(e))),$(this,K,!0),this.dispatchEvent(new Event("virtual-list-data-updated")),"eager"===this.updating&&this.update(),this}constructor(...e){super(...e),D(this,K,{writable:!0,value:void 0}),D(this,U,{writable:!0,value:void 0}),D(this,G,{writable:!0,value:void 0}),D(this,J,{writable:!0,value:void 0}),D(this,Q,{writable:!0,value:void 0}),D(this,Y,{writable:!0,value:void 0}),D(this,Z,{writable:!0,value:void 0}),$(this,K,!1),$(this,U,new Set),$(this,G,new Map),$(this,J,1/0),$(this,Q,new Map),$(this,Y,new Map),$(this,Z,0)}};let ActiveDescendantChangedEvent=class ActiveDescendantChangedEvent extends Event{constructor(e,t){super("virtual-list-activedescendant-changed"),this.index=e,this.id=t}};let RenderedEvent=class RenderedEvent extends Event{constructor(e){super("virtual-list-rendered"),this.rowsCache=e}};window.customElements.get("virtual-list")||(window.VirtualListElement=et,window.customElements.define("virtual-list",et))},72177:(e,t,i)=>{i.d(t,{t:()=>o});var n=i(21232),s=i(21403),r=i(97797);function a(e){let t=e.getAttribute("data-required-value"),i=e.getAttribute("data-required-value-prefix");if(e.value===t)e.setCustomValidity("");else{let n=t;i&&(n=i+n),e.setCustomValidity(n)}}(0,n.eC)("[data-required-value]",function(e){a(e.currentTarget)}),(0,r.on)("change","[data-required-value]",function(e){let t=e.currentTarget;a(t),o(t.form)}),(0,n.eC)("[data-required-trimmed]",function(e){let t=e.currentTarget;""===t.value.trim()?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity("")}),(0,r.on)("change","[data-required-trimmed]",function(e){let t=e.currentTarget;""===t.value.trim()?t.setCustomValidity(t.getAttribute("data-required-trimmed")):t.setCustomValidity(""),o(t.form)}),(0,n.uE)("input[pattern],input[required],textarea[required],input[data-required-change],textarea[data-required-change],input[data-required-value],textarea[data-required-value]",e=>{let t=e.checkValidity();function i(){let i=e.checkValidity();i!==t&&e.form&&o(e.form),t=i}e.addEventListener("input",i),e.addEventListener("blur",function t(){e.removeEventListener("input",i),e.removeEventListener("blur",t)})});let l=new WeakMap;function o(e){let t=e.checkValidity();for(let i of e.querySelectorAll("button[data-disable-invalid]"))i.disabled=!t}(0,s.lB)("button[data-disable-invalid]",{constructor:HTMLButtonElement,initialize(e){let t=e.form;t&&(l.get(t)||(t.addEventListener("change",()=>o(t)),l.set(t,!0)),e.disabled=!t.checkValidity())}}),(0,s.lB)("input[data-required-change], textarea[data-required-change]",function(e){let t="radio"===e.type&&e.form?e.form.elements.namedItem(e.name).value:null;function i(i){let n=e.form;if(i&&"radio"===e.type&&n&&t)for(let i of n.elements.namedItem(e.name))i instanceof HTMLInputElement&&i.setCustomValidity(e.value===t?"unchanged":"");else e.setCustomValidity(e.value===(t||e.defaultValue)?"unchanged":"")}e.addEventListener("input",i),e.addEventListener("change",i),i(),e.form&&o(e.form)}),document.addEventListener("reset",function(e){if(e.target instanceof HTMLFormElement){let t=e.target;setTimeout(()=>o(t))}})},52558:(e,t,i)=>{i.d(t,{A:()=>h});var n=i(91385);let s=(e,t,i)=>{if(!(0,n.qA)(e,t))return-1/0;let s=(0,n.fN)(e,t);return s{e.textContent="";let s=0;for(let r of(0,n.Xq)(t,i)){""!==i.slice(s,r)&&e.appendChild(document.createTextNode(i.slice(s,r))),s=r+1;let t=document.createElement("mark");t.textContent=i[r],e.appendChild(t)}e.appendChild(document.createTextNode(i.slice(s)))},a=new WeakMap,l=new WeakMap,o=new WeakMap,u=e=>{if(!o.has(e)&&e instanceof HTMLElement){let t=(e.getAttribute("data-value")||e.textContent||"").trim();return o.set(e,t),t}return o.get(e)||""},d=class FuzzyListElement extends HTMLElement{connectedCallback(){let e=this.querySelector("ul");if(!e)return;let t=new Set(e.querySelectorAll("li")),i=this.querySelector("input");i instanceof HTMLInputElement&&i.addEventListener("input",()=>{this.value=i.value});let s=new MutationObserver(e=>{let i=!1;for(let s of e)if("childList"===s.type&&s.addedNodes.length){for(let e of s.addedNodes)if(e instanceof HTMLLIElement&&!t.has(e)){let s=u(e);i=i||(0,n.qA)(this.value,s),t.add(e)}}i&&this.sort()});s.observe(e,{childList:!0});let r={handler:s,items:t,lazyItems:new Map,timer:null};l.set(this,r)}disconnectedCallback(){let e=l.get(this);e&&(e.handler.disconnect(),l.delete(this))}addLazyItems(e,t){let i=l.get(this);if(!i)return;let{lazyItems:s}=i,{value:r}=this,a=!1;for(let i of e)s.set(i,t),a=a||!!r&&(0,n.qA)(r,i);a&&this.sort()}sort(){let e=a.get(this);e&&(e.aborted=!0);let t={aborted:!1};a.set(this,t);let{minScore:i,markSelector:n,maxMatches:d,value:h}=this,c=l.get(this);if(!c||!this.dispatchEvent(new CustomEvent("fuzzy-list-will-sort",{cancelable:!0,detail:h})))return;let{items:m,lazyItems:p}=c,f=this.hasAttribute("mark-selector"),v=this.querySelector("ul");if(!v)return;let g=[];if(h){for(let e of m){let t=s(h,u(e),i);t!==-1/0&&g.push({item:e,score:t})}for(let[e,t]of p){let n=s(h,e,i);n!==-1/0&&g.push({text:e,render:t,score:n})}g.sort((e,t)=>t.score-e.score).splice(d)}else{let e=g.length;for(let t of m){if(e>=d)break;g.push({item:t,score:1}),e+=1}for(let[t,i]of p){if(e>=d)break;g.push({text:t,render:i,score:1}),e+=1}}requestAnimationFrame(()=>{if(t.aborted)return;let e=v.querySelector('input[type="radio"]:checked');v.textContent="";let i=0,s=()=>{if(t.aborted)return;let a=Math.min(g.length,i+100),l=document.createDocumentFragment();for(let e=i;e0),this.dispatchEvent(new CustomEvent("fuzzy-list-sorted",{detail:g.length}))}};s()})}get value(){return this.getAttribute("value")||""}set value(e){this.setAttribute("value",e)}get markSelector(){return this.getAttribute("mark-selector")||""}set markSelector(e){e?this.setAttribute("mark-selector",e):this.removeAttribute("mark-selector")}get minScore(){return Number(this.getAttribute("min-score")||0)}set minScore(e){Number.isNaN(e)||this.setAttribute("min-score",String(e))}get maxMatches(){return Number(this.getAttribute("max-matches")||1/0)}set maxMatches(e){Number.isNaN(e)||this.setAttribute("max-matches",String(e))}get ariaLiveElement(){let e=this.getAttribute("data-aria-live-element");if(!e)return;let t=document.getElementById(e);if(t)return t}static get observedAttributes(){return["value","mark-selector","min-score","max-matches"]}attributeChangedCallback(e,t,i){if(t===i)return;let n=l.get(this);n&&(n.timer&&window.clearTimeout(n.timer),n.timer=window.setTimeout(()=>this.sort(),100))}},h=d;window.customElements.get("fuzzy-list")||(window.FuzzyListElement=d,window.customElements.define("fuzzy-list",d))},21424:(e,t,i)=>{function n(){return/Windows/.test(navigator.userAgent)?"windows":/Macintosh/.test(navigator.userAgent)?"mac":null}i.d(t,{u:()=>n}),(0,i(21403).lB)(".js-remove-unless-platform",function(e){!function(e){let t=(e.getAttribute("data-platforms")||"").split(","),i=n();return!!(i&&t.includes(i))}(e)&&e.remove()})},21232:(e,t,i)=>{i.d(t,{Ff:()=>o,eC:()=>u,uE:()=>l});var n=i(6986);let s=!1,r=new n.A;function a(e){let t=e.target;if(t instanceof HTMLElement&&t.nodeType!==Node.DOCUMENT_NODE)for(let e of r.matches(t))e.data.call(null,t)}function l(e,t){s||(s=!0,document.addEventListener("focus",a,!0)),r.add(e,t),document.activeElement instanceof HTMLElement&&document.activeElement.matches(e)&&t(document.activeElement)}function o(e,t,i){function n(t){let s=t.currentTarget;s&&(s.removeEventListener(e,i),s.removeEventListener("blur",n))}l(t,function(t){t.addEventListener(e,i),t.addEventListener("blur",n)})}function u(e,t){function i(e){let{currentTarget:n}=e;n&&(n.removeEventListener("input",t),n.removeEventListener("blur",i))}l(e,function(e){e.addEventListener("input",t),e.addEventListener("blur",i)})}}},e=>{var t=t=>e(e.s=t);e.O(0,["vendors-node_modules_primer_behaviors_dist_esm_index_mjs","vendors-node_modules_github_selector-observer_dist_index_esm_js","vendors-node_modules_github_relative-time-element_dist_index_js","vendors-node_modules_oddbird_popover-polyfill_dist_popover_js","vendors-node_modules_github_auto-complete-element_dist_index_js-node_modules_github_catalyst_-8e9f78","vendors-node_modules_github_text-expander-element_dist_index_js","vendors-node_modules_github_filter-input-element_dist_index_js-node_modules_github_remote-inp-b5f1d7","vendors-node_modules_github_markdown-toolbar-element_dist_index_js","vendors-node_modules_github_file-attachment-element_dist_index_js-node_modules_primer_view-co-c44a69"],()=>t(65578)),e.O()}]); //# sourceMappingURL=github-elements-274e81244b62.js.map