performance.mark("js-parse-end:95475-165e3d7854d25bad.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["95475"],{50515(t,e,n){n.d(e,{JC:()=>T,KK:()=>d,Vy:()=>a,ai:()=>w,rd:()=>f});class i{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 r{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":"?"},o={"`":"~",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"},s={" ":"Space","+":"Plus"};function a(t,e=navigator.platform){var n,i,r;let{ctrlKey:c,altKey:d,metaKey:f,shiftKey:m,key:p}=t,g=[];for(let[t,e]of[c,d,f,m].entries())e&&g.push(u[t]);if(!u.includes(p)){let t=g.includes("Alt")&&h.test(e)&&null!=(n=l[p])?n:p,a=g.includes("Shift")&&h.test(e)&&null!=(i=o[t])?i:t,u=null!=(r=s[a])?r:a;g.push(u)}return g.join("+")}let u=["Control","Alt","Meta","Shift"];function c(t,e){let n,i,r;{var l,o,s,a=(l=t,o=e,i="u"this.reset(),d.CHORD_TIMEOUT)}}function f(t){return t.split(" ").map(t=>c(t)).join(" ")}function m(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}d.CHORD_TIMEOUT=1500;let p=new r,g=new WeakMap,v=p,b=new d({onReset(){v=p}});function y(t){if(t.defaultPrevented||!(t.target instanceof Node))return;if(m(t.target)){let e=t.target;if(!e.id||!e.ownerDocument.querySelector(`[data-hotkey-scope="${e.id}"]`))return}let e=v.get(a(t));if(!e)return void b.reset();if(b.registerKeypress(t),v=e,e instanceof i){let i,r=t.target,l=!1,o=m(r);for(let t=e.children.length-1;t>=0;t-=1){let n=(i=e.children[t]).getAttribute("data-hotkey-scope");if(!o&&!n||o&&r.id===n){l=!0;break}}if(i&&l){var n;let e;n=i,e=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:b.path}}),n.dispatchEvent(e)&&(m(n)?n.focus():n.click()),t.preventDefault()}b.reset()}}function w(t,e){0===Object.keys(p.children).length&&document.addEventListener("keydown",y);let n=(function(t){let e=[],n=[""],i=!1;for(let r=0;rt.map(t=>c(t)).filter(t=>""!==t)).filter(t=>t.length>0)})(e||t.getAttribute("data-hotkey")||"").map(e=>p.insert(e).add(t));g.set(t,n)}function T(t){let e=g.get(t);if(e&&e.length)for(let n of e)n&&n.delete(t);0===Object.keys(p.children).length&&document.removeEventListener("keydown",y)}},97088(t,e,n){n.d(e,{s:()=>l});let i=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var r=n(36301);class l{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,r.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 r=e.toLowerCase();i.includes(r)&&(t[r]=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:()=>i});function i(t="ha"){let e,n={};for(let i of Array.from(document.head.querySelectorAll(`meta[name^="${t}-"]`))){let{name:r,content:l}=i,o=r.replace(`${t}-`,"").replace(/-/g,"_");"url"===o?e=l:n[o]=l}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:()=>s,jE:()=>o,v4:()=>l});var i=n(96540),r=n(74848),l=i.createContext(void 0),o=t=>{let e=i.useContext(l);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},s=({client:t,children:e})=>(i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,r.jsx)(l.Provider,{value:t,children:e}))},34164(t,e,n){n.d(e,{$:()=>i});function i(){for(var t,e,n=0,i="",r=arguments.length;ni});let i=n(41917).A.Symbol},18348(t,e,n){n.d(e,{A:()=>h});var i=n(241),r=Object.prototype,l=r.hasOwnProperty,o=r.toString,s=i.A?i.A.toStringTag:void 0;let a=function(t){var e=l.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var r=o.call(t);return i&&(e?t[s]=n:delete t[s]),r};var u=Object.prototype.toString,c=i.A?i.A.toStringTag:void 0;let h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?a(t):u.call(t)}},72136(t,e,n){n.d(e,{A:()=>i});let i="object"==typeof global&&global&&global.Object===Object&&global},41917(t,e,n){n.d(e,{A:()=>l});var i=n(72136),r="object"==typeof self&&self&&self.Object===Object&&self;let l=i.A||r||Function("return this")()},52246(t,e,n){n.d(e,{A:()=>u});var i=n(23149),r=n(41917);let l=function(){return r.A.Date.now()};var o=n(41127),s=Math.max,a=Math.min;let u=function(t,e,n){var r,u,c,h,d,f,m=0,p=!1,g=!1,v=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var n=r,i=u;return r=u=void 0,m=e,h=t.apply(i,n)}function y(t){var n=t-f,i=t-m;return void 0===f||n>=e||n<0||g&&i>=c}function w(){var t,n,i,r=l();if(y(r))return T(r);d=setTimeout(w,(t=r-f,n=r-m,i=e-t,g?a(i,c-n):i))}function T(t){return(d=void 0,v&&r)?b(t):(r=u=void 0,h)}function A(){var t,n=l(),i=y(n);if(r=arguments,u=this,f=n,i){if(void 0===d)return m=t=f,d=setTimeout(w,e),p?b(t):h;if(g)return clearTimeout(d),d=setTimeout(w,e),b(f)}return void 0===d&&(d=setTimeout(w,e)),h}return e=(0,o.A)(e)||0,(0,i.A)(n)&&(p=!!n.leading,c=(g="maxWait"in n)?s((0,o.A)(n.maxWait)||0,e):c,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==d&&clearTimeout(d),m=0,r=f=u=d=void 0},A.flush=function(){return void 0===d?h:T(l())},A}},23149(t,e,n){n.d(e,{A:()=>i});let i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},53098(t,e,n){n.d(e,{A:()=>i});let i=function(t){return null!=t&&"object"==typeof t}},61882(t,e,n){n.d(e,{A:()=>l});var i=n(18348),r=n(53098);let l=function(t){return"symbol"==typeof t||(0,r.A)(t)&&"[object Symbol]"==(0,i.A)(t)}},41127(t,e,n){n.d(e,{A:()=>f});var i=/\s/;let r=function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e};var l=/^\s+/,o=n(23149),s=n(61882),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;let f=function(t){if("number"==typeof t)return t;if((0,s.A)(t))return a;if((0,o.A)(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=(0,o.A)(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,r(e)+1).replace(l,""):e;var i=c.test(t);return i||h.test(t)?d(t.slice(2),i?2:8):u.test(t)?a:+t}}}]); //# sourceMappingURL=95475-165e3d7854d25bad-a0796849abdabcc1.js.map