performance.mark("js-parse-end:99594-e67bcfadca9717d6.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["99594"],{13937(e,t,n){let r;n.d(t,{Ax:()=>c,JW:()=>u,ZV:()=>l});class o extends Error{constructor(e,t){super(e),this.response=t}}function s(){let e,t;return[new Promise(function(n,r){e=n,t=r}),e,t]}let i=[],a=[];function l(e){i.push(e)}function c(e){a.push(e)}function u(e,t){!r&&(r=new Map,"u">typeof document&&document.addEventListener("submit",d));let n=r.get(e)||[];r.set(e,[...n,t])}function d(e){if(!(e.target instanceof HTMLFormElement)||e.defaultPrevented)return;let t=e.target,n=function(e){let t=[],n=t=>"object"==typeof t?t===e:"string"==typeof t&&e.matches(t);for(let e of r.keys())if(n(e)){let n=r.get(e)||[];t.push(...n)}return t}(t);if(0===n.length)return;let o=function(e,t){let n={method:t?.formMethod||e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===n.method.toUpperCase()){let t=function(e){let t=new URLSearchParams;for(let[n,r]of[...new FormData(e).entries()])t.append(n,r.toString());return t.toString()}(e);t&&(n.url+=(~n.url.indexOf("?")?"&":"?")+t)}else n.body=new FormData(e);return n}(t,e instanceof SubmitEvent?e.submitter:null),[l,c,u]=s();e.preventDefault(),f(n,t,o,l).then(async e=>{if(e){for(let e of a)await e(t);h(o).then(c,u).catch(()=>{}).then(()=>{for(let e of i)e(t)})}else t.submit()},e=>{t.submit(),setTimeout(()=>{throw e})})}async function f(e,t,n,r){let o=!1;for(let i of e){let[e,a]=s(),l=()=>(o=!0,a(),r),c={text:l,json:()=>(n.headers.set("Accept","application/json"),l()),html:()=>(n.headers.set("Accept","text/html"),l())};await Promise.race([e,i(t,c,n)])}return o}async function h(e){let t=await window.fetch(e.url,{method:e.method,body:null!==e.body?e.body:void 0,headers:e.headers,credentials:"same-origin"}),n={url:t.url,status:t.status,statusText:t.statusText,headers:t.headers,text:"",get json(){let e=JSON.parse(this.text);return delete this.json,this.json=e,this.json},get html(){var r,s;let e;return delete this.html,this.html=(r=document,s=this.text,(e=r.createElement("template")).innerHTML=s,r.importNode(e.content,!0)),this.html}};if(n.text=await t.text(),t.ok)return n;throw new o("request failed",n)}},21744(e,t,n){function r(){if(!(this instanceof r))return new r;this.size=0,this.uid=0,this.selectors=[],this.selectorObjects={},this.indexes=Object.create(this.indexes),this.activeIndexes=[]}n.d(t,{h:()=>C,on:()=>E});var o,s=window.document.documentElement,i=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector;r.prototype.matchesSelector=function(e,t){return i.call(e,t)},r.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},r.prototype.indexes=[];var a=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(a))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var l=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(l))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);else if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var c=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;r.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(c))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),r.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},o="function"==typeof window.Map?window.Map:function(){function e(){this.map={}}return e.prototype.get=function(e){return this.map[e+" "]},e.prototype.set=function(e,t){this.map[e+" "]=t},e}();var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function d(e,t){var n,r,o,s,i,a,l=(e=e.slice(0).concat(e.default)).length,c=t,d=[];do if(u.exec(""),(o=u.exec(c))&&(c=o[3],o[2]||!c)){for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{},s=!!o.capture,i=s?p:h,a=i[e];a||(a=new r,i[e]=a,document.addEventListener(e,A,s)),a.add(t,n)}function C(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}},94571(e,t,n){let r;n.d(t,{Se:()=>A,FB:()=>d,p_:()=>L,CF:()=>g,aC:()=>M,zV:()=>P});let o=new WeakSet,s=new WeakMap;function i(e=document){if(s.has(e))return s.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if("attributes"===t.type&&t.target instanceof Element)u(t.target);else if("childList"===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&a(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return t},unsubscribe(){t=!0,s.delete(e),n.disconnect()}};return s.set(e,r),r}function a(e){for(let t of e.querySelectorAll("[data-action]"))u(t);e instanceof Element&&e.hasAttribute("data-action")&&u(e)}function l(e){let t=e.currentTarget;for(let n of c(t))if(e.type===n.type){let r=t.closest(n.tag);o.has(r)&&"function"==typeof r[n.method]&&r[n.method](e);let s=t.getRootNode();if(s instanceof ShadowRoot&&o.has(s.host)&&s.host.matches(n.tag)){let t=s.host;"function"==typeof t[n.method]&&t[n.method](e)}}}function*c(e){for(let t of(e.getAttribute("data-action")||"").trim().split(/\s+/)){let e=t.lastIndexOf(":"),n=Math.max(0,t.lastIndexOf("#"))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||"handleEvent"}}}function u(e){for(let t of c(e))e.addEventListener(t.type,l)}function d(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let r of e.shadowRoot.querySelectorAll(`[data-target~="${n}.${t}"]`))if(!r.closest(n))return r}for(let r of e.querySelectorAll(`[data-target~="${n}.${t}"]`))if(r.closest(n)===e)return r}let f=e=>String("symbol"==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),h=(e,t="property")=>{let n=f(e);if(!n.includes("-"))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,"SyntaxError");return n},p="attr";function g(e,t){j(e,p).add(t)}let m=new WeakSet;function b(e,t){if(m.has(e))return;m.add(e);let n=Object.getPrototypeOf(e),r=n?.constructor?.attrPrefix??"data-";for(let o of(t||(t=j(n,p)),t)){let t=e[o],n=h(`${r}${o}`),s={configurable:!0,get(){return this.getAttribute(n)||""},set(e){this.setAttribute(n,e||"")}};"number"==typeof t?s={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:"boolean"==typeof t&&(s={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,o,s),o in e&&!e.hasAttribute(n)&&s.set.call(e,t)}}let y=new Map,v=new Promise(e=>{"loading"!==document.readyState?e():document.addEventListener("readystatechange",()=>e(),{once:!0})}),w=new Promise(e=>{let t=new AbortController;t.signal.addEventListener("abort",()=>e());let n={once:!0,passive:!0,signal:t.signal},r=()=>t.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),x={ready:()=>v,firstInteraction:()=>w,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let r of e)if(r.isIntersecting){t(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},S=new WeakMap;function k(e){cancelAnimationFrame(S.get(e)||0),S.set(e,requestAnimationFrame(()=>{for(let t of y.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let r=n?.getAttribute("data-load-on")||"ready",o=r in x?x[r]:x.ready;for(let e of y.get(t)||[])o(t).then(e);y.delete(t),S.delete(e)}}}))}function A(e,t){for(let[n,r]of("string"==typeof e&&t&&(e={[e]:t}),Object.entries(e)))y.has(n)||y.set(n,new Set),y.get(n).add(r);E(document)}function E(e){r||(r=new MutationObserver(e=>{if(y.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&k(e)})),k(e),r.observe(e,{subtree:!0,childList:!0})}let C=Symbol.for("catalyst");class O{constructor(e,t){const n=this,r=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const o=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,o)};const s=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,t,r){n.attributeChangedCallback(this,e,t,r,s)};let i=e.observedAttributes||[];Object.defineProperty(e,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,i)},set(e){i=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??"data-",r=e=>h(`${n}${e}`);Object.defineProperty(e,"observedAttributes",{configurable:!0,get:()=>[...j(e.prototype,p)].map(r).concat(t),set(e){t=e}})}(e),function(e,t){let n=t||f(e.name).replace(/-element$/,"");try{window.customElements.define(n,e),window[e.name]=customElements.get(n)}catch(e){if(!(e instanceof DOMException&&"NotSupportedError"===e.name))throw e}}(e,t)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,r;for(let t of(e.toggleAttribute("data-catalyst",!0),customElements.upgrade(e),e.querySelectorAll("template[data-shadowroot]")))t.parentElement===e&&e.attachShadow({mode:"closed"===t.getAttribute("data-shadowroot")?"closed":"open"}).append(t.content.cloneNode(!0));(b(e),o.add(e),e.shadowRoot&&(a(r=e.shadowRoot),i(r)),a(e),i(e.ownerDocument),t?.call(e),e.shadowRoot)&&(a(n=e.shadowRoot),i(n),E(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,r,o){b(e),"data-catalyst"!==t&&o&&o.call(e,t,n,r)}}function j(e,t){if(!Object.prototype.hasOwnProperty.call(e,C)){let t=e[C],n=e[C]=new Map;if(t)for(let[e,r]of t)n.set(e,new Set(r))}let n=e[C];return n.has(t)||n.set(t,new Set),n.get(t)}function M(e,t){j(e,"target").add(t),Object.defineProperty(e,t,{configurable:!0,get(){return d(this,t)}})}function P(e,t){j(e,"targets").add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${e}.${t}"]`))r.closest(e)===this&&n.push(r);return n}})}function L(e){if("string"==typeof e)return t=>{new O(t,e)};new O(e)}},85498(e,t,n){n.d(t,{TemplateInstance:()=>y,xr:()=>g});let r=new Map;function o(e){if(r.has(e))return r.get(e);let t=e.length,n=0,o=0,s=0,i=[];for(let r=0;rn&&(i.push(Object.freeze({type:"string",start:n,end:o,value:e.slice(n,o)})),n=o),i.push(Object.freeze({type:"part",start:o,end:r+2,value:e.slice(n+2,r).trim()})),r+=1,n=r+1)}return n"string"==typeof e?e:e.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,e)}}}let c=new WeakMap;class u{constructor(e,t){this.expression=t,c.set(this,[e]),e.textContent=""}get value(){return c.get(this).map(e=>e.textContent).join("")}set value(e){this.replace(e)}get previousSibling(){return c.get(this)[0].previousSibling}get nextSibling(){return c.get(this)[c.get(this).length-1].nextSibling}replace(...e){var t,n;let r=e.map(e=>"string"==typeof e?new Text(e):e);r.length||r.push(new Text(""));let o=c.get(this)[0];for(let e of r)null==(t=o.parentNode)||t.insertBefore(e,o);for(let e of c.get(this))null==(n=e.parentNode)||n.removeChild(e);c.set(this,r)}}class d extends u{constructor(e){var t;super(e,null!=(t=e.getAttribute("expression"))?t:""),this.template=e}get directive(){var e;return null!=(e=this.template.getAttribute("directive"))?e:""}}function f(e){return{processCallback(t,n,r){var o;if("object"==typeof r&&r){for(let t of n)if(t.expression in r){let n=null!=(o=r[t.expression])?o:"";e(t,n,r)}}}}}function h(e,t){e.value=t instanceof Node?t:String(t)}let p=f(h),g=f((e,t)=>{"boolean"==typeof t&&e instanceof a&&"boolean"==typeof e.element[e.attributeName]&&(e.booleanValue=t,1)||h(e,t)}),m=new WeakMap,b=new WeakMap;class y extends(globalThis.DocumentFragment||EventTarget){constructor(e,t,n=p){var r,s;super(),Object.getPrototypeOf(this)!==y.prototype&&Object.setPrototypeOf(this,y.prototype),this.appendChild(e.content.cloneNode(!0)),b.set(this,Array.from(function* e(t){let n,r=t.ownerDocument.createTreeWalker(t,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null);for(;n=r.nextNode();)if(n instanceof HTMLTemplateElement)if(n.hasAttribute("directive"))yield new d(n);else for(let t of e(n.content))yield t;else if(n instanceof Element&&n.hasAttributes())for(let e=0;e