performance.mark("js-parse-end:44491-f44d343d03d9332f.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["44491"],{94571(t,e,n){let r;n.d(e,{Se:()=>E,FB:()=>d,p_:()=>I,CF:()=>m,aC:()=>_,zV:()=>$});let i=new WeakSet,o=new WeakMap;function l(t=document){if(o.has(t))return o.get(t);let e=!1,n=new MutationObserver(t=>{for(let e of t)if("attributes"===e.type&&e.target instanceof Element)u(e.target);else if("childList"===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&a(t)});n.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return e},unsubscribe(){e=!0,o.delete(t),n.disconnect()}};return o.set(t,r),r}function a(t){for(let e of t.querySelectorAll("[data-action]"))u(e);t instanceof Element&&t.hasAttribute("data-action")&&u(t)}function s(t){let e=t.currentTarget;for(let n of c(e))if(t.type===n.type){let r=e.closest(n.tag);i.has(r)&&"function"==typeof r[n.method]&&r[n.method](t);let o=e.getRootNode();if(o instanceof ShadowRoot&&i.has(o.host)&&o.host.matches(n.tag)){let e=o.host;"function"==typeof e[n.method]&&e[n.method](t)}}}function*c(t){for(let e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){let t=e.lastIndexOf(":"),n=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,n),method:e.slice(n+1)||"handleEvent"}}}function u(t){for(let e of c(t))t.addEventListener(e.type,s)}function d(t,e){let n=t.tagName.toLowerCase();if(t.shadowRoot){for(let r of t.shadowRoot.querySelectorAll(`[data-target~="${n}.${e}"]`))if(!r.closest(n))return r}for(let r of t.querySelectorAll(`[data-target~="${n}.${e}"]`))if(r.closest(n)===t)return r}let h=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),f=(t,e="property")=>{let n=h(t);if(!n.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return n},p="attr";function m(t,e){O(t,p).add(e)}let g=new WeakSet;function b(t,e){if(g.has(t))return;g.add(t);let n=Object.getPrototypeOf(t),r=n?.constructor?.attrPrefix??"data-";for(let i of(e||(e=O(n,p)),e)){let e=t[i],n=f(`${r}${i}`),o={configurable:!0,get(){return this.getAttribute(n)||""},set(t){this.setAttribute(n,t||"")}};"number"==typeof e?o={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(t){this.setAttribute(n,t)}}:"boolean"==typeof e&&(o={configurable:!0,get(){return this.hasAttribute(n)},set(t){this.toggleAttribute(n,t)}}),Object.defineProperty(t,i,o),i in t&&!t.hasAttribute(n)&&o.set.call(t,e)}}let y=new Map,w=new Promise(t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",()=>t(),{once:!0})}),v=new Promise(t=>{let e=new AbortController;e.signal.addEventListener("abort",()=>t());let n={once:!0,passive:!0,signal:e.signal},r=()=>e.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),A={ready:()=>w,firstInteraction:()=>v,visible:t=>new Promise(e=>{let n=new IntersectionObserver(t=>{for(let r of t)if(r.isIntersecting){e(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let e of document.querySelectorAll(t))n.observe(e)})},C=new WeakMap;function k(t){cancelAnimationFrame(C.get(t)||0),C.set(t,requestAnimationFrame(()=>{for(let e of y.keys()){let n=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||n){let r=n?.getAttribute("data-load-on")||"ready",i=r in A?A[r]:A.ready;for(let t of y.get(e)||[])i(e).then(t);y.delete(e),C.delete(t)}}}))}function E(t,e){for(let[n,r]of("string"==typeof t&&e&&(t={[t]:e}),Object.entries(t)))y.has(n)||y.set(n,new Set),y.get(n).add(r);S(document)}function S(t){r||(r=new MutationObserver(t=>{if(y.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&k(t)})),k(t),r.observe(t,{subtree:!0,childList:!0})}let T=Symbol.for("catalyst");class x{constructor(t,e){const n=this,r=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const i=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,i)};const o=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,r){n.attributeChangedCallback(this,t,e,r,o)};let l=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,l)},set(t){l=t}}),function(t){let e=t.observedAttributes||[],n=t.attrPrefix??"data-",r=t=>f(`${n}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[...O(t.prototype,p)].map(r).concat(e),set(t){e=t}})}(t),function(t,e){let n=e||h(t.name).replace(/-element$/,"");try{window.customElements.define(n,t),window[t.name]=customElements.get(n)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var n,r;for(let e of(t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),t.querySelectorAll("template[data-shadowroot]")))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0));(b(t),i.add(t),t.shadowRoot&&(a(r=t.shadowRoot),l(r)),a(t),l(t.ownerDocument),e?.call(t),t.shadowRoot)&&(a(n=t.shadowRoot),l(n),S(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,n,r,i){b(t),"data-catalyst"!==e&&i&&i.call(t,e,n,r)}}function O(t,e){if(!Object.prototype.hasOwnProperty.call(t,T)){let e=t[T],n=t[T]=new Map;if(e)for(let[t,r]of e)n.set(t,new Set(r))}let n=t[T];return n.has(e)||n.set(e,new Set),n.get(e)}function _(t,e){O(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return d(this,e)}})}function $(t,e){O(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)===this&&n.push(r);return n}})}function I(t){if("string"==typeof t)return e=>{new x(e,t)};new x(t)}},50515(t,e,n){n.d(e,{JC:()=>A,KK:()=>h,Vy:()=>s,ai:()=>v,rd:()=>f});class r{constructor(t){this.children=[],this.parent=t}delete(t){let e=this.children.indexOf(t);return -1!==e&&(this.children=this.children.slice(0,e).concat(this.children.slice(e+1)),0===this.children.length&&this.parent.delete(this),!0)}add(t){return this.children.push(t),this}}class i{constructor(t){this.parent=null,this.children={},this.parent=t||null}get(t){return this.children[t]}insert(t){let e=this;for(let n=0;n","\xbf":"?"},l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?",q:"Q",w:"W",e:"E",r:"R",t:"T",y:"Y",u:"U",i:"I",o:"O",p:"P",a:"A",s:"S",d:"D",f:"F",g:"G",h:"H",j:"J",k:"K",l:"L",z:"Z",x:"X",c:"C",v:"V",b:"B",n:"N",m:"M"},a={" ":"Space","+":"Plus"};function s(t,e=navigator.platform){var n,r,i;let{ctrlKey:u,altKey:h,metaKey:f,shiftKey:p,key:m}=t,g=[];for(let[t,e]of[u,h,f,p].entries())e&&g.push(c[t]);if(!c.includes(m)){let t=g.includes("Alt")&&d.test(e)&&null!=(n=o[m])?n:m,s=g.includes("Shift")&&d.test(e)&&null!=(r=l[t])?r:t,c=null!=(i=a[s])?i:s;g.push(c)}return g.join("+")}let c=["Control","Alt","Meta","Shift"];function u(t,e){let n,r,i;{var o,l,a,s=(o=t,l=e,r="u"this.reset(),h.CHORD_TIMEOUT)}}function f(t){return t.split(" ").map(t=>u(t)).join(" ")}function p(t){if(!(t instanceof HTMLElement))return!1;let e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||t.isContentEditable}h.CHORD_TIMEOUT=1500;let m=new i,g=new WeakMap,b=m,y=new h({onReset(){b=m}});function w(t){if(t.defaultPrevented||!(t.target instanceof Node))return;if(p(t.target)){let e=t.target;if(!e.id||!e.ownerDocument.querySelector(`[data-hotkey-scope="${e.id}"]`))return}let e=b.get(s(t));if(!e)return void y.reset();if(y.registerKeypress(t),b=e,e instanceof r){let r,i=t.target,o=!1,l=p(i);for(let t=e.children.length-1;t>=0;t-=1){let n=(r=e.children[t]).getAttribute("data-hotkey-scope");if(!l&&!n||l&&i.id===n){o=!0;break}}if(r&&o){var n;let e;n=r,e=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:y.path}}),n.dispatchEvent(e)&&(p(n)?n.focus():n.click()),t.preventDefault()}y.reset()}}function v(t,e){0===Object.keys(m.children).length&&document.addEventListener("keydown",w);let n=(function(t){let e=[],n=[""],r=!1;for(let i=0;it.map(t=>u(t)).filter(t=>""!==t)).filter(t=>t.length>0)})(e||t.getAttribute("data-hotkey")||"").map(e=>m.insert(e).add(t));g.set(t,n)}function A(t){let e=g.get(t);if(e&&e.length)for(let n of e)n&&n.delete(t);0===Object.keys(m.children).length&&document.removeEventListener("keydown",w)}},97088(t,e,n){n.d(e,{s:()=>o});let r=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var i=n(36301);class o{constructor(t){this.options=t,this.eventBatch=[],this.idleCallbackId=null,this.waitTimerId=null,this.onVisibilityChange=()=>{"hidden"===document.visibilityState&&this.flushBatch()},this.boundFlush=()=>this.flushBatch(),"u">typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.addEventListener("pagehide",this.boundFlush)}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,i.y)()}get maxBatchSize(){return this.options.maxBatchSize??10}get idleTimeout(){return this.options.idleTimeout??1e3}createEvent(t){return{page:location.href,title:document.title,context:{...this.options.baseContext,...function(){let t={};try{for(let[e,n]of new URLSearchParams(window.location.search)){let i=e.toLowerCase();r.includes(i)&&(t[i]=n)}return t}catch(t){return{}}}(),...t}}}sendPageView(t){let e=this.createEvent(t);this.send({page_views:[e]})}sendEvent(t,e){let n={...this.createEvent(e),type:t};this.send({events:[n]})}sendBatchedEvent(t,e){let n={...this.createEvent(e),type:t};this.eventBatch.push(n),this.eventBatch.length>=this.maxBatchSize?this.flushBatch():this.scheduleFlush()}flushBatch(){if(0===this.eventBatch.length)return;this.cancelScheduledFlush();let t=this.eventBatch;this.eventBatch=[],this.send({events:t})}destroy(){this.flushBatch(),"u">typeof document&&document.removeEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.removeEventListener("pagehide",this.boundFlush)}scheduleFlush(){null===this.idleCallbackId&&null===this.waitTimerId&&(this.waitTimerId=setTimeout(()=>{this.waitTimerId=null,"function"==typeof requestIdleCallback?this.idleCallbackId=requestIdleCallback(this.boundFlush):this.boundFlush()},this.idleTimeout))}cancelScheduledFlush(){null!==this.idleCallbackId&&("function"==typeof cancelIdleCallback&&cancelIdleCallback(this.idleCallbackId),this.idleCallbackId=null),null!==this.waitTimerId&&(clearTimeout(this.waitTimerId),this.waitTimerId=null)}send({page_views:t,events:e}){let n=JSON.stringify({client_id:this.clientId,page_views:t,events:e,request_context:{referrer:function(){let t;try{t=window.top.document.referrer}catch(e){if(window.parent)try{t=window.parent.document.referrer}catch(t){}}return""===t&&(t=document.referrer),t}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(t){return"unknown"}}(),browser_resolution:function(){let t=0,e=0;try{return"number"==typeof window.innerWidth?(e=window.innerWidth,t=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(e=document.body.clientWidth,t=document.body.clientHeight),`${e}x${t}`}catch(t){return"unknown"}}(),browser_languages:navigator.languages?navigator.languages.join(","):navigator.language||"",pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:n,keepalive:!1})}}},70837(t,e,n){n.d(e,{O:()=>r});function r(t="ha"){let e,n={};for(let r of Array.from(document.head.querySelectorAll(`meta[name^="${t}-"]`))){let{name:i,content:o}=r,l=i.replace(`${t}-`,"").replace(/-/g,"_");"url"===l?e=o:n[l]=o}if(!e)throw Error(`AnalyticsClient ${t}-url meta tag not found`);return{collectorUrl:e,...Object.keys(n).length>0?{baseContext:n}:{}}}},97665(t,e,n){n.d(e,{Ht:()=>a,jE:()=>l,v4:()=>o});var r=n(96540),i=n(74848),o=r.createContext(void 0),l=t=>{let e=r.useContext(o);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},a=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(o.Provider,{value:t,children:e}))},34164(t,e,n){n.d(e,{$:()=>r});function r(){for(var t,e,n=0,r="",i=arguments.length;n{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function o(t,e){let n;return(r,o)=>(()=>{if(n)return n;let r=indexedDB.open(t);return r.onupgradeneeded=()=>r.result.createObjectStore(e),(n=i(r)).then(t=>{t.onclose=()=>n=void 0},()=>{}),n})().then(t=>o(t.transaction(e,r).objectStore(e)))}function l(){return r||(r=o("keyval-store","keyval")),r}function a(t,e=l()){return e("readonly",e=>i(e.get(t)))}function s(t,e,n=l()){return n("readwrite",n=>(n.put(e,t),i(n.transaction)))}function c(t,e=l()){return e("readwrite",e=>(e.delete(t),i(e.transaction)))}function u(t=l()){return t("readwrite",t=>(t.clear(),i(t.transaction)))}function d(t=l()){return t("readonly",e=>{if(e.getAll&&e.getAllKeys)return Promise.all([i(e.getAllKeys()),i(e.getAll())]).then(([t,e])=>t.map((t,n)=>[t,e[n]]));let n=[];return t("readonly",t=>{var e;return(e=t=>n.push([t.key,t.value]),t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},i(t.transaction)).then(()=>n)})})}n.d(e,{IU:()=>u,Jt:()=>a,hZ:()=>s,jO:()=>d,y$:()=>o,yH:()=>c})},52246(t,e,n){n.d(e,{A:()=>c});var r=n(23149),i=n(41917);let o=function(){return i.A.Date.now()};var l=n(41127),a=Math.max,s=Math.min;let c=function(t,e,n){var i,c,u,d,h,f,p=0,m=!1,g=!1,b=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=i,r=c;return i=c=void 0,p=e,d=t.apply(r,n)}function w(t){var n=t-f,r=t-p;return void 0===f||n>=e||n<0||g&&r>=u}function v(){var t,n,r,i=o();if(w(i))return A(i);h=setTimeout(v,(t=i-f,n=i-p,r=e-t,g?s(r,u-n):r))}function A(t){return(h=void 0,b&&i)?y(t):(i=c=void 0,d)}function C(){var t,n=o(),r=w(n);if(i=arguments,c=this,f=n,r){if(void 0===h)return p=t=f,h=setTimeout(v,e),m?y(t):d;if(g)return clearTimeout(h),h=setTimeout(v,e),y(f)}return void 0===h&&(h=setTimeout(v,e)),d}return e=(0,l.A)(e)||0,(0,r.A)(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a((0,l.A)(n.maxWait)||0,e):u,b="trailing"in n?!!n.trailing:b),C.cancel=function(){void 0!==h&&clearTimeout(h),p=0,i=f=c=h=void 0},C.flush=function(){return void 0===h?d:A(o())},C}},61882(t,e,n){n.d(e,{A:()=>o});var r=n(18348),i=n(53098);let o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,r.A)(t)}},41127(t,e,n){n.d(e,{A:()=>f});var r=/\s/;let i=function(t){for(var e=t.length;e--&&r.test(t.charAt(e)););return e};var o=/^\s+/,l=n(23149),a=n(61882),s=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;let f=function(t){if("number"==typeof t)return t;if((0,a.A)(t))return s;if((0,l.A)(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=(0,l.A)(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,i(e)+1).replace(o,""):e;var r=u.test(t);return r||d.test(t)?h(t.slice(2),r?2:8):c.test(t)?s:+t}}}]); //# sourceMappingURL=44491-f44d343d03d9332f-12b20331d0f31a05.js.map