!function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}t(function(t){!function(e){var n,r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag",s=e.regeneratorRuntime;if(s)t.exports=s;else{(s=e.regeneratorRuntime=t.exports).wrap=p;var l="suspendedStart",c="suspendedYield",u="executing",f="completed",d={},v=g.prototype=m.prototype;y.prototype=v.constructor=g,g.constructor=y,g[a]=y.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(v),e},s.awrap=function(e){return new w(e)},b(x.prototype),s.async=function(e,t,n,r){var o=new x(p(e,t,n,r));return s.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},b(v),v[i]=function(){return this},v[a]="Generator",v.toString=function(){return"[object Generator]"},s.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},s.values=T,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=n,this.done=!1,this.delegate=null,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},d}}}function p(e,t,r,o){var i=Object.create((t||m).prototype),a=new j(o||[]);return i._invoke=function(e,t,r){var o=l;return function(i,a){if(o===u)throw new Error("Generator is already running");if(o===f){if("throw"===i)throw a;return S()}for(;;){var s=r.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===n){r.delegate=null;var v=s.iterator.return;if(v){var p=h(v,s.iterator,a);if("throw"===p.type){i="throw",a=p.arg;continue}}if("return"===i)continue}var p=h(s.iterator[i],s.iterator,a);if("throw"===p.type){r.delegate=null,i="throw",a=p.arg;continue}i="next",a=n;var m=p.arg;if(!m.done)return o=c,m;r[s.resultName]=m.value,r.next=s.nextLoc,r.delegate=null}if("next"===i)r.sent=o===c?a:n;else if("throw"===i){if(o===l)throw o=f,a;r.dispatchException(a)&&(i="next",a=n)}else"return"===i&&r.abrupt("return",a);o=u;var p=h(e,t,r);if("normal"===p.type){o=r.done?f:c;var m={value:p.arg,done:r.done};if(p.arg!==d)return m;r.delegate&&"next"===i&&(a=n)}else"throw"===p.type&&(o=f,i="throw",a=p.arg)}}}(e,r,a),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function m(){}function y(){}function g(){}function b(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function w(e){this.arg=e}function x(e){function t(n,r,o,i){var a=h(e[n],e,r);if("throw"!==a.type){var s=a.arg,l=s.value;return l instanceof w?Promise.resolve(l.arg).then(function(e){t("next",e,o,i)},function(e){t("throw",e,o,i)}):Promise.resolve(l).then(function(e){s.value=e,o(s)},i)}i(a.arg)}var n;"object"==typeof process&&process.domain&&(t=process.domain.bind(t)),this._invoke=function(e,r){function o(){return new Promise(function(n,o){t(e,r,n,o)})}return n=n?n.then(o,o):o()}}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function t(){for(;++o0&&g(u))})}),o(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n;case 2:(t=y())&&(h(t),b());case 4:case"end":return e.stop()}},e,this)}))();var m="send-beacon-queue";function y(){var e=void 0;try{e=sessionStorage.getItem(m)}catch(e){}if(e)return JSON.parse(e)}function g(e){var t=JSON.stringify(e);try{sessionStorage.setItem(m,t)}catch(e){}}function b(){try{sessionStorage.removeItem(m)}catch(e){}}t(function(e,t){!function(){var t=window,n=document;e.exports={polyfill:function(){if(!("scrollBehavior"in n.documentElement.style&&!0!==t.__forceSmoothScrollPolyfill__)){var e,r=t.HTMLElement||t.Element,o=468,i=(e=t.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(e)?1:0),a={scroll:t.scroll||t.scrollTo,scrollBy:t.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},s=t.performance&&t.performance.now?t.performance.now.bind(t.performance):Date.now;t.scroll=t.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?p.call(t,n.body,void 0!==arguments[0].left?~~arguments[0].left:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:t.scrollY||t.pageYOffset):a.scroll.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:t.scrollX||t.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:t.scrollY||t.pageYOffset))},t.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?a.scrollBy.call(t,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):p.call(t,n.body,~~arguments[0].left+(t.scrollX||t.pageXOffset),~~arguments[0].top+(t.scrollY||t.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==c(arguments[0])){var e=arguments[0].left,t=arguments[0].top;p.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value couldn't be converted");a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):a.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==c(arguments[0])){var e=function(e){var t;do{t=(e=e.parentNode)===n.body}while(!1===t&&!1===d(e));return t=null,e}(this),r=e.getBoundingClientRect(),o=this.getBoundingClientRect();e!==n.body?(p.call(this,e,e.scrollLeft+o.left-r.left,e.scrollTop+o.top-r.top),"fixed"!==t.getComputedStyle(e).position&&t.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):t.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}else a.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function l(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+i1?1:l,n=.5*(1-Math.cos(Math.PI*a)),r=e.startX+(e.x-e.startX)*n,i=e.startY+(e.y-e.startY)*n,e.method.call(e.scrollable,r,i),r===e.x&&i===e.y||t.requestAnimationFrame(v.bind(t,e))}function p(e,r,o){var i,c,u,f,d=s();e===n.body?(i=t,c=t.scrollX||t.pageXOffset,u=t.scrollY||t.pageYOffset,f=a.scroll):(i=e,c=e.scrollLeft,u=e.scrollTop,f=l),v({scrollable:i,method:f,startTime:d,startX:c,startY:u,x:r,y:o})}}}}()}).polyfill;function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){var t="function"==typeof Map?new Map:void 0;return(E=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return L(e,arguments,T(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)})(e)}function L(e,t,n){return(L=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&j(o,n.prototype),o}).apply(null,arguments)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.getSelection&&!function(){const e=document.createElement("div");return e.style.cssText="-ms-user-select: element; user-select: contain;","element"===e.style.getPropertyValue("-ms-user-select")||"contain"===e.style.getPropertyValue("-ms-user-select")||"contain"===e.style.getPropertyValue("user-select")}()&&document.addEventListener("click",function(e){if(!(e.target instanceof Element))return;const t=e.target.closest(".user-select-contain");if(!t)return;const n=window.getSelection();if(!n.rangeCount)return;const r=n.getRangeAt(0).commonAncestorContainer;t.contains(r)||n.selectAllChildren(t)});var S=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=x(this,T(t).call(this,e))).name="QueryError",n.framesToPop=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(t,E(Error)),t}();function k(e,t,n){var r=n||HTMLElement,o=e.closest(t);if(o instanceof r)return o;throw new S("Element not found: <".concat(r.name,"> ").concat(t))}function A(e,t,n){var r=n||HTMLElement,o=e.querySelector(t);if(o instanceof r)return o;throw new S("Element not found: <".concat(r.name,"> ").concat(t))}function M(e,t,n){var r=n||HTMLElement,o=[],i=!0,a=!1,s=void 0;try{for(var l,c=e.querySelectorAll(t)[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;u instanceof r&&o.push(u)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return o}function C(e,t){var n=e.getAttribute(t);if(null!=n)return n;throw new S("Attribute not found on element: ".concat(t))}var H=[],O=0;function q(e){o(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return H.push(e),t.next=3,n;case 3:R();case 4:case"end":return t.stop()}},t,this)}))()}function R(){var e=O;O=H.length,P(H.slice(e),null,window.location.href)}function P(e,t,n){var r=window.location.hash.slice(1),o={oldURL:t,newURL:n,target:r&&document.getElementById(r)},i=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){l.value.call(null,o)}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}}q.clear=function(){H.length=O=0};var D=window.location.href;window.addEventListener("popstate",function(){D=window.location.href}),window.addEventListener("hashchange",function(e){var t=window.location.href;try{P(H,e.oldURL||D,t)}finally{D=t}});var _=null;document.addEventListener("pjax:start",function(){_=window.location.href}),document.addEventListener("pjax:end",function(){P(H,_,window.location.href)});var I=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}};function N(){if(!(this instanceof N))return new N;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var X=window.document.documentElement,F=X.matches||X.webkitMatchesSelector||X.mozMatchesSelector||X.oMatchesSelector||X.msMatchesSelector;N.prototype.matchesSelector=function(e,t){return F.call(e,t)},N.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},N.prototype.indexes=[];var B=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;N.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(B))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var U=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;N.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(U))return t[0].slice(1)},element:function(e){var t=e.className;if(t){if("string"==typeof t)return t.split(/\s/);if("object"==typeof t&&"baseVal"in t)return t.baseVal.split(/\s/)}}});var W,V=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;N.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(V))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),N.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},W="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 Y=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function z(e,t){var n,r,o,i,a,s,l=(e=e.slice(0).concat(e.default)).length,c=t,u=[];do{if(Y.exec(""),(o=Y.exec(c))&&(c=o[3],o[2]||!c))for(n=0;n3&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?$:J,i=o[e];i||(i=new N,o[e]=i,document.addEventListener(e,se,r)),i.add(t,n)}function ce(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}var ue="ontransitionend"in window;function fe(e,t){if(ue){var n=Array.from(e.querySelectorAll(".js-transitionable"));e.classList.add("js-transitionable")&&n.push(e);var r=function(e){var t=de(e);e.addEventListener("transitionend",function(){e.style.display="",e.style.visibility="",t&&ve(e,function(){e.style.height=""})},{once:!0}),e.style.boxSizing="content-box",e.style.display="block",e.style.visibility="visible",t&&ve(e,function(){e.style.height=getComputedStyle(e).height}),e.offsetHeight},o=!0,i=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){r(p=s.value)}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}t();var c=!0,u=!1,f=void 0;try{for(var d,v=n[Symbol.iterator]();!(c=(d=v.next()).done);c=!0){var p;if(de(p=d.value)){var h=getComputedStyle(p).height;p.style.boxSizing="",p.style.height="0px"===h?p.scrollHeight+"px":"0px"}}}catch(e){u=!0,f=e}finally{try{!c&&v.return&&v.return()}finally{if(u)throw f}}}else t()}function de(e){return"height"===getComputedStyle(e).transitionProperty}function ve(e,t){e.style.transition="none",t(),e.offsetHeight,e.style.transition=""}function pe(e){var t=e.getAttribute("data-details-container")||".js-details-container",n=k(e,t);fe(n,function(){n.classList.toggle("open"),n.classList.toggle("Details--on"),e.setAttribute("aria-expanded",n.classList.contains("Details--on").toString()),Promise.resolve().then(function(){!function(e){var t=e.querySelectorAll("input[autofocus], textarea[autofocus]"),n=t[t.length-1];n&&document.activeElement!==n&&n.focus()}(n),function(e){e.classList.contains("tooltipped")&&(e.classList.remove("tooltipped"),e.addEventListener("mouseleave",function(){e.classList.add("tooltipped"),e.blur()},{once:!0}))}(e),function(e){var t=e.closest(".js-edit-repository-meta");t instanceof HTMLFormElement&&t.reset()}(e);var t=new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:n.classList.contains("Details--on")}});n.dispatchEvent(t)})})}le("click",".js-details-target",function(e){var t=e.currentTarget;I(t instanceof HTMLElement,"app/assets/modules/github/details.js:131"),pe(t),e.preventDefault()}),q(function(e){var t=e.target;t&&function(e){var t=!1,n=e.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(t=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!t),n.classList.toggle("Details--on",!t),t=!1),n=n.parentElement}(t)});var he=function(){function e(t){i(this,e),this.children=[],this.parent=t}return a(e,[{key:"delete",value:function(e){var t=this.children.indexOf(e);return-1!==t&&(this.children=this.children.slice(0,t).concat(this.children.slice(t+1)),0===this.children.length&&this.parent.delete(this),!0)}},{key:"add",value:function(e){return this.children.push(e),this}}]),e}(),me=function(){function e(t){i(this,e),this.parent=null,this.children={},this.parent=t||null}return a(e,[{key:"get",value:function(e){return this.children[e]}},{key:"insert",value:function(t){for(var n=this,r=0;rx&&x>0),a()}}}(o))}function i(e){e.target instanceof Element&&e.target.hasAttribute("data-check-all-item")&&(t=e.shiftKey)}function a(){var t=e.querySelector("[data-check-all-count]");if(t){var n=e.querySelectorAll("[data-check-all-item]:checked").length;t.textContent=n.toString()}}return e.addEventListener("mousedown",i),e.addEventListener("change",o),{unsubscribe:function(){e.removeEventListener("mousedown",i),e.removeEventListener("change",o)}}}});var et=new WeakMap;function tt(e){var t=et.get(e);I(t,"app/assets/modules/github/throttled-input.js:24"),null!=t.timer&&clearTimeout(t.timer),t.timer=setTimeout(function(){null!=t.timer&&(t.timer=null),t.inputed=!1,t.listener.call(null,e)},t.wait)}function nt(e){var t=et.get(e.currentTarget);I(t,"app/assets/modules/github/throttled-input.js:36"),t.keypressed=!0,null!=t.timer&&clearTimeout(t.timer)}function rt(e){var t=et.get(e.currentTarget);I(t,"app/assets/modules/github/throttled-input.js:45"),I(e.currentTarget instanceof HTMLInputElement||e.currentTarget instanceof HTMLTextAreaElement,"app/assets/modules/github/throttled-input.js:46"),t.keypressed=!1,t.inputed&&tt(e.currentTarget)}function ot(e){var t=et.get(e.currentTarget);I(t,"app/assets/modules/github/throttled-input.js:55"),I(e.currentTarget instanceof HTMLInputElement||e.currentTarget instanceof HTMLTextAreaElement,"app/assets/modules/github/throttled-input.js:56"),t.inputed=!0,t.keypressed||tt(e.currentTarget)}var it=new WeakMap;function at(e){return it.has(e)}function st(e,t,n){var r=n.limit,o=A(e,"template",HTMLTemplateElement),i={},a=!0,s=!1,l=void 0;try{for(var c,u=M(e,"input[type=hidden]",HTMLInputElement)[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var f=c.value;i[""+f.name+f.value]=f}}catch(e){s=!0,l=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw l}}for(var d=o.nextElementSibling;d;){var v=d;d=v.nextElementSibling,v.classList.contains("selected")||v.classList.contains("select-menu-divider")?v.classList.add("d-none"):v.remove()}var p=it.get(e);I(null!=p,"app/assets/modules/github/substring-memory-filter-list.js:68");var h=0,m=document.createDocumentFragment(),y=e.querySelector(".js-divider-suggestions"),g=e.querySelector(".js-divider-rest");function b(e){var n=!(null!=r&&h>=r)&&function(e){return(e.login+" "+e.name).toLowerCase().trim()}(e).indexOf(t)>=0;if(n||e.selected){var a=function(e,t,n){if(null!=e.element)return e.element;var r=t.content.cloneNode(!0),o=A(r,"input[type=checkbox]",HTMLInputElement);e.type&&(o.name="reviewer_"+e.type+"_ids[]");o.value=e.id;var i=""+o.name+e.id,a=e.selected;n[i]&&(a=!0,n[i].remove(),delete n[i]);var s=A(r,".js-navigation-item");a&&(s.classList.add("selected"),o.checked=!0);e.disabled&&s.classList.add("disabled");var l=r.querySelector(".js-username");l&&(l.textContent=e.login);var c=r.querySelector(".js-description");c&&(c.textContent=e.name);var u=r.querySelector(".js-extended-description");u&&(e.description?u.textContent=e.description:u.remove());return A(r,".js-avatar",HTMLImageElement).src=e.avatar,e.element=s,e.element}(e,o,i);a.classList.toggle("d-none",!n),n&&h++,m.appendChild(a)}}if(y&&p.suggestions){var w=!0,x=!1,E=void 0;try{for(var L,j=p.suggestions[Symbol.iterator]();!(w=(L=j.next()).done);w=!0){b(L.value)}}catch(e){x=!0,E=e}finally{try{!w&&j.return&&j.return()}finally{if(x)throw E}}m.childNodes.length&&(y.after(m),y.classList.toggle("d-none",0===h),m=document.createDocumentFragment())}var T=h,S=!0,k=!1,C=void 0;try{for(var H,O=p.users[Symbol.iterator]();!(S=(H=O.next()).done);S=!0){b(H.value)}}catch(e){k=!0,C=e}finally{try{!S&&O.return&&O.return()}finally{if(k)throw C}}return e.append(m),g&&g.classList.toggle("d-none",h===T||0===T),h}function lt(e,t){var n=ft(e,t);n&&-1===t.indexOf("/")&&(n+=ft(e.substring(e.lastIndexOf("/")+1),t));return n}function ct(e){for(var t=e.toLowerCase().split(""),n="",r=0;r"),o=!0):o&&(i.push(""),o=!1),i.push(s))}e.innerHTML=i.join("")}else{var l=e.innerHTML.trim(),c=l.replace(/<\/?mark>/g,"");l!==c&&(e.innerHTML=c)}}function ft(e,t){var n=e;if(n===t)return 1;for(var r=n.length,o=0,i=0,a=0;a-1?u:Math.max(l,c);if(-1===f)return 0;o+=.1,n[f]===s&&(o+=.1),0===f&&(o+=.8,0===a&&(i=1))," "===n.charAt(f-1)&&(o+=.8),n=n.substring(f+1,r)}var d=t.length,v=o/d,p=(v*(d/r)+v)/2;return i&&p+.1<1&&(p+=.1),p}var dt=new WeakMap,vt=new WeakMap,pt=new WeakMap;function ht(e,t){var n=parseFloat(pt.get(e)),r=parseFloat(pt.get(t)),o=vt.get(e)||"",i=vt.get(t)||"";return n>r?-1:ni?1:0}function mt(e){return e.hasAttribute("data-filter-value")?(e.getAttribute("data-filter-value")||"").toLowerCase().trim():e.textContent.toLowerCase().trim()}function yt(){return Promise.resolve()}function gt(e){return e.textContent.toLowerCase().trim()}function bt(e,t){var n=e.innerHTML;if(t){var r=new RegExp(t,"i");e.innerHTML=n.replace(r,"$&")}else{var o=n.replace(/<\/?mark>/g,"");n!==o&&(e.innerHTML=o)}}function wt(e){return e.textContent.toLowerCase().trim()}function xt(e,t){var n=e.innerHTML;if(t){var r=new RegExp(t,"i");e.innerHTML=n.replace(r,"$&")}else{var o=n.replace(/<\/?mark>/g,"");n!==o&&(e.innerHTML=o)}}function Et(e,t){var n=e.hasAttribute("data-filterable-highlight"),r=parseInt(e.getAttribute("data-filterable-limit"),10)||null,o=0;switch(e.getAttribute("data-filterable-type")){case"fuzzy":o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return 0;var r=t.toLowerCase(),o=null!=n.text?n.text:mt,i=n.limit,a=n.score,s=dt.get(e),l=Array.from(e.children);s||(s=Array.from(e.children),dt.set(e,s));var c=!0,u=!1,f=void 0;try{for(var d,v=l[Symbol.iterator]();!(c=(d=v.next()).done);c=!0){var p=d.value;e.removeChild(p),p.style.display=""}}catch(e){u=!0,f=e}finally{try{!c&&v.return&&v.return()}finally{if(u)throw f}}var h=document.createDocumentFragment(),m=0,y=0;if(r){var g=Array.from(s),b=!0,w=!1,x=void 0;try{for(var E,L=g[Symbol.iterator]();!(b=(E=L.next()).done);b=!0){var j=E.value;null==vt.get(j)&&vt.set(j,o(j));var T=a?a(vt.get(j)||"",r,j):lt(vt.get(j)||"",r);pt.set(j,String(T))}}catch(e){w=!0,x=e}finally{try{!b&&L.return&&L.return()}finally{if(w)throw x}}g.sort(ht);var S=ct(r),k=!0,A=!1,M=void 0;try{for(var C,H=g[Symbol.iterator]();!(k=(C=H.next()).done);k=!0){var O=C.value;(null==i||m0&&(y++,!0===n.mark&&(ut(O),ut(O,r,S)),h.appendChild(O)),m++}}catch(e){A=!0,M=e}finally{try{!k&&H.return&&H.return()}finally{if(A)throw M}}}else{var q=!0,R=!1,P=void 0;try{for(var D,_=s[Symbol.iterator]();!(q=(D=_.next()).done);q=!0){var I=D.value;(null==i||m0))}catch(e){F=!0,B=e}finally{try{!X&&W.return&&W.return()}finally{if(F)throw B}}return y}(e,t,{mark:n,limit:r});break;case"substring":o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0;if(e){var o=t.toLowerCase(),i=null!=n.text?n.text:wt,a=n.limit,s=Array.from(e.children).filter(function(e){return!e.classList.contains("select-menu-no-results")});!0===n.mark?r=xt:"function"==typeof n.mark&&(r=n.mark);var l=0,c=!0,u=!1,f=void 0;try{for(var d,v=s[Symbol.iterator]();!(c=(d=v.next()).done);c=!0){var p=d.value;-1!==i(p).indexOf(o)?null!=a&&l>=a?(p.style.display="none",p.hidden=!0):(l++,p.style.display="",p.hidden=!1,r&&(r(p),r(p,o))):(p.style.display="none",p.hidden=!0)}}catch(e){u=!0,f=e}finally{try{!c&&v.return&&v.return()}finally{if(u)throw f}}return l}}(e,t,{mark:n,limit:r});break;case"substring-memory":o=st(e,t,{limit:r});break;default:o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0;if(e){var o=t.toLowerCase(),i=null!=n.text?n.text:gt,a=n.limit;!0===n.mark?r=bt:"function"==typeof n.mark&&(r=n.mark);var s=0,l=!0,c=!1,u=void 0;try{for(var f,d=e.children[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var v=f.value;0===i(v).indexOf(o)?null!=a&&s>=a?(v.style.display="none",v.hidden=!0):(s++,v.style.display="",v.hidden=!1,r&&(r(v),r(v,o))):(v.style.display="none",v.hidden=!0)}}catch(e){c=!0,u=e}finally{try{!l&&d.return&&d.return()}finally{if(c)throw u}}return s}}(e,t,{mark:n,limit:r})}!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.closest(".js-select-menu, details-menu");if(!n)return;var r=function(e){var t=e.querySelector("[data-filterable-notice]");return t||((t=document.createElement("div")).classList.add("sr-only"),t.setAttribute("data-filterable-notice",""),t.setAttribute("aria-live","polite"),e.append(t),t)}(n);r.textContent="",r.textContent=t+" results found."}(e,o),e.classList.toggle("filterable-active",t.length>0),e.classList.toggle("filterable-empty",0===o)}function Lt(e){var t=e,n=t.ownerDocument;if(n&&t.offsetParent){var r=n.defaultView.HTMLElement;if(t!==n.body){for(;t!==n.body;){if(!(t.parentElement instanceof r))return;t=t.parentElement;var o=getComputedStyle(t),i=o.position,a=o.overflowY,s=o.overflowX;if("fixed"===i||"auto"===a||"auto"===s||"scroll"===a||"scroll"===s)break}return t instanceof Document?null:t}}}function jt(e,t){var n=t,r=e.ownerDocument;if(r&&r.body){var o=r.documentElement;if(o&&e!==o){var i=Tt(e,n);if(i){var a=(n=i._container)===r.documentElement?{top:r.defaultView.pageYOffset,left:r.defaultView.pageXOffset}:{top:n.scrollTop,left:n.scrollLeft},s=i.top-a.top,l=i.left-a.left,c=n.clientHeight,u=n.clientWidth;return{top:s,left:l,bottom:c-(s+e.offsetHeight),right:u-(l+e.offsetWidth),height:c,width:u}}}}}function Tt(e,t){var n=e,r=n.ownerDocument;if(r){var o=r.documentElement;if(o){var i=r.body;if(i){for(var a=r.defaultView.HTMLElement,s=0,l=0,c=n.offsetHeight,u=n.offsetWidth;n!==r.body&&n!==t;){if(s+=n.offsetTop||0,l+=n.offsetLeft||0,!(n.offsetParent instanceof a))return;n=n.offsetParent}var f=void 0,d=void 0,v=void 0;if(t&&t!==r&&t!==r.defaultView&&t!==r.documentElement&&t!==r.body){if(!(t instanceof a))return;v=t,f=t.scrollHeight,d=t.scrollWidth}else v=o,f=function(e,t){return Math.max(e.scrollHeight,t.scrollHeight,e.offsetHeight,t.offsetHeight,t.clientHeight)}(i,o),d=function(e,t){return Math.max(e.scrollWidth,t.scrollWidth,e.offsetWidth,t.offsetWidth,t.clientWidth)}(i,o);return{top:s,left:l,bottom:f-(s+c),right:d-(l+u),_container:v}}}}}ze(".js-filterable-field",{constructor:HTMLInputElement,initialize:function(e){var t,n,r=(t=o(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a!==t.value){e.next=2;break}return e.abrupt("return");case 2:return a=t.value,e.next=5,yt();case 5:ce(t,"filterable:change");case 6:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)}),i=(n=o(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=e.value,t.next=3,yt();case 3:ce(e,"filterable:change");case 4:case"end":return t.stop()}},t,this)})),function(){return n.apply(this,arguments)}),a=e.value;return{add:function(e){e.addEventListener("focus",i),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};et.set(e,{keypressed:!1,inputed:!1,timer:void 0,listener:t,wait:null!=n.wait?n.wait:100}),e.addEventListener("keydown",nt),e.addEventListener("keyup",rt),e.addEventListener("input",ot)}(e,r),document.activeElement===e&&i()},remove:function(e){e.removeEventListener("focus",i),function(e,t){e.removeEventListener("keydown",nt),e.removeEventListener("keyup",rt),e.removeEventListener("input",ot);var n=et.get(e);n&&(null!=n.timer&&n.listener===t&&clearTimeout(n.timer),et.delete(e))}(e,r)}}}}),le("filterable:change",".js-filterable-field",function(e){var t=e.currentTarget;I(t instanceof HTMLInputElement,"app/assets/modules/github/behaviors/filterable.js:84");var n=t.value.trim().toLowerCase(),r=document.querySelectorAll("[data-filterable-for="+t.id+"]"),o=!0,i=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;if("substring-memory"!==c.getAttribute("data-filterable-type")||at(c)){Et(c,n);var u=new CustomEvent("filterable:change",{bubbles:!0,cancelable:!1,detail:{inputField:t}});c.dispatchEvent(u)}}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}}),document.addEventListener("selectmenu:data",function(e){I(e instanceof CustomEvent,"app/assets/modules/github/behaviors/filterable.js:159");var t=e.target,n=e.detail;I(t instanceof HTMLElement,"app/assets/modules/github/behaviors/filterable.js:161");var r=t.querySelector('[data-filterable-type="substring-memory"]');if(r){!function(e,t){it.set(e,t)}(r,n.data);var o=t.querySelector(".js-filterable-field");o&&o===document.activeElement&&ce(o,"filterable:change")}}),le("click",".js-flash-close",function(e){var t=e.currentTarget.closest(".flash-messages"),n=e.currentTarget.closest(".flash");I(n,"app/assets/modules/github/behaviors/flash.js:24"),n.remove(),t&&!t.querySelector(".flash")&&t.remove()});var St=function e(t){var n=this;i(this,e),this.closed=!1,this.unsubscribe=function(){t(),n.closed=!0}};function kt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.addEventListener(t,n,r),new St(function(){e.removeEventListener(t,n,r)})}function At(e,t){var n=e,r=t||{},o=e.ownerDocument;n!==o&&n!==o.defaultView&&n!==o.documentElement&&n!==o.body||(n=o);var i=o.defaultView.Document,a=o.defaultView.HTMLElement;if(null==r.top&&null==r.left)if(r.target){var s=Tt(r.target,n);null!=s&&(r.top=s.top,r.left=s.left)}else if(n instanceof a){var l=Tt(n,n.offsetParent);n=n.offsetParent,null!=l&&(r.top=l.top,r.left=l.left)}if(n instanceof i||n===o.body){var c=null!=r.top?r.top:o.defaultView.pageYOffset,u=null!=r.left?r.left:o.defaultView.pageXOffset;o.defaultView.scrollTo(u,c)}else I(n instanceof a,"container is not HTMLElement -- app/assets/modules/github/scrollto.js:56"),null!=r.top&&(n.scrollTop=r.top),null!=r.left&&(n.scrollLeft=r.left)}function Mt(e){return!function(e){return e.offsetWidth<=0&&e.offsetHeight<=0}(e)}var Ct=navigator.userAgent.match(/Macintosh/),Ht=Ct?"metaKey":"ctrlKey",Ot=Ct?"Meta":"Control",qt=!1,Rt={x:0,y:0};function Pt(e){e instanceof MouseEvent&&(Rt.x===e.clientX&&Rt.y===e.clientY||(qt=!1),Rt={x:e.clientX,y:e.clientY})}function Dt(e){if(!qt){var t=e.currentTarget,n=e.target;if(n instanceof Element&&t instanceof HTMLElement&&t.closest(".js-active-navigation-container")){var r=n.closest(".js-navigation-item");r&&Kt(r,t)}}}ze(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:function(e){return kt(e,"mouseover",Pt)}}),ze(".js-navigation-container:not(.js-navigation-container-no-mouse)",{subscribe:function(e){return kt(e,"mouseover",Dt)}});var _t=0;function It(e){if(!(e.target!==document.body&&e.target instanceof HTMLElement)||e.target.classList.contains("js-navigation-enable")){qt=!0;var t=Gt(),n=void 0;if(t)n=ce(t.querySelector('.js-navigation-item[aria-selected="true"]')||t,"navigation:keydown",{hotkey:ye(e),originalEvent:e,originalTarget:e.target});n||e.preventDefault()}}function Nt(e){ce(e.currentTarget,"navigation:open",{modifierKey:e.modifierKey||e.altKey||e.ctrlKey||e.metaKey,shiftKey:e.shiftKey})||e.preventDefault()}function Xt(e){var t=Gt();e!==t&&(t&&Ft(t),e.classList.add("js-active-navigation-container"))}function Ft(e){e.classList.remove("js-active-navigation-container")}ze(".js-active-navigation-container",{add:function(){1===++_t&&document.addEventListener("keydown",It)},remove:function(){0===--_t&&document.removeEventListener("keydown",It)}}),le("navigation:keydown",".js-active-navigation-container",function(e){I(e instanceof CustomEvent,"app/assets/modules/github/navigation.js:232");var t=e.currentTarget,n=e.detail.originalTarget.matches("input, textarea"),r=e.target;if(r.classList.contains("js-navigation-item"))if(n){if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":Yt(r,t);break;case"Control+p":Vt(r,t)}switch(ye(e.detail.originalEvent)){case"ArrowUp":Vt(r,t);break;case"ArrowDown":Yt(r,t);break;case"Enter":case Ot+"+Enter":zt(r,e.detail.originalEvent[Ht])}}else{if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":Yt(r,t);break;case"Control+p":Vt(r,t);break;case"Alt+v":!function(e,t){var n=Jt(t),r=n.indexOf(e),o=Lt(e);if(null==o)return;var i=void 0,a=void 0;for(;(i=n[r-1])&&(a=jt(i,o))&&a.top>=0;)r--;if(i){var s=Kt(i,t);if(s)return;Qt(o,i)}}(r,t);break;case"Control+v":!function(e,t){var n=Jt(t),r=n.indexOf(e),o=Lt(e);if(null==o)return;var i=void 0,a=void 0;for(;(i=n[r+1])&&(a=jt(i,o))&&a.bottom>=0;)r++;if(i){var s=Kt(i,t);if(s)return;Qt(o,i)}}(r,t)}switch(ye(e.detail.originalEvent)){case"j":case"J":Yt(r,t);break;case"k":case"K":Vt(r,t);break;case"o":case"Enter":case Ot+"+Enter":zt(r,e.detail[Ht])}}else{var o=Jt(t)[0];if(o)if(n){if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":Kt(o,t)}switch(ye(e.detail.originalEvent)){case"ArrowDown":Kt(o,t)}}else{if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":case"Control+v":Kt(o,t)}switch(ye(e.detail.originalEvent)){case"j":Kt(o,t)}}}if(n){if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":case"Control+p":e.preventDefault()}switch(ye(e.detail.originalEvent)){case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Enter":e.preventDefault()}}else{if(Ct)switch(ye(e.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":e.preventDefault()}switch(ye(e.detail.originalEvent)){case"j":case"k":e.preventDefault();break;case"o":case"Enter":case Ht+"+Enter":e.preventDefault()}}}),le("click",".js-active-navigation-container .js-navigation-item",function(e){I(e instanceof MouseEvent,"app/assets/modules/github/navigation.js:388"),Nt(e)}),le("navigation:keyopen",".js-active-navigation-container .js-navigation-item",function(e){I(e instanceof CustomEvent,"app/assets/modules/github/navigation.js:394");var t=e.currentTarget.classList.contains("js-navigation-open")?e.currentTarget:e.currentTarget.querySelector(".js-navigation-open");if(t){if(e.detail.modifierKey)window.open(t.href,"_blank"),window.focus();else{var n=void 0;try{n=new MouseEvent("click",{bubbles:!0,cancelable:!0})}catch(e){(n=document.createEvent("MouseEvent")).initEvent("click",!0,!0)}t.dispatchEvent(n)&&t.click()}e.preventDefault()}else Nt(e)});var Bt=[];function Ut(e){var t=e.querySelectorAll(".js-navigation-item[aria-selected]"),n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;s.classList.remove("navigation-focus"),s.setAttribute("aria-selected","false")}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}function Wt(e,t){Ut(e),function(e,t){t||(t=e);var n=Jt(e)[0],r=t.closest(".js-navigation-item")||n;if(Xt(e),r instanceof HTMLElement){if(Kt(r,e))return;var o=Lt(r);I(o,"app/assets/modules/github/navigation.js:501"),Zt(o,r)}}(e,t)}function Vt(e,t){var n=Jt(t),r=n[n.indexOf(e)-1];if(r){if(Kt(r,t))return;var o=Lt(r);I(o,"app/assets/modules/github/navigation.js:549"),"page"===$t(t)?Qt(o,r):Zt(o,r)}}function Yt(e,t){var n=Jt(t),r=n[n.indexOf(e)+1];if(r){if(Kt(r,t))return;var o=Lt(r);I(o,"app/assets/modules/github/navigation.js:576"),"page"===$t(t)?Qt(o,r):Zt(o,r)}}function zt(e,t){null==t&&(t=!1),ce(e,"navigation:keyopen",{modifierKey:t})}function Kt(e,t){return!ce(e,"navigation:focus")||(Ut(t),e.classList.add("navigation-focus"),e.setAttribute("aria-selected","true"),!1)}function Gt(){return document.querySelector(".js-active-navigation-container")}function Jt(e){return Array.from(e.querySelectorAll(".js-navigation-item")).filter(Mt)}function $t(e){return e.getAttribute("data-navigation-scroll")||"item"}function Qt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth",r=jt(t,e);r&&(r.bottom<=0?t.scrollIntoView({behavior:n,block:"start"}):r.top<=0&&t.scrollIntoView({behavior:n,block:"end"}))}function Zt(e,t){var n=Tt(t,e),r=jt(t,e);null!=n&&null!=r&&(r.bottom<=0&&document.body?At(e,{top:(null!=e.offsetParent?e.scrollHeight:document.body.scrollHeight)-(n.bottom+r.height)}):r.top<=0&&At(e,{top:n.top}))}var en=[],tn=0,nn=function(){var e={_id:(new Date).getTime()};return sn(e),e}();function rn(){return nn}function on(){try{return Math.min(Math.max(0,history.length)||0,9007199254740991)}catch(e){return 0}}function an(){return on()-1+tn}function sn(e){nn=e;var t=location.href;en[an()]={url:t,state:nn},en.length=on(),window.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}function ln(){return(new Date).getTime()}function cn(e,t,n){var r=Object.assign({},{_id:rn()._id},e);history.replaceState(r,t,n),sn(r)}function un(){}window.addEventListener("popstate",function(e){e.state&&e.state._id&&(e.state._iden.length){var e={_id:ln()};history.replaceState(e,"",location.href),sn(e)}},!0);var fn=function(){function e(){i(this,e),this.previousReceiver={resolve:un,reject:un}}return a(e,[{key:"push",value:function(e){var t=this;return this.previousReceiver.resolve=this.previousReceiver.reject=un,new Promise(function(n,r){var o={resolve:n,reject:r};t.previousReceiver=o,e.then(function(){o.resolve.apply(this,arguments)},function(){o.reject.apply(this,arguments)})})}}]),e}();function dn(e){return function(e,t){if(""===t)return;return e.getElementById(t)||e.getElementsByName(t)[0]}(e,function(e){try{return decodeURIComponent(e.slice(1))}catch(e){return""}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.hash))}function vn(e){if(e===window)return"window";var t=[e.nodeName.toLowerCase()],n=e.id;if(n&&t.push("#"+n),"function"==typeof e.getAttribute&&e.getAttribute("class")){var r=(e.getAttribute("class")||"").trim().split(/\s+/).join(".");r&&t.push("."+r)}return t.join("")}var pn=function(e){function t(e,n){i(this,t);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+" for HTTP "+n.status));return r.response=n,r}return s(t,e),t}(Error);function hn(e,t){if("function"!=typeof HTMLTemplateElement.bootstrap){var n=e.createElement("template");return n.innerHTML=t,e.importNode(n.content,!0)}var r=e.createDocumentFragment(),o=e.implementation.createHTMLDocument(void 0);I(o.body,"app/assets/modules/github/parse-html.js:28"),o.body.innerHTML=t,I(o.body.childNodes,"app/assets/modules/github/parse-html.js:31");var i=Array.from(o.body.childNodes),a=!0,s=!1,l=void 0;try{for(var c,u=i[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var f=c.value;r.appendChild(f)}}catch(e){s=!0,l=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw l}}return"function"==typeof HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(r),r}var mn=function(e){function t(){var e,n,r;i(this,t);for(var o=arguments.length,a=Array(o),s=0;s=200&&e.status<300)return e;t.response=e;var n=e.statusText?" "+e.statusText:"";throw t.message="HTTP "+e.status+n,t}function gn(e,t){var n=t?Object.assign({},t):{};n.credentials||(n.credentials="same-origin");var r=new Request(e,n);if(r.headers.append("X-Requested-With","XMLHttpRequest"),/#csrf-token=/.test(r.url))throw new TypeError("URL with encoded CSRF token was passed to fetch() without using the csrfRequest(url) helper");return r}function bn(e,t){var n=gn(e,t),r=new mn;return self.fetch(n).then(function(e){return yn(e,r)})}function wn(e,t){var n=gn(e,t),r=new mn;return self.fetch(n).then(function(e){return yn(e,r),e.text()})}function xn(e,t,n){var r=gn(t,n),o=new mn;return self.fetch(r).then(function(t){return yn(t,o),function(e,t){var n=t.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new pn("expected response with text/html, but was "+n,t);var r=t.headers.get("x-html-safe");if(!r)throw new pn("missing X-HTML-Safe nonce",t);if(r!==e)throw new pn("response X-HTML-Safe nonce did not match",t)}(function(e){var t=e.querySelector("meta[name=html-safe-nonce]");if(null==t||!(t instanceof HTMLMetaElement))throw new Error("could not find html-safe-nonce on document");var n=t.content;if(n)return n;throw new Error("could not find html-safe-nonce on document")}(e),t),t.text()}).then(function(t){return hn(e,t)})}var En=new WeakMap;function Ln(e,t){var n=function(e,t){var n=M(e,"link[rel=pjax-prefetch]",HTMLLinkElement),r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(l.href===t)return l}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}}(e,t);if(n){var r=En.get(n);return n.remove(),En.delete(n),r}}var jn={container:null,timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},Tn=20,Sn=void 0,kn=new fn;function An(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}function Mn(e){var t,n=(t=o(regeneratorRuntime.mark(function e(t){var n,o,i,c,u,f,d,v,p,h,m,y,g;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Sn,o=Kn(),i=t.headers.get("X-PJAX-Version"),e.next=5,t.text();case 5:if(c=e.sent,u=Bn(c,t,r),f=u.contents,d=_n(u.url),a&&(d.hash=a,u.url=d.href),!o||!i||o===i){e.next=13;break}return Hn(u.url),e.abrupt("return");case 13:if(f){e.next=16;break}return Hn(u.url),e.abrupt("return");case 16:if(Sn={id:null!=r.id?r.id:Pn(),url:u.url,title:u.title,container:l,fragment:r.fragment,timeout:r.timeout},!0!==r.push&&!0!==r.replace||cn(Sn,u.title,u.url),v=document.activeElement,p=null!=r.container&&r.container.contains(v),v&&p)try{v.blur()}catch(e){}u.title&&(document.title=u.title),An(s,"pjax:beforeReplace",{contents:f,state:Sn,previousState:n}),Xn(s,f),(h=M(s,"input[autofocus], textarea[autofocus]").pop())&&document.activeElement!==h&&h.focus(),Un(u.scripts),m=r.scrollTo,a&&(y=dn(document,a))&&(g=y.getBoundingClientRect(),m=g.top+window.pageYOffset),"number"==typeof m&&window.scrollTo(window.pageXOffset,m),An(s,"pjax:success"),An(s,"pjax:complete"),An(s,"pjax:end");case 33:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)}),r={url:"",container:null};Object.assign(r,jn,e),I("string"==typeof r.url,"app/assets/modules/github/pjax.js:178"),r.requestUrl=r.url;var i=_n(r.url),a=i.hash,s=r.container;I(s,"app/assets/modules/github/pjax.js:184");var l=In(s);"GET"===r.type&&(i.search+=(i.search?"&":"")+"_pjax="+encodeURIComponent(l),r.url=i.toString()),Sn||cn(Sn={id:Pn(),url:window.location.href,title:document.title,container:l,fragment:r.fragment,timeout:r.timeout},Sn.title,Sn.url),I("string"==typeof r.requestUrl,"app/assets/modules/github/pjax.js:326");var c,u,f=Ln(s,r.requestUrl);f||(I(r.url,"app/assets/modules/github/pjax.js:329"),f=bn(r.url,{method:r.type,body:r.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":l}}),"GET"===r.type&&"number"==typeof r.timeout&&r.timeout>0&&(f=Promise.race([f,new Promise(function(e,t){setTimeout(function(){An(s,"pjax:timeout")&&t(new Error("timeout"))},r.timeout)})]))),!0===r.push&&!0!==r.replace&&(c=Sn.id,u=Dn(s),Wn[c]=u,Yn.push(c),zn(Vn,0),zn(Yn,Tn),I("string"==typeof r.requestUrl,"app/assets/modules/github/pjax.js:357"),function(e,t,n){tn=0;var r=Object.assign({},{_id:ln()},e);history.pushState(r,t,n),sn(r)}(null,"",r.requestUrl)),An(s,"pjax:start",{url:r.url}),An(s,"pjax:send"),kn.push(f).then(n,function(e){var t=r.requestUrl;I("string"==typeof t,"app/assets/modules/github/pjax.js:198"),e.response&&(t=Fn(e.response,t));var n=An(s,"pjax:error");"GET"===r.type&&n&&Hn(t),An(s,"pjax:complete"),An(s,"pjax:end")})}function Cn(e,t){var n=e.closest("[data-pjax-container]");if(!n)throw new Error("no pjax container for "+function(e){for(var t=[],n=e;n&&(t.push(vn(n)),9!==n.nodeType&&!n.id);)n=n.parentNode;return t.reverse().join(" > ")}(e));var r=In(n),o=_n(e.href);return o.search+=(o.search?"&":"")+"_pjax="+encodeURIComponent(r),bn(o.href,{headers:Object.assign({Accept:"text/html","X-PJAX":"true","X-PJAX-Container":r},t&&t.headers)})}function Hn(e){I(Sn,"app/assets/modules/github/pjax.js:408"),cn(null,"",Sn.url),window.location.replace(e)}var On=!0,qn=window.location.href,Rn=window.history.state;function Pn(){return(new Date).getTime()}function Dn(e){var t=e.cloneNode(!0);return[In(e),Array.from(t.childNodes)]}function _n(e){var t=document.createElement("a");return t.href=e,t}function In(e){if(e.id)return"#"+e.id;throw new Error("pjax container has no id")}function Nn(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;c instanceof Element&&(c instanceof n&&c.matches(t)&&r.push(c),r=r.concat(M(c,t,n)))}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return r}function Xn(e,t){e.innerHTML="";var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;null!=s&&e.appendChild(s)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}function Fn(e,t){var n,r=e.headers.get("X-PJAX-URL");return r?((n=_n(r)).search=n.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),n.href.replace(/\?($|#)/,"$1")):t}function Bn(e,t,n){I("string"==typeof n.requestUrl,"app/assets/modules/github/pjax.js:614");var r={url:Fn(t,n.requestUrl),title:""},o=/]*>([\s\S.]*)<\/head>/i),l=e.match(/]*>([\s\S.]*)<\/body>/i);i=s?Array.from(hn(document,s[0]).childNodes):[],a=l?Array.from(hn(document,l[0]).childNodes):[]}else i=a=Array.from(hn(document,e).childNodes);if(0===a.length)return r;var c=Nn(i,"title",HTMLTitleElement);r.title=c.length>0?c[c.length-1].textContent:"";var u=void 0;if(n.fragment){if("body"===n.fragment)u=a;else{var f=Nn(a,n.fragment,Element);u=f.length>0?[f[0]]:[]}if(u.length&&("body"===n.fragment?r.contents=u:r.contents=u.reduce(function(e,t){return e.concat(Array.from(t.childNodes))},[]),!r.title)){var d=u[0];d instanceof Element&&(r.title=d.getAttribute("title")||d.getAttribute("data-title")||"")}}else o||(r.contents=a);if(r.contents){r.contents=r.contents.filter(function(e){return!(e instanceof Element)||!e.matches("title")});var v=!0,p=!1,h=void 0;try{for(var m,y=r.contents[Symbol.iterator]();!(v=(m=y.next()).done);v=!0){var g=m.value;if(g instanceof Element){var b=!0,w=!1,x=void 0;try{for(var E,L=g.querySelectorAll("title")[Symbol.iterator]();!(b=(E=L.next()).done);b=!0){E.value.remove()}}catch(e){w=!0,x=e}finally{try{!b&&L.return&&L.return()}finally{if(w)throw x}}}}}catch(e){p=!0,h=e}finally{try{!v&&y.return&&y.return()}finally{if(p)throw h}}var j=Nn(r.contents,"script[src]",HTMLScriptElement),T=!0,S=!1,k=void 0;try{for(var A,M=j[Symbol.iterator]();!(T=(A=M.next()).done);T=!0){A.value.remove()}}catch(e){S=!0,k=e}finally{try{!T&&M.return&&M.return()}finally{if(S)throw k}}r.scripts=j,I(r.contents,"app/assets/modules/github/pjax.js:706"),r.contents=r.contents.filter(function(e){return-1===j.indexOf(e)})}return r.title&&(r.title=r.title.trim()),r}function Un(e){if(e){var t=M(document,"script[src]",HTMLScriptElement),n=function(e){var n=e.src;if(t.some(function(e){return e.src===n}))return{v:void 0};var r=document.createElement("script"),o=e.getAttribute("type");o&&(r.type=o),r.src=n,document.head&&document.head.appendChild(r)},o=!0,i=!1,a=void 0;try{for(var s,l=e[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=n(s.value);if("object"===(void 0===c?"undefined":r(c)))return c.v}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}}}Rn&&Rn.container&&(Sn=Rn),"state"in window.history&&(On=!1);var Wn={},Vn=[],Yn=[];function zn(e,t){for(;e.length>t;)delete Wn[e.shift()]}function Kn(){var e=!0,t=!1,n=void 0;try{for(var r,o=document.getElementsByTagName("meta")[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value,a=i.getAttribute("http-equiv");if(a&&"X-PJAX-VERSION"===a.toUpperCase())return i.content}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}}window.addEventListener("popstate",function(e){On||kn.push(Promise.resolve(new Response));var t=Sn,n=e.state,r=void 0;if(n&&n.container){if(On&&qn===n.url)return;if(t){if(t.id===n.id)return;r=t.idt}ze(".js-sso-modal-complete",function(e){if(window.opener&&window.opener.external.ssoComplete){var t=e.getAttribute("data-error"),n=e.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:t,expiresAround:n}),window.close()}else{var r=e.getAttribute("data-fallback-url");window.location=r}});var fr=null;function dr(){fr=null}var vr=o(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ar();case 2:if(e.sent){e.next=7;break}return fr||(fr=ir().then(dr).catch(dr)),e.next=7,fr;case 7:case"end":return e.stop()}},e,this)})),pr=function(){var e=o(regeneratorRuntime.mark(function e(t){var n,r,o,i,a,s,l,c,u,f,d,v,p;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,I(n instanceof Element,"app/assets/modules/github/select-menu/loading.js:40"),n.classList.remove("js-load-contents"),n.classList.add("is-loading"),n.classList.remove("has-error"),r=C(n,"data-contents-url"),o=new URL(r,window.location.origin),!(i=hr.get(n))){e.next=30;break}for(a=new URLSearchParams(o.search.slice(1)),s=!0,l=!1,c=void 0,e.prev=13,u=i[Symbol.iterator]();!(s=(f=u.next()).done);s=!0)d=f.value,a.append(d[0],d[1]);e.next=21;break;case 17:e.prev=17,e.t0=e.catch(13),l=!0,c=e.t0;case 21:e.prev=21,e.prev=22,!s&&u.return&&u.return();case 24:if(e.prev=24,!l){e.next=27;break}throw c;case 27:return e.finish(24);case 28:return e.finish(21);case 29:o.search=a.toString();case 30:return v=n.querySelector(".js-select-menu-deferred-content"),p=void 0,e.prev=32,e.next=35,vr();case 35:if(!v){e.next=41;break}return e.next=38,wn(o);case 38:p=e.sent,e.next=44;break;case 41:return e.next=43,tr(o);case 43:p=e.sent;case 44:e.next=50;break;case 46:return e.prev=46,e.t1=e.catch(32),n.classList.add("has-error"),e.abrupt("return");case 50:return e.prev=50,n.classList.remove("is-loading"),e.finish(50);case 53:v?v.innerHTML=p:ce(n,"selectmenu:data",{data:p}),(n.classList.contains("active")||n.hasAttribute("open"))&&ce(n,"selectmenu:load");case 55:case"end":return e.stop()}},e,this,[[13,17,21,29],[22,,24,28],[32,46,50,53]])}));return function(t){return e.apply(this,arguments)}}(),hr=new WeakMap;function mr(e){var t=k(e.currentTarget,".js-select-menu").querySelector(".js-navigation-container"),n=e.currentTarget;t&&n instanceof HTMLElement&&Wt(t,n)}ze(".js-select-menu.js-load-contents",{add:function(e){e.addEventListener("mouseenter",pr),e.addEventListener("menu:activate",pr)},remove:function(e){e.removeEventListener("mouseenter",pr),e.removeEventListener("menu:activate",pr)}}),le("menu:activate",".js-select-menu",function(e){var t=e.currentTarget.querySelector(".js-menu-target");t&&t.classList.add("selected");var n=e.currentTarget.querySelector(".js-navigation-container");n&&function(e){var t=Gt();t&&Bt.push(t),Xt(e)}(n)}),le("menu:deactivate",".js-select-menu",function(e){var t=e.currentTarget.querySelector(".js-menu-target");t&&t.classList.remove("selected");var n=e.currentTarget.querySelector(".js-navigation-container");n&&function(e){Ft(e),Ut(e);var t=Bt.pop();t&&Xt(t)}(n)}),le("filterable:change",".js-select-menu .select-menu-list",mr),le("selectmenu:tabchange",".js-select-menu .select-menu-list",mr),le("filterable:change",".js-select-menu .select-menu-list, details-menu .select-menu-list",function(e){I(e instanceof CustomEvent,"app/assets/modules/github/select-menu/new.js:22");var t=e.currentTarget,n=t.querySelector(".js-new-item-form");n&&function(e,t,n){var r=n.length>0&&!function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=e.querySelectorAll(".js-select-button-text, .js-select-menu-filter-text")[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,l=s.textContent.toLowerCase().trim();if(l===t.toLowerCase())return!0}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return!1}(e,n);if(e.classList.toggle("is-showing-new-item-form",r),!r)return;A(t,".js-new-item-name").textContent=n;var o=t.querySelector(".js-new-item-value");(o instanceof HTMLInputElement||o instanceof HTMLButtonElement)&&(o.value=n)}(t,n,e.detail.inputField.value),ce(e.target,"selectmenu:change")}),le("click",".js-smoothscroll-anchor",function(e){var t=e.currentTarget;if(t instanceof HTMLAnchorElement){var n=dn(document,t.hash);n&&(n.scrollIntoView({behavior:"smooth"}),e.preventDefault())}});var yr=!1,gr=[];function br(){gr.length?yr||(window.addEventListener("resize",wr,{passive:!0}),document.addEventListener("scroll",wr,{passive:!0}),yr=!0):(window.removeEventListener("resize",wr,{passive:!0}),document.removeEventListener("scroll",wr,{passive:!0}),yr=!1)}function wr(){var e=!0,t=!1,n=void 0;try{for(var r,o=gr[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var i=r.value;if(i.element.offsetHeight>0){var a=i.element,s=i.placeholder,l=i.top,c=a.getBoundingClientRect();if(s){var u=s.getBoundingClientRect();a.classList.contains("is-stuck")?u.top>parseInt(l)?Er(i):Lr(i):c.top<=parseInt(l)&&xr(i)}else c.top<=parseInt(l)?xr(i):Er(i)}}}catch(e){t=!0,n=e}finally{try{!e&&o.return&&o.return()}finally{if(t)throw n}}}function xr(e){var t=e.element,n=e.placeholder,r=e.top;if(n){var o=t.getBoundingClientRect();t.style.top=r.toString(),t.style.left=o.left+"px",t.style.width=o.width+"px",t.style.marginTop="0",t.style.position="fixed",n.style.display="block"}t.classList.add("is-stuck")}function Er(e){var t=e.element,n=e.placeholder;n&&(t.style.position="static",t.style.marginTop=n.style.marginTop,n.style.display="none"),t.classList.remove("is-stuck")}function Lr(e){var t=e.element,n=e.placeholder,r=e.offsetParent,o=e.top;if(n){var i=t.getBoundingClientRect(),a=n.getBoundingClientRect();if(t.style.left=a.left+"px",t.style.width=a.width+"px",r){var s=r.getBoundingClientRect();s.bottom