performance.mark("js-parse-end:19262-313c6e4aa6bc1abc.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["19262"],{70170(t,e,i){function n(t,e=0,{start:i=!0,middle:o=!0,once:r=!1}={}){let s,a=i,l=0,h=!1;function d(...n){if(h)return;let u=Date.now()-l;l=Date.now(),i&&o&&u>=e&&(a=!0),a?(a=!1,t.apply(this,n),r&&d.cancel()):(o&&u{l=Date.now(),t.apply(this,n),r&&d.cancel()},o?e-u:e))}return d.cancel=()=>{clearTimeout(s),h=!0},d}function o(t,e=0,{start:i=!1,middle:r=!1,once:s=!1}={}){return n(t,e,{start:i,middle:r,once:s})}i.d(e,{n:()=>n,s:()=>o})},28746(t,e,i){i.d(e,{A:()=>r});var n=i(83770),o=function(){function t(e){var i=e.itemCount,n=e.itemSizeGetter,o=e.estimatedItemSize;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this._itemSizeGetter=n,this._itemCount=i,this._estimatedItemSize=o,this._itemSizeAndPositionData={},this._lastMeasuredIndex=-1}return t.prototype.getLastMeasuredIndex=function(){return this._lastMeasuredIndex},t.prototype.getSizeAndPositionForIndex=function(t){if(t<0||t>=this._itemCount)throw Error("Requested index "+t+" is outside of range 0.."+this._itemCount);if(t>this._lastMeasuredIndex){for(var e=this.getSizeAndPositionOfLastMeasuredItem(),i=e.offset+e.size,n=this._lastMeasuredIndex+1;n<=t;n++){var o=this._itemSizeGetter({index:n});if(null==o||isNaN(o))throw Error("Invalid size returned for index "+n+" of value "+o);this._itemSizeAndPositionData[n]={offset:i,size:o},i+=o}this._lastMeasuredIndex=t}return this._itemSizeAndPositionData[t]},t.prototype.getSizeAndPositionOfLastMeasuredItem=function(){return this._lastMeasuredIndex>=0?this._itemSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}},t.prototype.getTotalSize=function(){var t=this.getSizeAndPositionOfLastMeasuredItem();return t.offset+t.size+(this._itemCount-this._lastMeasuredIndex-1)*this._estimatedItemSize},t.prototype.getUpdatedOffsetForIndex=function(t){var e=t.align,i=t.containerSize,n=t.targetIndex;if(i<=0)return 0;var o=this.getSizeAndPositionForIndex(n),r=o.offset,s=r-i+o.size,a=void 0;switch(void 0===e?"start":e){case"end":a=s;break;case"center":a=r-(i-o.size)/2;break;default:a=r}return Math.max(0,Math.min(this.getTotalSize()-i,a))},t.prototype.getVisibleRange=function(t){var e=t.containerSize,i=t.offset,n=t.overscanCount;if(0===this.getTotalSize())return{};var o=i+e,r=this._findNearestItem(i),s=r,a=this.getSizeAndPositionForIndex(r);for(i=a.offset+a.size;in&&(i=o-1)}if(e>0)return e-1},t.prototype._exponentialSearch=function(t){for(var e=t.index,i=t.offset,n=1;e=t?this._binarySearch({high:i,low:0,offset:t}):this._exponentialSearch({index:i,offset:t})},t}(),r=function(){function t(e,i){var n=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.getRowHeight=function(t){var e=t.index,i=n.options.rowHeight;return"function"==typeof i?i(e):Array.isArray(i)?i[e]:i},this.container=e,this.options=i,this.state={},this._initializeSizeAndPositionManager(i.rowCount),this.render=this.render.bind(this),this.handleScroll=this.handleScroll.bind(this),this.componentDidMount()}return t.prototype.componentDidMount=function(){var t=this,e=this.options,i=e.onMount,n=e.initialScrollTop,o=e.initialIndex,r=e.height,s=n||null!=o&&this.getRowOffset(o)||0,a=this.inner=document.createElement("div"),l=this.content=document.createElement("div");a.setAttribute("style","position:relative; overflow:hidden; width:100%; min-height:100%; will-change: transform;"),l.setAttribute("style","position:absolute; top:0; left:0; height:100%; width:100%; overflow:visible;"),a.appendChild(l),this.container.appendChild(a),this.setState({offset:s,height:r},function(){s&&(t.container.scrollTop=s),t.container.addEventListener("scroll",t.handleScroll),"function"==typeof i&&i()})},t.prototype._initializeSizeAndPositionManager=function(t){this._sizeAndPositionManager=new o({itemCount:t,itemSizeGetter:this.getRowHeight,estimatedItemSize:this.options.estimatedRowHeight||100})},t.prototype.setState=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1];this.state=Object.assign(this.state,e),requestAnimationFrame(function(){t.render(),"function"==typeof i&&i()})},t.prototype.resize=function(t,e){this.setState({height:t},e)},t.prototype.handleScroll=function(t){var e=this.options.onScroll,i=this.container.scrollTop;this.setState({offset:i}),"function"==typeof e&&e(i,t)},t.prototype.getRowOffset=function(t){return this._sizeAndPositionManager.getSizeAndPositionForIndex(t).offset},t.prototype.scrollToIndex=function(t,e){var i=this.state.height,n=this._sizeAndPositionManager.getUpdatedOffsetForIndex({align:e,containerSize:i,targetIndex:t});this.container.scrollTop=n},t.prototype.setRowCount=function(t){this._initializeSizeAndPositionManager(t),this.render()},t.prototype.onRowsRendered=function(t){var e=this.options.onRowsRendered;"function"==typeof e&&e(t)},t.prototype.destroy=function(){this.container.removeEventListener("scroll",this.handleScroll),this.container.innerHTML=""},t.prototype.render=function(){for(var t=this.options,e=t.overscanCount,i=t.renderRow,o=this.state,r=o.height,s=o.offset,a=this._sizeAndPositionManager.getVisibleRange({containerSize:r,offset:void 0===s?0:s,overscanCount:e}),l=a.start,h=a.stop,d=document.createDocumentFragment(),u=l;u<=h;u++)d.appendChild(i(u));this.inner.style.height=this._sizeAndPositionManager.getTotalSize()+"px",this.content.style.top=this.getRowOffset(l)+"px",(0,n.A)(this.content,d,{childrenOnly:!0,getNodeKey:function(t){return t.nodeIndex}}),this.onRowsRendered({startIndex:l,stopIndex:h})},t}();if("function"!=typeof r&&null!==r)throw TypeError("Super expression must either be null or a function, not "+typeof r);function s(){if(!(this instanceof s))throw TypeError("Cannot call a class as a function");var t=r.apply(this,arguments);if(!this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:this}s.prototype=Object.create(r&&r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(s,r):s.__proto__=r),s.prototype.onRowsRendered=function(t){var e=this,i=t.startIndex,n=t.stopIndex,o=this.options,r=o.isRowLoaded,s=o.loadMoreRows,a=o.minimumBatchSize,l=o.rowCount,h=void 0===l?0:l,d=o.threshold,u=void 0===d?15:d;(function(t){for(var e=t.isRowLoaded,i=t.minimumBatchSize,n=t.rowCount,o=t.startIndex,r=t.stopIndex,s=[],a=null,l=null,h=o;h<=r;h++)e(h)?null!==l&&(s.push({startIndex:a,stopIndex:l}),a=l=null):(l=h,null===a&&(a=h));if(null!==l){for(var d=Math.min(Math.max(l,a+i-1),n-1),u=l+1;u<=d;u++)if(e({index:u}))break;else l=u;s.push({startIndex:a,stopIndex:l})}if(s.length)for(var c=s[0];c.stopIndex-c.startIndex+10;){var p=c.startIndex-1;if(e({index:p}))break;c.startIndex=p}return s})({isRowLoaded:r,minimumBatchSize:void 0===a?10:a,rowCount:h,startIndex:Math.max(0,i-u),stopIndex:Math.min(h-1,n+u)}).forEach(function(t){var o=s(t);o&&o.then(function(){var o,r,s,a,l;r=(o={lastRenderedStartIndex:i,lastRenderedStopIndex:n,startIndex:t.startIndex,stopIndex:t.stopIndex}).lastRenderedStartIndex,s=o.lastRenderedStopIndex,a=o.startIndex,l=o.stopIndex,a>s||l"object"==typeof e?e:String(e))}function o(t,e={}){let{hash:i=n,cache:r=new Map}=e;return function(...e){let n=i.apply(this,e);if(r.has(n))return r.get(n);let o=t.apply(this,e);return o instanceof Promise&&(o=o.catch(t=>{throw r.delete(n),t})),r.set(n,o),o}}i.d(e,{A:()=>o})},85498(t,e,i){i.d(e,{TemplateInstance:()=>x,xr:()=>g});let n=new Map;function o(t){if(n.has(t))return n.get(t);let e=t.length,i=0,o=0,r=0,s=[];for(let n=0;ni&&(s.push(Object.freeze({type:"string",start:i,end:o,value:t.slice(i,o)})),i=o),s.push(Object.freeze({type:"part",start:o,end:n+2,value:t.slice(i+2,n).trim()})),n+=1,i=n+1)}return i"string"==typeof t?t:t.value).join("");this.element.setAttributeNS(this.attr.namespaceURI,this.attr.name,t)}}}let h=new WeakMap;class d{constructor(t,e){this.expression=e,h.set(this,[t]),t.textContent=""}get value(){return h.get(this).map(t=>t.textContent).join("")}set value(t){this.replace(t)}get previousSibling(){return h.get(this)[0].previousSibling}get nextSibling(){return h.get(this)[h.get(this).length-1].nextSibling}replace(...t){var e,i;let n=t.map(t=>"string"==typeof t?new Text(t):t);n.length||n.push(new Text(""));let o=h.get(this)[0];for(let t of n)null==(e=o.parentNode)||e.insertBefore(t,o);for(let t of h.get(this))null==(i=t.parentNode)||i.removeChild(t);h.set(this,n)}}class u extends d{constructor(t){var e;super(t,null!=(e=t.getAttribute("expression"))?e:""),this.template=t}get directive(){var t;return null!=(t=this.template.getAttribute("directive"))?t:""}}function c(t){return{processCallback(e,i,n){var o;if("object"==typeof n&&n){for(let e of i)if(e.expression in n){let i=null!=(o=n[e.expression])?o:"";t(e,i,n)}}}}}function p(t,e){t.value=e instanceof Node?e:String(e)}let f=c(p),g=c((t,e)=>{"boolean"==typeof e&&t instanceof a&&"boolean"==typeof t.element[t.attributeName]&&(t.booleanValue=e,1)||p(t,e)}),m=new WeakMap,b=new WeakMap;class x extends(globalThis.DocumentFragment||EventTarget){constructor(t,e,i=f){var n,r;super(),Object.getPrototypeOf(this)!==x.prototype&&Object.setPrototypeOf(this,x.prototype),this.appendChild(t.content.cloneNode(!0)),b.set(this,Array.from(function* t(e){let i,n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,null);for(;i=n.nextNode();)if(i instanceof HTMLTemplateElement)if(i.hasAttribute("directive"))yield new u(i);else for(let e of t(i.content))yield e;else if(i instanceof Element&&i.hasAttributes())for(let t=0;tr});var n,o=/bot|crawl|http|lighthouse|scan|search|spider/i;function r(t){return!!t&&(function(){if(n instanceof RegExp)return n;try{n=RegExp(" daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?