1
1
mirror of https://github.com/primer/css.git synced 2024-12-02 07:53:06 +03:00
css/static/github/styleguide.js
2019-02-04 12:55:18 -08:00

4 lines
87 KiB
JavaScript

!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<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?this.next=i.finallyLoc:this.complete(a),d},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=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(;++o<e.length;)if(r.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}return{next:S}}function S(){return{value:n,done:!0}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:e)});window.requestIdleCallback=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},window.cancelIdleCallback=window.cancelIdleCallback||function(e){clearTimeout(e)};var n="interactive"===document.readyState||"complete"===document.readyState?Promise.resolve():new Promise(function(e){document.addEventListener("DOMContentLoaded",function(){e()})}),r=("complete"===document.readyState?Promise.resolve():new Promise(function(e){window.addEventListener("load",e)}),"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}),o=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}("next")})}},i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},c=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},u=[],f="text/plain";"sendBeacon"in window.navigator||(navigator.sendBeacon=function(e,t){return t instanceof Blob?((n=t,r=new FileReader,o=new Promise(function(e,t){r.onload=function(){"string"==typeof r.result?e(r.result):t(new Error("readAsText yielded non-string result"))},r.onerror=function(){t(r.error)}}),r.readAsText(n),o).then(function(n){var r="string"==typeof t.type&&""!==t.type?t.type:f;p(e,n,r)}),!0):(p(e,t,f),!0);var n,r,o});var d=void 0,v=!1;function p(e,t,n){var r={url:String(e),data:t,type:n};if(v){var o=y()||[];o.push(r),g(o)}else u.push(r),d&&clearTimeout(d),d=setTimeout(function(){h(u),u.length=0},20);return!0}function h(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value,s=new XMLHttpRequest;try{s.open("POST",a.url,!0),s.setRequestHeader("Content-Type",a.type),s.send(a.data)}catch(e){}}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}window.addEventListener("beforeunload",function(e){setTimeout(function(){e.defaultPrevented||(v=!0,d&&clearTimeout(d),u.length>0&&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+i<e.scrollHeight:"X"===t?e.clientWidth+i<e.scrollWidth:void 0}function f(e,n){var r=t.getComputedStyle(e,null)["overflow"+n];return"auto"===r||"scroll"===r}function d(e){var t=u(e,"Y")&&f(e,"Y"),n=u(e,"X")&&f(e,"X");return t||n}function v(e){var n,r,i,a,l=(s()-e.startTime)/o;a=l=l>1?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;n<l;n++)if(a=(s=e[n]).selector(o[1])){for(r=u.length,i=!1;r--;)if(u[r].index===s&&u[r].key===a){i=!0;break}i||u.push({index:s,key:a});break}}while(o);return u}function K(e,t){var n,r,o;for(n=0,r=e.length;n<r;n++)if(o=e[n],t.isPrototypeOf(o))return o}function G(e,t){return e.id-t.id}N.prototype.logDefaultIndexUsed=function(){},N.prototype.add=function(e,t){var n,r,o,i,a,s,l,c,u=this.activeIndexes,f=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},l=z(this.indexes,e),r=0;r<l.length;r++)i=(c=l[r]).key,(a=K(u,o=c.index))||((a=Object.create(o)).map=new W,u.push(a)),o===this.indexes.default&&this.logDefaultIndexUsed(n),(s=a.map.get(i))||(s=[],a.map.set(i,s)),s.push(n);this.size++,f.push(e)}},N.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,a,s,l,c,u=this.activeIndexes,f={},d=1===arguments.length;for(n=z(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=u.length;i--;)if(s=u[i],r.index.isPrototypeOf(s)){if(l=s.map.get(r.key))for(a=l.length;a--;)(c=l[a]).selector!==e||!d&&c.data!==t||(l.splice(a,1),f[c.id]=!0);break}this.size-=Object.keys(f).length}},N.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,a,s,l,c={},u=[],f=this.querySelectorAll(this.selectors.join(", "),e);for(t=0,r=f.length;t<r;t++)for(i=f[t],n=0,o=(a=this.matches(i)).length;n<o;n++)c[(l=a[n]).id]?s=c[l.id]:(s={id:l.id,selector:l.selector,data:l.data,elements:[]},c[l.id]=s,u.push(s)),s.elements.push(i);return u.sort(G)},N.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,a,s,l,c,u,f,d=this.activeIndexes,v={},p=[];for(t=0,o=d.length;t<o;t++)if(l=(s=d[t]).element(e))for(n=0,i=l.length;n<i;n++)if(c=s.map.get(l[n]))for(r=0,a=c.length;r<a;r++)!v[f=(u=c[r]).id]&&this.matchesSelector(e,u.selector)&&(v[f]=!0,p.push(u));return p.sort(G)};var J={},$={},Q=new WeakMap,Z=new WeakMap,ee=new WeakMap,te=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function ne(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function re(){Q.set(this,!0)}function oe(){Q.set(this,!0),Z.set(this,!0)}function ie(){return ee.get(this)||null}function ae(e,t){te&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||te.get})}function se(e){var t=(1===e.eventPhase?$:J)[e.type];if(t){var n=function(e,t,n){var r=[],o=t;do{if(1!==o.nodeType)break;var i=e.matches(o);if(i.length){var a={node:o,observers:i};n?r.unshift(a):r.push(a)}}while(o=o.parentElement);return r}(t,e.target,1===e.eventPhase);if(n.length){ne(e,"stopPropagation",re),ne(e,"stopImmediatePropagation",oe),ae(e,ie);for(var r=0,o=n.length;r<o&&!Q.get(e);r++){var i=n[r];ee.set(e,i.node);for(var a=0,s=i.observers.length;a<s&&!Z.get(e);a++)i.observers[a].data.call(i.node,e)}ee.delete(e),ae(e)}}}function le(e,t,n){var r=!!(arguments.length>3&&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;r<t.length;r+=1){var o=t[r],i=n.get(o);if(r===t.length-1)return i instanceof e&&(n.delete(i),i=null),i||(i=new he(n),n.children[o]=i),i;i instanceof he&&(i=null),i||(i=new e(n),n.children[o]=i),n=i}return n}},{key:"delete",value:function(e){for(var t in this.children){if(this.children[t]===e){var n=delete this.children[t];return 0===Object.keys(this.children).length&&this.parent&&this.parent.delete(this),n}}return!1}}]),e}();function ye(e){return(e.ctrlKey?"Control+":"")+(e.altKey?"Alt+":"")+(e.metaKey?"Meta+":"")+e.key}function ge(e,t){if("boolean"==typeof t){if(!(e instanceof HTMLInputElement))throw new TypeError("only checkboxes can be set to boolean value");e.checked=t}else{if("checkbox"===e.type)throw new TypeError("checkbox can't be set to string value");e.value=t}var n,r;n="change",r=!1,e.dispatchEvent(new CustomEvent(n,{bubbles:!0,cancelable:r}))}function be(e){if(!(e instanceof HTMLElement))return!1;var t=e.nodeName.toLowerCase(),n=(e.getAttribute("type")||"").toLowerCase();return"select"===t||"textarea"===t||"input"===t&&"submit"!==n&&"reset"!==n||e.isContentEditable}"function"==typeof FormData&&FormData.prototype;var we=null,xe=null,Ee=[];function Le(e,t){var n=[];function r(){var e=n;n=[],t(e)}return function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];n.push(o),1===n.length&&je(e,r)}}function je(e,t){xe||(xe=new MutationObserver(Te)),we||(we=e.createElement("div"),xe.observe(we,{attributes:!0})),Ee.push(t),we.setAttribute("data-twiddle",""+Date.now())}function Te(){var e=Ee;Ee=[];for(var t=0;t<e.length;t++)try{e[t]()}catch(e){setTimeout(function(){throw e},0)}}var Se=new WeakMap,ke=new WeakMap,Ae=new WeakMap,Me=new WeakMap;function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1],a=r[2];o===De?(He(a,i),Oe(a,i)):o===_e?qe(a,i):o===Ie&&Re(e.observers,i)}}function He(e,t){if(t instanceof e.elementConstructor){var n=Se.get(t);if(n||(n=[],Se.set(t,n)),-1===n.indexOf(e.id)){var r=void 0;if(e.initialize&&(r=e.initialize.call(void 0,t)),r){var o=ke.get(t);o||(o={},ke.set(t,o)),o[""+e.id]=r}n.push(e.id)}}}function Oe(e,t){if(t instanceof e.elementConstructor){var n=Me.get(t);if(n||(n=[],Me.set(t,n)),-1===n.indexOf(e.id)){e.elements.push(t);var r=ke.get(t),o=r?r[""+e.id]:null;if(o&&o.add&&o.add.call(void 0,t),e.subscribe){var i=e.subscribe.call(void 0,t);if(i){var a=Ae.get(t);a||(a={},Ae.set(t,a)),a[""+e.id]=i}}e.add&&e.add.call(void 0,t),n.push(e.id)}}}function qe(e,t){if(t instanceof e.elementConstructor){var n=Me.get(t);if(n){var r=e.elements.indexOf(t);if(-1!==r&&e.elements.splice(r,1),-1!==(r=n.indexOf(e.id))){var o=ke.get(t),i=o?o[""+e.id]:null;if(i&&i.remove&&i.remove.call(void 0,t),e.subscribe){var a=Ae.get(t),s=a?a[""+e.id]:null;s&&s.unsubscribe&&s.unsubscribe()}e.remove&&e.remove.call(void 0,t),n.splice(r,1)}0===n.length&&Me.delete(t)}}}function Re(e,t){var n=Me.get(t);if(n){for(var r=n.slice(0),o=0;o<r.length;o++){var i=e[r[o]];if(i){var a=i.elements.indexOf(t);-1!==a&&i.elements.splice(a,1);var s=ke.get(t),l=s?s[""+i.id]:null;l&&l.remove&&l.remove.call(void 0,t);var c=Ae.get(t),u=c?c[""+i.id]:null;u&&u.unsubscribe&&u.unsubscribe(),i.remove&&i.remove.call(void 0,t)}}Me.delete(t)}}var Pe=null;var De=1,_e=2,Ie=3;function Ne(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];"childList"===o.type?(Xe(e,t,o.addedNodes),Fe(e,t,o.removedNodes)):"attributes"===o.type&&Be(e,t,o.target)}(function(e){if(null===Pe){var t=e.createElement("div"),n=e.createElement("div"),r=e.createElement("div");t.appendChild(n),n.appendChild(r),t.innerHTML="",Pe=r.parentNode!==n}return Pe})(e.ownerDocument)&&function(e,t){for(var n=0;n<e.observers.length;n++){var r=e.observers[n];if(r)for(var o=r.elements,i=0;i<o.length;i++){var a=o[i];a.parentNode||t.push([Ie,a])}}}(e,t)}function Xe(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if("matches"in o)for(var i=e.selectorSet.matches(o),a=0;a<i.length;a++){var s=i[a].data;t.push([De,o,s])}if("querySelectorAll"in o)for(var l=e.selectorSet.queryAll(o),c=0;c<l.length;c++)for(var u=l[c],f=u.data,d=u.elements,v=0;v<d.length;v++)t.push([De,d[v],f])}}function Fe(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if("querySelectorAll"in o){t.push([Ie,o]);for(var i=o.querySelectorAll("*"),a=0;a<i.length;a++)t.push([Ie,i[a]])}}}function Be(e,t,n){if("matches"in n)for(var r=e.selectorSet.matches(n),o=0;o<r.length;o++){var i=r[o].data;t.push([De,n,i])}if("querySelectorAll"in n){var a=Me.get(n);if(a)for(var s=0;s<a.length;s++){var l=e.observers[a[s]];l&&(e.selectorSet.matchesSelector(n,l.selector)||t.push([_e,n,l]))}}}var Ue="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},We=0;function Ve(e){var t,n,r;this.rootNode=9===e.nodeType?e.documentElement:e,this.ownerDocument=9===e.nodeType?e:e.ownerDocument,this.observers=[],this.selectorSet=new N,this.mutationObserver=new MutationObserver(function(e,t){var n=[];Ne(e,n,t),Ce(e,n)}.bind(this,this)),this._scheduleAddRootNodes=Le(this.ownerDocument,function(e){var t=[];Xe(e,t,[e.rootNode]),Ce(e,t)}.bind(this,this)),this._handleThrottledChangedTargets=Le(this.ownerDocument,function(e,t){var n=[];(function(e,t,n){for(var r=0;r<n.length;r++)for(var o=n[r],i=o.form?o.form.elements:e.rootNode.querySelectorAll("input"),a=0;a<i.length;a++)Be(e,t,i[a])})(e,n,t),Ce(e,n)}.bind(this,this)),this.rootNode.addEventListener("change",function(e,t){e._handleThrottledChangedTargets(t.target)}.bind(this,this),!1),t=this.ownerDocument,n=function(e){e.mutationObserver.observe(e.rootNode,{childList:!0,attributes:!0,subtree:!0}),e._scheduleAddRootNodes()}.bind(this,this),"interactive"===(r=t.readyState)||"complete"===r?je(t,n):t.addEventListener("DOMContentLoaded",je(t,n))}Ve.prototype.disconnect=function(){this.mutationObserver.disconnect()},Ve.prototype.observe=function(e,t){var n=void 0;"function"==typeof t?n={selector:e,initialize:t}:"object"===(void 0===t?"undefined":Ue(t))?(n=t).selector=e:n=e;var r=this,o={id:We++,selector:n.selector,initialize:n.initialize,add:n.add,remove:n.remove,subscribe:n.subscribe,elements:[],elementConstructor:n.hasOwnProperty("constructor")?n.constructor:Element,abort:function(){r._abortObserving(o)}};return this.selectorSet.add(o.selector,o),this.observers[o.id]=o,this._scheduleAddRootNodes(),o},Ve.prototype._abortObserving=function(e){for(var t=e.elements,n=0;n<t.length;n++)qe(e,t[n]);this.selectorSet.remove(e.selector,e),delete this.observers[e.id]},Ve.prototype.triggerObservers=function(e){var t=[];!function(e,t,n){if("querySelectorAll"in n){Be(e,t,n);for(var r=n.querySelectorAll("*"),o=0;o<r.length;o++)Be(e,t,r[o])}}(this,t,e),Ce(this,t)};var Ye=void 0;function ze(){var e;return(Ye||(Ye=new Ve(window.document)),e=Ye).observe.apply(e,arguments)}var Ke=new me;var Ge=Ke,Je=null;function $e(){Je=null,Ge=Ke}document.addEventListener("keydown",function(e){if(!(e.target instanceof Node&&be(e.target))){null!=Je&&clearTimeout(Je),Je=setTimeout($e,1500);var t,n=Ge.get(ye(e));if(n){if(Ge=n,n instanceof he)return ce(e.target,"hotkey:activate",{originalEvent:e})&&(be(t=n.children[n.children.length-1])?t.focus():(t instanceof HTMLAnchorElement&&t.href||"BUTTON"===t.tagName||"SUMMARY"===t.tagName)&&t.click(),e.preventDefault()),void $e()}else $e()}});var Qe=new WeakMap;ze("[data-hotkey]",{add:function(e){var t=C(e,"data-hotkey").split(",").map(function(e){return e.split(" ")}).map(function(t){return Ke.insert(t).add(e)});Qe.set(e,t)},remove:function(e){var t=Qe.get(e);if(t&&t.length){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;s&&s.delete(e)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}}});var Ze=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();ze(".js-check-all-container",{subscribe:function(e){var t=!1,n=null;function r(e,t,n,r){t instanceof HTMLInputElement&&(t.indeterminate=r,t.checked!==n&&(t.checked=n,setTimeout(function(){var n=new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{relatedTarget:e}});t.dispatchEvent(n)})))}function o(o){var i=o.target;i instanceof Element&&(i.hasAttribute("data-check-all")?function(t){if(t instanceof CustomEvent){var o=t.detail.relatedTarget;if(o&&o.hasAttribute("data-check-all-item"))return}var i=t.target;if(i instanceof HTMLInputElement){n=null;var s=!0,l=!1,c=void 0;try{for(var u,f=e.querySelectorAll("[data-check-all-item]")[Symbol.iterator]();!(s=(u=f.next()).done);s=!0){var d=u.value;r(i,d,i.checked,!1)}}catch(e){l=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(l)throw c}}a()}}(o):i.hasAttribute("data-check-all-item")&&function(o){if(o instanceof CustomEvent){var i=o.detail.relatedTarget;if(i.hasAttribute("data-check-all")||i.hasAttribute("data-check-all-item"))return}var s=o.target;if(s instanceof HTMLInputElement){var l=e.querySelector("[data-check-all]");if(l){var c=Array.from(e.querySelectorAll("[data-check-all-item]"));if(t&&n){var u=[c.indexOf(n),c.indexOf(s)].sort(),f=Ze(u,2),d=f[0],v=f[1],p=!0,h=!1,m=void 0;try{for(var y,g=c.slice(d,+v+1||9e9)[Symbol.iterator]();!(p=(y=g.next()).done);p=!0){var b=y.value;r(s,b,s.checked,!1)}}catch(e){h=!0,m=e}finally{try{!p&&g.return&&g.return()}finally{if(h)throw m}}}t=!1,n=s;var w=c.length,x=c.filter(function(e){return e instanceof HTMLInputElement&&e.checked}).length;r(s,l,x===w,w>x&&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<t.length;r++){var o=t[r].replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");n+=0===r?"(.*)("+o+")":"([^"+o+"]*?)("+o+")"}return new RegExp(n+"(.*?)$","i")}function ut(e,t,n){if(t){var r=e.innerHTML.trim().match(n||ct(t));if(!r)return;for(var o=!1,i=[],a=1;a<r.length;++a){var s=r[a];s&&(a%2==0?o||(i.push("<mark>"),o=!0):o&&(i.push("</mark>"),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<t.length;a++){var s=t[a],l=n.indexOf(s.toLowerCase()),c=n.indexOf(s.toUpperCase()),u=Math.min(l,c),f=u>-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:n<r?1:o<i?-1:o>i?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,"<mark>$&</mark>")}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,"<mark>$&</mark>")}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||m<i)&&parseFloat(pt.get(O))>0&&(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||m<i)&&(y++,!0===n.mark&&ut(I),h.appendChild(I)),m++}}catch(e){R=!0,P=e}finally{try{!q&&_.return&&_.return()}finally{if(R)throw P}}}e.appendChild(h);var N=e.querySelectorAll(".js-divider"),X=!0,F=!1,B=void 0;try{for(var U,W=N[Symbol.iterator]();!(X=(U=W.next()).done);X=!0)U.value.classList.toggle("d-none",Boolean(r&&r.trim().length>0))}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._id<rn()._id?tn--:tn++,sn(e.state))},!0),window.addEventListener("hashchange",function(){if(on()>en.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<o;s++)a[s]=arguments[s];return n=r=l(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.framesToPop=1,l(r,n)}return s(t,e),t}(Error);function yn(e,t){if(e.status>=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=/<html/i.test(e);if("text/html"!==(t.headers.get("Content-Type")||"").split(";",1)[0].trim())return r;var i=void 0,a=void 0;if(o){var s=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i),l=e.match(/<body[^>]*>([\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.id<n.id?"forward":"back"}var o=Wn[n.id]||[],i=document.querySelector(o[0]||n.container),a=o[1];if(i){t&&function(e,t,n){var r=void 0,o=void 0;Wn[t]=n,"forward"===e?(r=Yn,o=Vn):(r=Vn,o=Yn),r.push(t);var i=o.pop();i&&delete Wn[i],zn(r,Tn)}(r,t.id,Dn(i)),An(i,"pjax:popstate",{state:n,direction:r});var s={id:n.id,url:n.url,container:i,push:!1,fragment:n.fragment||"",timeout:n.timeout||0,scrollTo:!1};a?(An(i,"pjax:start"),Sn=n,n.title&&(document.title=n.title),An(i,"pjax:beforeReplace",{contents:a,state:n,previousState:t}),Xn(i,a),An(i,"pjax:end")):Mn(s),i.offsetHeight}else Hn(location.href)}On=!1});var Gn=null;le("pjax:click",".js-pjax-capture-input",function(){Gn=function(e){var t=e.createElement("textarea");return t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",I(e.body,"app/assets/modules/github/capture-keypresses.js:18"),e.body.appendChild(t),t.focus(),function(){return t.blur(),t.remove(),t.value}}(document)}),le("pjax:end","#js-repo-pjax-container",function(){if(Gn){var e=Gn(),t=document.querySelector(".js-pjax-restore-captured-input");t instanceof HTMLInputElement&&e&&ge(t,e),Gn=null}}),le("pjax:click",".js-pjax-history-navigate",function(e){I(e instanceof CustomEvent,"app/assets/modules/github/pjax/history-navigate.js:14"),e.currentTarget.href===function(){var e=en[an()-1];if(e)return e.url}()?(history.back(),e.detail.relatedEvent.preventDefault(),e.preventDefault()):e.currentTarget.href===function(){var e=en[an()+1];if(e)return e.url}()&&(history.forward(),e.detail.relatedEvent.preventDefault(),e.preventDefault())}),ze("link[rel=pjax-prefetch]",{constructor:HTMLLinkElement,initialize:function(e){!function(e,t){En.set(e,t),t.catch(function(){})}(e,Cn(e,{headers:{Purpose:"prefetch"}}))}});var Jn=null;function $n(e){ce(e,"menu:deactivate")&&(document.removeEventListener("keydown",Zn),document.removeEventListener("click",Qn),Jn=null,fe(e,function(){e.classList.remove("active");var t=e.querySelector(".js-menu-content");t&&t.setAttribute("aria-expanded","false");var n=e.querySelector(".js-menu-target");n&&(n.setAttribute("aria-expanded","false"),n.hasAttribute("data-no-toggle")||n.classList.remove("selected"))}),ce(e,"menu:deactivated"))}function Qn(e){if(Jn){var t=e.target;I(t instanceof Element,"app/assets/modules/github/menu.js:111");var n=t.closest("#facebox, .facebox-overlay, details[open], details-dialog"),r=!!n&&!n.contains(Jn);Jn.contains(t)||r||(e.preventDefault(),$n(Jn))}}function Zn(e){if(Jn){var t=document.activeElement;t&&"Escape"===e.key&&(Jn.contains(t)&&t.blur(),e.preventDefault(),$n(Jn))}}function er(e){var t=e.currentTarget.querySelector("input.js-filterable-field");t&&(t.focus(),ce(t,"filterable:change"))}function tr(e,t){var n=gn(e,t);n.headers.set("Accept","application/json");var r=new mn;return self.fetch(n).then(function(e){return yn(e,r),e.json()})}le("click",".js-menu-container",function(e){var t=e.currentTarget;I(t instanceof HTMLElement,"app/assets/modules/github/menu.js:157"),e.target.closest(".js-menu-target")instanceof HTMLElement?(e.preventDefault(),t===Jn?$n(t):function(e){Jn&&$n(Jn),ce(e,"menu:activate")&&(document.addEventListener("keydown",Zn),document.addEventListener("click",Qn),Jn=e,fe(e,function(){e.classList.add("active");var t=e.querySelector(".js-menu-content [tabindex]");t&&t.focus();var n=e.querySelector(".js-menu-target");n&&(n.setAttribute("aria-expanded","true"),n.hasAttribute("data-no-toggle")||n.classList.add("selected"))}),ce(e,"menu:activated"))}(t)):e.target.closest(".js-menu-content")||t===Jn&&(e.preventDefault(),$n(t))}),le("click",".js-menu-container .js-menu-close",function(e){var t=e.currentTarget.closest(".js-menu-container");I(t instanceof HTMLElement,"expected container to be .js-menu-container -- app/assets/modules/github/menu.js:184"),$n(t),e.preventDefault()}),ze(".js-menu-container.active",{add:function(){var e=document.body;I(e,"app/assets/modules/github/menu.js:193"),e.classList.add("menu-active")},remove:function(){var e=document.body;I(e,"app/assets/modules/github/menu.js:198"),e.classList.remove("menu-active")}}),le("deprecatedAjaxSuccess",".js-select-menu:not([data-multiple])",function(e){I(e.currentTarget instanceof HTMLElement,"app/assets/modules/github/select-menu/ajax.js:20"),$n(e.currentTarget)}),le("deprecatedAjaxSend",".js-select-menu:not([data-multiple])",function(e){e.currentTarget.classList.add("is-loading")}),le("deprecatedAjaxComplete",".js-select-menu",function(e){e.currentTarget.classList.remove("is-loading")}),le("deprecatedAjaxError",".js-select-menu",function(e){e.currentTarget.classList.add("has-error")}),le("menu:deactivate",".js-select-menu",function(e){e.currentTarget.classList.remove("is-loading","has-error")}),le("navigation:open",".js-select-menu:not([data-multiple]) .js-navigation-item",function(e){var t=e.currentTarget;if(ce(t,"selectmenu:select")){var n=k(t,".js-select-menu"),r=n.querySelector(".js-navigation-item.selected");r&&r.classList.remove("selected"),t.classList.add("selected"),t.classList.remove("indeterminate");var o=!0,i=!1,a=void 0;try{for(var s,l=M(t,"input[type=radio], input[type=checkbox]",HTMLInputElement)[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){ge(s.value,!0)}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}ce(t,"selectmenu:selected"),n.classList.contains("is-loading")||$n(n)}}),le("navigation:open",".js-select-menu[data-multiple] .js-navigation-item",function(e){var t=e.currentTarget;if(ce(t,"selectmenu:select")){var n=t.classList.contains("selected");t.classList.toggle("selected"),t.classList.remove("indeterminate");var r=!0,o=!1,i=void 0;try{for(var a,s=M(t,"input[type=radio], input[type=checkbox]",HTMLInputElement)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){ge(a.value,!n)}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}ce(t,"selectmenu:selected")}}),le("selectmenu:select",".js-select-menu .js-navigation-item.disabled",function(e){e.preventDefault()}),le("selectmenu:selected",".js-select-menu .js-navigation-item",function(e){var t=e.currentTarget,n=k(t,".js-select-menu"),r=t.querySelector(".js-select-button-text");if(r){var o=n.querySelector(".js-select-button");o&&(o.innerHTML=r.innerHTML)}var i=t.querySelector(".js-select-menu-item-gravatar");if(i){var a=n.querySelector(".js-select-button-gravatar");a&&(a.innerHTML=i.innerHTML)}}),le("selectmenu:change",".js-select-menu .select-menu-list",function(e){var t=e.currentTarget,n=Array.from(t.querySelectorAll(".js-navigation-item")),r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){a.value.classList.remove("last-visible")}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}var l=n.filter(Mt).pop();if(l&&l.classList.add("last-visible"),!t.hasAttribute("data-filterable-for")){var c=e.target.classList.contains("filterable-empty");t.classList.toggle("filterable-empty",c)}}),ze("tab-container .select-menu-list .filterable-empty",{add:function(e){k(e,".select-menu-list").classList.add("filterable-empty")},remove:function(e){k(e,".select-menu-list").classList.remove("filterable-empty")}}),le("menu:activated",".js-select-menu",er),le("selectmenu:load",".js-select-menu",er),le("menu:deactivate",".js-select-menu",function(e){var t=e.currentTarget,n=t.querySelector("input.js-filterable-field");n instanceof HTMLInputElement&&(n.value="",ce(n,"filterable:change"));var r=!0,o=!1,i=void 0;try{for(var a,s=t.querySelectorAll(".js-navigation-item.selected")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,c=l.querySelector("input[type=radio], input[type=checkbox]");c&&(I(c instanceof HTMLInputElement,"app/assets/modules/github/select-menu/filterable.js:37"),l.classList.toggle("selected",c.checked))}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}var u=document.activeElement;if(u&&t.contains(u))try{u.blur()}catch(e){}});var nr,rr,or=(nr=o(regeneratorRuntime.mark(function e(t){var n,r,o,i,a,s,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=A(document,"#site-details-dialog",HTMLTemplateElement),o=r.content.cloneNode(!0),i=A(o,"details"),a=A(i,"details-dialog"),s=A(i,".js-details-dialog-spinner"),t.dialogClass&&(n=a.classList).add.apply(n,c(t.dialogClass.split(" "))),I(document.body,"app/assets/modules/github/details-dialog.js:20"),document.body.append(o),e.next=10,t.content;case 10:return l=e.sent,s.remove(),a.prepend(l),i.addEventListener("toggle",function(){i.hasAttribute("open")||(ce(a,"dialog:remove"),i.remove())}),e.abrupt("return",a);case 15:case"end":return e.stop()}},e,this)})),function(e){return nr.apply(this,arguments)}),ir=function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=A(document,"link[rel=sso-modal]",HTMLLinkElement),e.next=3,or({content:xn(document,t.href),dialogClass:"sso-modal"});case 3:return n=e.sent,r=null,window.external.ssoComplete=function(e){e.error?lr(r=!1):(lr(r=!0),cr(e.expiresAround),window.focus()),window.external.ssoComplete=null},e.next=8,sr(n);case 8:if(r){e.next=10;break}throw new Error("sso prompt canceled");case 10:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),ar=(rr=o(regeneratorRuntime.mark(function e(){var t,n,r,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=document.querySelector("link[rel=sso-session]"),n=document.querySelector("meta[name=sso-expires-around]"),t instanceof HTMLLinkElement){e.next=4;break}return e.abrupt("return",!0);case 4:if(ur(n)){e.next=6;break}return e.abrupt("return",!0);case 6:return r=t.href,e.next=9,bn(r,{headers:{Accept:"application/json"}});case 9:return o=e.sent,e.next=12,o.json();case 12:return i=e.sent,e.abrupt("return",i);case 14:case"end":return e.stop()}},e,this)})),function(){return rr.apply(this,arguments)});function sr(e){return new Promise(function(t){e.addEventListener("dialog:remove",t,{once:!0})})}function lr(e){var t=document.querySelector(".sso-modal");t&&(t.classList.remove("success","error"),e?t.classList.add("success"):t.classList.add("error"))}function cr(e){var t=document.querySelector("meta[name=sso-expires-around]");t&&t.setAttribute("content",e)}function ur(e){if(!(e instanceof HTMLMetaElement))return!0;var t=parseInt(e.content);return(new Date).getTime()/1e3>t}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<i.height+parseInt(o)&&(t.style.top=s.bottom-i.height+"px")}}}function jr(e){if(function(e){var t=window.getComputedStyle(e).position;return/sticky/.test(t)}(e))return null;var t=e.previousElementSibling;if(t&&t.classList.contains("is-placeholder"))return I(t instanceof HTMLElement,"previousElement must be an HTMLElement -- app/assets/modules/github/sticky.js:127"),t;var n=document.createElement("div");return n.style.visibility="hidden",n.style.display="none",n.style.height=window.getComputedStyle(e).height,n.className=e.className,n.classList.remove("js-sticky"),n.classList.add("is-placeholder"),I(e.parentNode,"Element must be inserted into the dom -- app/assets/modules/github/sticky.js:140"),e.parentNode.insertBefore(n,e)}function Tr(e,t){if(!kr(e,t.textContent)){var n=getSelection();if(null!=n){n.removeAllRanges();var r=document.createRange();r.selectNodeContents(t),n.addRange(r),document.execCommand("copy"),n.removeAllRanges()}}}function Sr(e,t){if(!kr(e,t)){var n=document.body;if(n){var r=function(e){var t=document.createElement("pre");return t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=e,t}(t);n.appendChild(r),Tr(e,r),n.removeChild(r)}}}function kr(e,t){var n=navigator.clipboard;return!!n&&(n.writeText(t).then(function(){e.dispatchEvent(new CustomEvent("copy",{bubbles:!0}))}),!0)}ze(".js-sticky",{constructor:HTMLElement,add:function(e){!function(e){var t=jr(e),n=window.getComputedStyle(e).position;e.style.position="static";var r=e.offsetParent;e.style.position="fixed";var o=window.getComputedStyle(e).top,i={element:e,placeholder:t,offsetParent:r,top:"auto"===o?0:o};e.style.position=n,gr.push(i)}(e),wr(),br()},remove:function(e){!function(e){var t=gr.map(function(e){return e.element}).indexOf(e);gr.splice(t,1)}(e),br()}});var Ar=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Mr=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Cr=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t};function Hr(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function Or(e){var t=e.getAttribute("for"),n=e.getAttribute("value");n?Sr(e,n):t&&function(e,t){var n=e.ownerDocument.getElementById(t);if(!n)return;n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?"hidden"===n.type?Sr(e,n.value):function(e,t){if(!kr(e,t.value)){t.select(),document.execCommand("copy");var n=getSelection();null!=n&&n.removeAllRanges()}}(e,n):n instanceof HTMLAnchorElement&&n.hasAttribute("href")?Sr(e,n.href):Tr(e,n)}(e,t)}function qr(e){var t=e.currentTarget;t instanceof HTMLElement&&Or(t)}function Rr(e){if(" "===e.key||"Enter"===e.key){var t=e.currentTarget;t instanceof HTMLElement&&(e.preventDefault(),Or(t))}}function Pr(e){e.currentTarget.addEventListener("keydown",Rr)}function Dr(e){e.currentTarget.removeEventListener("keydown",Rr)}Object.setPrototypeOf(Hr.prototype,HTMLElement.prototype),Object.setPrototypeOf(Hr,HTMLElement);var _r=function(e){function t(){Ar(this,t);var e=Cr(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.addEventListener("click",qr),e.addEventListener("focus",Pr),e.addEventListener("blur",Dr),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Hr),Mr(t,[{key:"connectedCallback",value:function(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}},{key:"value",get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}}]),t}();window.customElements.get("clipboard-copy")||(window.ClipboardCopyElement=_r,window.customElements.define("clipboard-copy",_r))}();
//# sourceMappingURL=styleguide-1e1a2fecc822b945d992f246a94f67ad.js.map