===========================================================
                                      .___ __  __   
          _________________  __ __  __| _/|__|/  |_ 
         / ___\_` __ \__  \ |  |  \/ __ | | \\_  __\
        / /_/  >  | \// __ \|  |  / /_/ | |  ||  |  
        \___  /|__|  (____  /____/\____ | |__||__|  
       /_____/            \/           \/           
              grep rough audit - static analysis tool
                  v2.8 written by @Wireghoul
=================================[justanotherhacker.com]===
node-js-beautify-1.11.0+dfsg/README.md-252- * a `JSON`-formatted file indicated by the `--config` parameter
node-js-beautify-1.11.0+dfsg/README.md:253: * a `.jsbeautifyrc` file containing `JSON` data at any level of the filesystem above `$PWD`
node-js-beautify-1.11.0+dfsg/README.md-254-
##############################################
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-370-        set_name('Test template and continuation strings');
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:371:        bt('`This is a ${template} string.`');
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-372-        bt(
##############################################
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-385-            '`SELECT\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:386:            '  nextval(\'${this.options.schema ? `${this.options.schema}.` : \'\'}"${this.tableName}_${this.autoIncrementField}_seq"\'::regclass\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-387-            '  ) nextval;`');
##############################################
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-391-            'const composeUrl = (host) => {\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:392:            '    return `${host `test`}`;\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-393-            '};');
##############################################
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-398-            '            return `${host}/vwapi/Init?VWID=${key}&DATA=${encodeURIComponent(\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:399:            '                Object.keys(data).map((k) => `${k}=${ data[k]}` ).join(";")\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-400-            '            )}`;\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-401-            '        case "Pay":\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:402:            '            return `${host}/vwapi/Pay?SessionId=${par}`;\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-403-            '    };\n' +
##############################################
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-7456-            'if (from < to) {\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js:7457:            '    import(`dynamic${library}`);\n' +
node-js-beautify-1.11.0+dfsg/js/test/generated/beautify-javascript-tests.js-7458-            '} else {\n' +
##############################################
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh-2-
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/../..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh-6-
##############################################
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh-62-
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh:63:    if [ "`$CLI_SCRIPT $MISSING_FILE 2> /dev/null`" != "" ]; then
node-js-beautify-1.11.0+dfsg/js/test/shell-test.sh-64-        echo "[$CLI_SCRIPT_NAME $MISSING_FILE] Stdout should have no text."
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-177-        self.reset_options()
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:178:        bt('`This is a ${template} string.`')
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-179-        bt(
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-192-            '`SELECT\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:193:            '  nextval(\'${this.options.schema ? `${this.options.schema}.` : \'\'}"${this.tableName}_${this.autoIncrementField}_seq"\'::regclass\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-194-            '  ) nextval;`')
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-198-            'const composeUrl = (host) => {\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:199:            '    return `${host `test`}`;\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-200-            '};')
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-205-            '            return `${host}/vwapi/Init?VWID=${key}&DATA=${encodeURIComponent(\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:206:            '                Object.keys(data).map((k) => `${k}=${ data[k]}` ).join(";")\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-207-            '            )}`;\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-208-            '        case "Pay":\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:209:            '            return `${host}/vwapi/Pay?SessionId=${par}`;\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-210-            '    };\n' +
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-7159-            'if (from < to) {\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py:7160:            '    import(`dynamic${library}`);\n' +
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/generated/tests.py-7161-            '} else {\n' +
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh-2-
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/../../..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh-6-
##############################################
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh-71-
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh:72:    if [ "`$CLI_SCRIPT $MISSING_FILE 2> /dev/null`" != "" ]; then
node-js-beautify-1.11.0+dfsg/python/jsbeautifier/tests/shell-test.sh-73-        echo "[$CLI_SCRIPT_NAME $MISSING_FILE] Stdout should have no text."
##############################################
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-144-      tests: [
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:145:        { unchanged: '`This is a ${template} string.`' },
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:146:        { unchanged: '`This\n  is\n  a\n  ${template}\n  string.`' },
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-147-        { unchanged: 'a = `This is a continuation\\\\\nstring.`' },
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-148-        { unchanged: 'a = "This is a continuation\\\\\nstring."' },
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:149:        { unchanged: '`SELECT\n  nextval(\\\'${this.options.schema ? `${this.options.schema}.` : \\\'\\\'}"${this.tableName}_${this.autoIncrementField}_seq"\\\'::regclass\n  ) nextval;`' },
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-150-        {
##############################################
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-153-            'const composeUrl = (host) => {',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:154:            '    return `${host `test`}`;',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-155-            '};'
##############################################
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-162-            '            return `${host}/vwapi/Init?VWID=${key}&DATA=${encodeURIComponent(',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:163:            '                Object.keys(data).map((k) => `${k}=${ data[k]}` ).join(";")',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-164-            '            )}`;',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-165-            '        case "Pay":',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:166:            '            return `${host}/vwapi/Pay?SessionId=${par}`;',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-167-            '    };',
##############################################
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-4183-            'if (from < to) {',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js:4184:            '    import(`dynamic${library}`);',
node-js-beautify-1.11.0+dfsg/test/data/javascript/tests.js-4185-            '} else {',
##############################################
node-js-beautify-1.11.0+dfsg/test/resources/github-min.js:1:!function(e){var t={};function n(e){if(e in t)return t[e];throw new Error("dependency not found: "+e)}e.define=function(r,o,i){if(r in t)console.error("module redefined: "+r);else{var a;arguments.length<3&&(i=o,o=[]);var s=[];for(a=0;a<o.length;a++)s.push(n(o[a]));var u="github-rollup-frameworks-bootstrap"===r;try{if(t[r]=i.apply(this,s),u){var c,l=t[r];for(c in l){var f=c.replace(/___/g,"@").replace(/__/g,"/").replace(/_/g,"-");t[f]=l[c]}}}catch(t){throw t.message="evaluating module "+r+": "+t.message,u&&(e.define=function(){}),t}}}}(self),define("github-rollup-frameworks-bootstrap",function(){"use strict";function e(){var e=this,t=0;return{next:function(){return{done:t===e.length,value:e[t++]}}}}Symbol.iterator||(Symbol.iterator=Symbol()),Array.prototype[Symbol.iterator]||(Array.prototype[Symbol.iterator]=e),NodeList.prototype[Symbol.iterator]||Object.defineProperty(NodeList.prototype,Symbol.iterator,{enumerable:!1,configurable:!0,get:function(){return e}}),HTMLCollection.prototype[Symbol.iterator]||Object.defineProperty(HTMLCollection.prototype,Symbol.iterator,{enumerable:!1,configurable:!0,get:function(){return e}}),window.Headers&&!Headers.prototype[Symbol.iterator]&&(Headers.prototype[Symbol.iterator]=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),e[Symbol.iterator]()});var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function r(e,t){return e(t={exports:{}},t.exports),t.exports}!function e(t,r,o){function i(s,u){if(!r[s]){if(!t[s]){if(!u&&n)return n(s,!0);if(a)return a(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return i(n||e)},l,l.exports,e,t,r,o)}return r[s].exports}for(var a=n,s=0;s<o.length;s++)i(o[s]);return i}({1:[function(e,t,n){e("./index").polyfill()},{"./index":2}],2:[function(e,t,n){function r(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(void 0!==o&&null!==o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(n[u]=o[u])}}return n}t.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}},{}]},{},[1]);r(function(e){!function(t){var n,r=Object.prototype.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag",s=t.regeneratorRuntime;if(s)e.exports=s;else{(s=t.regeneratorRuntime=e.exports).wrap=p;var u="suspendedStart",c="suspendedYield",l="executing",f="completed",d={},h=b.prototype=m.prototype;g.prototype=h.constructor=b,b.constructor=g,b[a]=g.displayName="GeneratorFunction",s.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},s.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(h),e},s.awrap=function(e){return new w(e)},y(E.prototype),s.async=function(e,t,n,r){var o=new E(p(e,t,n,r));return s.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},y(h),h[i]=function(){return this},h[a]="Generator",h.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,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=n,this.done=!1,this.delegate=null,this.tryEntries.forEach(x),!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"),u=r.call(i,"finallyLoc");if(s&&u){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(!u)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),x(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;x(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 k(o||[]);return i._invoke=function(e,t,r){var o=u;return function(i,a){if(o===l)throw new Error("Generator is already running");if(o===f){if("throw"===i)throw a;return j()}for(;;){var s=r.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===n){r.delegate=null;var h=s.iterator.return;if(h){var p=v(h,s.iterator,a);if("throw"===p.type){i="throw",a=p.arg;continue}}if("return"===i)continue}var p=v(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===u)throw o=f,a;r.dispatchException(a)&&(i="next",a=n)}else"return"===i&&r.abrupt("return",a);o=l;var p=v(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 v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function m(){}function g(){}function b(){}function y(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function w(e){this.arg=e}function E(e){function t(n,r,o,i){var a=v(e[n],e,r);if("throw"!==a.type){var s=a.arg,u=s.value;return u instanceof w?Promise.resolve(u.arg).then(function(e){t("next",e,o,i)},function(e){t("throw",e,o,i)}):Promise.resolve(u).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){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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,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:j}}function j(){return{value:n,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:t)});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 o=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=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],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}},i="interactive"===document.readyState||"complete"===document.readyState?Promise.resolve():new Promise(function(e){document.addEventListener("DOMContentLoaded",function(){e()})}),a="complete"===document.readyState?Promise.resolve():new Promise(function(e){window.addEventListener("load",e)}),s=Object.freeze({ready:i,loaded:a}),u="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},c=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")})}},l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f=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}}(),d=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},h=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)},p=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},v=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")}}(),m=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)},g=[],b="text/plain",y=["application/x-www-form-urlencoded","multipart/form-data",b];var w=!1;"sendBeacon"in window.navigator?w=!0:navigator.sendBeacon=function(e,t){return t instanceof Blob?((n=t,r=new FileReader,i=new Promise(function(e,t){r.onload=function(){o("string"==typeof r.result,"app/assets/modules/github/send-beacon.js:125"),e(r.result)},r.onerror=function(){t(r.error)}}),r.readAsText(n),i).then(function(n){var r="string"==typeof t.type&&""!==t.type?t.type:b;x(e,n,r)}),!0):(x(e,t,b),!0);var n,r,i};var E=void 0,_=!1;function x(e,t,n){var r={url:String(e),data:t,type:n};if(_){var o=j()||[];o.push(r),L(o)}else g.push(r),E&&clearTimeout(E),E=setTimeout(function(){k(g),g.length=0},20);return!0}function k(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||(_=!0,E&&clearTimeout(E),g.length>0&&L(g))})}),c(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i;case 2:(t=j())&&(k(t),O());case 4:case"end":return e.stop()}},e,this)}))();var T="send-beacon-queue";function j(){var e=void 0;try{e=sessionStorage.getItem(T)}catch(e){}if(e)return JSON.parse(e)}function L(e){var t=JSON.stringify(e);try{sessionStorage.setItem(T,t)}catch(e){}}function O(){try{sessionStorage.removeItem(T)}catch(e){}}var S=Object.freeze({guaranteedPost:function(e,t,n){w&&navigator.sendBeacon&&function(e){return e=e.split(";")[0],y.indexOf(e)>-1}(n)?navigator.sendBeacon(e,new Blob([t],{type:n})):x(e,t,n)}});r(function(e){var t=!1,n=!1;function r(){}try{var o=Object.create({},{passive:{get:function(){t=!0}},once:{get:function(){n=!0}}});window.addEventListener("test",r,o),window.removeEventListener("test",r,o)}catch(e){}var i=e.exports=function(e){var o=e.addEventListener,i=e.removeEventListener,a=new WeakMap;e.addEventListener=function(e,i,s){if(void 0===s||!0===s||!1===s)return o.call(this,e,i,s);var u=i,c="boolean"==typeof s?{capture:s}:s||{},l=Boolean(c.passive),f=Boolean(c.once),d=Boolean(c.capture),h=u;!n&&f&&(u=function(t){this.removeEventListener(e,i,c),h.call(this,t)}),!t&&l&&(u=function(e){e.preventDefault=r,h.call(this,e)}),a.has(this)||a.set(this,new WeakMap);var p=a.get(this);p.has(i)||p.set(i,[]);var v=1*l+2*f+4*d;p.get(i)[v]=u,o.call(this,e,u,d)},e.removeEventListener=function(e,t,n){var r=Boolean("object"==typeof n?n.capture:n),o=a.get(this);if(!o)return i.call(this,e,t,n);var s=o.get(t);if(!s)return i.call(this,e,t,n);for(var u in s){var c=Boolean(4&u);c===r&&i.call(this,e,s[u],c)}}};t&&n||("undefined"!=typeof EventTarget?i(EventTarget.prototype):(i(Text.prototype),i(HTMLElement.prototype),i(HTMLDocument.prototype),i(Window.prototype),i(XMLHttpRequest.prototype)))}),r(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||u,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 u(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 l(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=l(e,"Y")&&f(e,"Y"),n=l(e,"X")&&f(e,"X");return t||n}function h(e){var n,r,i,a,u=(s()-e.startTime)/o;a=u=u>1?1:u,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(h.bind(t,e))}function p(e,r,o){var i,c,l,f,d=s();e===n.body?(i=t,c=t.scrollX||t.pageXOffset,l=t.scrollY||t.pageYOffset,f=a.scroll):(i=e,c=e.scrollLeft,l=e.scrollTop,f=u),h({scrollable:i,method:f,startTime:d,startX:c,startY:l,x:r,y:o})}}}}()}).polyfill;function A(e,t,n){return o(e instanceof t,"undefined -- app/assets/modules/github/typecast.js:17"),e}var M=Object.freeze({default:A});function C(e,t){var n=e.head;o(n,"document.head was not initialized -- app/assets/modules/github/metadata.js:13");var r=!0,i=!1,a=void 0;try{for(var s,u=n.getElementsByTagName("meta")[Symbol.iterator]();!(r=(s=u.next()).done);r=!0){var c=s.value;if(o(c instanceof HTMLMetaElement,"getElementsByTagName('meta') returned non-meta element -- app/assets/modules/github/metadata.js:18"),c.name===t)return c.content||""}}catch(e){i=!0,a=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return""}var D=Object.freeze({getMetadataByName:C});function P(e){var t=C(e,"expected-hostname");return!!t&&t.replace(/\.$/,"").split(".").slice(-2).join(".")!==e.location.hostname.replace(/\.$/,"").split(".").slice(-2).join(".")}var H=Object.freeze({default:P}),R=0;function N(e){W()&&B(function(e){var t=e.message,n=e.filename,r=e.lineno,o=e.colno;return X(e.error,{message:t,filename:n,lineno:r,colno:o})}(e))}function I(e){W()&&e.promise&&e.promise.catch(function(e){var t={};e&&e.response instanceof Response&&(t.dataRemoteUrl=e.response.url),F(e,t)})}function q(e){var t=e.body||{},n=new Error("ReportingObserverError");B({bucket:"github-js-reports",error:{columnNumber:t.columnNumber,fileName:""===t.sourceFile?n.fileName:t.sourceFile,lineNumber:t.lineNumber,message:t.message||n.message,name:t.id,stack:n.stack},url:e.url})}function F(e){B(X(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function B(e){var t=C(document,"browser-errors-url");t&&(R++,window.fetch(t,{method:"post",body:JSON.stringify(e)}).catch(function(){}))}var z=(new Date).getTime();function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0;return e&&(n={columnNumber:e.columnNumber,fileName:e.fileName,lineNumber:e.lineNumber,message:e.message,name:e.name,stack:e.stack,toString:e.toString()}),Object.assign({},{error:n,url:window.location.href,readyState:document.readyState,referrer:document.referrer,timeSinceLoad:Math.round((new Date).getTime()-z),extensionScripts:JSON.stringify(function(){for(var e=document.getElementsByTagName("script"),t=[],n=0,r=e.length;n<r;n++){var o=e[n];/^(?:chrome-extension|file):/.test(o.src)&&t.push(o.src)}return t}().sort()),user:function(){var e=document.querySelector("meta[name=user-login]");if(e)return A(e,HTMLMetaElement).content}()},t)}var V=!1;function W(){return!V&&R<10&&"undefined"!=typeof customElements&&"undefined"!=typeof Intl&&"undefined"!=typeof MutationObserver&&!P(document)}window.addEventListener("pageshow",function(){V=!1}),window.addEventListener("pagehide",function(){V=!0});var U,Y=Object.freeze({reportEvent:N,reportPromiseRejectionEvent:I,reportIntervention:q,reportError:F});function G(){if(!(this instanceof G))return new G;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}window.addEventListener("error",N),window.addEventListener("unhandledrejection",I),"#b00m"===window.location.hash&&setTimeout(function(){throw new Error("b00m")}),(U=window.ReportingObserver)&&new U(function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)q(o.value)}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},{buffered:!0}).observe(),"undefined"==typeof Reflect&&(window.Reflect={construct:function(e,t,n){void 0===n&&(n=e);var r=n.prototype||Object.prototype,o=Object.create(r);return Function.prototype.apply.call(e,o,t)||o}});var K=window.document.documentElement,$=K.matches||K.webkitMatchesSelector||K.mozMatchesSelector||K.oMatchesSelector||K.msMatchesSelector;G.prototype.matchesSelector=function(e,t){return $.call(e,t)},G.prototype.querySelectorAll=function(e,t){return t.querySelectorAll(e)},G.prototype.indexes=[];var J=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;G.prototype.indexes.push({name:"ID",selector:function(e){var t;if(t=e.match(J))return t[0].slice(1)},element:function(e){if(e.id)return[e.id]}});var Z=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;G.prototype.indexes.push({name:"CLASS",selector:function(e){var t;if(t=e.match(Z))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 Q,ee=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;G.prototype.indexes.push({name:"TAG",selector:function(e){var t;if(t=e.match(ee))return t[0].toUpperCase()},element:function(e){return[e.nodeName.toUpperCase()]}}),G.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},Q="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 te=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function ne(e,t){var n,r,o,i,a,s,u=(e=e.slice(0).concat(e.default)).length,c=t,l=[];do{if(te.exec(""),(o=te.exec(c))&&(c=o[3],o[2]||!c))for(n=0;n<u;n++)if(a=(s=e[n]).selector(o[1])){for(r=l.length,i=!1;r--;)if(l[r].index===s&&l[r].key===a){i=!0;break}i||l.push({index:s,key:a});break}}while(o);return l}function re(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 oe(e,t){return e.id-t.id}G.prototype.logDefaultIndexUsed=function(){},G.prototype.add=function(e,t){var n,r,o,i,a,s,u,c,l=this.activeIndexes,f=this.selectors;if("string"==typeof e){for(n={id:this.uid++,selector:e,data:t},u=ne(this.indexes,e),r=0;r<u.length;r++)i=(c=u[r]).key,(a=re(l,o=c.index))||((a=Object.create(o)).map=new Q,l.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)}},G.prototype.remove=function(e,t){if("string"==typeof e){var n,r,o,i,a,s,u,c,l=this.activeIndexes,f={},d=1===arguments.length;for(n=ne(this.indexes,e),o=0;o<n.length;o++)for(r=n[o],i=l.length;i--;)if(s=l[i],r.index.isPrototypeOf(s)){if(u=s.map.get(r.key))for(a=u.length;a--;)(c=u[a]).selector!==e||!d&&c.data!==t||(u.splice(a,1),f[c.id]=!0);break}this.size-=Object.keys(f).length}},G.prototype.queryAll=function(e){if(!this.selectors.length)return[];var t,n,r,o,i,a,s,u,c={},l=[],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[(u=a[n]).id]?s=c[u.id]:(s={id:u.id,selector:u.selector,data:u.data,elements:[]},c[u.id]=s,l.push(s)),s.elements.push(i);return l.sort(oe)},G.prototype.matches=function(e){if(!e)return[];var t,n,r,o,i,a,s,u,c,l,f,d=this.activeIndexes,h={},p=[];for(t=0,o=d.length;t<o;t++)if(u=(s=d[t]).element(e))for(n=0,i=u.length;n<i;n++)if(c=s.map.get(u[n]))for(r=0,a=c.length;r<a;r++)!h[f=(l=c[r]).id]&&this.matchesSelector(e,l.selector)&&(h[f]=!0,p.push(l));return p.sort(oe)};var ie={},ae={},se=new WeakMap,ue=new WeakMap,ce=new WeakMap,le=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function fe(e,t,n){var r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function de(){se.set(this,!0)}function he(){se.set(this,!0),ue.set(this,!0)}function pe(){return ce.get(this)||null}function ve(e,t){le&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t||le.get})}function me(e){var t=(1===e.eventPhase?ae:ie)[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){fe(e,"stopPropagation",de),fe(e,"stopImmediatePropagation",he),ve(e,pe);for(var r=0,o=n.length;r<o&&!se.get(e);r++){var i=n[r];ce.set(e,i.node);for(var a=0,s=i.observers.length;a<s&&!ue.get(e);a++)i.observers[a].data.call(i.node,e)}ce.delete(e),ve(e)}}}function ge(e,t,n){var r=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?ae:ie,i=o[e];i||(i=new G,o[e]=i,document.addEventListener(e,me,r)),i.add(t,n)}function be(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}var ye=Object.freeze({on:ge,off:function(e,t,n){var r=!!(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).capture,o=r?ae:ie,i=o[e];i&&(i.remove(t,n),i.size||(delete o[e],document.removeEventListener(e,me,r)))},fire:be}),we=[],Ee=0,_e=function(){var e={_id:(new Date).getTime()};return Te(e),e}();function xe(){return _e}function ke(){return history.length-1+Ee}function Te(e){_e=e;var t=location.href;we[ke()]={url:t,state:_e},we.length=history.length;var n=new CustomEvent("statechange",{bubbles:!1,cancelable:!1});n.state=_e,window.dispatchEvent(n)}function je(e,t){var n={_id:t};if(e)for(var r in e)n[r]=e[r];return n}function Le(){return(new Date).getTime()}function Oe(e,t,n){Ee=0,e=je(e,Le()),history.pushState(e,t,n),Te(e)}function Se(e,t,n){e=je(e,xe()._id),history.replaceState(e,t,n),Te(e)}window.addEventListener("popstate",function(e){e.state&&e.state._id&&(e.state._id<xe()._id?Ee--:Ee++,Te(e.state))},!0),window.addEventListener("hashchange",function(){if(history.length>we.length){var e=je({},Le());history.replaceState(e,"",location.href),Te(e)}},!0);var Ae=Object.freeze({getState:xe,pushState:Oe,replaceState:Se,getBackURL:function(){var e=we[ke()-1];if(e)return e.url},getForwardURL:function(){var e=we[ke()+1];if(e)return e.url}});function Me(e){return Ce(e,De(arguments.length>1&&void 0!==arguments[1]?arguments[1]:location.hash))}function Ce(e,t){if(""!==t)return e.getElementById(t)||e.getElementsByName(t)[0]}function De(e){try{return decodeURIComponent(e.slice(1))}catch(e){return""}}var Pe=Object.freeze({findFragmentTarget:Me,findElementByFragmentName:Ce,decodeFragmentValue:De}),He=[],Re=0;function Ne(e){c(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return He.push(e),t.next=3,i;case 3:Ie();case 4:case"end":return t.stop()}},t,this)}))()}function Ie(){var e=Re;Re=He.length,qe(He.slice(e),null,window.location.href)}function qe(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 u,c=e[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){u.value.call(null,o)}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}}Ne.clear=function(){He.length=Re=0};var Fe=window.location.href;window.addEventListener("popstate",function(){Fe=window.location.href}),window.addEventListener("hashchange",function(e){var t=window.location.href;try{qe(He,e.oldURL||Fe,t)}finally{Fe=t}});var Be=null;document.addEventListener("pjax:start",function(){Be=window.location.href}),document.addEventListener("pjax:end",function(){qe(He,Be,window.location.href)});var ze=Object.freeze({default:Ne});function Xe(e){return(e.ctrlKey?"Control+":"")+(e.altKey?"Alt+":"")+(e.metaKey?"Meta+":"")+e.key}var Ve=Object.freeze({default:Xe});function We(e){return!function(e){return e.offsetWidth<=0&&e.offsetHeight<=0}(e)}var Ue=Object.freeze({default:We});function Ye(e){var t=e.currentTarget;if(o(t instanceof HTMLElement,"app/assets/modules/github/restrict-tab-behavior.js:9"),"Tab"===Xe(e)){e.preventDefault();var n=Array.from(t.querySelectorAll("input, button, textarea")).filter(function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)return!e.disabled&&We(e)}),r=e.shiftKey?-1:1,i=n.length-1;if(document.activeElement){var a=n.indexOf(document.activeElement);if(-1!==a){var s=a+r;s>=0&&(i=s%n.length)}}n[i].focus()}}var Ge,Ke=Object.freeze({default:Ye}),$e=(Ge=c(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("0s"!==getComputedStyle(t).transitionDuration){e.next=2;break}return e.abrupt("return");case 2:return t.style.display="block",t.offsetHeight,e.next=6,new Promise(function(e){return t.addEventListener("transitionend",e,{once:!0})});case 6:t.style.display="";case 7:case"end":return e.stop()}},e,this)})),function(e){return Ge.apply(this,arguments)}),Je=null;function Ze(e){var t=document.querySelector("button[data-box-overlay-id='"+e.id+"']");return t instanceof HTMLButtonElement?t:null}function Qe(e,t){var n=t||Ze(e);et(),$e(e).then(function(){var t=e.querySelector("[autofocus]");t?t.focus():(e.hidden&&(e.hidden=!1),e.setAttribute("tabindex","-1"),e.focus()),be(e,"overlay:opened",{button:n})}),e.hidden=!1,n&&n.setAttribute("aria-expanded","true"),e.addEventListener("keydown",Ye),document.addEventListener("keydown",tt),Je=e}function et(){if(Je){var e=Je,t=document.querySelector('[data-box-overlay-id="'+e.id+'"]');$e(e).then(function(){t&&t.focus(),be(e,"overlay:closed")}),t&&t.setAttribute("aria-expanded","false"),e.hidden=!0,e.removeEventListener("keydown",Ye),document.removeEventListener("keydown",tt),location.hash==="#"+e.id&&Se(xe(),"",window.location.href.split("#")[0]),Je=null}}function tt(e){"Escape"===Xe(e)&&et()}ge("click","button[data-box-overlay-id]",function(e){var t=A(e.currentTarget,HTMLButtonElement),n=t.getAttribute("data-box-overlay-id");o(n,"app/assets/modules/github/box-overlay.js:18"),Qe(A(document.getElementById(n),HTMLElement),t)}),ge("click",".js-box-overlay-container",function(e){e.target.querySelector(".js-box-overlay-content")&&et()}),ge("click",".js-box-overlay-close",function(){et()}),Ne(function(){var e=Me(document);if(e instanceof HTMLElement){var t=Ze(e);t&&Qe(e,t)}});var nt=new WeakMap;var rt,ot=(rt=c(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=nt.get(t),e.t0){e.next=7;break}return e.t1=it,e.next=5,at(t,"codeEditor:ready");case 5:e.t2=e.sent,e.t0=(0,e.t1)(e.t2);case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}},e,this)})),function(e){return rt.apply(this,arguments)});function it(e){o(e instanceof CustomEvent,"app/assets/modules/github/code-editor.js:18");var t=e.detail.editor;return nt.set(e.target,t),t}function at(e,t){return new Promise(function(n){e.addEventListener(t,n,{once:!0})})}ge("codeEditor:ready",".js-code-editor",it);var st=Object.freeze({getCodeEditor:function(e){return nt.get(e)},getAsyncCodeEditor:ot});function ut(e,t){var n=void 0;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout(function(){clearTimeout(n),e.apply(r,o)},t)}}document.addEventListener("click",function(e){if(e.target instanceof Element){var t=e.target.closest("a[data-confirm], input[type=submit][data-confirm], input[type=checkbox][data-confirm], button[data-confirm]");if(t){var n=t.getAttribute("data-confirm");n&&(t instanceof HTMLInputElement&&t.hasAttribute("data-confirm-checked")&&!t.checked||confirm(n)||(e.stopImmediatePropagation(),e.preventDefault()))}}},!0);var ct=Object.freeze({default:ut});var lt=Object.freeze({default:function(e,t){var n=0,r=void 0;return function(){for(var o=this,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=Date.now()-n;u<t?(clearTimeout(r),r=setTimeout(function(){n=Date.now(),e.apply(o,a)},t-u)):(n=Date.now(),e.apply(this,a))}}});function ft(e,t,n){var r=n||HTMLElement,o=e.closest(t);if(o instanceof r)return o;throw new Error("Element not found: <"+r.name+"> "+t)}function dt(e,t,n){var r=n||HTMLElement,o=e.querySelector(t);if(o instanceof r)return o;throw new Error("Element not found: <"+r.name+"> "+t)}function ht(e,t,n){var r=n||HTMLElement,o=[],i=!0,a=!1,s=void 0;try{for(var u,c=e.querySelectorAll(t)[Symbol.iterator]();!(i=(u=c.next()).done);i=!0){var l=u.value;l instanceof r&&o.push(l)}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}return o}var pt=Object.freeze({closest:ft,query:dt,querySelectorAll:ht,namedItem:function(e,t,n){var r=n||HTMLInputElement,o=e.elements.namedItem(t);if(o instanceof r)return o;throw new Error("Element not found by name: <"+r.name+"> "+t)}}),vt="ontransitionend"in window;function mt(e,t){if(vt){var n=Array.from(e.querySelectorAll(".js-transitionable"));e.classList.add("js-transitionable")&&n.push(e);var r=function(e){var t=gt(e);e.addEventListener("transitionend",function(){e.style.display="",e.style.visibility="",t&&bt(e,function(){e.style.height=""})},{once:!0}),e.style.boxSizing="content-box",e.style.display="block",e.style.visibility="visible",t&&bt(e,function(){e.style.height=getComputedStyle(e).height}),e.offsetHeight},o=!0,i=!1,a=void 0;try{for(var s,u=n[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){r(p=s.value)}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}t();var c=!0,l=!1,f=void 0;try{for(var d,h=n[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var p;if(gt(p=d.value)){var v=getComputedStyle(p).height;p.style.boxSizing="",p.style.height="0px"===v?p.scrollHeight+"px":"0px"}}}catch(e){l=!0,f=e}finally{try{!c&&h.return&&h.return()}finally{if(l)throw f}}}else t()}function gt(e){return"height"===getComputedStyle(e).transitionProperty}function bt(e,t){e.style.transition="none",t(),e.offsetHeight,e.style.transition=""}function yt(e){var t=e.getAttribute("data-details-container")||".js-details-container",n=ft(e,t);e.getAttribute("data-initial-state")||e.setAttribute("data-initial-state",e.getAttribute("aria-expanded")||"false"),mt(n,function(){n.classList.toggle("open"),n.classList.toggle("Details--on"),e.setAttribute("aria-expanded",(e.getAttribute("data-initial-state")!==n.classList.contains("Details--on").toString()).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(){return e.classList.add("tooltipped")},{once:!0}))}(e),function(e){var t=e.closest(".js-edit-repository-meta");t&&A(t,HTMLFormElement).reset()}(e);var t=new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:n.classList.contains("Details--on")}});n.dispatchEvent(t)})})}function wt(e){for(var t=!1,n=e.parentElement;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}ge("click",".js-details-target",function(e){var t=e.currentTarget;o(t instanceof HTMLElement,"app/assets/modules/github/details.js:129"),yt(t),e.preventDefault()}),Ne(function(e){var t=e.target;t&&wt(t)});var Et=Object.freeze({toggleDetailsTarget:yt,isDetailsTargetExpanded:function(e){var t=ft(e,e.getAttribute("data-details-container")||".js-details-container").classList;return t.contains("Details--on")||t.contains("open")},ensureExpanded:wt}),_t=function(){var e=c(regeneratorRuntime.mark(function e(t){var n,r,i,a,s,u,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=dt(document,"#site-details-dialog",HTMLTemplateElement),i=r.content.cloneNode(!0),a=dt(i,"details"),s=dt(a,"details-dialog"),u=dt(a,".js-details-dialog-spinner"),t.dialogClass&&(n=s.classList).add.apply(n,m(t.dialogClass.split(" "))),o(document.body,"app/assets/modules/github/details-dialog.js:20"),document.body.append(i),e.next=10,t.content;case 10:return c=e.sent,u.remove(),s.prepend(c),setTimeout(function(){a.addEventListener("toggle",function(){be(s,"dialog:remove"),a.remove()},{once:!0})}),e.abrupt("return",s);case 15:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),xt=Object.freeze({dialog:_t});function kt(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 Tt(e,t){var n=t,r=e.ownerDocument;if(r&&r.body){var o=r.documentElement;if(o&&e!==o){var i=jt(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,u=i.left-a.left,c=n.clientHeight,l=n.clientWidth;return{top:s,left:u,bottom:c-(s+e.offsetHeight),right:l-(u+e.offsetWidth),height:c,width:l}}}}}function jt(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,u=0,c=n.offsetHeight,l=n.offsetWidth;n!==r.body&&n!==t;){if(s+=n.offsetTop||0,u+=n.offsetLeft||0,!(n.offsetParent instanceof a))return;n=n.offsetParent}var f=void 0,d=void 0,h=void 0;if(t&&t!==r&&t!==r.defaultView&&t!==r.documentElement&&t!==r.body){if(!(t instanceof a))return;h=t,f=t.scrollHeight,d=t.scrollWidth}else h=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:u,bottom:f-(s+c),right:d-(u+l),_container:h}}}}}var Lt=Object.freeze({offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},overflowParent:kt,overflowOffset:Tt,positionedOffset:jt});var Ot=Object.freeze({microtask:function(){return Promise.resolve()},animationFrame:function(){return new Promise(window.requestAnimationFrame)}});function St(){if("Intl"in window)try{return(new window.Intl.DateTimeFormat).resolvedOptions().timeZone}catch(e){if(!(e instanceof RangeError))throw e}}var At=Object.freeze({default:St});function Mt(e,t){return!!(e&&t in e&&(n=e[t],"function"==typeof n&&n.toString().match(/native code/)));var n}var Ct=document.createElement("input");var Dt={beacon:Mt(window.navigator,"sendBeacon"),classlist:Pt(),classlistMultiArg:function(){if(Pt())return Ct.classList.add("a","b"),Ct.classList.contains("b");return!1}(),closest:Mt(Ct,"closest"),customElements:Mt(window.customElements,"define"),customEvent:function(){if(!Mt(window,"CustomEvent"))return!1;try{return"supported"===new CustomEvent("test",{detail:"supported"}).detail}catch(e){return!1}}(),fetch:Mt(window,"fetch"),highResolutionTime:Mt(window.performance,"now"),matchesSelector:Mt(Ct,"matches"),promises:Mt(window,"Promise"),stringEndsWith:Mt(String.prototype,"endsWith"),stringStartsWith:Mt(String.prototype,"startsWith"),timezone:!!St(),url:Mt(window,"URL"),urlSearchParams:Mt(window,"URLSearchParams"),userTimingEntries:Mt(window.performance,"getEntries"),userTimingMark:Mt(window.performance,"mark"),weakmap:Mt(window,"WeakMap")};function Pt(){return Mt("classList"in Ct&&Ct.classList,"add")}var Ht=Object.freeze({default:Dt});function Rt(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")}var Nt=function(e){function t(e,n){l(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+" for HTTP "+n.status));return r.response=n,r}return h(t,e),t}(Error);function It(e,t){var n=t.headers.get("content-type")||"";if(!n.startsWith("text/html"))throw new Nt("expected response with text/html, but was "+n,t);var r=t.headers.get("x-html-safe");if(!r)throw new Nt("missing X-HTML-Safe nonce",t);if(r!==e)throw new Nt("response X-HTML-Safe nonce did not match",t)}var qt=Object.freeze({getDocumentHtmlSafeNonce:Rt,verifyResponseHtmlSafeNonce:It});function Ft(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(),i=e.implementation.createHTMLDocument(void 0);o(i.body,"app/assets/modules/github/parse-html.js:27"),i.body.innerHTML=t,o(i.body.childNodes,"app/assets/modules/github/parse-html.js:30");var a=Array.from(i.body.childNodes),s=!0,u=!1,c=void 0;try{for(var l,f=a[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var d=l.value;r.appendChild(d)}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}return"function"==typeof HTMLTemplateElement.bootstrap&&HTMLTemplateElement.bootstrap(r),r}var Bt=Object.freeze({parseHTML:Ft}),zt=function(e){function t(e){l(this,t);var n=e.statusText?" "+e.statusText:"",r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"HTTP "+e.status+n));return r.response=e,r}return h(t,e),t}(Error);function Xt(e){if(e.status>=200&&e.status<300)return e;throw new zt(e)}function Vt(e){return e.json()}function Wt(e){return e.text()}function Ut(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 Yt(e,t){var n=Ut(e,t);return self.fetch(n).then(Xt)}function Gt(e,t){var n=Ut(e,t);return self.fetch(n).then(Xt).then(Wt)}function Kt(e,t){var n=Ut(e,t);return n.headers.set("Accept","application/json"),self.fetch(n).then(Xt).then(Vt)}var $t=function(){var e=c(regeneratorRuntime.mark(function e(t,n,r){var o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=Ut(n,r),e.next=3,self.fetch(o);case 3:return Xt(i=e.sent),It(Rt(t),i),e.t0=Ft,e.t1=t,e.next=10,i.text();case 10:return e.t2=e.sent,e.abrupt("return",(0,e.t0)(e.t1,e.t2));case 12:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}();var Jt=Object.freeze({csrfRequest:function(e,t){var n=new URL(e,window.location.origin),r=t?Object.assign({},t):{},o=n.hash.match(/^#csrf-token=([A-Za-z0-9+/=]+)$/);if(!o)throw new TypeError("Expected csrfRequest(url) to have an associated #csrf-token");n.hash="",e=n.toString(),r.mode="same-origin";var i=new Request(e,r);return i.headers.append("Scoped-CSRF-Token",o[1]),i},fetch:Yt,fetchText:Gt,fetchJSON:Kt,fetchForm:function(e){return Yt(e.action,{method:e.method,body:new FormData(e)})},fetchSafeDocumentFragment:$t,fetchPoll:function(e,t){return new Promise(function(n,r){!function o(i){Yt(e,t).then(function(e){switch(e.status){case 200:n(e);break;case 202:setTimeout(function(){return o(1.5*i)},i);break;default:r(new zt(e))}},r)}(1e3)})}}),Zt="function"==typeof FormData&&"entries"in FormData.prototype?function(e){return Array.from(new FormData(e).entries())}:function(e){for(var t=[],n=e.elements,r=0;r<n.length;r++){var o=n[r],i=o.tagName.toUpperCase();if("SELECT"===i||"TEXTAREA"===i||"INPUT"===i){var a=o.type,s=o.name;if(s&&!o.disabled&&"submit"!==a&&"reset"!==a&&"button"!==a&&("radio"!==a&&"checkbox"!==a||o.checked))if("SELECT"===i)for(var u=o.getElementsByTagName("option"),c=0;c<u.length;c++){var l=u[c];l.selected&&t.push([s,l.value])}else"file"===a?(console.warn("form-data-entries could not serialize <input type=file>",o),t.push([s,""])):t.push([s,o.value])}}return t};function Qt(e){var t=e.querySelector("input.is-submit-button-value");return t instanceof HTMLInputElement?t:null}function en(e){var t=e.closest("form");if(t instanceof HTMLFormElement){var n=Qt(t);if(e.name){var r=e.matches("input[type=submit]")?"Submit":"",o=e.value||r;n||((n=document.createElement("input")).type="hidden",n.classList.add("is-submit-button-value"),t.prepend(n)),n.name=e.name,n.value=o}else n&&n.remove()}}var tn=Object.freeze({findPersistedSubmitButtonValue:Qt,persistSubmitButtonValue:en});function nn(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:n}))}function rn(e,t){t&&en(t),nn(e,"submit",!0)&&e.submit()}function on(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 an(e){var t=new URLSearchParams,n=!0,r=!1,o=void 0;try{for(var i,a=Zt(e)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=v(s,2),c=u[0],l=u[1];t.append(c,l)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return t.toString()}var sn=Object.freeze({submit:rn,changeValue:function(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}nn(e,"change",!1)},fillFormValues:function(e,t){for(var n in t){var r=t[n],o=e.elements.namedItem(n);o instanceof HTMLInputElement?o.value=r:o instanceof HTMLTextAreaElement&&(o.value=r)}},isFormField:on,serialize:an});!function(){var e=function(e){this.w=e||[]};e.prototype.set=function(e){this.w[e]=!0},e.prototype.encode=function(){for(var e=[],t=0;t<this.w.length;t++)this.w[t]&&(e[Math.floor(t/6)]^=1<<t%6);for(t=0;t<e.length;t++)e[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[t]||0);return e.join("")+"~"};var t=new e;function n(e){t.set(e)}var r=function(t,n){var r=new e(i(t));r.set(n),t.set(it,r.w)},o=function(n){n=i(n),n=new e(n);for(var r=t.w.slice(),o=0;o<n.w.length;o++)r[o]=r[o]||n.w[o];return new e(r).encode()},i=function(e){return e=e.get(it),s(e)||(e=[]),e},a=function(e){return"function"==typeof e},s=function(e){return"[object Array]"==Object.prototype.toString.call(Object(e))},u=function(e){return void 0!=e&&-1<(e.constructor+"").indexOf("String")},c=function(e,t){return 0==e.indexOf(t)},l=function(e){return e?e.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},f=function(e){var t=x.createElement("img");return t.width=1,t.height=1,t.src=e,t},d=function(){},h=function(e){return encodeURIComponent instanceof Function?encodeURIComponent(e):(n(28),e)},p=function(e,t,r,o){try{e.addEventListener?e.addEventListener(t,r,!!o):e.attachEvent&&e.attachEvent("on"+t,r)}catch(e){n(27)}},v=/^[\w\-:/.?=&%!]+$/,m=function(e,t,n,r){e&&(n?(r="",t&&v.test(t)&&(r=' id="'+t+'"'),v.test(e)&&x.write("<script"+r+' src="'+e+'"><\/script>')):((n=x.createElement("script")).type="text/javascript",n.async=!0,n.src=e,r&&(n.onload=r),t&&(n.id=t),(e=x.getElementsByTagName("script")[0]).parentNode.insertBefore(n,e)))},g=function(){return"https:"==x.location.protocol},b=function(e,t){return(e=e.match("(?:&|#|\\?)"+h(t).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==e.length?e[1]:""},y=function(){var e=""+x.location.hostname;return 0==e.indexOf("www.")?e.substring(4):e},w=function(e,t){if(1==t.length&&null!=t[0]&&"object"==typeof t[0])return t[0];for(var n={},r=Math.min(e.length+1,t.length),o=0;o<r;o++){if("object"==typeof t[o]){for(var i in t[o])t[o].hasOwnProperty(i)&&(n[i]=t[o][i]);break}o<e.length&&(n[e[o]]=t[o])}return n},E=function(){this.keys=[],this.values={},this.m={}};E.prototype.set=function(e,t,n){this.keys.push(e),n?this.m[":"+e]=t:this.values[":"+e]=t},E.prototype.get=function(e){return this.m.hasOwnProperty(":"+e)?this.m[":"+e]:this.values[":"+e]},E.prototype.map=function(e){for(var t=0;t<this.keys.length;t++){var n=this.keys[t],r=this.get(n);r&&e(n,r)}};var _=window,x=document,k=window,T=function(e){var t=k._gaUserPrefs;if(t&&t.ioo&&t.ioo()||e&&!0===k["ga-disable-"+e])return!0;try{var n=k.external;if(n&&n._gaUserPrefs&&"oo"==n._gaUserPrefs)return!0}catch(e){}return!1},j=function(e){var t=[],n=x.cookie.split(";");e=new RegExp("^\\s*"+e+"=\\s*(.*?)\\s*$");for(var r=0;r<n.length;r++){var o=n[r].match(e);o&&t.push(o[1])}return t},L=function(e,t,r,o,i,a){if(!(i=!T(i)&&!(A.test(x.location.hostname)||"/"==r&&S.test(o))))return!1;if(t&&1200<t.length&&(t=t.substring(0,1200),n(24)),r=e+"="+t+"; path="+r+"; ",a&&(r+="expires="+new Date((new Date).getTime()+a).toGMTString()+"; "),o&&"none"!=o&&(r+="domain="+o+";"),o=x.cookie,x.cookie=r,!(o=o!=x.cookie))e:{for(e=j(e),o=0;o<e.length;o++)if(t==e[o]){o=!0;break e}o=!1}return o},O=function(e){return h(e).replace(/\(/g,"%28").replace(/\)/g,"%29")},S=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,A=/(^|\.)doubleclick\.net$/i,M=function(){return(le||g()?"https:":"http:")+"//www.google-analytics.com"},C=function(e,t,n){if(n=n||d,2036>=t.length)D(e,t,n);else{if(!(8192>=t.length))throw R("len",t.length),new function(e){this.name="len",this.message=e+"-8192"}(t.length);H(e,t,n)||P(e,t,n)||D(e,t,n)}},D=function(e,t,n){var r=f(e+"?"+t);r.onload=r.onerror=function(){r.onload=null,r.onerror=null,n()}},P=function(e,t,n){var r=_.XMLHttpRequest;if(!r)return!1;var o=new r;return"withCredentials"in o&&(o.open("POST",e,!0),o.withCredentials=!0,o.setRequestHeader("Content-Type","text/plain"),o.onreadystatechange=function(){4==o.readyState&&(n(),o=null)},o.send(t),!0)},H=function(e,t,n){return!!_.navigator.sendBeacon&&(!!_.navigator.sendBeacon(e,t)&&(n(),!0))},R=function(e,t,n){1<=100*Math.random()||T("?")||(e=["t=error","_e="+e,"_v=j48","sr=1"],t&&e.push("_f="+t),n&&e.push("_m="+h(n.substring(0,100))),e.push("aip=1"),e.push("z="+G()),D(M()+"/collect",e.join("&"),d))},N=function(e){var t=_.gaData=_.gaData||{};return t[e]=t[e]||{}},I=function(){this.M=[]};function q(e){if(100!=e.get(Ht)&&$n(ee(e,_t))%1e4>=100*te(e,Ht))throw"abort"}function F(e){if(T(ee(e,Tt)))throw"abort"}function B(){var e=x.location.protocol;if("http:"!=e&&"https:"!=e)throw"abort"}function z(e){try{_.navigator.sendBeacon?n(42):_.XMLHttpRequest&&"withCredentials"in new _.XMLHttpRequest&&n(40)}catch(e){}e.set(ot,o(e),!0),e.set(ye,te(e,ye)+1);var t=[];Z.map(function(n,r){r.F&&(void 0!=(n=e.get(n))&&n!=r.defaultValue&&("boolean"==typeof n&&(n*=1),t.push(r.F+"="+h(""+n))))}),t.push("z="+K()),e.set(me,t.join("&"),!0)}function X(e){var t=ee(e,It)||M()+"/collect",n=ee(e,be);if(!n&&e.get(ge)&&(n="beacon"),n){var r=ee(e,me),o=(o=e.get(ve))||d;"image"==n?D(t,r,o):"xhr"==n&&P(t,r,o)||"beacon"==n&&H(t,r,o)||C(t,r,o)}else C(t,ee(e,me),e.get(ve));t=e.get(Tt),n=(t=N(t)).hitcount,t.hitcount=n?n+1:1,t=e.get(Tt),delete N(t).pending_experiments,e.set(ve,d,!0)}function V(e){var t;(_.gaData=_.gaData||{}).expId&&e.set(Ke,(_.gaData=_.gaData||{}).expId),(_.gaData=_.gaData||{}).expVar&&e.set($e,(_.gaData=_.gaData||{}).expVar);var n=e.get(Tt);if(n=N(n).pending_experiments){var r=[];for(t in n)n.hasOwnProperty(t)&&n[t]&&r.push(encodeURIComponent(t)+"."+encodeURIComponent(n[t]));t=r.join("!")}else t=void 0;t&&e.set(Je,t,!0)}function W(){if(_.navigator&&"preview"==_.navigator.loadPurpose)throw"abort"}function U(e){var t=_.gaDevIds;s(t)&&0!=t.length&&e.set("&did",t.join(","),!0)}function Y(e){if(!e.get(Tt))throw"abort"}I.prototype.add=function(e){this.M.push(e)},I.prototype.D=function(e){try{for(var t=0;t<this.M.length;t++){var n=e.get(this.M[t]);n&&a(n)&&n.call(_,e)}}catch(e){}(t=e.get(ve))!=d&&a(t)&&(e.set(ve,d,!0),setTimeout(t,10))};var G=function(){return Math.round(2147483647*Math.random())},K=function(){try{var e=new Uint32Array(1);return _.crypto.getRandomValues(e),2147483647&e[0]}catch(e){return G()}};function $(e){var t=te(e,tt);if(500<=t&&n(15),"transaction"!=(r=ee(e,pe))&&"item"!=r){var r=te(e,rt),o=(new Date).getTime(),i=te(e,nt);if(0==i&&e.set(nt,o),0<(i=Math.round(2*(o-i)/1e3))&&(r=Math.min(r+i,20),e.set(nt,o)),0>=r)throw"abort";e.set(rt,--r)}e.set(tt,++t)}var J=function(){this.data=new E},Z=new E,Q=[];J.prototype.get=function(e){var t=oe(e),n=this.data.get(e);return t&&void 0==n&&(n=a(t.defaultValue)?t.defaultValue():t.defaultValue),t&&t.Z?t.Z(this,e,n):n};var ee=function(e,t){return void 0==(e=e.get(t))?"":""+e},te=function(e,t){return void 0==(e=e.get(t))||""===e?0:1*e};J.prototype.set=function(e,t,n){if(e)if("object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&ne(this,r,e[r],n);else ne(this,e,t,n)};var ne=function(e,t,n,r){if(void 0!=n)switch(t){case Tt:Tn.test(n)}var o=oe(t);o&&o.o?o.o(e,t,n,r):e.data.set(t,n,r)},re=function(e,t,n,r,o){this.name=e,this.F=t,this.Z=r,this.o=o,this.defaultValue=n},oe=function(e){var t=Z.get(e);if(!t)for(var n=0;n<Q.length;n++){var r=Q[n],o=r[0].exec(e);if(o){t=r[1](o),Z.set(t.name,t);break}}return t},ie=function(e,t,n,r,o){return e=new re(e,t,n,r,o),Z.set(e.name,e),e.name},ae=function(e,t){Q.push([new RegExp("^"+e+"$"),t])},se=function(e,t,n){return ie(e,t,n,void 0,ue)},ue=function(){},ce=u(window.GoogleAnalyticsObject)&&l(window.GoogleAnalyticsObject)||"ga",le=!1,fe=se("apiVersion","v"),de=se("clientVersion","_v");ie("anonymizeIp","aip");var he=ie("adSenseId","a"),pe=ie("hitType","t"),ve=ie("hitCallback"),me=ie("hitPayload");ie("nonInteraction","ni"),ie("currencyCode","cu"),ie("dataSource","ds");var ge=ie("useBeacon",void 0,!1),be=ie("transport");ie("sessionControl","sc",""),ie("sessionGroup","sg"),ie("queueTime","qt");var ye=ie("_s","_s");ie("screenName","cd");var we=ie("location","dl",""),Ee=ie("referrer","dr"),_e=ie("page","dp","");ie("hostname","dh");var xe=ie("language","ul"),ke=ie("encoding","de");ie("title","dt",function(){return x.title||void 0}),ae("contentGroup([0-9]+)",function(e){return new re(e[0],"cg"+e[1])});var Te=ie("screenColors","sd"),je=ie("screenResolution","sr"),Le=ie("viewportSize","vp"),Oe=ie("javaEnabled","je"),Se=ie("flashVersion","fl");ie("campaignId","ci"),ie("campaignName","cn"),ie("campaignSource","cs"),ie("campaignMedium","cm"),ie("campaignKeyword","ck"),ie("campaignContent","cc");var Ae=ie("eventCategory","ec"),Me=ie("eventAction","ea"),Ce=ie("eventLabel","el"),De=ie("eventValue","ev"),Pe=ie("socialNetwork","sn"),He=ie("socialAction","sa"),Re=ie("socialTarget","st"),Ne=ie("l1","plt"),Ie=ie("l2","pdt"),qe=ie("l3","dns"),Fe=ie("l4","rrt"),Be=ie("l5","srt"),ze=ie("l6","tcp"),Xe=ie("l7","dit"),Ve=ie("l8","clt"),We=ie("timingCategory","utc"),Ue=ie("timingVar","utv"),Ye=ie("timingLabel","utl"),Ge=ie("timingValue","utt");ie("appName","an"),ie("appVersion","av",""),ie("appId","aid",""),ie("appInstallerId","aiid",""),ie("exDescription","exd"),ie("exFatal","exf");var Ke=ie("expId","xid"),$e=ie("expVar","xvar"),Je=ie("exp","exp"),Ze=ie("_utma","_utma"),Qe=ie("_utmz","_utmz"),et=ie("_utmht","_utmht"),tt=ie("_hc",void 0,0),nt=ie("_ti",void 0,0),rt=ie("_to",void 0,20);ae("dimension([0-9]+)",function(e){return new re(e[0],"cd"+e[1])}),ae("metric([0-9]+)",function(e){return new re(e[0],"cm"+e[1])}),ie("linkerParam",void 0,void 0,function(e){var t=un(e=e.get(_t),0);return"_ga=1."+h(t+"."+e)},ue);var ot=ie("usage","_u"),it=ie("_um");ie("forceSSL",void 0,void 0,function(){return le},function(e,t,r){n(34),le=!!r});var at=ie("_j1","jid");ae("\\&(.*)",function(e){var t=new re(e[0],e[1]),n=function(e){var t;return Z.map(function(n,r){r.F==e&&(t=r)}),t&&t.name}(e[0].substring(1));return n&&(t.Z=function(e){return e.get(n)},t.o=function(e,t,r,o){e.set(n,r,o)},t.F=void 0),t});var st=se("_oot"),ut=ie("previewTask"),ct=ie("checkProtocolTask"),lt=ie("validationTask"),ft=ie("checkStorageTask"),dt=ie("historyImportTask"),ht=ie("samplerTask"),pt=ie("_rlt"),vt=ie("buildHitTask"),mt=ie("sendHitTask"),gt=ie("ceTask"),bt=ie("devIdTask"),yt=ie("timingTask"),wt=ie("displayFeaturesTask"),Et=se("name"),_t=se("clientId","cid"),xt=se("clientIdTime"),kt=ie("userId","uid"),Tt=se("trackingId","tid"),jt=se("cookieName",void 0,"_ga"),Lt=se("cookieDomain"),Ot=se("cookiePath",void 0,"/"),St=se("cookieExpires",void 0,63072e3),At=se("legacyCookieDomain"),Mt=se("legacyHistoryImport",void 0,!0),Ct=se("storage",void 0,"cookie"),Dt=se("allowLinker",void 0,!1),Pt=se("allowAnchor",void 0,!0),Ht=se("sampleRate","sf",100),Rt=se("siteSpeedSampleRate",void 0,1),Nt=se("alwaysSendReferrer",void 0,!1),It=ie("transportUrl"),qt=ie("_r","_r");function Ft(e,t,r,o){t[e]=function(){try{return o&&n(o),r.apply(this,arguments)}catch(t){throw R("exc",e,t&&t.name),t}}}var Bt=function(e,t,n){this.V=e,this.fa=t,this.$=!1,this.oa=n,this.ea=1},zt=function(e,t){var n;if(e.fa&&e.$)return 0;if(e.$=!0,t){if(e.oa&&te(t,e.oa))return te(t,e.oa);if(0==t.get(Rt))return 0}return 0==e.V?0:(void 0===n&&(n=K()),0==n%e.V?Math.floor(n/e.V)%e.ea+1:0)};var Xt=function(e){var t={};if(Vt(t)||Wt(t)){var n=t[Ne];void 0==n||1/0==n||isNaN(n)||(0<n?(Ut(t,qe),Ut(t,ze),Ut(t,Be),Ut(t,Ie),Ut(t,Fe),Ut(t,Xe),Ut(t,Ve),e(t)):p(_,"load",function(){Xt(e)},!1))}},Vt=function(e){var t;if(!(t=(t=_.performance||_.webkitPerformance)&&t.timing))return!1;var n=t.navigationStart;return 0!=n&&(e[Ne]=t.loadEventStart-n,e[qe]=t.domainLookupEnd-t.domainLookupStart,e[ze]=t.connectEnd-t.connectStart,e[Be]=t.responseStart-t.requestStart,e[Ie]=t.responseEnd-t.responseStart,e[Fe]=t.fetchStart-n,e[Xe]=t.domInteractive-n,e[Ve]=t.domContentLoadedEventStart-n,!0)},Wt=function(e){if(_.top!=_)return!1;var t=_.external,n=t&&t.onloadT;return t&&!t.isValidLoadTime&&(n=void 0),2147483648<n&&(n=void 0),0<n&&t.setPageReadyTime(),void 0!=n&&(e[Ne]=n,!0)},Ut=function(e,t){var n=e[t];(isNaN(n)||1/0==n||0>n)&&(e[t]=void 0)},Yt=function(e){return function(t){if("pageview"==t.get(pe)&&!e.I){e.I=!0;var n=function(e){var t=Math.min(te(e,Rt),100);return!($n(ee(e,_t))%100>=t)}(t);t=0<b(t.get(we),"gclid").length,(n||t)&&Xt(function(t){e.send(n?"timing":"adtiming",t)})}}},Gt=!1,Kt=function(e){if("cookie"==ee(e,Ct)){var t=ee(e,jt),r=Zt(e),o=tn(ee(e,Ot)),i=en(ee(e,Lt)),a=1e3*te(e,St),s=ee(e,Tt);if("auto"!=i)L(t,r,o,i,s,a)&&(Gt=!0);else{var u;if(n(32),r=[],4!=(i=y().split(".")).length||(u=i[i.length-1],parseInt(u,10)!=u)){for(u=i.length-2;0<=u;u--)r.push(i.slice(u).join("."));r.push("none"),u=r}else u=["none"];for(var c=0;c<u.length;c++)if(i=u[c],e.data.set(Lt,i),r=Zt(e),L(t,r,o,i,s,a))return void(Gt=!0);e.data.set(Lt,"auto")}}},$t=function(e){if("cookie"==ee(e,Ct)&&!Gt&&(Kt(e),!Gt))throw"abort"},Jt=function(e){if(e.get(Mt)){var t=ee(e,Lt),r=ee(e,At)||y(),o=rn("__utma",r,t);o&&(n(19),e.set(et,(new Date).getTime(),!0),e.set(Ze,o.R),(t=rn("__utmz",r,t))&&o.hash==t.hash&&e.set(Qe,t.R))}},Zt=function(e){var t=O(ee(e,_t)),n=en(ee(e,Lt)).split(".").length;return 1<(e=nn(ee(e,Ot)))&&(n+="-"+e),["GA1",n,t].join(".")},Qt=function(e,t,n){for(var r,o=[],i=[],a=0;a<e.length;a++){var s=e[a];s.H[n]==t?o.push(s):void 0==r||s.H[n]<r?(i=[s],r=s.H[n]):s.H[n]==r&&i.push(s)}return 0<o.length?o:i},en=function(e){return 0==e.indexOf(".")?e.substr(1):e},tn=function(e){return e?(1<e.length&&e.lastIndexOf("/")==e.length-1&&(e=e.substr(0,e.length-1)),0!=e.indexOf("/")&&(e="/"+e),e):"/"},nn=function(e){return"/"==(e=tn(e))?1:e.split("/").length};function rn(e,t,n){"none"==t&&(t="");var r=[],o=j(e);e="__utma"==e?6:2;for(var i=0;i<o.length;i++){var a=(""+o[i]).split(".");a.length>=e&&r.push({hash:a[0],R:o[i],O:a})}if(0!=r.length)return 1==r.length?r[0]:on(t,r)||on(n,r)||on(null,r)||r[0]}function on(e,t){var n;null==e?n=e=1:(n=$n(e),e=$n(c(e,".")?e.substring(1):"."+e));for(var r=0;r<t.length;r++)if(t[r].hash==n||t[r].hash==e)return t[r]}var an=new RegExp(/^https?:\/\/([^\/:]+)/),sn=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function un(e,t){var n=new Date,r=_.navigator,o=r.plugins||[];for(e=[e,r.userAgent,n.getTimezoneOffset(),n.getYear(),n.getDate(),n.getHours(),n.getMinutes()+t],t=0;t<o.length;++t)e.push(o[t].description);return $n(e.join("."))}var cn=function(e){n(48),this.target=e,this.T=!1};cn.prototype.ca=function(e,t){if(e.tagName){if("a"==e.tagName.toLowerCase())return void(e.href&&(e.href=ln(this,e.href,t)));if("form"==e.tagName.toLowerCase())return fn(this,e)}if("string"==typeof e)return ln(this,e,t)};var ln=function(e,t,n){(o=sn.exec(t))&&3<=o.length&&(t=o[1]+(o[3]?o[2]+o[3]:"")),e=e.target.get("linkerParam");var r=t.indexOf("?"),o=t.indexOf("#");return n?t+=(-1==o?"#":"&")+e:(n=-1==r?"?":"&",t=-1==o?t+(n+e):t.substring(0,o)+n+e+t.substring(o)),t.replace(/&+_ga=/,"&_ga=")},fn=function(e,t){if(t&&t.action){var n=e.target.get("linkerParam").split("=")[1];if("get"==t.method.toLowerCase()){e=t.childNodes||[];for(var r=0;r<e.length;r++)if("_ga"==e[r].name)return void e[r].setAttribute("value",n);(e=x.createElement("input")).setAttribute("type","hidden"),e.setAttribute("name","_ga"),e.setAttribute("value",n),t.appendChild(e)}else"post"==t.method.toLowerCase()&&(t.action=ln(e,t.action))}};function dn(e,t){if(t==x.location.hostname)return!1;for(var n=0;n<e.length;n++)if(e[n]instanceof RegExp){if(e[n].test(t))return!0}else if(0<=t.indexOf(e[n]))return!0;return!1}cn.prototype.S=function(e,t,r){function o(r){try{var o;r=r||_.event;e:{var a=r.target||r.srcElement;for(r=100;a&&0<r;){if(a.href&&a.nodeName.match(/^a(?:rea)?$/i)){o=a;break e}a=a.parentNode,r--}o={}}("http:"==o.protocol||"https:"==o.protocol)&&dn(e,o.hostname||"")&&o.href&&(o.href=ln(i,o.href,t))}catch(e){n(26)}}var i=this;this.T||(this.T=!0,p(x,"mousedown",o,!1),p(x,"keyup",o,!1)),r&&p(x,"submit",function(t){if((t=(t=t||_.event).target||t.srcElement)&&t.action){var n=t.action.match(an);n&&dn(e,n[1])&&fn(i,t)}})};var hn,pn=/^(GTM|OPT)-[A-Z0-9]+$/,vn=/;_gaexp=[^;]*/g,mn=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,gn=function(e,t,r){this.U=at,this.aa=t,(t=r)||(t=(t=ee(e,Et))&&"t0"!=t?En.test(t)?"_gat_"+O(ee(e,Tt)):"_gat_"+O(t):"_gat"),this.Y=t,zt(new Bt(10),e)&&(n(30),this.pa=!0)},bn=function(e,t){t.get(e.U)||("1"==j(e.Y)[0]?t.set(e.U,"",!0):t.set(e.U,""+G(),!0))},yn=function(e,t){if(t.get(e.U)){var n=6e5;e.pa&&(n/=10),L(e.Y,"1",t.get(Ot),t.get(Lt),t.get(Tt),n)}},wn=function(e,t){if(t.get(e.U)){var n=new E,r=function(e){oe(e).F&&n.set(oe(e).F,t.get(e))};r(fe),r(de),r(Tt),r(_t),r(kt),r(e.U),n.set(oe(ot).F,o(t));var i=e.aa;n.map(function(e,t){i+=h(e)+"=",i+=h(""+t)+"&"}),i+="z="+G(),f(i),t.set(e.U,"",!0)}},En=/^gtm\d+$/,_n=function(e,t){var n;(e=e.b).get("dcLoaded")||(r(e,29),(t=t||{})[jt]&&(n=O(t[jt])),function(e,t){var n=t.get(vt);t.set(vt,function(t){bn(e,t);var r=n(t);return yn(e,t),r});var r=t.get(mt);t.set(mt,function(t){var n=r(t);return wn(e,t),n})}(t=new gn(e,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",n),e),e.set("dcLoaded",!0))},xn=function(e){if(!e.get("dcLoaded")&&"cookie"==e.get(Ct)){r(e,51);var t=new gn(e);bn(t,e),yn(t,e),e.get(t.U)&&(e.set(qt,1,!0),e.set(It,M()+"/r/collect",!0))}},kn=function(e){return e?(1*e).toFixed(3):"0"},Tn=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,jn=function(e){function t(e,t){i.b.data.set(e,t)}function r(e,n){t(e,n),i.filters.add(e)}function o(e,t,r){zt(new Bt(1e4,!0,t),i.b)&&(e=j(e))&&0<e.length&&n(r)}var i=this;this.b=new J,this.filters=new I,t(Et,e[Et]),t(Tt,l(e[Tt])),t(jt,e[jt]),t(Lt,e[Lt]||y()),t(Ot,e[Ot]),t(St,e[St]),t(At,e[At]),t(Mt,e[Mt]),t(Dt,e[Dt]),t(Pt,e[Pt]),t(Ht,e[Ht]),t(Rt,e[Rt]),t(Nt,e[Nt]),t(Ct,e[Ct]),t(kt,e[kt]),t(xt,e[xt]),t(fe,1),t(de,"j48"),r(st,F),r(ut,W),r(ct,B),r(lt,Y),r(ft,$t),r(dt,Jt),r(ht,q),r(pt,$),r(gt,V),r(bt,U),r(wt,xn),r(vt,z),r(mt,X),r(yt,Yt(this)),Ln(this.b,e[_t]),On(this.b),this.b.set(he,function(){var e=_.gaGlobal=_.gaGlobal||{};return e.hid=e.hid||G()}()),function(e,t,n){if(!hn){var r;r=x.location.hash;var o=_.name,i=/^#?gaso=([^&]*)/;(o=(r=(r=r&&r.match(i)||o&&o.match(i))?r[1]:j("GASO")[0]||"")&&r.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))&&(L("GASO",""+r,n,t,e,0),window._udo||(window._udo=t),window._utcp||(window._utcp=n),e=o[1],m("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(e?"prefix="+e+"&":"")+G(),"_gasojs")),hn=!0}}(this.b.get(Tt),this.b.get(Lt),this.b.get(Ot)),this.ra=new Bt(1e4,!0,"gaexp10"),o("_gid","gacookie11",41),o("_gaid","gacookie12",44)},Ln=function(e,t){if("cookie"==ee(e,Ct)){var r;Gt=!1;e:{var o=j(ee(e,jt));if(o&&!(1>o.length)){r=[];for(var i=0;i<o.length;i++){var a,s=(a=o[i].split(".")).shift();("GA1"==s||"1"==s)&&1<a.length?(1==(s=a.shift().split("-")).length&&(s[1]="1"),s[0]*=1,s[1]*=1,a={H:s,s:a.join(".")}):a=void 0,a&&r.push(a)}if(1==r.length){n(13),r=r[0].s;break e}if(0!=r.length){if(n(14),o=en(ee(e,Lt)).split(".").length,1==(r=Qt(r,o,0)).length){r=r[0].s;break e}o=nn(ee(e,Ot)),r=(r=Qt(r,o,1))[0]&&r[0].s;break e}n(12)}r=void 0}r||(r=ee(e,Lt),void 0!=(r=rn("__utma",o=ee(e,At)||y(),r))?(n(10),r=r.O[1]+"."+r.O[2]):r=void 0),r&&(e.data.set(_t,r),Gt=!0)}if(r=e.get(Pt),(i=b(x.location[r?"href":"search"],"_ga"))&&(e.get(Dt)?-1==(r=i.indexOf("."))?n(22):(o=i.substring(r+1),"1"!=i.substring(0,r)?n(22):-1==(r=o.indexOf("."))?n(22):(i=o.substring(0,r))!=un(r=o.substring(r+1),0)&&i!=un(r,-1)&&i!=un(r,-2)?n(23):(n(11),e.data.set(_t,r))):n(21)),t&&(n(9),e.data.set(_t,h(t))),!e.get(_t))if(t=(t=_.gaGlobal&&_.gaGlobal.vid)&&-1!=t.search(/^(?:utma\.)?\d+\.\d+$/)?t:void 0)n(17),e.data.set(_t,t);else{for(n(8),r=(t=_.navigator.userAgent+(x.cookie?x.cookie:"")+(x.referrer?x.referrer:"")).length,o=_.history.length;0<o;)t+=o--^r++;e.data.set(_t,[G()^2147483647&$n(t),Math.round((new Date).getTime()/1e3)].join("."))}Kt(e)},On=function(e){var t=_.navigator,r=_.screen,o=x.location;if(e.set(Ee,function(e){var t=x.referrer;if(/^https?:\/\//i.test(t)){if(e)return t;e="//"+x.location.hostname;var n=t.indexOf(e);if(!(5!=n&&6!=n||"/"!=(e=t.charAt(n+e.length))&&"?"!=e&&""!=e&&":"!=e))return;return t}}(e.get(Nt))),o){var i=o.pathname||"";"/"!=i.charAt(0)&&(n(31),i="/"+i),e.set(we,o.protocol+"//"+o.hostname+i+o.search)}r&&e.set(je,r.width+"x"+r.height),r&&e.set(Te,r.colorDepth+"-bit");r=x.documentElement;var a=(i=x.body)&&i.clientWidth&&i.clientHeight,s=[];if(r&&r.clientWidth&&r.clientHeight&&("CSS1Compat"===x.compatMode||!a)?s=[r.clientWidth,r.clientHeight]:a&&(s=[i.clientWidth,i.clientHeight]),r=0>=s[0]||0>=s[1]?"":s.join("x"),e.set(Le,r),e.set(Se,function(){var e,t,n;if((n=(n=_.navigator)?n.plugins:null)&&n.length)for(var r=0;r<n.length&&!t;r++){var o=n[r];-1<o.name.indexOf("Shockwave Flash")&&(t=o.description)}if(!t)try{t=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")).GetVariable("$version")}catch(e){}if(!t)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),t="WIN 6,0,21,0",e.AllowScriptAccess="always",t=e.GetVariable("$version")}catch(e){}if(!t)try{t=(e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}catch(e){}return t&&(e=t.match(/[\d]+/g))&&3<=e.length&&(t=e[0]+"."+e[1]+" r"+e[2]),t||void 0}()),e.set(ke,x.characterSet||x.charset),e.set(Oe,t&&"function"==typeof t.javaEnabled&&t.javaEnabled()||!1),e.set(xe,(t&&(t.language||t.browserLanguage)||"").toLowerCase()),o&&e.get(Pt)&&(t=x.location.hash)){for(t=t.split(/[?&#]+/),o=[],r=0;r<t.length;++r)(c(t[r],"utm_id")||c(t[r],"utm_campaign")||c(t[r],"utm_source")||c(t[r],"utm_medium")||c(t[r],"utm_term")||c(t[r],"utm_content")||c(t[r],"gclid")||c(t[r],"dclid")||c(t[r],"gclsrc"))&&o.push(t[r]);0<o.length&&(t="#"+o.join("&"),e.set(we,e.get(we)+t))}};jn.prototype.get=function(e){return this.b.get(e)},jn.prototype.set=function(e,t){this.b.set(e,t)};var Sn={pageview:[_e],event:[Ae,Me,Ce,De],social:[Pe,He,Re],timing:[We,Ue,Ge,Ye]};jn.prototype.send=function(e){var t,r;1>arguments.length||("string"==typeof arguments[0]?(t=arguments[0],r=[].slice.call(arguments,1)):(t=arguments[0]&&arguments[0][pe],r=arguments),t&&((r=w(Sn[t]||[],r))[pe]=t,this.b.set(r,void 0,!0),this.filters.D(this.b),this.b.data.m={},zt(this.ra,this.b)&&function(e){var t=_.performance;if(t&&t.getEntriesByName){n(35);var r="https://www.google-analytics.com/analytics.js?wpid="+e;m(r,void 0,void 0,function(){try{var o=1,i=t.getEntriesByName("https://www.google-analytics.com/analytics.js");i&&0!=i.length||(i=t.getEntriesByName("http://www.google-analytics.com/analytics.js"),o=0);var a=t.getEntriesByName(r);if(i&&1==i.length&&a&&1==a.length){n(37);var s=i[0],u=a[0],c={tid:e,ad:kn(s.duration),bd:kn(u.duration),ar:kn(s.responseEnd-s.requestStart),br:kn(u.responseEnd-u.requestStart),an:kn(s.domainLookupEnd-s.domainLookupStart),bn:kn(u.domainLookupEnd-u.domainLookupStart),ac:kn(s.connectEnd-s.connectStart),bc:kn(u.connectEnd-u.connectStart),as:o};for(var l in(o=[]).push("_v=j48"),o.push("id=10"),c)c.hasOwnProperty(l)&&o.push(l+"="+h(c[l]));o.push("z="+G()),D("https://www.google-analytics.com/u/d",o.join("&"),d)}}catch(e){}})}}(this.b.get(Tt))))},jn.prototype.ma=function(e,t){var n=this;qn(e,n,t)||(Bn(e,function(){qn(e,n,t)}),Fn(String(n.get(Et)),e,void 0,t,!0))};var An,Mn,Cn,Dn,Pn=function(e){return"prerender"!=x.visibilityState&&(e(),!0)},Hn=function(e){if(!Pn(e)){n(16);var t=!1,r=function(){if(!t&&Pn(e)){t=!0;var n=r,o=x;o.removeEventListener?o.removeEventListener("visibilitychange",n,!1):o.detachEvent&&o.detachEvent("onvisibilitychange",n)}};p(x,"visibilitychange",r)}},Rn=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,Nn=function(e){if(a(e[0]))this.u=e[0];else{var t=Rn.exec(e[0]);if(null!=t&&4==t.length&&(this.c=t[1]||"t0",this.K=t[2]||"",this.C=t[3],this.a=[].slice.call(e,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(u(this.a[1])?this.X=this.a[1]:this.W=this.a[1]))),t=e[1],e=e[2],!this.C)throw"abort";if(this.i&&(!u(t)||""==t))throw"abort";if(this.g&&(!u(t)||""==t||!a(e)))throw"abort";if(In(this.c)||In(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort"}};function In(e){return 0<=e.indexOf(".")||0<=e.indexOf(":")}An=new E,Cn=new E,Dn=new E,Mn={ec:45,ecommerce:46,linkid:47};var qn=function(e,t,n){t==Un||t.get(Et);var r=An.get(e);return!!a(r)&&(t.plugins_=t.plugins_||new E,!!t.plugins_.get(e)||(t.plugins_.set(e,new r(t,n||{})),!0))},Fn=function(e,t,r,o,i){if(!a(An.get(t))&&!Cn.get(t)){if(Mn.hasOwnProperty(t)&&n(Mn[t]),pn.test(t)){if(n(52),!(e=Un.j(e)))return!0;o={id:t,B:(r=o||{}).dataLayer||"dataLayer",ia:!!e.get("anonymizeIp"),na:i,G:!1},e.get("&gtm")==t&&(o.G=!0);var s=String(e.get("name"));"t0"!=s&&(o.target=s),T(String(e.get("trackingId")))||(o.ja=String(e.get(_t)),o.ka=Number(e.get(xt)),r=r.palindrome?mn:vn,r=(r=x.cookie.replace(/^|(; +)/g,";").match(r))?r.sort().join("").substring(1):void 0,o.la=r,o.qa=b(e.b.get(we)||"","gclid")),e=o.B,r=(new Date).getTime(),_[e]=_[e]||[],r={"gtm.start":r},i||(r.event="gtm.js"),_[e].push(r),r=function(e){function t(e,t){t&&(n+="&"+e+"="+h(t))}var n="https://www.google-analytics.com/gtm/js?id="+h(e.id);return"dataLayer"!=e.B&&t("l",e.B),t("t",e.target),t("cid",e.ja),t("cidt",e.ka),t("gac",e.la),t("aip",e.ia),e.na&&t("m","sync"),t("cycle",e.G),e.qa&&t("gclid",e.qa),n}(o)}!r&&Mn.hasOwnProperty(t)?(n(39),r=t+".js"):n(43),r&&(r&&0<=r.indexOf("/")||(r=(le||g()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+r),e=(o=Vn(r)).protocol,r=x.location.protocol,("https:"==e||e==r||"http:"==e&&"http:"==r)&&Xn(o)&&(m(o.url,void 0,i),Cn.set(t,!0)))}},Bn=function(e,t){var n=Dn.get(e)||[];n.push(t),Dn.set(e,n)},zn=function(e,t){An.set(e,t),t=Dn.get(e)||[];for(var n=0;n<t.length;n++)t[n]();Dn.set(e,[])},Xn=function(e){var t=Vn(x.location.href);return!!c(e.url,"https://www.google-analytics.com/gtm/js?id=")||!(e.query||0<=e.url.indexOf("?")||0<=e.path.indexOf("://"))&&(e.host==t.host&&e.port==t.port||(t="http:"==e.protocol?80:443,!("www.google-analytics.com"!=e.host||(e.port||t)!=t||!c(e.path,"/plugins/"))))},Vn=function(e){function t(e){var t=(e.hostname||"").split(":")[0].toLowerCase(),n=(e.protocol||"").toLowerCase();n=1*e.port||("http:"==n?80:"https:"==n?443:"");return e=e.pathname||"",c(e,"/")||(e="/"+e),[t,""+n,e]}var n=x.createElement("a");n.href=x.location.href;var r=(n.protocol||"").toLowerCase(),o=t(n),i=n.search||"",a=r+"//"+o[0]+(o[1]?":"+o[1]:"");return c(e,"//")?e=r+e:c(e,"/")?e=a+e:!e||c(e,"?")?e=a+o[2]+(e||i):0>e.split("/")[0].indexOf(":")&&(e=a+o[2].substring(0,o[2].lastIndexOf("/"))+"/"+e),n.href=e,r=t(n),{protocol:(n.protocol||"").toLowerCase(),host:r[0],port:r[1],path:r[2],query:n.search||"",url:e||""}},Wn={ga:function(){Wn.f=[]}};Wn.ga(),Wn.D=function(e){var t=Wn.J.apply(Wn,arguments);t=Wn.f.concat(t);for(Wn.f=[];0<t.length&&!Wn.v(t[0])&&(t.shift(),!(0<Wn.f.length)););Wn.f=Wn.f.concat(t)},Wn.J=function(e){for(var t=[],n=0;n<arguments.length;n++)try{var r=new Nn(arguments[n]);r.g?zn(r.a[0],r.a[1]):(r.i&&(r.ha=Fn(r.c,r.a[0],r.X,r.W)),t.push(r))}catch(e){}return t},Wn.v=function(e){try{if(e.u)e.u.call(_,Un.j("t0"));else{var t=e.c==ce?Un:Un.j(e.c);if(e.A)"t0"!=e.c||Un.create.apply(Un,e.a);else if(e.ba)Un.remove(e.c);else if(t)if(e.i){if(e.ha&&(e.ha=Fn(e.c,e.a[0],e.X,e.W)),!qn(e.a[0],t,e.W))return!0}else if(e.K){var n=e.C,r=e.a,o=t.plugins_.get(e.K);o[n].apply(o,r)}else t[e.C].apply(t,e.a)}}catch(e){}};var Un=function(e){n(1),Wn.D.apply(Wn,[arguments])};Un.h={},Un.P=[],Un.L=0,Un.answer=42;var Yn=[Tt,Lt,Et];Un.create=function(e){var t=w(Yn,[].slice.call(arguments));t[Et]||(t[Et]="t0");var n=""+t[Et];return Un.h[n]?Un.h[n]:(t=new jn(t),Un.h[n]=t,Un.P.push(t),t)},Un.remove=function(e){for(var t=0;t<Un.P.length;t++)if(Un.P[t].get(Et)==e){Un.P.splice(t,1),Un.h[e]=null;break}},Un.j=function(e){return Un.h[e]},Un.getAll=function(){return Un.P.slice(0)},Un.N=function(){"ga"!=ce&&n(49);var e=_[ce];if(!e||42!=e.answer){if(Un.L=e&&e.l,Un.loaded=!0,Ft("create",t=_[ce]=Un,t.create),Ft("remove",t,t.remove),Ft("getByName",t,t.j,5),Ft("getAll",t,t.getAll,6),Ft("get",t=jn.prototype,t.get,7),Ft("set",t,t.set,4),Ft("send",t,t.send),Ft("requireSync",t,t.ma),Ft("get",t=J.prototype,t.get),Ft("set",t,t.set),!g()&&!le){e:{for(var t=x.getElementsByTagName("script"),r=0;r<t.length&&100>r;r++){var o=t[r].src;if(o&&0==o.indexOf("https://www.google-analytics.com/analytics")){n(33),t=!0;break e}}t=!1}t&&(le=!0)}g()||le||!zt(new Bt(1e4))||(n(36),le=!0),(_.gaplugins=_.gaplugins||{}).Linker=cn,t=cn.prototype,zn("linker",cn),Ft("decorate",t,t.ca,20),Ft("autoLink",t,t.S,25),zn("displayfeatures",_n),zn("adfeatures",_n),e=e&&e.q,s(e)?Wn.D.apply(Un,e):n(50)}},Un.da=function(){for(var e=Un.getAll(),t=0;t<e.length;t++)e[t].get(Et)};var Gn=Un.N,Kn=_[ce];function $n(e){var t,n,r=1;if(e)for(r=0,n=e.length-1;0<=n;n--)r=0!=(t=266338304&(r=(r<<6&268435455)+(t=e.charCodeAt(n))+(t<<14)))?r^t>>21:r;return r}Kn&&Kn.r?Gn():Hn(Gn),Hn(function(){Wn.D(["provide","render",d])})}(window),function(){var e=window,t="push",n="length",r="prototype",o=function(e){if(e.get&&e.set){this.clear();var t=e.get("buildHitTask");e.set("buildHitTask",l(this,t)),e.set("_rlt",f(this,e.get("_rlt")))}},i={action:"pa",promoAction:"promoa",id:"ti",affiliation:"ta",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",step:"cos",label:"col",option:"col",options:"col",list:"pal",listSource:"pls"},a={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr",quantity:"qt",coupon:"cc","dimension(\\d+)":"cd","metric(\\d+)":"cm"},s={id:"id",name:"nm",creative:"cr",position:"ps"},u="detail checkout checkout_option click add remove purchase refund".split(" ");o[r].clear=function(){this.b=void 0,this.f=[],this.a=[],this.g=[],this.d=void 0},o[r].h=function(e,t){var n=t||{};"promo_click"==e?n.promoAction="click":n.action=e,this.b=d(n)},o[r].j=function(e){(e=d(e))&&this.f[t](e)},o[r].i=function(e){var r=d(e);if(r){var o,i=e.list||"";e=e.listSource||"";for(var a=0;a<this.a[n];a++)if(this.a[a].name==i){o=this.a[a];break}o||(o=new function(e,t){this.name=e,this.source=t,this.e=[]}(i,e),this.a[t](o)),o.e[t](r)}},o[r].c=function(e){(e=d(e))&&this.g[t](e)};var c=function(e,t,o){if("[object Array]"==Object[r].toString.call(Object(e)))for(var i=0;i<e[n];i++)t.call(o,e[i])};o[r].data=function(e){if(e&&e.ecommerce){(e=e.ecommerce).promoView&&c(e.promoView.promotions,this.c,this),e.promoClick&&(this.h("promo_click",e.promoClick.actionField),c(e.promoClick.promotions,this.c,this));for(var t=0;t<u[n];t++){var r=e[u[t]];if(r){this.h(u[t],r.actionField),c(r.products,this.j,this);break}}c(e.impressions,this.i,this),e.currencyCode&&(this.d=e.currencyCode)}};var l=function(e,t){return function(r){var o,u,c;for(e.b&&h(i,e.b,r,"&"),o=0;o<e.f[n];o++)u="&pr"+(o+1),h(a,e.f[o],r,u);for(o=0;o<e.a[n];o++){u="&il"+(o+1),(c=e.a[o]).name&&r.set(u+"nm",c.name,!0),c.source&&r.set(u+"ls",c.source,!0);for(var l=0;l<c.e[n];l++)h(a,c.e[l],r,u+"pi"+(l+1))}for(o=0;o<e.g[n];o++)u="&promo"+(o+1),h(s,e.g[o],r,u);return e.d&&r.set("&cu",e.d,!0),e.clear(),t(r)}},f=function(e,t){return function(n){var r=e.b&&e.b.action;if("purchase"!=r&&"refund"!=r)return t(n)}},d=function(e){var t=0,n={};if(e&&"object"==typeof e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r],t++);return t?n:void 0},h=function(e,t,n,r){for(var o in t)if(t.hasOwnProperty(o))for(var i in e)if(e.hasOwnProperty(i)){var a=o.match("^"+i+"$");a&&n.set(r+e[i]+a.slice(1).join(""),t[o],!0)}};!function(){e.gaplugins=e.gaplugins||{},e.gaplugins.EC=o,o[r].setAction=o[r].h,o[r].addProduct=o[r].j,o[r].addImpression=o[r].i,o[r].addPromo=o[r].c,o[r].clear=o[r].clear,o[r].data=o[r].data;var n=e.GoogleAnalyticsObject||"ga";e[n]=e[n]||function(){(e[n].q=e[n].q||[])[t](arguments)},e[n]("provide","ec",o)}()}(),window.ga||(window.ga=function(){window.ga.q.push(arguments)},window.ga.q=[]);var un=Object.freeze({trackPageview:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.page=e,window.ga("send","pageview",t)},setDimension:function(e,t){window.ga("set",e,t)},setGlobalLocation:function(e){window.ga("set",{location:e})},setGlobalTitle:function(e){window.ga("set",{title:e})},setGlobalAccount:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};window.ga("create",e,t,n),window.ga("set","transport","sendBeacon"in window.navigator?"beacon":"xhr")},providePlugin:function(e,t){var n=window[window.GoogleAnalyticsObject||"ga"];"function"==typeof n&&n("provide",e,t)},requirePlugin:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.ga(function(){window.ga("require",e,t)})},trackEvent:function(e){void 0===e.interactive&&(e.interactive=!0),window.ga("send","event",e.category,e.action,e.label,e.value,{nonInteraction:!e.interactive})}});function cn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ln(e)||function(e,t){var n=e.ownerDocument.activeElement;if(!n)return!1;if(t&&n===e)return!1;return on(n)&&e===n||e.contains(n)}(e,t)||function(e){return e.matches(":active")}(e)||function(e){return!(!e.closest(".is-dirty")&&!e.querySelector(".is-dirty"))}(e)}function ln(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e.querySelectorAll("input, textarea")[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var a=o.value;if((a instanceof HTMLInputElement||a instanceof HTMLTextAreaElement)&&fn(a))return!0}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}return!1}function fn(e){if(e instanceof HTMLInputElement&&("checkbox"===e.type||"radio"===e.type)){if(e.checked!==e.defaultChecked)return!0}else if(e.value!==e.defaultValue)return!0;return!1}var dn=Object.freeze({hasInteractions:cn,hasDirtyFields:ln}),hn=function(){function e(t){l(this,e),this.children=[],this.parent=t}return f(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}(),pn=function(){function e(t){l(this,e),this.parent=null,this.children={},this.parent=t||null}return f(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 hn(n),n.children[o]=i),i;i instanceof hn&&(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}(),vn=Object.freeze({Leaf:hn,RadixTrie:pn}),mn=null,gn=null,bn=[];function yn(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&&wn(e,r)}}function wn(e,t){gn||(gn=new MutationObserver(En)),mn||(mn=e.createElement("div"),gn.observe(mn,{attributes:!0})),bn.push(t),mn.setAttribute("data-twiddle",""+Date.now())}function En(){var e=bn;bn=[];for(var t=0;t<e.length;t++)try{e[t]()}catch(e){setTimeout(function(){throw e},0)}}var _n=new WeakMap,xn=new WeakMap,kn=new WeakMap,Tn=new WeakMap;function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1],a=r[2];o===Cn?(Ln(a,i),On(a,i)):o===Dn?Sn(a,i):o===Pn&&An(e.observers,i)}}function Ln(e,t){if(t instanceof e.elementConstructor){var n=_n.get(t);if(n||(n=[],_n.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=xn.get(t);o||(o={},xn.set(t,o)),o[""+e.id]=r}n.push(e.id)}}}function On(e,t){if(t instanceof e.elementConstructor){var n=Tn.get(t);if(n||(n=[],Tn.set(t,n)),-1===n.indexOf(e.id)){e.elements.push(t);var r=xn.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=kn.get(t);a||(a={},kn.set(t,a)),a[""+e.id]=i}}e.add&&e.add.call(void 0,t),n.push(e.id)}}}function Sn(e,t){if(t instanceof e.elementConstructor){var n=Tn.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=xn.get(t),i=o?o[""+e.id]:null;if(i&&i.remove&&i.remove.call(void 0,t),e.subscribe){var a=kn.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&&Tn.delete(t)}}}function An(e,t){var n=Tn.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=xn.get(t),u=s?s[""+i.id]:null;u&&u.remove&&u.remove.call(void 0,t);var c=kn.get(t),l=c?c[""+i.id]:null;l&&l.unsubscribe&&l.unsubscribe(),i.remove&&i.remove.call(void 0,t)}}Tn.delete(t)}}var Mn=null;var Cn=1,Dn=2,Pn=3;function Hn(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];"childList"===o.type?(Rn(e,t,o.addedNodes),Nn(e,t,o.removedNodes)):"attributes"===o.type&&In(e,t,o.target)}(function(e){if(null===Mn){var t=e.createElement("div"),n=e.createElement("div"),r=e.createElement("div");t.appendChild(n),n.appendChild(r),t.innerHTML="",Mn=r.parentNode!==n}return Mn})(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([Pn,a])}}}(e,t)}function Rn(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([Cn,o,s])}if("querySelectorAll"in o)for(var u=e.selectorSet.queryAll(o),c=0;c<u.length;c++)for(var l=u[c],f=l.data,d=l.elements,h=0;h<d.length;h++)t.push([Cn,d[h],f])}}function Nn(e,t,n){for(var r=0;r<n.length;r++){var o=n[r];if("querySelectorAll"in o){t.push([Pn,o]);for(var i=o.querySelectorAll("*"),a=0;a<i.length;a++)t.push([Pn,i[a]])}}}function In(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([Cn,n,i])}if("querySelectorAll"in n){var a=Tn.get(n);if(a)for(var s=0;s<a.length;s++){var u=e.observers[a[s]];u&&(e.selectorSet.matchesSelector(n,u.selector)||t.push([Dn,n,u]))}}}var qn="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},Fn=0;function Bn(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 G,this.mutationObserver=new MutationObserver(function(e,t){var n=[];Hn(e,n,t),jn(e,n)}.bind(this,this)),this._scheduleAddRootNodes=yn(this.ownerDocument,function(e){var t=[];Rn(e,t,[e.rootNode]),jn(e,t)}.bind(this,this)),this._handleThrottledChangedTargets=yn(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++)In(e,t,i[a])})(e,n,t),jn(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?wn(t,n):t.addEventListener("DOMContentLoaded",wn(t,n))}Bn.prototype.disconnect=function(){this.mutationObserver.disconnect()},Bn.prototype.observe=function(e,t){var n=void 0;"function"==typeof t?n={selector:e,initialize:t}:"object"===(void 0===t?"undefined":qn(t))?(n=t).selector=e:n=e;var r=this,o={id:Fn++,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},Bn.prototype._abortObserving=function(e){for(var t=e.elements,n=0;n<t.length;n++)Sn(e,t[n]);this.selectorSet.remove(e.selector,e),delete this.observers[e.id]},Bn.prototype.triggerObservers=function(e){var t=[];!function(e,t,n){if("querySelectorAll"in n){In(e,t,n);for(var r=n.querySelectorAll("*"),o=0;o<r.length;o++)In(e,t,r[o])}}(this,t,e),jn(this,t)};var zn=void 0;function Xn(){return zn||(zn=new Bn(window.document)),zn}function Vn(){var e;return(e=Xn()).observe.apply(e,arguments)}var Wn=Object.freeze({default:Bn,getDocumentObserver:Xn,observe:Vn,triggerObservers:function(){var e;return(e=Xn()).triggerObservers.apply(e,arguments)}}),Un=new pn;function Yn(e){return e.split(",").reduce(function(e,t){return e.push(t.split(" ")),e},[])}var Gn=Un,Kn=null;function $n(){Kn=null,Gn=Un}document.addEventListener("keydown",function(e){if(!(e.target instanceof Node&&on(e.target))){null!=Kn&&clearTimeout(Kn),Kn=setTimeout($n,1500);var t,n=Gn.get(Xe(e));if(n)return Gn=n,n instanceof hn?(be(e.target,"hotkey:activate",{originalEvent:e}),on(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 $n()):void 0;else $n()}});var Jn=new WeakMap;Vn("[data-hotkey]",{add:function(e){var t=Yn(e.getAttribute("data-hotkey")||"").map(function(t){return Un.insert(t).add(e)});Jn.set(e,t)},remove:function(e){var t=Jn.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 Zn=Object.freeze({expandHotkeyToEdges:Yn}),Qn=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}}();function er(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(er.prototype,HTMLElement.prototype),Object.setPrototypeOf(er,HTMLElement);var tr=new WeakMap;function nr(e,t){setTimeout(function(){var n=t.ownerDocument.createEvent("Event");n.initEvent(e,!1,!1),t.dispatchEvent(n)},0)}function rr(e){return or(e).then(function(t){var n=e.parentNode;n&&(e.insertAdjacentHTML("afterend",t),n.removeChild(e))},function(){e.classList.add("is-error")})}function or(e){var t=e.src,n=tr.get(e);return n&&n.src===t?n.data:(n=t?e.load():Promise.reject(new Error("missing src")),tr.set(e,{src:t,data:n}),n)}var ir=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}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,er),Qn(t,[{key:"attributeChangedCallback",value:function(e){"src"===e&&this._attached&&rr(this)}},{key:"connectedCallback",value:function(){this._attached=!0,this.src&&rr(this)}},{key:"disconnectedCallback",value:function(){this._attached=!1}},{key:"request",value:function(){var e=this.src;if(!e)throw new Error("missing src");return new Request(e,{method:"GET",credentials:"same-origin",headers:{Accept:"text/html"}})}},{key:"load",value:function(){var e=this;return Promise.resolve().then(function(){return nr("loadstart",e),e.fetch(e.request())}).then(function(e){if(200!==e.status)throw new Error("Failed to load resource: the server responded with a status of "+e.status);var t=e.headers.get("Content-Type");if(!t||!t.match(/^text\/html/))throw new Error("Failed to load resource: expected text/html but was "+t);return e}).then(function(e){return e.text()}).then(function(t){return nr("load",e),nr("loadend",e),t},function(t){throw nr("error",e),nr("loadend",e),t})}},{key:"fetch",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return fetch(e)})},{key:"src",get:function(){var e=this.getAttribute("src");if(e){var t=this.ownerDocument.createElement("a");return t.href=e,t.href}return""},set:function(e){e?this.setAttribute("src",e):this.removeAttribute("src")}},{key:"data",get:function(){return or(this)}}],[{key:"observedAttributes",get:function(){return["src"]}}]),t}();window.customElements.get("include-fragment")||(window.IncludeFragmentElement=ir,window.customElements.define("include-fragment",ir)),IncludeFragmentElement.prototype.fetch=Yt;var ar=Object.freeze({pluralize:function(e,t){return t+(e>1||0===e?"s":"")},pluralizeNode:function(e,t){var n=1===e?"data-singular-string":"data-plural-string",r=t.getAttribute(n);null!=r&&(t.textContent=r)}}),sr=Object.freeze({weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"]}),ur=null;function cr(e){ur&&lr(ur),be(e,"menu:activate")&&(document.addEventListener("keydown",dr),document.addEventListener("click",fr),ur=e,mt(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"))}),be(e,"menu:activated"))}function lr(e){be(e,"menu:deactivate")&&(document.removeEventListener("keydown",dr),document.removeEventListener("click",fr),ur=null,mt(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"))}),be(e,"menu:deactivated"))}function fr(e){if(ur){var t=e.target;o(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(ur);ur.contains(t)||r||(e.preventDefault(),lr(ur))}}function dr(e){if(ur){var t=document.activeElement;t&&"Escape"===e.key&&(ur.contains(t)&&t.blur(),e.preventDefault(),lr(ur))}}ge("click",".js-menu-container",function(e){var t=e.currentTarget;o(t instanceof HTMLElement,"app/assets/modules/github/menu.js:156"),e.target.closest(".js-menu-target")instanceof HTMLElement?(e.preventDefault(),t===ur?lr(t):cr(t)):e.target.closest(".js-menu-content")||t===ur&&(e.preventDefault(),lr(t))}),ge("click",".js-menu-container .js-menu-close",function(e){var t=e.currentTarget.closest(".js-menu-container");o(t instanceof HTMLElement,"expected container to be .js-menu-container -- app/assets/modules/github/menu.js:183"),lr(t),e.preventDefault()}),Vn(".js-menu-container.active",{add:function(){var e=document.body;o(e,"app/assets/modules/github/menu.js:192"),e.classList.add("menu-active")},remove:function(){var e=document.body;o(e,"app/assets/modules/github/menu.js:197"),e.classList.remove("menu-active")}});var hr=Object.freeze({activate:cr,deactivate:lr}),pr=function e(t){var n=this;l(this,e),this.closed=!1,this.unsubscribe=function(){t(),n.closed=!0}};function vr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.addEventListener(t,n,r),new pr(function(){e.removeEventListener(t,n,r)})}var mr=Object.freeze({fromEvent:vr});function gr(e){var t=br(e);if(t)return t.defaultView}function br(e){return e?9===e.nodeType?e:e.ownerDocument?e.ownerDocument:e.document?e.document:null:null}var yr=Object.freeze({getWindow:gr,getDocument:br});function wr(e,t){var n=br(e);if(n){e!==n&&e!==n.defaultView&&e!==n.documentElement&&e!==n.body||(e=n);var r=n.defaultView.Document,i=n.defaultView.HTMLElement;if(null==t&&(t={}),null==t.top&&null==t.left)if(t.target){var a=jt(t.target,e);null!=a&&(t.top=a.top,t.left=a.left)}else if(e instanceof i){var s=jt(e,e.offsetParent);e=e.offsetParent,null!=s&&(t.top=s.top,t.left=s.left)}if(e instanceof r||e===n.body){var u=null!=t.top?t.top:n.defaultView.pageYOffset,c=null!=t.left?t.left:n.defaultView.pageXOffset;n.defaultView.scrollTo(c,u)}else o(e instanceof i,"container is not HTMLElement -- app/assets/modules/github/scrollto.js:62"),null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left)}}var Er=Object.freeze({default:wr}),_r=navigator.userAgent.match(/Macintosh/),xr=_r?"metaKey":"ctrlKey",kr=_r?"Meta":"Control",Tr=!1,jr={x:0,y:0};function Lr(e){o(e instanceof MouseEvent,"app/assets/modules/github/navigation.js:142"),jr.x===e.clientX&&jr.y===e.clientY||(Tr=!1),jr={x:e.clientX,y:e.clientY}}function Or(e){if(!Tr){var t=e.currentTarget;if(o(t instanceof HTMLElement,"app/assets/modules/github/navigation.js:157"),t.closest(".js-active-navigation-container")){o(e.target instanceof Element,"app/assets/modules/github/navigation.js:161");var n=e.target.closest(".js-navigation-item");n&&Fr(n,t)}}}Vn(".js-navigation-container",{subscribe:function(e){return vr(e,"mousemove",Lr)}}),Vn(".js-navigation-container",{subscribe:function(e){return vr(e,"mouseover",Or)}});var Sr=0;function Ar(e){if(!(e.target!==document.body&&e.target instanceof HTMLElement)||e.target.classList.contains("js-navigation-enable")){Tr=!0;var t=Br(),n=void 0;if(t)n=be(t.querySelector('.js-navigation-item[aria-selected="true"]')||t,"navigation:keydown",{hotkey:Xe(e),originalEvent:e,originalTarget:e.target});n||e.preventDefault()}}function Mr(e){be(e.currentTarget,"navigation:open",{modifierKey:e.modifierKey||e.altKey||e.ctrlKey||e.metaKey,shiftKey:e.shiftKey})||e.preventDefault()}function Cr(e){var t=Br();e!==t&&(t&&Dr(t),e.classList.add("js-active-navigation-container"))}function Dr(e){e.classList.remove("js-active-navigation-container")}Vn(".js-active-navigation-container",{add:function(){1===++Sr&&document.addEventListener("keydown",Ar)},remove:function(){0===--Sr&&document.removeEventListener("keydown",Ar)}}),ge("navigation:keydown",".js-active-navigation-container",function(e){o(e instanceof CustomEvent,"app/assets/modules/github/navigation.js:229");var t=e.currentTarget,n=e.detail.originalTarget.matches("input, textarea"),r=e.target;if(r.classList.contains("js-navigation-item"))if(n){if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":Ir(r,t);break;case"Control+p":Nr(r,t)}switch(Xe(e.detail.originalEvent)){case"ArrowUp":Nr(r,t);break;case"ArrowDown":Ir(r,t);break;case"Enter":case kr+"+Enter":qr(r,e.detail.originalEvent[xr])}}else{if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":Ir(r,t);break;case"Control+p":Nr(r,t);break;case"Alt+v":!function(e,t){var n=zr(t),r=n.indexOf(e),o=kt(e);if(null==o)return;var i=void 0,a=void 0;for(;(i=n[r-1])&&(a=Tt(i,o))&&a.top>=0;)r--;if(i){var s=Fr(i,t);if(s)return;Vr(o,i)}}(r,t);break;case"Control+v":!function(e,t){var n=zr(t),r=n.indexOf(e),o=kt(e);if(null==o)return;var i=void 0,a=void 0;for(;(i=n[r+1])&&(a=Tt(i,o))&&a.bottom>=0;)r++;if(i){var s=Fr(i,t);if(s)return;Vr(o,i)}}(r,t)}switch(Xe(e.detail.originalEvent)){case"j":case"J":Ir(r,t);break;case"k":case"K":Nr(r,t);break;case"o":case"Enter":case kr+"+Enter":qr(r,e.detail[xr])}}else{var i=zr(t)[0];if(i)if(n){if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":Fr(i,t)}switch(Xe(e.detail.originalEvent)){case"ArrowDown":Fr(i,t)}}else{if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":case"Control+v":Fr(i,t)}switch(Xe(e.detail.originalEvent)){case"j":Fr(i,t)}}}if(n){if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":case"Control+p":e.preventDefault()}switch(Xe(e.detail.originalEvent)){case"ArrowUp":case"ArrowDown":e.preventDefault();break;case"Enter":e.preventDefault()}}else{if(_r)switch(Xe(e.detail.originalEvent)){case"Control+n":case"Control+p":case"Control+v":case"Alt+v":e.preventDefault()}switch(Xe(e.detail.originalEvent)){case"j":case"k":e.preventDefault();break;case"o":case"Enter":case xr+"+Enter":e.preventDefault()}}}),ge("click",".js-active-navigation-container .js-navigation-item",function(e){o(e instanceof MouseEvent,"app/assets/modules/github/navigation.js:385"),Mr(e)}),ge("navigation:keyopen",".js-active-navigation-container .js-navigation-item",function(e){o(e instanceof CustomEvent,"app/assets/modules/github/navigation.js:391");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 Mr(e)});var Pr=[];function Hr(e,t){t||(t=e);var n=zr(e)[0],r=t.closest(".js-navigation-item")||n;if(Cr(e),r instanceof HTMLElement){if(Fr(r,e))return;var i=kt(r);o(i,"app/assets/modules/github/navigation.js:498"),Wr(i,r)}}function Rr(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 Nr(e,t){var n=zr(t),r=n[n.indexOf(e)-1];if(r){if(Fr(r,t))return;var i=kt(r);o(i,"app/assets/modules/github/navigation.js:546"),"page"===Xr(t)?Vr(i,r):Wr(i,r)}}function Ir(e,t){var n=zr(t),r=n[n.indexOf(e)+1];if(r){if(Fr(r,t))return;var i=kt(r);o(i,"app/assets/modules/github/navigation.js:573"),"page"===Xr(t)?Vr(i,r):Wr(i,r)}}function qr(e,t){null==t&&(t=!1),be(e,"navigation:keyopen",{modifierKey:t})}function Fr(e,t){return!be(e,"navigation:focus")||(Rr(t),e.classList.add("navigation-focus"),e.setAttribute("aria-selected","true"),!1)}function Br(){return document.querySelector(".js-active-navigation-container")}function zr(e){return Array.from(e.querySelectorAll(".js-navigation-item")).filter(We)}function Xr(e){return e.getAttribute("data-navigation-scroll")||"item"}function Vr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"smooth",r=Tt(t,e);r&&(r.bottom<=0?t.scrollIntoView({behavior:n,block:"start"}):r.top<=0&&t.scrollIntoView({behavior:n,block:"end"}))}function Wr(e,t){var n=jt(t,e),r=Tt(t,e);null!=n&&null!=r&&(r.bottom<=0&&document.body?wr(e,{top:(null!=e.offsetParent?e.scrollHeight:document.body.scrollHeight)-(n.bottom+r.height)}):r.top<=0&&wr(e,{top:n.top}))}var Ur=Object.freeze({activate:Cr,push:function(e){var t=Br();t&&Pr.push(t),Cr(e)},pop:function(e){Dr(e),Rr(e);var t=Pr.pop();t&&Cr(t)},focus:Hr,clear:Rr,refocus:function(e,t){Rr(e),Hr(e,t)}}),Yr=14594616e5;var Gr=Object.freeze({formatNumber:function(e){return(""+e).replace(/(^|[^\w.])(\d{4,})/g,function(e,t,n){return t+n.replace(/\d(?=(?:\d\d\d)+(?!\d))/g,"$&,")})},parseFormattedNumber:function(e){return"string"==typeof e&&(e=e.replace(/,/g,"")),parseFloat(e)}}),Kr=!1,$r=new G;function Jr(e){var t=e.target;if(t instanceof HTMLElement&&t.nodeType!==Node.DOCUMENT_NODE){var n=!0,r=!1,o=void 0;try{for(var i,a=$r.matches(t)[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){i.value.data.call(null,t)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}}function Zr(e,t){Kr||(Kr=!0,document.addEventListener("focus",Jr,!0)),$r.add(e,t),document.activeElement&&document.activeElement.matches(e)&&t(document.activeElement)}var Qr=Object.freeze({onFocus:Zr,onKey:function(e,t,n){function r(t){t.currentTarget.removeEventListener(e,n),t.currentTarget.removeEventListener("blur",r)}Zr(t,function(t){t.addEventListener(e,n),t.addEventListener("blur",r)})},onInput:function(e,t){function n(e){e.currentTarget.removeEventListener("input",t),e.currentTarget.removeEventListener("blur",n)}Zr(e,function(e){e.addEventListener("input",t),e.addEventListener("blur",n)})}});function eo(){}var to=function(){function e(){l(this,e),this.previousReceiver={resolve:eo,reject:eo}}return f(e,[{key:"push",value:function(e){var t=this;return this.previousReceiver.resolve=this.previousReceiver.reject=eo,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}(),no=Object.freeze({default:to});function ro(e){for(var t=[];e&&(t.push(oo(e)),e!==br(e)&&!e.id);)e=e.parentNode;return t.reverse().join(" > ")}function oo(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 io=Object.freeze({default:ro}),ao=new WeakMap;function so(e,t){var n=function(e,t){var n=ht(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 u=a.value;if(u.href===t)return u}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}}(e,t);if(n){var r=ao.get(n);return n.remove(),ao.delete(n),r}}var uo=Object.freeze({popPrefetchResponseForRequest:so,setPrefetchResponse:function(e,t){ao.set(e,t)}}),co={container:null,timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0},lo=20,fo=void 0,ho=new to;function po(e,t,n){return e.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n}))}function vo(e){mo({url:e.url,container:e.container})}function mo(e){var t,n=(t=c(regeneratorRuntime.mark(function e(t){var n,o,i,c,l,f,d,h,p,v,m,g,b;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=fo,o=Ho(),i=t.headers.get("X-PJAX-Version"),e.next=5,t.text();case 5:if(c=e.sent,l=So(c,t,r),f=l.contents,d=xo(l.url),a&&(d.hash=a,l.url=d.href),!o||!i||o===i){e.next=13;break}return go(l.url),e.abrupt("return");case 13:if(f){e.next=16;break}return go(l.url),e.abrupt("return");case 16:if(fo={id:null!=r.id?r.id:Eo(),url:l.url,title:l.title,container:u,fragment:r.fragment,timeout:r.timeout},!0!==r.push&&!0!==r.replace||Se(fo,l.title,l.url),h=document.activeElement,p=null!=r.container&&r.container.contains(h),h&&p)try{h.blur()}catch(e){}l.title&&(document.title=l.title),po(s,"pjax:beforeReplace",{contents:f,state:fo,previousState:n}),Lo(s,f),(v=ht(s,"input[autofocus], textarea[autofocus]").pop())&&document.activeElement!==v&&v.focus(),Ao(l.scripts),m=r.scrollTo,a&&(g=Me(document,a))&&(b=g.getBoundingClientRect(),m=b.top+window.pageYOffset),"number"==typeof m&&window.scrollTo(window.pageXOffset,m),po(s,"pjax:success"),po(s,"pjax:complete"),po(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,co,e),o("string"==typeof r.url,"app/assets/modules/github/pjax.js:177"),r.requestUrl=r.url;var i=xo(r.url),a=i.hash,s=r.container;o(s,"app/assets/modules/github/pjax.js:183");var u=To(s);"GET"===r.type&&(i.search+=(i.search?"&":"")+"_pjax="+encodeURIComponent(u),r.url=i.toString()),fo||Se(fo={id:Eo(),url:window.location.href,title:document.title,container:u,fragment:r.fragment,timeout:r.timeout},fo.title,fo.url),vo.options=r,o("string"==typeof r.requestUrl,"app/assets/modules/github/pjax.js:324");var l,f,d=so(s,r.requestUrl);d||(o(r.url,"app/assets/modules/github/pjax.js:327"),d=Yt(r.url,{method:r.type,body:r.data,headers:{Accept:"text/html","X-PJAX":"true","X-PJAX-Container":u}}),"GET"===r.type&&"number"==typeof r.timeout&&r.timeout>0&&(d=Promise.race([d,new Promise(function(e,t){setTimeout(function(){po(s,"pjax:timeout")&&t(new Error("timeout"))},r.timeout)})]))),!0===r.push&&!0!==r.replace&&(l=fo.id,f=_o(s),Mo[l]=f,Do.push(l),Po(Co,0),Po(Do,lo),o("string"==typeof r.requestUrl,"app/assets/modules/github/pjax.js:355"),Oe(null,"",r.requestUrl)),po(s,"pjax:start",{url:r.url}),po(s,"pjax:send"),ho.push(d).then(n,function(e){var t=r.requestUrl;o("string"==typeof t,"app/assets/modules/github/pjax.js:197"),e.response&&(t=Oo(e.response,t));var n=po(s,"pjax:error");"GET"===r.type&&n&&go(t),po(s,"pjax:complete"),po(s,"pjax:end")})}function go(e){o(fo,"app/assets/modules/github/pjax.js:406"),Se(null,"",fo.url),window.location.replace(e)}var bo=!0,yo=window.location.href,wo=window.history.state;function Eo(){return(new Date).getTime()}function _o(e){var t=e.cloneNode(!0);return[To(e),Array.from(t.childNodes)]}function xo(e){var t=document.createElement("a");return t.href=e,t}function ko(e){return e.href.replace(/#.*/,"")}function To(e){if(e.id)return"#"+e.id;throw new Error("pjax container has no id")}function jo(e,t,n){var r=[],o=!0,i=!1,a=void 0;try{for(var s,u=e[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value;c instanceof Element&&(c instanceof n&&c.matches(t)&&r.push(c),r=r.concat(ht(c,t,n)))}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}return r}function Lo(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 Oo(e,t){var n,r=e.headers.get("X-PJAX-URL");return r?((n=xo(r)).search=n.search.replace(/([?&])(_pjax|_)=[^&]*/g,""),n.href.replace(/\?($|#)/,"$1")):t}function So(e,t,n){o("string"==typeof n.requestUrl,"app/assets/modules/github/pjax.js:612");var r={url:Oo(t,n.requestUrl),title:""},i=/<html/i.test(e);if("text/html"!==(t.headers.get("Content-Type")||"").split(";",1)[0].trim())return r;var a=void 0,s=void 0;if(i){var u=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i),c=e.match(/<body[^>]*>([\s\S.]*)<\/body>/i);a=u?Array.from(Ft(document,u[0]).childNodes):[],s=c?Array.from(Ft(document,c[0]).childNodes):[]}else a=s=Array.from(Ft(document,e).childNodes);if(0===s.length)return r;var l=jo(a,"title",HTMLTitleElement);r.title=l.length>0?l[l.length-1].textContent:"";var f=void 0;if(n.fragment){if("body"===n.fragment)f=s;else{var d=jo(s,n.fragment,Element);f=d.length>0?[d[0]]:[]}if(f.length&&("body"===n.fragment?r.contents=f:r.contents=f.reduce(function(e,t){return e.concat(Array.from(t.childNodes))},[]),!r.title)){var h=f[0];h instanceof Element&&(r.title=h.getAttribute("title")||h.getAttribute("data-title")||"")}}else i||(r.contents=s);if(r.contents){r.contents=r.contents.filter(function(e){return!(e instanceof Element)||!e.matches("title")});var p=!0,v=!1,m=void 0;try{for(var g,b=r.contents[Symbol.iterator]();!(p=(g=b.next()).done);p=!0){var y=g.value;if(y instanceof Element){var w=!0,E=!1,_=void 0;try{for(var x,k=y.querySelectorAll("title")[Symbol.iterator]();!(w=(x=k.next()).done);w=!0){x.value.remove()}}catch(e){E=!0,_=e}finally{try{!w&&k.return&&k.return()}finally{if(E)throw _}}}}}catch(e){v=!0,m=e}finally{try{!p&&b.return&&b.return()}finally{if(v)throw m}}var T=jo(r.contents,"script[src]",HTMLScriptElement),j=!0,L=!1,O=void 0;try{for(var S,A=T[Symbol.iterator]();!(j=(S=A.next()).done);j=!0){S.value.remove()}}catch(e){L=!0,O=e}finally{try{!j&&A.return&&A.return()}finally{if(L)throw O}}r.scripts=T,o(r.contents,"app/assets/modules/github/pjax.js:704"),r.contents=r.contents.filter(function(e){return-1===T.indexOf(e)})}return r.title&&(r.title=r.title.trim()),r}function Ao(e){if(e){var t=ht(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)},r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=n(a.value);if("object"===(void 0===c?"undefined":u(c)))return c.v}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}}}wo&&wo.container&&(fo=wo),"state"in window.history&&(bo=!1);var Mo={},Co=[],Do=[];function Po(e,t){for(;e.length>t;)delete Mo[e.shift()]}function Ho(){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){bo||ho.push(Promise.resolve(new Response));var t=fo,n=e.state,r=void 0;if(n&&n.container){if(bo&&yo===n.url)return;if(t){if(t.id===n.id)return;r=t.id<n.id?"forward":"back"}var o=Mo[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;Mo[t]=n,"forward"===e?(r=Do,o=Co):(r=Co,o=Do),r.push(t),(t=o.pop())&&delete Mo[t],Po(r,lo)}(r,t.id,_o(i)),po(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,scrollTo:!1};a?(po(i,"pjax:start"),fo=n,n.title&&(document.title=n.title),po(i,"pjax:beforeReplace",{contents:a,state:n,previousState:t}),Lo(i,a),po(i,"pjax:end")):mo(s),i.offsetHeight}else go(location.href)}bo=!1});var Ro=Object.freeze({click:function(e,t){var n=A(e.currentTarget,HTMLAnchorElement);if(!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==n.protocol||location.hostname!==n.hostname||n.href.indexOf("#")>-1&&ko(n)===ko(location)||e.defaultPrevented)){var r={url:n.href,container:null,target:n};Object.assign(r,t),po(n,"pjax:click",{options:r,relatedEvent:e})&&(mo(r),e.preventDefault(),po(n,"pjax:clicked",{options:r}))}},submit:function(e,t){var n=A(e.currentTarget,HTMLFormElement),r={type:(n.method||"GET").toUpperCase(),url:n.action,container:null,target:n};if(Object.assign(r,t),"GET"===r.type){if(n.querySelector("input[type=file]"))return;o("string"==typeof r.url,"app/assets/modules/github/pjax.js:142");var i=xo(r.url);i.search+=(i.search?"&":"")+an(n),r.url=i.toString()}else r.data=new FormData(n);mo(r),e.preventDefault()},default:vo,fetch:function(e,t){var n=e.closest("[data-pjax-container]");if(!n)throw new Error("no pjax container for "+ro(e));var r=To(n),o=xo(e.href);return o.search+=(o.search?"&":"")+"_pjax="+encodeURIComponent(r),Yt(o.href,{headers:Object.assign({Accept:"text/html","X-PJAX":"true","X-PJAX-Container":r},t&&t.headers)})},getState:function(){return fo}});function No(e){return new Promise(function(t){setTimeout(function(){t()},e)})}var Io=Object.freeze({delay:No}),qo=function(e){function t(){return l(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),f(t,[{key:"fetch",value:function(){var e=c(regeneratorRuntime.mark(function e(n){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fetch",this).call(this,n);case 2:if(202!==(r=e.sent).status){e.next=9;break}return e.next=6,No(o);case 6:return e.abrupt("return",this.fetch(n,1.5*o));case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]),t}(IncludeFragmentElement);window.customElements.get("poll-include-fragment")||(window.PollIncludeFragmentElement=qo,window.customElements.define("poll-include-fragment",qo));var Fo=function(){var e=c(regeneratorRuntime.mark(function e(){var t,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=dt(document,"link[rel=sso-modal]",HTMLLinkElement),e.next=3,_t({content:$t(document,t.href),dialogClass:"sso-modal"});case 3:return n=e.sent,r=null,window.external.ssoComplete=function(e){e.error?Xo(r=!1):(Xo(r=!0),Vo(e.expiresAround),window.focus()),window.external.ssoComplete=null},e.next=8,zo(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)}}(),Bo=function(){var e=c(regeneratorRuntime.mark(function e(){var t,n,r;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){e.next=4;break}return e.abrupt("return",!0);case 4:if(Wo(n)){e.next=6;break}return e.abrupt("return",!0);case 6:return r=A(t,HTMLLinkElement).href,e.abrupt("return",Kt(r));case 8:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}();function zo(e){return new Promise(function(t){e.addEventListener("dialog:remove",t,{once:!0})})}function Xo(e){var t=document.querySelector(".sso-modal");t&&(t.classList.remove("success","error"),e?t.classList.add("success"):t.classList.add("error"))}function Vo(e){var t=document.querySelector("meta[name=sso-expires-around]");t&&t.setAttribute("content",e)}function Wo(e){if(!e)return!0;var t=parseInt(A(e,HTMLMetaElement).content);return(new Date).getTime()/1e3>t}Vn(".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 Uo=null;function Yo(){Uo=null}var Go=c(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bo();case 2:if(e.sent){e.next=7;break}return Uo||(Uo=Fo().then(Yo).catch(Yo)),e.next=7,Uo;case 7:case"end":return e.stop()}},e,this)})),Ko=Object.freeze({default:Go}),$o=function(){var e=c(regeneratorRuntime.mark(function e(t,n,r,o){var i,a,s,u,c,l,f,d,h=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=!1,a=regeneratorRuntime.mark(function e(t){var a,s,u,c,l,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=Qo(),s=v(a,2),u=s[0],c=s[1],f={text:l=function(){return i=!0,c(),o},json:function(){return r.headers.set("Accept","application/json"),l()},html:function(){return r.headers.set("Accept","text/html"),l()}},e.next=5,Promise.race([u,t.data.call(null,n,f,r)]);case 5:case"end":return e.stop()}},e,h)}),s=!0,u=!1,c=void 0,e.prev=5,l=t[Symbol.iterator]();case 7:if(s=(f=l.next()).done){e.next=13;break}return d=f.value,e.delegateYield(a(d),"t0",10);case 10:s=!0,e.next=7;break;case 13:e.next=19;break;case 15:e.prev=15,e.t1=e.catch(5),u=!0,c=e.t1;case 19:e.prev=19,e.prev=20,!s&&l.return&&l.return();case 22:if(e.prev=22,!u){e.next=25;break}throw c;case 25:return e.finish(22);case 26:return e.finish(19);case 27:return e.abrupt("return",i);case 28:case"end":return e.stop()}},e,this,[[5,15,19,27],[20,,22,26]])}));return function(t,n,r,o){return e.apply(this,arguments)}}(),Jo=function(){var e=c(regeneratorRuntime.mark(function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Go();case 2:return e.next=4,window.fetch(t.url,{method:t.method,body:null!==t.body?t.body:void 0,headers:t.headers,credentials:"same-origin"});case 4:return n=e.sent,e.t0=n.url,e.t1=n.status,e.t2=n.statusText,e.t3=n.headers,i={url:e.t0,status:e.t1,statusText:e.t2,headers:e.t3,text:"",get json(){return n=this,r=JSON.parse(n.text),delete n.json,n.json=r,n.json},get html(){return n=this,It(Rt(document),n),o=Ft(document,n.text),delete n.html,n.html=o,n.html}},e.next=12,n.text();case 12:if(a=e.sent,i.text=a,!(i.status<300)){e.next=18;break}return e.abrupt("return",i);case 18:throw new Zo("request failed",i);case 19:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),Zo=function(e){function t(e,n){l(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.response=n,r}return h(t,e),t}(Error);function Qo(){var e=void 0,t=void 0,n=new Promise(function(n,r){e=n,t=r});return o("function"==typeof e,"app/assets/modules/github/remote-form.js:28"),o("function"==typeof t,"app/assets/modules/github/remote-form.js:29"),[n,e,t]}var ei=void 0,ti=[];function ni(e,t){ei||(ei=new G,document.addEventListener("submit",ri)),ei.add(e,t)}function ri(e){var t=A(e.target,HTMLFormElement),n=ei&&ei.matches(t);if(n&&0!==n.length){var r=function(e){var t={method:e.method||"GET",url:e.action,headers:new Headers({"X-Requested-With":"XMLHttpRequest"}),body:null};if("GET"===t.method.toUpperCase()){var n=an(e);n&&(t.url+=(~t.url.indexOf("?")?"&":"?")+n)}else t.body=new FormData(function(e){if(oi){for(var t=void 0,n=e.elements.length-1;n>=0&&((t=e.elements[n])instanceof HTMLButtonElement||t instanceof HTMLInputElement&&("submit"===t.type||"reset"===t.type||"text"===t.type&&!t.name));)n--;if(t instanceof HTMLInputElement&&(("checkbox"===t.type||"radio"===t.type)&&!t.checked||"file"===t.type)){var r=document.createElement("input");r.type="hidden",r.name="_ie11fix",e.append(r)}}return e}(e));return t}(t),o=Qo(),i=v(o,3),a=i[0],s=i[1],u=i[2];e.preventDefault(),$o(n,t,r,a).then(function(e){e?Jo(r).then(s,u).catch(function(){}).then(function(){var e=!0,n=!1,r=void 0;try{for(var o,i=ti[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){(0,o.value)(t)}}catch(e){n=!0,r=e}finally{try{!e&&i.return&&i.return()}finally{if(n)throw r}}}):t.submit()},function(e){t.submit(),setTimeout(function(){throw e})})}}var oi=/\bTrident\/.+\brv:11\./.test(navigator.userAgent);var ii=Object.freeze({afterRemote:function(e){ti.push(e)},remoteForm:ni,remoteUninstall:function(e,t){ei&&ei.remove(e,t)}}),ai=function(){var e=c(regeneratorRuntime.mark(function e(t){var n,r,i,a,s,u,c,l,f,d,h,p,v;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,o(n instanceof Element,"app/assets/modules/github/select-menu/loading.js:38"),n.classList.remove("js-load-contents"),n.classList.add("is-loading"),n.classList.remove("has-error"),r=n.getAttribute("data-contents-url"),o(r,"app/assets/modules/github/select-menu/loading.js:45"),i=new URL(r,window.location.origin),!(a=si.get(n))){e.next=31;break}for(s=new URLSearchParams(i.search.slice(1)),u=!0,c=!1,l=void 0,e.prev=14,f=a[Symbol.iterator]();!(u=(d=f.next()).done);u=!0)h=d.value,s.append(h[0],h[1]);e.next=22;break;case 18:e.prev=18,e.t0=e.catch(14),c=!0,l=e.t0;case 22:e.prev=22,e.prev=23,!u&&f.return&&f.return();case 25:if(e.prev=25,!c){e.next=28;break}throw l;case 28:return e.finish(25);case 29:return e.finish(22);case 30:i.search=s.toString();case 31:return p=n.querySelector(".js-select-menu-deferred-content"),v=void 0,e.prev=33,e.next=36,Go();case 36:if(!p){e.next=42;break}return e.next=39,Gt(i);case 39:v=e.sent,e.next=45;break;case 42:return e.next=44,Kt(i);case 44:v=e.sent;case 45:e.next=51;break;case 47:return e.prev=47,e.t1=e.catch(33),n.classList.add("has-error"),e.abrupt("return");case 51:return e.prev=51,n.classList.remove("is-loading"),e.finish(51);case 54:p?p.innerHTML=v:be(n,"selectmenu:data",{data:v}),(n.classList.contains("active")||n.hasAttribute("open"))&&be(n,"selectmenu:load");case 56:case"end":return e.stop()}},e,this,[[14,18,22,30],[23,,25,29],[33,47,51,54]])}));return function(t){return e.apply(this,arguments)}}(),si=new WeakMap;Vn(".js-select-menu.js-load-contents",{add:function(e){e.addEventListener("mouseenter",ai),e.addEventListener("menu:activate",ai)},remove:function(e){e.removeEventListener("mouseenter",ai),e.removeEventListener("menu:activate",ai)}});var ui=Object.freeze({setLoadingData:function(e,t){si.set(e,t)}});var ci,li=Object.freeze({getItem:function(e){try{return sessionStorage.getItem(e)}catch(e){return}},setItem:function(e,t){try{sessionStorage.setItem(e,t)}catch(e){}},removeItem:function(e){try{sessionStorage.removeItem(e)}catch(e){}}}),fi=function(){var e=c(regeneratorRuntime.mark(function e(){var t,n,r,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=document.body,o(t,"app/assets/modules/github/sudo.js:15"),n=dt(document,"link[rel=sudo-modal]",HTMLLinkElement),!((r=document.querySelector(".js-sudo-prompt"))instanceof HTMLTemplateElement)){e.next=8;break}return e.abrupt("return",r);case 8:if(!n){e.next=16;break}return e.next=11,$t(document,n.href);case 11:return i=e.sent,t.appendChild(i),e.abrupt("return",dt(document,".js-sudo-prompt",HTMLTemplateElement));case 16:throw new Error("couldn't load sudo prompt");case 17:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),di=function(){var e=c(regeneratorRuntime.mark(function e(){var t,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!hi){e.next=2;break}return e.abrupt("return",!1);case 2:return hi=!0,t=!1,e.next=6,fi();case 6:return n=e.sent,e.next=9,_t({content:n.content.cloneNode(!0)});case 9:return r=e.sent,ni(".js-sudo-form",function(){var e=c(regeneratorRuntime.mark(function e(n,r){var o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.text();case 3:e.next=22;break;case 5:if(e.prev=5,e.t0=e.catch(0),e.t0.response){e.next=9;break}throw e.t0;case 9:o=void 0,e.t1=e.t0.response.status,e.next=401===e.t1?13:429===e.t1?15:17;break;case 13:return o="Incorrect password.",e.abrupt("break",18);case 15:return o="Too many password attempts. Please wait and try again later.",e.abrupt("break",18);case 17:o="Failed to receive a response. Please try again later.";case 18:return dt(n,".js-sudo-error").textContent=o,dt(n,".js-sudo-error").hidden=!1,dt(n,".js-sudo-password",HTMLInputElement).value="",e.abrupt("return");case 22:t=!0,ft(n,"details").removeAttribute("open");case 24:case"end":return e.stop()}},e,this,[[0,5]])}));return function(t,n){return e.apply(this,arguments)}}()),e.next=13,new Promise(function(e){r.addEventListener("dialog:remove",function(){hi=!1,e()},{once:!0})});case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),hi=!1,pi=function(){var e=c(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kt("/sessions/in_sudo.json?requested_access_level="+t);case 2:if(e.sent){e.next=6;break}return e.next=6,di();case 6:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}();ge("click","[data-sudo-required]",(ci=c(regeneratorRuntime.mark(function e(t){var n,r,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=t.currentTarget,o(n instanceof HTMLElement,"app/assets/modules/github/sudo.js:93"),a=n.getAttribute("data-sudo-required"),o(r="low"===a||"medium"===a||"high"===a||"two_factor"===a?a:null,"app/assets/modules/github/sudo.js:95"),e.next=7,Kt("/sessions/in_sudo.json?requested_access_level="+r);case 7:if(i=e.sent,e.t0=i,e.t0){e.next=13;break}return e.next=12,di();case 12:e.t0=e.sent;case 13:if(!e.t0){e.next=16;break}n.removeAttribute("data-sudo-required"),n.click();case 16:case"end":return e.stop()}var a},e,this)})),function(e){return ci.apply(this,arguments)}));var vi=Object.freeze({default:pi}),mi=new WeakMap,gi=null;function bi(e,t){return e.closest("task-lists")===t.closest("task-lists")}function yi(e){if(e.currentTarget===e.target){var t=e.currentTarget;if(t instanceof Element){var n=t.closest(".contains-task-list");if(n&&(t.classList.add("is-ghost"),e.dataTransfer&&e.dataTransfer.setData("text/plain",t.textContent.trim()),t.parentElement)){var r=Array.from(t.parentElement.children),o=r.indexOf(t);gi={didDrop:!1,dragging:t,dropzone:t,sourceList:n,sourceSibling:r[o+1]||null,sourceIndex:o}}}}}function wi(e){if(gi){var t=e.currentTarget;t instanceof Element&&(bi(gi.dragging,t)?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),gi.dropzone!==t&&(gi.dragging.classList.add("is-dragging"),gi.dropzone=t,!function(e,t){if(e.parentNode===t.parentNode)for(var n=e;n;){if(n===t)return!0;n=n.previousElementSibling}return!1}(gi.dragging,t)?t.after(gi.dragging):t.before(gi.dragging))):e.stopPropagation())}}function Ei(e){if(gi){var t=e.currentTarget;if(t instanceof Element&&(gi.didDrop=!0,gi.dragging.parentElement)){var n=Array.from(gi.dragging.parentElement.children).indexOf(gi.dragging),r=t.closest(".contains-task-list");if(r&&(gi.sourceIndex!==n||gi.sourceList!==r)){gi.sourceList===r&&gi.sourceIndex<n&&n++;var o={list:gi.sourceList,index:gi.sourceIndex},i={list:r,index:n},a=mi.get(gi.dragging);a&&a({src:o,dst:i})}}}}function _i(){gi&&(gi.dragging.classList.remove("is-dragging"),gi.dragging.classList.remove("is-ghost"),gi.didDrop||gi.sourceList.insertBefore(gi.dragging,gi.sourceSibling),gi=null)}function xi(e){if(gi){var t=e.currentTarget;t instanceof Element&&(bi(gi.dragging,t)?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move")):e.stopPropagation())}}var ki=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ti=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}}(),ji=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 Li(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Li.prototype,HTMLElement.prototype),Object.setPrototypeOf(Li,HTMLElement);var Oi=new WeakMap,Si=function(e){function t(){ki(this,t);var e=ji(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.addEventListener("change",function(t){var n=t.target;n instanceof HTMLInputElement&&n.classList.contains("task-list-item-checkbox")&&e.dispatchEvent(new CustomEvent("task-lists:check",{bubbles:!0,detail:{position:function(e){var t=Ni(e);if(!t)throw new Error(".contains-task-list not found");var n=Array.from(t.querySelectorAll("li")).indexOf(e.closest(".task-list-item"));return[Fi(t),n]}(n),checked:n.checked}}))}),Oi.set(e,new MutationObserver(Ii.bind(null,e))),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,Li),Ti(t,[{key:"connectedCallback",value:function(){var e=Oi.get(this);e&&e.observe(this,{childList:!0,subtree:!0}),Ii(this)}},{key:"disconnectedCallback",value:function(){var e=Oi.get(this);e&&e.disconnect()}},{key:"attributeChangedCallback",value:function(e,t,n){if(t!==n)switch(e){case"disabled":qi(this)}}},{key:"disabled",get:function(){return this.hasAttribute("disabled")},set:function(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},{key:"sortable",get:function(){return this.hasAttribute("sortable")},set:function(e){e?this.setAttribute("sortable",""):this.removeAttribute("sortable")}}],[{key:"observedAttributes",get:function(){return["disabled"]}}]),t}(),Ai=document.createElement("template");Ai.innerHTML='\n  <span class="handle">\n    <svg class="drag-handle" aria-hidden="true" width="16" height="15" version="1.1" viewBox="0 0 16 15">\n      <path d="M12,4V5H4V4h8ZM4,8h8V7H4V8Zm0,3h8V10H4v1Z"></path>\n    </svg>\n  </span>';var Mi=new WeakMap;function Ci(e){if(!Mi.get(e)){Mi.set(e,!0);var t=e.closest("task-lists");if(t instanceof Si&&!(t.querySelectorAll(".task-list-item").length<=1)){var n=Ai.content.cloneNode(!0),r=n.querySelector(".handle");if(e.prepend(n),!r)throw new Error("handle not found");r.addEventListener("mouseenter",zi),r.addEventListener("mouseleave",Xi),function(e,t){mi.set(e,t),e.addEventListener("dragstart",yi),e.addEventListener("dragenter",wi),e.addEventListener("dragend",_i),e.addEventListener("drop",Ei),e.addEventListener("dragover",xi)}(e,Bi),e.addEventListener("mouseenter",Di),e.addEventListener("mouseleave",Pi)}}}function Di(e){var t=e.currentTarget;if(t instanceof Element){var n=t.closest("task-lists");n instanceof Si&&n.sortable&&!n.disabled&&t.classList.add("hovered")}}function Pi(e){var t=e.currentTarget;t instanceof Element&&t.classList.remove("hovered")}function Hi(e){var t=e.parentElement;return t?t.closest(".contains-task-list"):null}function Ri(e){return Hi(e)===Ni(e)}function Ni(e){var t=Hi(e);return t?Ni(t)||t:null}function Ii(e){var t=e.querySelectorAll(".contains-task-list > .task-list-item"),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;Ri(s)&&Ci(s)}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}qi(e)}function qi(e){var t=!0,n=!1,r=void 0;try{for(var o,i=e.querySelectorAll(".task-list-item")[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.classList.toggle("enabled",!e.disabled)}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}var a=!0,s=!1,u=void 0;try{for(var c,l=e.querySelectorAll(".task-list-item-checkbox")[Symbol.iterator]();!(a=(c=l.next()).done);a=!0){var f=c.value;f instanceof HTMLInputElement&&(f.disabled=e.disabled)}}catch(e){s=!0,u=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw u}}}function Fi(e){var t=e.parentElement;if(!t)throw new Error("parent not found");return Array.from(t.children).filter(function(e){return"OL"===e.nodeName||"UL"===e.nodeName}).indexOf(e)}function Bi(e){var t=e.src,n=e.dst,r=t.list.closest("task-lists");r&&r.dispatchEvent(new CustomEvent("task-lists:move",{bubbles:!0,detail:{src:[Fi(t.list),t.index],dst:[Fi(n.list),n.index]}}))}function zi(e){var t=e.currentTarget;if(t instanceof Element){var n=t.closest(".task-list-item");if(n){var r=n.closest("task-lists");r instanceof Si&&r.sortable&&!r.disabled&&n.setAttribute("draggable","true")}}}function Xi(e){if(!gi){var t=e.currentTarget;if(t instanceof Element){var n=t.closest(".task-list-item");n&&n.setAttribute("draggable","false")}}}function Vi(e){if(e.querySelector(".js-task-list-field")){var t=!0,n=!1,r=void 0;try{for(var o,i=ht(e,"task-lists",Si)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.disabled=!1}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}}function Wi(e,t,n){var r=dt(e,".js-comment-update",HTMLFormElement);!function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=ht(e,"task-lists",Si)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)o.value.disabled=!0}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}(e);var i=r.elements.namedItem("task_list_track");i&&i.remove();var a=r.elements.namedItem("task_list_operation");a&&a.remove();var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name","task_list_track"),s.setAttribute("value",t),r.appendChild(s);var u=document.createElement("input");if(u.setAttribute("type","hidden"),u.setAttribute("name","task_list_operation"),u.setAttribute("value",JSON.stringify(n)),r.appendChild(u),!r.elements.namedItem("task_list_key")){var c=dt(r,".js-task-list-field").getAttribute("name");o(c,"app/assets/modules/github/task-list.js:127");var l=c.split("[")[0],f=document.createElement("input");f.setAttribute("type","hidden"),f.setAttribute("name","task_list_key"),f.setAttribute("value",l),r.appendChild(f)}e.classList.remove("is-comment-stale"),rn(r)}window.customElements.get("task-lists")||(window.TaskListsElement=Si,window.customElements.define("task-lists",Si)),Vn(".js-task-list-container .js-task-list-field",function(e){Vi(ft(e,".js-task-list-container"))}),ge("task-lists:move","task-lists",function(e){o(e instanceof CustomEvent,"app/assets/modules/github/task-list.js:68");var t=e.detail,n=t.src,r=t.dst;Wi(ft(e.currentTarget,".js-task-list-container"),"reordered",{operation:"move",src:n,dst:r})}),ge("task-lists:check","task-lists",function(e){o(e instanceof CustomEvent,"app/assets/modules/github/task-list.js:75");var t=e.detail,n=t.position,r=t.checked;Wi(ft(e.currentTarget,".js-task-list-container"),"checked:"+(r?1:0),{operation:"check",position:n,checked:r})}),ni(".js-task-list-container .js-comment-update",function(){var e=c(regeneratorRuntime.mark(function e(t,n){var r,o,i,a,s,u,c,l,f,d,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=ft(t,".js-task-list-container"),(o=t.elements.namedItem("task_list_track"))&&o.remove(),(i=t.elements.namedItem("task_list_operation"))&&i.remove(),a=void 0,e.prev=6,e.next=9,n.json();case 9:a=e.sent,e.next=17;break;case 12:e.prev=12,e.t0=e.catch(6),s=void 0;try{s=JSON.parse(e.t0.response.text)}catch(e){}s&&s.stale?(u=s.updated_markdown,c=s.updated_html,l=s.version,u&&c&&l&&(f=dt(r,".js-comment-body"),d=dt(r,".js-body-version"),h=dt(r,".js-task-list-field",HTMLTextAreaElement),f.innerHTML=c,h.value=u,r.setAttribute("data-body-version",l),d instanceof HTMLInputElement&&(d.value=l))):window.location.reload();case 17:a&&(i&&a.json.source&&(dt(r,".js-task-list-field",HTMLTextAreaElement).value=a.json.source),Vi(r));case 18:case"end":return e.stop()}},e,this,[[6,12]])}));return function(t,n){return e.apply(this,arguments)}}());var Ui=Object.freeze({enableTaskList:Vi});function Yi(e){return e.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!1}))}var Gi=Object.freeze({getUtf8StringLength:function(e){var t=e.split("‍"),n=0,r=!0,o=!1,i=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;n+=Array.from(u.split(/[\ufe00-\ufe0f]/).join("")).length}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n/t.length},replaceText:function(e,t,n){var r=e.value.substring(0,e.selectionEnd),o=e.value.substring(e.selectionEnd);r=r.replace(t,n),o=o.replace(t,n),e.value=r+o,e.selectionStart=r.length,e.selectionEnd=r.length,Yi(e)},insertText:function(e,t){var n=e.selectionEnd,r=e.value.substring(0,n),o=e.value.substring(n),i=""===e.value||r.match(/\n$/)?"":"\n";e.value=r+i+t+o,e.selectionStart=n+t.length,e.selectionEnd=n+t.length,Yi(e),e.focus()}}),Ki=new WeakMap;function $i(e){var t=Ki.get(e);o(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 Ji(e){var t=Ki.get(e.currentTarget);o(t,"app/assets/modules/github/throttled-input.js:36"),t.keypressed=!0,null!=t.timer&&clearTimeout(t.timer)}function Zi(e){var t=Ki.get(e.currentTarget);o(t,"app/assets/modules/github/throttled-input.js:45"),o(e.currentTarget instanceof HTMLInputElement||e.currentTarget instanceof HTMLTextAreaElement,"app/assets/modules/github/throttled-input.js:46"),t.keypressed=!1,t.inputed&&$i(e.currentTarget)}function Qi(e){var t=Ki.get(e.currentTarget);o(t,"app/assets/modules/github/throttled-input.js:55"),o(e.currentTarget instanceof HTMLInputElement||e.currentTarget instanceof HTMLTextAreaElement,"app/assets/modules/github/throttled-input.js:56"),t.inputed=!0,t.keypressed||$i(e.currentTarget)}var ea=Object.freeze({addThrottledInputEventListener:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ki.set(e,{keypressed:!1,inputed:!1,timer:void 0,listener:t,wait:null!=n.wait?n.wait:100}),e.addEventListener("keydown",Ji),e.addEventListener("keyup",Zi),e.addEventListener("input",Qi)},removeThrottledInputEventListener:function(e,t){e.removeEventListener("keydown",Ji),e.removeEventListener("keyup",Zi),e.removeEventListener("input",Qi);var n=Ki.get(e);n&&(null!=n.timer&&n.listener===t&&clearTimeout(n.timer),Ki.delete(e))},dispatchThrottledInputEvent:function(e){var t=Ki.get(e);t&&t.listener.call(null,e)}});function ta(e,t,n){if(0===t&&0===n)return[0,0];var r=na(e);wr(e,{top:r.top+n,left:r.left+t});var o=na(e);return[o.left-r.left,o.top-r.top]}function na(e){if(e.offsetParent&&e instanceof HTMLElement)return{top:e.scrollTop,left:e.scrollLeft};var t=gr(e);return{top:null!=t?t.pageYOffset:0,left:null!=t?t.pageXOffset:0}}var ra=Object.freeze({default:ta});function oa(e){return new Promise(function(t){if(e===window&&((n=ia)<Yr?self.performance.now()-n:Date.now()-n)>500)requestAnimationFrame(function(){return t()});else{var n,r=ut(function(){e.removeEventListener("scroll",r,{capture:!0,passive:!0}),t()},500);e.addEventListener("scroll",r,{capture:!0,passive:!0}),r()}})}var ia=0;window.addEventListener("scroll",function(e){var t;t=e.timeStamp,ia=!t||t<Yr&&!(t%1)?Date.now():t},{capture:!0,passive:!0});var aa=function(){var e=c(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oa(window);case 2:return e.abrupt("return",ua(sa(),t));case 3:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}();function sa(){if(document.activeElement!==document.body)return document.activeElement;var e=document.querySelectorAll(":hover"),t=e.length;return t?e[t-1]:void 0}function ua(e,t){if(!e)return t();var n=function(e){var t=[];for(;e instanceof HTMLElement;){var n=e.getBoundingClientRect(),r=n.top,o=n.left;t.push({element:e,top:r,left:o}),e=e.parentElement}return t}(e),r=t.call(e),o=function(e){var t=document.documentElement;if(!t)return;var n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;if(t.contains(s.element))return s}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}(n);if(o){e=o.element;var i=o.top,a=o.left,s=e.getBoundingClientRect(),u=s.top;return function(e,t,n){for(var r=kt(e),o=0,i=0;r;){var a=ta(r,t-o,n-i),s=v(a,2),u=s[0];if(i+=s[1],(o+=u)===t&&i===n)break;r=kt(r)}}(e,s.left-a,u-i),r}}var ca=Object.freeze({preserveInteractivePosition:aa,preservingScrollPosition:ua});function la(e,t){return new Promise(function(n,r){e.onload=function(){200===e.status?n(e.responseText):r(new Error("XMLHttpRequest "+e.statusText))},e.onerror=r,e.send(t||null)})}var fa=new WeakMap,da=function(){var e=c(regeneratorRuntime.mark(function e(t){var n,r,o,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!fa.get(t)){e.next=2;break}return e.abrupt("return");case 2:if(n=new XMLHttpRequest,r=t.getAttribute("data-url"),o=t.hasAttribute("data-retain-focus"),null!=r){e.next=7;break}throw new Error("Element must have `data-url` attribute");case 7:return n.open("GET",r),n.setRequestHeader("Accept","text/html"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),fa.set(t,n),e.prev=11,e.next=14,la(n);case 14:if(i=e.sent,!cn(t,o)){e.next=17;break}throw new Error("element had interactions");case 17:return e.abrupt("return",pa(t,i,o));case 20:e.prev=20,e.t0=e.catch(11),"XMLHttpRequest abort"!==e.t0.message&&console.warn("Failed to update content",t,e.t0);case 23:return e.prev=23,fa.delete(t),e.finish(23);case 26:case"end":return e.stop()}},e,this,[[11,20,23,26]])}));return function(t){return e.apply(this,arguments)}}(),ha=function(){var e=c(regeneratorRuntime.mark(function e(t,n){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=fa.get(t))&&r.abort(),e.abrupt("return",pa(t,n));case 3:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}();function pa(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return aa(function(){var r=Ft(document,t.trim()),o=n&&e===e.ownerDocument.activeElement?r.querySelector("*"):null;e.replaceWith(r),o&&o.focus()})}var va=Object.freeze({updateContent:da,replaceContent:ha}),ma=r(function(e){var t;t=function(){if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var e,t,n,r,o,i,a,s,u,c,l,f,d,h,p,v,m,g,b,y,w,E,_={},x=/\s+/g,k=/left|right|inline/,T="Sortable"+(new Date).getTime(),j=window,L=j.document,O=j.parseInt,S=j.setTimeout,A=j.jQuery||j.Zepto,M=j.Polymer,C=!1,D="draggable"in L.createElement("div"),P=!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)&&((E=L.createElement("x")).style.cssText="pointer-events:auto","auto"===E.style.pointerEvents),H=!1,R=Math.abs,N=Math.min,I=[],q=[],F=function(){return!1},B=ie(function(e,t,n){if(n&&t.scroll){var r,o,i,a,s,f,d=n[T],h=t.scrollSensitivity,p=t.scrollSpeed,v=e.clientX,m=e.clientY,g=window.innerWidth,b=window.innerHeight;if(c!==n&&(u=t.scroll,c=n,l=t.scrollFn,!0===u)){u=n;do{if(u.offsetWidth<u.scrollWidth||u.offsetHeight<u.scrollHeight)break}while(u=u.parentNode)}u&&(r=u,o=u.getBoundingClientRect(),i=(R(o.right-v)<=h)-(R(o.left-v)<=h),a=(R(o.bottom-m)<=h)-(R(o.top-m)<=h)),i||a||(a=(b-m<=h)-(m<=h),((i=(g-v<=h)-(v<=h))||a)&&(r=j)),_.vx===i&&_.vy===a&&_.el===r||(_.el=r,_.vx=i,_.vy=a,clearInterval(_.pid),r&&(_.pid=setInterval(function(){if(f=a?a*p:0,s=i?i*p:0,"function"==typeof l)return l.call(d,s,f,e);r===j?j.scrollTo(j.pageXOffset+s,j.pageYOffset+f):(r.scrollTop+=f,r.scrollLeft+=s)},24)))}},30),z=function(e){function t(e,t){return null!=e&&!0!==e||null!=(e=n.name)?"function"==typeof e?e:function(n,r){var o=r.options.group.name;return t?e:e&&(e.join?e.indexOf(o)>-1:o==e)}:F}var n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){C={capture:!1,passive:!1}}}))}catch(e){}function X(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=ae({},t),e[T]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==X.supportPointer};for(var r in n)!(r in t)&&(t[r]=n[r]);for(var o in z(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&D,Y(e,"mousedown",this._onTapStart),Y(e,"touchstart",this._onTapStart),t.supportPointer&&Y(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Y(e,"dragover",this),Y(e,"dragenter",this)),q.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function V(t,n){"clone"!==t.lastPullMode&&(n=!0),o&&o.state!==n&&($(o,"display",n?"none":""),n||o.state&&(t.options.group.revertClone?(i.insertBefore(o,a),t._animate(e,o)):i.insertBefore(o,e)),o.state=n)}function W(e,t,n){if(e){n=n||L;do{if(">*"===t&&e.parentNode===n||oe(e,t))return e}while(e=U(e))}return null}function U(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function Y(e,t,n){e.addEventListener(t,n,C)}function G(e,t,n){e.removeEventListener(t,n,C)}function K(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(x," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(x," ")}}function $(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return L.defaultView&&L.defaultView.getComputedStyle?n=L.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function J(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Z(e,t,n,r,i,a,s,u){e=e||t[T];var c=L.createEvent("Event"),l=e.options,f="on"+n.charAt(0).toUpperCase()+n.substr(1);c.initEvent(n,!0,!0),c.to=i||t,c.from=a||t,c.item=r||t,c.clone=o,c.oldIndex=s,c.newIndex=u,t.dispatchEvent(c),l[f]&&l[f].call(e,c)}function Q(e,t,n,r,o,i,a,s){var u,c,l=e[T],f=l.options.onMove;return(u=L.createEvent("Event")).initEvent("move",!0,!0),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=i||t.getBoundingClientRect(),u.willInsertAfter=s,e.dispatchEvent(u),f&&(c=f.call(l,u,a)),c}function ee(e){e.draggable=!1}function te(){H=!1}function ne(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function re(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||">*"!==t&&!oe(e,t)||n++;return n}function oe(e,t){if(e){var n=(t=t.split(".")).shift().toUpperCase(),r=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==n&&e.nodeName.toUpperCase()!=n||t.length&&((" "+e.className+" ").match(r)||[]).length!=t.length)}return!1}function ie(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,S(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function ae(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function se(e){return S(e,0)}function ue(e){return clearTimeout(e)}return X.prototype={constructor:X,_onTapStart:function(t){var n,r=this,o=this.el,i=this.options,a=i.preventOnFilter,u=t.type,c=t.touches&&t.touches[0],l=(c||t).target,f=t.target.shadowRoot&&t.path&&t.path[0]||l,d=i.filter;if(function(e){I.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&I.push(r)}}(o),!e&&!(/mousedown|pointerdown/.test(u)&&0!==t.button||i.disabled)&&!f.isContentEditable&&(l=W(l,i.draggable,o))&&s!==l){if(n=re(l,i.draggable),"function"==typeof d){if(d.call(this,t,l,this))return Z(r,f,"filter",l,o,o,n),void(a&&t.preventDefault())}else if(d&&(d=d.split(",").some(function(e){if(e=W(f,e.trim(),o))return Z(r,e,"filter",l,o,o,n),!0})))return void(a&&t.preventDefault());i.handle&&!W(f,i.handle,o)||this._prepareDragStart(t,c,l,n)}},_prepareDragStart:function(r,o,u,c){var l,f=this,d=f.el,h=f.options,v=d.ownerDocument;u&&!e&&u.parentNode===d&&(b=r,i=d,e=u,h.handleReplacedDragElement&&(t=u.getAttribute("id")),n=e.parentNode,a=e.nextSibling,s=u,m=h.group,p=c,this._lastX=(o||r).clientX,this._lastY=(o||r).clientY,e.style["will-change"]="all",l=function(){f._disableDelayedDrag(),e.draggable=f.nativeDraggable,K(e,h.chosenClass,!0),f._triggerDragStart(r,o),Z(f,i,"choose",e,i,i,p)},h.ignore.split(",").forEach(function(t){J(e,t.trim(),ee)}),Y(v,"mouseup",f._onDrop),Y(v,"touchend",f._onDrop),Y(v,"touchcancel",f._onDrop),Y(v,"selectstart",f),h.supportPointer&&Y(v,"pointercancel",f._onDrop),h.delay?(Y(v,"mouseup",f._disableDelayedDrag),Y(v,"touchend",f._disableDelayedDrag),Y(v,"touchcancel",f._disableDelayedDrag),Y(v,"mousemove",f._disableDelayedDrag),Y(v,"touchmove",f._disableDelayedDrag),h.supportPointer&&Y(v,"pointermove",f._disableDelayedDrag),f._dragStartTimer=S(l,h.delay)):l())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),G(e,"mouseup",this._disableDelayedDrag),G(e,"touchend",this._disableDelayedDrag),G(e,"touchcancel",this._disableDelayedDrag),G(e,"mousemove",this._disableDelayedDrag),G(e,"touchmove",this._disableDelayedDrag),G(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(t,n){(n=n||("touch"==t.pointerType?t:null))?(b={target:e,clientX:n.clientX,clientY:n.clientY},this._onDragStart(b,"touch")):this.nativeDraggable?(Y(e,"dragend",this),Y(i,"dragstart",this._onDragStart)):this._onDragStart(b,!0);try{L.selection?se(function(){L.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(i&&e){var t=this.options;K(e,t.ghostClass,!0),K(e,t.dragClass,!1),X.active=this,Z(this,i,"start",e,i,i,p)}else this._nulling()},_emulateDragOver:function(){if(y){if(this._lastX===y.clientX&&this._lastY===y.clientY)return;this._lastX=y.clientX,this._lastY=y.clientY,P||$(r,"display","none");var e=L.elementFromPoint(y.clientX,y.clientY),t=e,n=q.length;if(e&&e.shadowRoot&&(t=e=e.shadowRoot.elementFromPoint(y.clientX,y.clientY)),t)do{if(t[T]){for(;n--;)q[n]({clientX:y.clientX,clientY:y.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);P||$(r,"display","")}},_onTouchMove:function(e){if(b){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=i.clientX-b.clientX+o.x,s=i.clientY-b.clientY+o.y,u=e.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!X.active){if(n&&N(R(i.clientX-this._lastX),R(i.clientY-this._lastY))<n)return;this._dragStarted()}this._appendGhost(),w=!0,y=i,$(r,"webkitTransform",u),$(r,"mozTransform",u),$(r,"msTransform",u),$(r,"transform",u),e.preventDefault()}},_appendGhost:function(){if(!r){var t,n=e.getBoundingClientRect(),o=$(e),a=this.options;K(r=e.cloneNode(!0),a.ghostClass,!1),K(r,a.fallbackClass,!0),K(r,a.dragClass,!0),$(r,"top",n.top-O(o.marginTop,10)),$(r,"left",n.left-O(o.marginLeft,10)),$(r,"width",n.width),$(r,"height",n.height),$(r,"opacity","0.8"),$(r,"position","fixed"),$(r,"zIndex","100000"),$(r,"pointerEvents","none"),a.fallbackOnBody&&L.body.appendChild(r)||i.appendChild(r),t=r.getBoundingClientRect(),$(r,"width",2*n.width-t.width),$(r,"height",2*n.height-t.height)}},_onDragStart:function(t,n){var r=t.dataTransfer,o=this.options;this._offUpEvents(),m.checkPull(this,this,e,t),K(e,o.dragClass,!0),n?("touch"===n?(Y(L,"touchmove",this._onTouchMove),Y(L,"touchend",this._onDrop),Y(L,"touchcancel",this._onDrop),o.supportPointer&&(Y(L,"pointermove",this._onTouchMove),Y(L,"pointerup",this._onDrop))):(Y(L,"mousemove",this._onTouchMove),Y(L,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(r&&(r.effectAllowed="move",o.setData&&o.setData.call(this,r,e)),Y(L,"drop",this),this._dragStartId=se(this._dragStarted))},_onDragOver:function(s){var u,c,l,p,v=this.el,b=this.options,y=b.group,E=X.active,_=m===y,x=!1,j=b.sort;if(void 0!==s.preventDefault&&(s.preventDefault(),!b.dragoverBubble&&s.stopPropagation()),!e.animated&&(w=!0,b.handleReplacedDragElement&&!e.parentNode&&t&&K(e=L.getElementById(t)||e,this.options.ghostClass,!0),E&&!b.disabled&&(_?j||(p=!i.contains(e)):g===this||(E.lastPullMode=m.checkPull(this,E,e,s))&&y.checkPut(this,E,e,s))&&(void 0===s.rootEl||s.rootEl===this.el))){if(B(s,b,this.el),H)return;if(u=W(s.target,b.draggable,v),c=e.getBoundingClientRect(),g!==this&&(g=this,x=!0),p)return V(E,!0),n=i,void(o||a?i.insertBefore(e,o||a):j||i.appendChild(e));if(0===v.children.length||v.children[0]===r||v===s.target&&function(e,t){var n=e.lastElementChild.getBoundingClientRect();return t.clientY-(n.top+n.height)>5||t.clientX-(n.left+n.width)>5}(v,s)){if(0!==v.children.length&&v.children[0]!==r&&v===s.target&&(u=v.lastElementChild),u){if(u.animated)return;l=u.getBoundingClientRect()}V(E,_),!1!==Q(i,v,e,c,u,l,s)&&(e.contains(v)||(v.appendChild(e),n=v),this._animate(c,e),u&&this._animate(l,u))}else if(u&&!u.animated&&u!==e&&void 0!==u.parentNode[T]){f!==u&&(f=u,d=$(u),h=$(u.parentNode));var O=(l=u.getBoundingClientRect()).right-l.left,A=l.bottom-l.top,M=k.test(d.cssFloat+d.display)||"flex"==h.display&&0===h["flex-direction"].indexOf("row"),C=u.offsetWidth>e.offsetWidth,D=u.offsetHeight>e.offsetHeight,P=(M?(s.clientX-l.left)/O:(s.clientY-l.top)/A)>.5,R=u.nextElementSibling,N=!1;if(M){var I=e.offsetTop,q=u.offsetTop;N=I===q?u.previousElementSibling===e&&!C||P&&C:u.previousElementSibling===e||e.previousElementSibling===u?(s.clientY-l.top)/A>.5:q>I}else x||(N=R!==e&&!D||P&&D);var F=Q(i,v,e,c,u,l,s,N);!1!==F&&(1!==F&&-1!==F||(N=1===F),H=!0,S(te,30),V(E,_),e.contains(v)||(N&&!R?v.appendChild(e):u.parentNode.insertBefore(e,N?R:u)),n=e.parentNode,this._animate(c,e),this._animate(l,u))}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),$(t,"transition","none"),$(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),t.offsetWidth,$(t,"transition","all "+n+"ms"),$(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=S(function(){$(t,"transition",""),$(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;G(L,"touchmove",this._onTouchMove),G(L,"pointermove",this._onTouchMove),G(e,"mouseup",this._onDrop),G(e,"touchend",this._onDrop),G(e,"pointerup",this._onDrop),G(e,"touchcancel",this._onDrop),G(e,"pointercancel",this._onDrop),G(e,"selectstart",this)},_onDrop:function(t){var s=this.el,u=this.options;clearInterval(this._loopId),clearInterval(_.pid),clearTimeout(this._dragStartTimer),ue(this._cloneId),ue(this._dragStartId),G(L,"mouseover",this),G(L,"mousemove",this._onTouchMove),this.nativeDraggable&&(G(L,"drop",this),G(s,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(w&&(t.preventDefault(),!u.dropBubble&&t.stopPropagation()),r&&r.parentNode&&r.parentNode.removeChild(r),i!==n&&"clone"===X.active.lastPullMode||o&&o.parentNode&&o.parentNode.removeChild(o),e&&(this.nativeDraggable&&G(e,"dragend",this),ee(e),e.style["will-change"]="",K(e,this.options.ghostClass,!1),K(e,this.options.chosenClass,!1),Z(this,i,"unchoose",e,n,i,p),i!==n?(v=re(e,u.draggable))>=0&&(Z(null,n,"add",e,n,i,p,v),Z(this,i,"remove",e,n,i,p,v),Z(null,n,"sort",e,n,i,p,v),Z(this,i,"sort",e,n,i,p,v)):e.nextSibling!==a&&(v=re(e,u.draggable))>=0&&(Z(this,i,"update",e,n,i,p,v),Z(this,i,"sort",e,n,i,p,v)),X.active&&(null!=v&&-1!==v||(v=p),Z(this,i,"end",e,n,i,p,v),this.save()))),this._nulling()},_nulling:function(){i=e=n=r=a=o=s=u=c=b=y=w=v=f=d=g=m=X.active=null,I.forEach(function(e){e.checked=!0}),I.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragover":case"dragenter":e&&(this._onDragOver(t),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.preventDefault()}(t));break;case"mouseover":this._onDrop(t);break;case"selectstart":t.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)W(e=n[r],i.draggable,this.el)&&t.push(e.getAttribute(i.dataIdAttr)||ne(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,r){var o=n.children[r];W(o,this.options.draggable,n)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return W(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];n[e]=t,"group"===e&&z(n)},destroy:function(){var e=this.el;e[T]=null,G(e,"mousedown",this._onTapStart),G(e,"touchstart",this._onTapStart),G(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(G(e,"dragover",this),G(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),q.splice(q.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},Y(L,"touchmove",function(e){X.active&&e.preventDefault()}),X.utils={on:Y,off:G,css:$,find:J,is:function(e,t){return!!W(e,t,e)},extend:ae,throttle:ie,closest:W,toggleClass:K,clone:function(e){return M&&M.dom?M.dom(e).cloneNode(!0):A?A(e).clone(!0)[0]:e.cloneNode(!0)},index:re,nextTick:se,cancelNextTick:ue},X.create=function(e,t){return new X(e,t)},X.version="1.7.0",X},e.exports=t()}),ga=Object.freeze({default:ma,__moduleExports:ma});var ba=new WeakMap;function ya(e,t){var n=new XMLHttpRequest;return n.open("GET",t,!0),n.setRequestHeader("Accept","text/html; fragment"),function(e,t){var n=ba.get(e);n&&n.abort();ba.set(e,t);var r=function(){return ba.delete(e)},o=function(e){return new Promise(function(t,n){e.onload=function(){e.status>=200&&e.status<300?t(e.responseText):n(new Error(e.responseText))},e.onerror=n,e.send()})}(t);return o.then(r,r),o}(e,n)}var wa=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ea=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}}(),_a=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},xa=navigator.userAgent.match(/Macintosh/),ka=function(){function e(t,n,r){var o,i,a;wa(this,e),this.container=t,this.input=n,this.results=r,this.results.hidden=!0,this.input.setAttribute("autocomplete","off"),this.input.setAttribute("spellcheck","false"),this.mouseDown=!1,this.onInputChange=(o=this.onInputChange.bind(this),i=300,a=void 0,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this;clearTimeout(a),a=setTimeout(function(){clearTimeout(a),o.apply(r,t)},i)}),this.onResultsClick=this.onResultsClick.bind(this),this.onResultsMouseDown=this.onResultsMouseDown.bind(this),this.onInputBlur=this.onInputBlur.bind(this),this.onInputFocus=this.onInputFocus.bind(this),this.onKeydown=this.onKeydown.bind(this),this.input.addEventListener("keydown",this.onKeydown),this.input.addEventListener("focus",this.onInputFocus),this.input.addEventListener("blur",this.onInputBlur),this.input.addEventListener("input",this.onInputChange),this.results.addEventListener("mousedown",this.onResultsMouseDown),this.results.addEventListener("click",this.onResultsClick)}return Ea(e,[{key:"destroy",value:function(){this.input.removeEventListener("keydown",this.onKeydown),this.input.removeEventListener("focus",this.onInputFocus),this.input.removeEventListener("blur",this.onInputBlur),this.input.removeEventListener("input",this.onInputChange),this.results.removeEventListener("mousedown",this.onResultsMouseDown),this.results.removeEventListener("click",this.onResultsClick)}},{key:"sibling",value:function(e){var t=Array.from(this.results.querySelectorAll('[role="option"]')),n=this.results.querySelector('[aria-selected="true"]'),r=t.indexOf(n),o=e?t[r+1]:t[r-1],i=e?t[0]:t[t.length-1];return o||i}},{key:"select",value:function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=this.results.querySelectorAll('[aria-selected="true"]')[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-selected")}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}e.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",e.id),function(e,t){(function(e,t){var n=e.scrollTop,r=n+e.clientHeight,o=t.offsetTop,i=o+t.clientHeight;return o>=n&&i<=r})(e,t)||(e.scrollTop=t.offsetTop)}(this.results,e)}},{key:"onKeydown",value:function(e){switch(e.key){case"Escape":this.container.open&&(this.container.open=!1,e.stopPropagation(),e.preventDefault());break;case"ArrowDown":var t=this.sibling(!0);t&&this.select(t),e.preventDefault();break;case"ArrowUp":var n=this.sibling(!1);n&&this.select(n),e.preventDefault();break;case"n":if(xa&&e.ctrlKey){var r=this.sibling(!0);r&&this.select(r),e.preventDefault()}break;case"p":if(xa&&e.ctrlKey){var o=this.sibling(!1);o&&this.select(o),e.preventDefault()}break;case"Tab":var i=this.results.querySelector('[aria-selected="true"]');i&&this.commit(i);break;case"Enter":var a=this.results.querySelector('[aria-selected="true"]');a&&this.container.open&&(this.commit(a),e.preventDefault())}}},{key:"onInputFocus",value:function(){this.fetchResults()}},{key:"onInputBlur",value:function(){this.mouseDown||(this.container.open=!1)}},{key:"commit",value:function(e){if("true"!==e.getAttribute("aria-disabled")){if(e instanceof HTMLAnchorElement)return e.click(),void(this.container.open=!1);var t=e.getAttribute("data-autocomplete-value")||e.textContent;this.container.value=t,this.container.open=!1}}},{key:"onResultsClick",value:function(e){if(e.target instanceof Element){var t=e.target.closest('[role="option"]');t&&this.commit(t)}}},{key:"onResultsMouseDown",value:function(){var e=this;this.mouseDown=!0,this.results.addEventListener("mouseup",function(){return e.mouseDown=!1},{once:!0})}},{key:"onInputChange",value:function(){this.container.removeAttribute("value"),this.fetchResults()}},{key:"identifyOptions",value:function(){var e=0,t=!0,n=!1,r=void 0;try{for(var o,i=this.results.querySelectorAll('[role="option"]:not([id])')[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.id=this.results.id+"-option-"+e++}}catch(e){n=!0,r=e}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}},{key:"fetchResults",value:function(){var e=this,t=this.input.value.trim();if(t){var n=this.container.src;if(n){var r=new URL(n,window.location.href),o=new URLSearchParams(r.search.slice(1));o.append("q",t),r.search=o.toString(),this.container.dispatchEvent(new CustomEvent("loadstart")),ya(this.input,r.toString()).then(function(t){e.results.innerHTML=t,e.identifyOptions();var n=!!e.results.querySelector('[role="option"]');e.container.open=n,e.container.dispatchEvent(new CustomEvent("load")),e.container.dispatchEvent(new CustomEvent("loadend"))}).catch(function(){e.container.dispatchEvent(new CustomEvent("error")),e.container.dispatchEvent(new CustomEvent("loadend"))})}}else this.container.open=!1}},{key:"open",value:function(){this.results.hidden&&(this.results.hidden=!1,this.container.setAttribute("aria-expanded","true"),this.container.dispatchEvent(new CustomEvent("toggle",{detail:{input:this.input,results:this.results}})))}},{key:"close",value:function(){this.results.hidden||(this.results.hidden=!0,this.input.removeAttribute("aria-activedescendant"),this.container.setAttribute("aria-expanded","false"),this.container.dispatchEvent(new CustomEvent("toggle",{detail:{input:this.input,results:this.results}})))}}]),e}();function Ta(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Ta.prototype,HTMLElement.prototype),Object.setPrototypeOf(Ta,HTMLElement);var ja=new WeakMap,La=function(e){function t(){return wa(this,t),_a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}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,Ta),Ea(t,[{key:"connectedCallback",value:function(){var e=this.getAttribute("aria-owns");if(e){var t=this.querySelector("input"),n=document.getElementById(e);t instanceof HTMLInputElement&&n&&(ja.set(this,new ka(this,t,n)),this.setAttribute("role","combobox"),this.setAttribute("aria-haspopup","listbox"),this.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls",e),n.setAttribute("role","listbox"))}}},{key:"disconnectedCallback",value:function(){var e=ja.get(this);e&&(e.destroy(),ja.delete(this))}},{key:"attributeChangedCallback",value:function(e,t,n){if(t!==n){var r=ja.get(this);if(r)switch(e){case"open":null===n?r.close():r.open();break;case"value":null!==n&&(r.input.value=n),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}}},{key:"src",get:function(){return this.getAttribute("src")||""},set:function(e){this.setAttribute("src",e)}},{key:"value",get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}},{key:"open",get:function(){return this.hasAttribute("open")},set:function(e){e?this.setAttribute("open",""):this.removeAttribute("open")}}],[{key:"observedAttributes",get:function(){return["open","value"]}}]),t}();window.customElements.get("auto-complete")||(window.AutocompleteElement=La,window.customElements.define("auto-complete",La));var Oa=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}}();function Sa(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Sa.prototype,HTMLElement.prototype),Object.setPrototypeOf(Sa,HTMLElement);var Aa=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}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,Sa),Oa(t,[{key:"connectedCallback",value:function(){var e=this;this.setAttribute("role","menu");var t=this.parentElement;if(t){var n=t.querySelector("summary");n&&n.setAttribute("aria-haspopup","menu"),t.addEventListener("click",Ha),t.addEventListener("keydown",Ra),t.addEventListener("toggle",function(){if(e.src){var n=e.querySelector("include-fragment");n&&(n.addEventListener("loadend",Ca.bind(null,t)),n.src=e.src)}},{once:!0}),t.addEventListener("toggle",Ma),t.addEventListener("toggle",Ca.bind(null,t))}}},{key:"src",get:function(){return this.getAttribute("src")||""},set:function(e){this.setAttribute("src",e)}}]),t}();function Ma(e){var t=e.currentTarget;if(t instanceof Element&&t.hasAttribute("open")){var n=!0,r=!1,o=void 0;try{for(var i,a=document.querySelectorAll("details[open] > details-menu")[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value.closest("details");s&&s!==t&&!s.contains(t)&&s.removeAttribute("open")}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}}function Ca(e){if(e.open){var t=e.querySelector("[autofocus]");t&&t.focus()}}function Da(e,t){var n=Array.from(e.querySelectorAll('[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])')),r=document.activeElement,o=n.indexOf(r),i=t?n[o+1]:n[o-1],a=t?n[0]:n[n.length-1];return i||a}var Pa=navigator.userAgent.match(/Macintosh/);function Ha(e){var t=e.target;if(t instanceof Element){var n=e.currentTarget;if(n instanceof Element&&t.closest("details")===n){var r=t.closest('[role^="menuitem"]');r&&function(e,t){if("true"===e.getAttribute("aria-disabled"))return;if(!e.dispatchEvent(new CustomEvent("details-menu-select",{bubbles:!0,cancelable:!0})))return;(function(e,t){var n=t.querySelector("[data-menu-button]");if(n){var r=function(e){if(!e)return null;var t=e.hasAttribute("data-menu-button-text")?e:e.querySelector("[data-menu-button-text]");return t?t.getAttribute("data-menu-button-text")||t.textContent:null}(e);if(r)n.textContent=r;else{var o=function(e){if(!e)return null;var t=e.hasAttribute("data-menu-button-contents")?e:e.querySelector("[data-menu-button-contents]");return t?t.innerHTML:null}(e);o&&(n.innerHTML=o)}}})(e,t),function(e,t){if(function(e){var t=e.getAttribute("role");return"menuitemradio"===t||"menuitemcheckbox"===t}(e)){if("menuitemradio"===e.getAttribute("role")){var n=!0,r=!1,o=void 0;try{for(var i,a=t.querySelectorAll('[role="menuitemradio"]')[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;s.setAttribute("aria-checked","false")}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}e.setAttribute("aria-checked","true")}}(e,t),"menuitemcheckbox"!==e.getAttribute("role")&&Na(t);e.dispatchEvent(new CustomEvent("details-menu-selected",{bubbles:!0}))}(r,n)}}}function Ra(e){var t,n=e.currentTarget;if(!n.querySelector("details[open]"))switch(e.key){case"Escape":Na(n),e.preventDefault();break;case"ArrowDown":Da(n,!0).focus(),e.preventDefault();break;case"ArrowUp":Da(n,!1).focus(),e.preventDefault();break;case"n":Pa&&e.ctrlKey&&(Da(n,!0).focus(),e.preventDefault());break;case"p":Pa&&e.ctrlKey&&(Da(n,!1).focus(),e.preventDefault());break;case" ":case"Enter":var r=document.activeElement;r&&("menuitem"===(t=r.getAttribute("role"))||"menuitemcheckbox"===t||"menuitemradio"===t)&&r.closest("details")===n&&(e.preventDefault(),e.stopPropagation(),r.click())}}function Na(e){e.open=!1;var t=e.querySelector("summary");t&&t.focus()}window.customElements.get("details-menu")||(window.DetailsMenuElement=Aa,window.customElements.define("details-menu",Aa));var Ia=/\bWindows NT 6.1\b/.test(navigator.userAgent),qa=/\bWindows NT 6.2\b/.test(navigator.userAgent),Fa=/\bWindows NT 6.3\b/.test(navigator.userAgent),Ba=/\bLinux\b/.test(navigator.userAgent),za=/\bFreeBSD\b/.test(navigator.userAgent);var Xa=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Va=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}}(),Wa=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 Ua(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Ua.prototype,HTMLElement.prototype),Object.setPrototypeOf(Ua,HTMLElement);var Ya=function(e){function t(){return Xa(this,t),Wa(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}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,Ua),Va(t,[{key:"connectedCallback",value:function(){if(null===this.image&&(Ia||qa||Fa||Ba||za)){this.textContent="";var e=function(e){var t=document.createElement("img");return t.className="emoji",t.alt=e.getAttribute("alias")||"",t.height=20,t.width=20,t}(this);e.src=this.getAttribute("fallback-src")||"",this.appendChild(e)}}},{key:"image",get:function(){return this.firstElementChild instanceof HTMLImageElement?this.firstElementChild:null}}]),t}();window.customElements.get("g-emoji")||(window.GEmojiElement=Ya,window.customElements.define("g-emoji",Ya));var Ga=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}}();function Ka(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Ka.prototype,HTMLElement.prototype),Object.setPrototypeOf(Ka,HTMLElement);var $a=document.createElement("template");function Ja(e){var t=e.currentTarget;if(t.dragStartX&&t.dragStartY){var n=Math.min(Math.max(0,t.box.offsetLeft+e.pageX-t.dragStartX),t.image.width-t.box.offsetWidth),r=Math.min(Math.max(0,t.box.offsetTop+e.pageY-t.dragStartY),t.image.height-t.box.offsetHeight);t.box.style.left=n+"px",t.box.style.top=r+"px",rs(t,{x:n,y:r,width:t.box.offsetWidth,height:t.box.offsetHeight})}t.dragStartX=e.pageX,t.dragStartY=e.pageY}function Za(e){var t=e.target.closest("image-crop"),n=t.getBoundingClientRect();es(t,e.pageX-t.startX-n.left-window.pageXOffset,e.pageY-t.startY-n.top-window.pageYOffset)}function Qa(e){var t=e.currentTarget.closest("image-crop");if(e.target.hasAttribute("data-direction")){var n=e.target.getAttribute("data-direction");t.addEventListener("mousemove",Za),["nw","se"].indexOf(n)>=0&&t.classList.add("nwse"),["ne","sw"].indexOf(n)>=0&&t.classList.add("nesw"),t.startX=t.box.offsetLeft+(["se","ne"].indexOf(n)>=0?0:t.box.offsetWidth),t.startY=t.box.offsetTop+(["se","sw"].indexOf(n)>=0?0:t.box.offsetHeight),Za(e)}else t.addEventListener("mousemove",Ja)}function es(e,t,n){var r=Math.max(Math.abs(t),Math.abs(n),e.minWidth);r=Math.min(r,n>0?e.image.height-e.startY:e.startY,t>0?e.image.width-e.startX:e.startX);var o=Math.round(Math.max(0,t>0?e.startX:e.startX-r)),i=Math.round(Math.max(0,n>0?e.startY:e.startY-r));e.box.style.left=o+"px",e.box.style.top=i+"px",e.box.style.width=r+"px",e.box.style.height=r+"px",rs(e,{x:o,y:i,width:r,height:r})}function ts(e){var t=e.currentTarget.closest("image-crop");t.loaded=!0;var n=e.target,r=Math.round(n.clientWidth>n.clientHeight?n.clientHeight:n.clientWidth);t.startX=(n.clientWidth-r)/2,t.startY=(n.clientHeight-r)/2,es(t,r,r)}function ns(e){var t=e.currentTarget;t.dragStartX=t.dragStartY=null,t.classList.remove("nwse","nesw"),t.removeEventListener("mousemove",Za),t.removeEventListener("mousemove",Ja)}function rs(e,t){var n=e.image.naturalWidth/e.image.width;for(var r in t){var o=Math.round(t[r]*n);t[r]=o;var i=e.querySelector("[data-image-crop-input='"+r+"']");i&&(i.value=o)}e.dispatchEvent(new CustomEvent("image-crop-change",{bubbles:!0,detail:t}))}$a.innerHTML='\n  <div class="crop-wrapper">\n    <img width="100%" class="crop-image" alt="">\n    <div class="crop-container">\n      <div data-crop-box class="crop-box">\n        <div class="crop-outline"></div>\n        <div data-direction="nw" class="handle nw"></div>\n        <div data-direction="ne" class="handle ne"></div>\n        <div data-direction="sw" class="handle sw"></div>\n        <div data-direction="se" class="handle se"></div>\n      </div>\n    </div>\n  </div>\n';var os=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.startX=null,e.startY=null,e.minWidth=10,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,Ka),Ga(t,[{key:"connectedCallback",value:function(){this.constructed||(this.constructed=!0,this.appendChild(document.importNode($a.content,!0)),this.image=this.querySelector("img"),this.box=this.querySelector("[data-crop-box]"),this.image.addEventListener("load",ts),this.addEventListener("mouseleave",ns),this.addEventListener("mouseup",ns),this.box.addEventListener("mousedown",Qa),this.src&&(this.image.src=this.src))}},{key:"attributeChangedCallback",value:function(e,t,n){"src"===e&&(this.loaded=!1,this.image&&(this.image.src=n))}},{key:"src",get:function(){return this.getAttribute("src")},set:function(e){e?this.setAttribute("src",e):this.removeAttribute("src")}},{key:"loaded",get:function(){return this.hasAttribute("loaded")},set:function(e){e?this.setAttribute("loaded",""):this.removeAttribute("loaded")}}],[{key:"observedAttributes",get:function(){return["src"]}}]),t}();window.customElements.get("image-crop")||window.customElements.define("image-crop",os);var is=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},as=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}}();function ss(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function us(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 cs(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)}function ls(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(ls.prototype,HTMLElement.prototype),Object.setPrototypeOf(ls,HTMLElement);var fs=new WeakMap,ds=function(e){function t(){ss(this,t);var e,n=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=function(){var e=fs.get(n);e&&Cs(n,e)};return n.addEventListener("keydown",(e=r,function(t){" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),e(t))})),n.addEventListener("click",r),n}return cs(t,ls),as(t,[{key:"connectedCallback",value:function(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}},{key:"click",value:function(){var e=fs.get(this);e&&Cs(this,e)}}]),t}(),hs=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"### "}),e}return cs(t,ds),t}();window.customElements.get("md-header")||(window.MarkdownHeaderButtonElement=hs,window.customElements.define("md-header",hs));var ps=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.setAttribute("hotkey","b"),fs.set(e,{prefix:"**",suffix:"**",trimFirst:!0}),e}return cs(t,ds),t}();window.customElements.get("md-bold")||(window.MarkdownBoldButtonElement=ps,window.customElements.define("md-bold",ps));var vs=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.setAttribute("hotkey","i"),fs.set(e,{prefix:"_",suffix:"_",trimFirst:!0}),e}return cs(t,ds),t}();window.customElements.get("md-italic")||(window.MarkdownItalicButtonElement=vs,window.customElements.define("md-italic",vs));var ms=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"> ",multiline:!0,surroundWithNewlines:!0}),e}return cs(t,ds),t}();window.customElements.get("md-quote")||(window.MarkdownQuoteButtonElement=ms,window.customElements.define("md-quote",ms));var gs=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"`",suffix:"`",blockPrefix:"```",blockSuffix:"```"}),e}return cs(t,ds),t}();window.customElements.get("md-code")||(window.MarkdownCodeButtonElement=gs,window.customElements.define("md-code",gs));var bs=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.setAttribute("hotkey","k"),fs.set(e,{prefix:"[",suffix:"](url)",replaceNext:"url",scanFor:"https?://"}),e}return cs(t,ds),t}();window.customElements.get("md-link")||(window.MarkdownLinkButtonElement=bs,window.customElements.define("md-link",bs));var ys=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"- ",multiline:!0,surroundWithNewlines:!0}),e}return cs(t,ds),t}();window.customElements.get("md-unordered-list")||(window.MarkdownUnorderedListButtonElement=ys,window.customElements.define("md-unordered-list",ys));var ws=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"1. ",multiline:!0,orderedList:!0}),e}return cs(t,ds),t}();window.customElements.get("md-ordered-list")||(window.MarkdownOrderedListButtonElement=ws,window.customElements.define("md-ordered-list",ws));var Es=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.setAttribute("hotkey","L"),fs.set(e,{prefix:"- [ ] ",multiline:!0,surroundWithNewlines:!0}),e}return cs(t,ds),t}();window.customElements.get("md-task-list")||(window.MarkdownTaskListButtonElement=Es,window.customElements.define("md-task-list",Es));var _s=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"@",prefixSpace:!0}),e}return cs(t,ds),t}();window.customElements.get("md-mention")||(window.MarkdownMentionButtonElement=_s,window.customElements.define("md-mention",_s));var xs=function(e){function t(){ss(this,t);var e=us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return fs.set(e,{prefix:"#",prefixSpace:!0}),e}return cs(t,ds),t}();window.customElements.get("md-ref")||(window.MarkdownRefButtonElement=xs,window.customElements.define("md-ref",xs));var ks=navigator.userAgent.match(/Macintosh/)?"Meta":"Control",Ts=function(e){function t(){return ss(this,t),us(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return cs(t,ls),as(t,[{key:"connectedCallback",value:function(){var e=function(e,t){if(t.metaKey&&"Meta"===ks||t.ctrlKey&&"Control"===ks){var n=e.querySelector('[hotkey="'+t.key+'"]');n&&(n.click(),t.preventDefault())}}.bind(null,this);this.field&&(this.field.addEventListener("keydown",e),js.set(this,e))}},{key:"disconnectedCallback",value:function(){var e=js.get(this);e&&this.field&&(this.field.removeEventListener("keydown",e),js.delete(this))}},{key:"field",get:function(){var e=this.getAttribute("for");if(e){var t=document.getElementById(e);return t instanceof HTMLTextAreaElement?t:null}}}]),t}(),js=new WeakMap;function Ls(e){return e.trim().split("\n").length>1}function Os(e,t){return Array(t+1).join(e)}window.customElements.get("markdown-toolbar")||(window.MarkdownToolbarElement=Ts,window.customElements.define("markdown-toolbar",Ts));var Ss=null;function As(e,t){var n=e.value.slice(e.selectionStart,e.selectionEnd),r=void 0;r=t.orderedList?function(e){var t=/^\d+\.\s+/,n=void 0,r=void 0,o=e.value.slice(e.selectionStart,e.selectionEnd),i=o.split("\n");if(i.every(function(e){return t.test(e)}))i=i.map(function(e){return e.replace(t,"")}),o=i.join("\n");else{i=function(){var e=void 0,t=void 0,n=void 0,r=[];for(n=e=0,t=i.length;e<t;n=++e){var o=i[n];r.push(n+1+". "+o)}return r}(),o=i.join("\n");var a=Ms(e),s=a.newlinesToAppend,u=a.newlinesToPrepend;r=e.selectionStart+s.length,n=r+o.length,o=s+o+u}return{text:o,selectionStart:r,selectionEnd:n}}(e):t.multiline&&Ls(n)?function(e,t){var n=t.prefix,r=t.suffix,o=t.surroundWithNewlines,i=e.value.slice(e.selectionStart,e.selectionEnd),a=e.selectionStart,s=e.selectionEnd,u=i.split("\n");if(u.every(function(e){return e.startsWith(n)&&e.endsWith(r)}))i=u.map(function(e){return e.slice(n.length,e.length-r.length)}).join("\n"),s=a+i.length;else if(i=u.map(function(e){return n+e+r}).join("\n"),o){var c=Ms(e),l=c.newlinesToAppend,f=c.newlinesToPrepend;a+=l.length,s=a+i.length,i=l+i+f}return{text:i,selectionStart:a,selectionEnd:s}}(e,t):function(e,t){var n=void 0,r=void 0,o=t.prefix,i=t.suffix,a=t.blockPrefix,s=t.blockSuffix,u=t.replaceNext,c=t.prefixSpace,l=t.scanFor,f=t.surroundWithNewlines,d=e.selectionStart,h=e.selectionEnd,p=e.value.slice(e.selectionStart,e.selectionEnd),v=Ls(p)&&a.length>0?a+"\n":o,m=Ls(p)&&s.length>0?"\n"+s:i;if(c){var g=e.value[e.selectionStart-1];0===e.selectionStart||null==g||g.match(/\s/)||(v=" "+v)}p=function(e,t,n){if(e.selectionStart===e.selectionEnd)e.selectionStart=function(e,t){for(;e[t]&&null!=e[t-1]&&!e[t-1].match(/\s/);)t--;return t}(e.value,e.selectionStart),e.selectionEnd=function(e,t){for(;e[t]&&!e[t].match(/\s/);)t++;return t}(e.value,e.selectionEnd);else{var r=e.selectionStart-t.length,o=e.selectionEnd+n.length,i=e.value.slice(r,e.selectionStart)===t,a=e.value.slice(e.selectionEnd,o)===n;i&&a&&(e.selectionStart=r,e.selectionEnd=o)}return e.value.slice(e.selectionStart,e.selectionEnd)}(e,v,m);var b=e.selectionStart,y=e.selectionEnd,w=u.length>0&&m.indexOf(u)>-1&&p.length>0;if(f){var E=Ms(e);n=E.newlinesToAppend,r=E.newlinesToPrepend,v=n+o,m+=r}if(p.startsWith(v)&&p.endsWith(m)){var _=p.slice(v.length,p.length-m.length);if(d===h){var x=d-v.length;x=Math.max(x,b),x=Math.min(x,b+_.length),b=y=x}else y=b+_.length;return{text:_,selectionStart:b,selectionEnd:y}}if(w){if(l.length>0&&p.match(l)){m=m.replace(u,p);var k=v+m;return b=y=b+v.length,{text:k,selectionStart:b,selectionEnd:y}}var T=v+p+m;return b=b+v.length+p.length+m.indexOf(u),y=b+u.length,{text:T,selectionStart:b,selectionEnd:y}}var j=v+p+m;b=d+v.length,y=h+v.length;var L=p.match(/^\s*|\s*$/g);if(t.trimFirst&&L){var O=L[0]||"",S=L[1]||"";j=O+v+p.trim()+m+S,b+=O.length,y-=S.length}return{text:j,selectionStart:b,selectionEnd:y}}(e,t),function(e,t){var n=t.text,r=t.selectionStart,o=t.selectionEnd,i=e.selectionStart,a=e.value.slice(0,i),s=e.value.slice(e.selectionEnd);if(null===Ss||!0===Ss){e.contentEditable="true";try{Ss=document.execCommand("insertText",!1,n)}catch(e){Ss=!1}e.contentEditable="false"}if(Ss&&!e.value.slice(0,e.selectionStart).endsWith(n)&&(Ss=!1),!Ss){try{document.execCommand("ms-beginUndoUnit")}catch(e){}e.value=a+n+s;try{document.execCommand("ms-endUndoUnit")}catch(e){}e.dispatchEvent(new CustomEvent("input",{bubbles:!0,cancelable:!0}))}null!=r&&null!=o?e.setSelectionRange(r,o):e.setSelectionRange(i,e.selectionEnd)}(e,r)}function Ms(e){var t=e.value.slice(0,e.selectionStart),n=e.value.slice(e.selectionEnd),r=t.match(/\n*$/),o=n.match(/^\n*/),i=r?r[0].length:0,a=o?o[0].length:0,s=void 0,u=void 0;return t.match(/\S/)&&i<2&&(s=Os("\n",2-i)),n.match(/\S/)&&a<2&&(u=Os("\n",2-a)),null==s&&(s=""),null==u&&(u=""),{newlinesToAppend:s,newlinesToPrepend:u}}function Cs(e,t){var n=e.closest("markdown-toolbar");if(n instanceof Ts){var r=is({},{prefix:"",suffix:"",blockPrefix:"",blockSuffix:"",multiline:!1,replaceNext:"",prefixSpace:!1,scanFor:"",surroundWithNewlines:!1,orderedList:!1,trimFirst:!1},t),o=n.field;o&&(o.focus(),As(o,r))}}var Ds=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ps=["January","February","March","April","May","June","July","August","September","October","November","December"];function Hs(e){return("0"+e).slice(-2)}function Rs(e,t){var n=e.getDay(),r=e.getDate(),o=e.getMonth(),i=e.getFullYear(),a=e.getHours(),s=e.getMinutes(),u=e.getSeconds();return t.replace(/%([%aAbBcdeHIlmMpPSwyYZz])/g,function(t){var c=void 0;switch(t[1]){case"%":return"%";case"a":return Ds[n].slice(0,3);case"A":return Ds[n];case"b":return Ps[o].slice(0,3);case"B":return Ps[o];case"c":return e.toString();case"d":return Hs(r);case"e":return r;case"H":return Hs(a);case"I":return Hs(Rs(e,"%l"));case"l":return 0===a||12===a?12:(a+12)%12;case"m":return Hs(o+1);case"M":return Hs(s);case"p":return a>11?"PM":"AM";case"P":return a>11?"pm":"am";case"S":return Hs(u);case"w":return n;case"y":return Hs(i%100);case"Y":return i;case"Z":return(c=e.toString().match(/\((\w+)\)$/))?c[1]:"";case"z":return(c=e.toString().match(/\w([+-]\d\d\d\d) /))?c[1]:""}})}function Ns(e){var t=void 0;return function(){if(t)return t;if("Intl"in window)try{return t=new Intl.DateTimeFormat(void 0,e)}catch(e){if(!(e instanceof RangeError))throw e}}}var Is=null,qs=Ns({day:"numeric",month:"short"});function Fs(){if(null!==Is)return Is;var e=qs();if(e){var t=e.format(new Date(0));return Is=!!t.match(/^\d/)}return!1}var Bs=null,zs=Ns({day:"numeric",month:"short",year:"numeric"});var Xs=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Vs=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}}(),Ws=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)},Us=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 Ys(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Ys.prototype,HTMLElement.prototype),Object.setPrototypeOf(Ys,HTMLElement);var Gs=function(e){function t(){return Xs(this,t),Us(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ws(t,Ys),Vs(t,[{key:"attributeChangedCallback",value:function(e,t,n){if("datetime"===e){var r=Date.parse(n);this._date=isNaN(r)?null:new Date(r)}var o=this.getFormattedTitle();o&&!this.hasAttribute("title")&&this.setAttribute("title",o);var i=this.getFormattedDate();i&&(this.textContent=i)}},{key:"getFormattedTitle",value:function(){if(this._date){var e=Ks();if(e)return e.format(this._date);try{return this._date.toLocaleString()}catch(e){if(e instanceof RangeError)return this._date.toString();throw e}}}}],[{key:"observedAttributes",get:function(){return["datetime","day","format","hour","minute","month","second","title","weekday","year"]}}]),t}(),Ks=Ns({day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),$s=new WeakMap,Js=function(e){function t(){return Xs(this,t),Us(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ws(t,Gs),Vs(t,[{key:"attributeChangedCallback",value:function(e,n,r){"hour"!==e&&"minute"!==e&&"second"!==e&&"time-zone-name"!==e||$s.delete(this),function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attributeChangedCallback",this).call(this,e,n,r)}},{key:"getFormattedDate",value:function(){if(this._date)return((function(e){var t={weekday:{short:"%a",long:"%A"},day:{numeric:"%e","2-digit":"%d"},month:{short:"%b",long:"%B"},year:{numeric:"%Y","2-digit":"%y"}},n=Fs()?"weekday day month year":"weekday month day, year";for(var r in t){var o=t[r][e.getAttribute(r)];n=n.replace(r,o||"")}return n=n.replace(/(\s,)|(,\s$)/,""),Rs(e._date,n).replace(/\s+/," ").trim()}(this)||"")+" "+(function(e){var t={hour:e.getAttribute("hour"),minute:e.getAttribute("minute"),second:e.getAttribute("second"),timeZoneName:e.getAttribute("time-zone-name")};for(var n in t)t[n]||delete t[n];if(0===Object.keys(t).length)return;var r=$s.get(e);r||(r=Ns(t),$s.set(e,r));var o=r();if(o)return o.format(e._date);var i=t.second?"%H:%M:%S":"%H:%M";return Rs(e._date,i)}(this)||"")).trim()}}]),t}();window.customElements.get("local-time")||(window.LocalTimeElement=Js,window.customElements.define("local-time",Js));var Zs=function(){function e(t){Xs(this,e),this.date=t}return Vs(e,[{key:"toString",value:function(){var e=this.timeElapsed();if(e)return e;var t=this.timeAhead();return t||"on "+this.formatDate()}},{key:"timeElapsed",value:function(){var e=(new Date).getTime()-this.date.getTime(),t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24);return e>=0&&o<30?this.timeAgoFromMs(e):null}},{key:"timeAhead",value:function(){var e=this.date.getTime()-(new Date).getTime(),t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24);return e>=0&&o<30?this.timeUntil():null}},{key:"timeAgo",value:function(){var e=(new Date).getTime()-this.date.getTime();return this.timeAgoFromMs(e)}},{key:"timeAgoFromMs",value:function(e){var t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24),i=Math.round(o/30),a=Math.round(i/12);return e<0?"just now":t<10?"just now":t<45?t+" seconds ago":t<90?"a minute ago":n<45?n+" minutes ago":n<90?"an hour ago":r<24?r+" hours ago":r<36?"a day ago":o<30?o+" days ago":o<45?"a month ago":i<12?i+" months ago":i<18?"a year ago":a+" years ago"}},{key:"microTimeAgo",value:function(){var e=(new Date).getTime()-this.date.getTime(),t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24),i=Math.round(o/30),a=Math.round(i/12);return n<1?"1m":n<60?n+"m":r<24?r+"h":o<365?o+"d":a+"y"}},{key:"timeUntil",value:function(){var e=this.date.getTime()-(new Date).getTime();return this.timeUntilFromMs(e)}},{key:"timeUntilFromMs",value:function(e){var t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24),i=Math.round(o/30),a=Math.round(i/12);return i>=18?a+" years from now":i>=12?"a year from now":o>=45?i+" months from now":o>=30?"a month from now":r>=36?o+" days from now":r>=24?"a day from now":n>=90?r+" hours from now":n>=45?"an hour from now":t>=90?n+" minutes from now":t>=45?"a minute from now":t>=10?t+" seconds from now":"just now"}},{key:"microTimeUntil",value:function(){var e=this.date.getTime()-(new Date).getTime(),t=Math.round(e/1e3),n=Math.round(t/60),r=Math.round(n/60),o=Math.round(r/24),i=Math.round(o/30),a=Math.round(i/12);return o>=365?a+"y":r>=24?o+"d":n>=60?r+"h":n>1?n+"m":"1m"}},{key:"formatDate",value:function(){var e,t=Fs()?"%e %b":"%b %e";return e=this.date,(new Date).getUTCFullYear()!==e.getUTCFullYear()&&(t+=function(){if(null!==Bs)return Bs;var e=zs();if(e){var t=e.format(new Date(0));return Bs=!!t.match(/\d,/)}return!0}()?", %Y":" %Y"),Rs(this.date,t)}},{key:"formatTime",value:function(){var e=Qs();return e?e.format(this.date):Rs(this.date,"%l:%M%P")}}]),e}(),Qs=Ns({hour:"numeric",minute:"2-digit"}),eu=function(e){function t(){return Xs(this,t),Us(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ws(t,Gs),Vs(t,[{key:"getFormattedDate",value:function(){if(this._date)return new Zs(this._date).toString()}},{key:"connectedCallback",value:function(){tu.push(this),nu||(ru(),nu=setInterval(ru,6e4))}},{key:"disconnectedCallback",value:function(){var e=tu.indexOf(this);-1!==e&&tu.splice(e,1),tu.length||nu&&(clearInterval(nu),nu=null)}}]),t}(),tu=[],nu=void 0;function ru(){var e,t=void 0,n=void 0;for(n=0,e=tu.length;n<e;n++)(t=tu[n]).textContent=t.getFormattedDate()}window.customElements.get("relative-time")||(window.RelativeTimeElement=eu,window.customElements.define("relative-time",eu));var ou=function(e){function t(){return Xs(this,t),Us(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ws(t,eu),Vs(t,[{key:"getFormattedDate",value:function(){if(this._date)return"micro"===this.getAttribute("format")?new Zs(this._date).microTimeAgo():new Zs(this._date).timeAgo()}}]),t}();window.customElements.get("time-ago")||(window.TimeAgoElement=ou,window.customElements.define("time-ago",ou));var iu=function(e){function t(){return Xs(this,t),Us(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ws(t,eu),Vs(t,[{key:"getFormattedDate",value:function(){if(this._date)return"micro"===this.getAttribute("format")?new Zs(this._date).microTimeUntil():new Zs(this._date).timeUntil()}}]),t}();function au(e,t){if(!uu(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 su(e,t){if(!uu(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),au(e,r),n.removeChild(r)}}}function uu(e,t){var n=navigator.clipboard;return!!n&&(n.writeText(t).then(function(){e.dispatchEvent(new CustomEvent("copy",{bubbles:!0}))}),!0)}window.customElements.get("time-until")||(window.TimeUntilElement=iu,window.customElements.define("time-until",iu));var cu=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},lu=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}}(),fu=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 du(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function hu(e){var t=e.getAttribute("for"),n=e.getAttribute("value");n?su(e,n):t&&function(e,t){var n=e.ownerDocument.getElementById(t);if(!n)return;n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?"hidden"===n.type?su(e,n.value):function(e,t){if(!uu(e,t.value)){t.select(),document.execCommand("copy");var n=getSelection();null!=n&&n.removeAllRanges()}}(e,n):n instanceof HTMLAnchorElement&&n.hasAttribute("href")?su(e,n.href):au(e,n)}(e,t)}function pu(e){var t=e.currentTarget;t instanceof HTMLElement&&hu(t)}function vu(e){if(" "===e.key||"Enter"===e.key){var t=e.currentTarget;t instanceof HTMLElement&&(e.preventDefault(),hu(t))}}function mu(e){e.currentTarget.addEventListener("keydown",vu)}function gu(e){e.currentTarget.removeEventListener("keydown",vu)}Object.setPrototypeOf(du.prototype,HTMLElement.prototype),Object.setPrototypeOf(du,HTMLElement);var bu=function(e){function t(){cu(this,t);var e=fu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.addEventListener("click",pu),e.addEventListener("focus",mu),e.addEventListener("blur",gu),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,du),lu(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=bu,window.customElements.define("clipboard-copy",bu));var yu=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}}();function wu(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(wu.prototype,HTMLElement.prototype),Object.setPrototypeOf(wu,HTMLElement);var Eu="[data-close-dialog]",_u="a, input, button, textarea, select, summary";function xu(e){var t=e.currentTarget;t instanceof Element&&("Escape"===e.key?(t.removeAttribute("open"),e.stopPropagation()):"Tab"===e.key&&function(e){if(!(e.currentTarget instanceof Element))return;var t=e.currentTarget.querySelector("details-dialog");if(!t)return;e.preventDefault();var n=Array.from(t.querySelectorAll(_u)).filter(ku),r=e.shiftKey?-1:1,o=n.filter(function(e){return e.matches(":focus")})[0],i=n.length-1;if(o){var a=n.indexOf(o);if(-1!==a){var s=a+r;s>=0&&(i=s%n.length)}}n[i].focus()}(e))}function ku(e){return!(e.disabled||e.hidden||e.type&&"hidden"===e.type)}function Tu(e){var t=e.currentTarget;if(t instanceof Element){var n=t.querySelector("details-dialog");if(n instanceof Lu)if(t.hasAttribute("open"))document.activeElement&&ju.set(n,{details:t,activeElement:document.activeElement}),function(e){var t=e.querySelector("[autofocus]");t||(t=e,e.setAttribute("tabindex","-1")),t.focus()}(n),t.addEventListener("keydown",xu);else{var r=!0,o=!1,i=void 0;try{for(var a,s=n.querySelectorAll("form")[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;u instanceof HTMLFormElement&&u.reset()}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}var c=function(e,t){var n=ju.get(t);return n&&n.activeElement instanceof HTMLElement?n.activeElement:e.querySelector("summary")}(t,n);c&&c.focus(),t.removeEventListener("keydown",xu)}}}var ju=new WeakMap,Lu=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return ju.set(e,{details:null,activeElement:null}),e.addEventListener("click",function(e){var t=e.target;if(t instanceof Element){var n=t.closest("details");n&&t.closest(Eu)&&n.removeAttribute("open")}}),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,wu),yu(t,null,[{key:"CLOSE_ATTR",get:function(){return"data-close-dialog"}},{key:"CLOSE_SELECTOR",get:function(){return Eu}},{key:"INPUT_SELECTOR",get:function(){return _u}}]),yu(t,[{key:"connectedCallback",value:function(){this.setAttribute("role","dialog");var e=ju.get(this);if(e){var t=this.parentElement;if(t){var n=t.querySelector("summary");n&&n.setAttribute("aria-haspopup","dialog"),t.addEventListener("toggle",Tu),e.details=t}}}},{key:"disconnectedCallback",value:function(){var e=ju.get(this);e&&e.details&&(e.details.removeEventListener("toggle",Tu),e.details=null)}},{key:"toggle",value:function(e){var t=ju.get(this);if(t){var n=t.details;n&&(e?n.setAttribute("open","open"):n.removeAttribute("open"))}}}]),t}();window.customElements.get("details-dialog")||(window.DetailsDialogElement=Lu,window.customElements.define("details-dialog",Lu));var Ou=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Su=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}}(),Au=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)},Mu=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},Cu=function(e){function t(e,n,r){Ou(this,t);var o=Mu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.statusCode=e,o.responseText=n,o.contentType=r,o}return Au(t,e),t}(Error);function Du(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}Object.setPrototypeOf(Du.prototype,HTMLElement.prototype),Object.setPrototypeOf(Du,HTMLElement);var Pu=new WeakMap,Hu=new WeakMap,Ru=function(e){function t(){Ou(this,t);var e,n,r,o=Mu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.boundCheck=(e=o.check.bind(o),n=300,r=void 0,function(){for(var t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];var a=this;clearTimeout(r),r=setTimeout(function(){clearTimeout(r),e.apply(a,o)},n)}),o}return Au(t,Du),Su(t,[{key:"connectedCallback",value:function(){var e=this.querySelector("input");e instanceof HTMLInputElement&&(this.input=e,this.input.addEventListener("change",this.boundCheck),this.input.addEventListener("input",this.boundCheck))}},{key:"disconnectedCallback",value:function(){this.input&&(this.input.removeEventListener("change",this.boundCheck),this.input.addEventListener("input",this.boundCheck))}},{key:"check",value:function(){var e=this;if(!this.src)throw new Error("missing src");if(!this.csrf)throw new Error("missing csrf");var t=new FormData;t.append("authenticity_token",this.csrf),t.append("value",this.input.value);var n=t.entries?[].concat(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)}(t.entries())).sort().toString():null;if(!n||n!==Hu.get(this.input))if(Hu.set(this.input,n),this.input.dispatchEvent(new CustomEvent("autocheck:send",{detail:{body:t},bubbles:!0,cancelable:!0})),this.input.value.trim()){var r=function(){e.dispatchEvent(new CustomEvent("loadend")),e.input.dispatchEvent(new CustomEvent("autocheck:complete",{bubbles:!0,cancelable:!0}))};this.dispatchEvent(new CustomEvent("loadstart")),function(e,t,n){var r=Pu.get(e);r&&r.abort();var o=function(){return Pu.delete(e)},i=new XMLHttpRequest;Pu.set(e,i),i.open("POST",n,!0),i.setRequestHeader("Accept","text/html; fragment");var a=function(e,t){return new Promise(function(n,r){e.onload=function(){e.status>=200&&e.status<300?n(e.responseText):r(new Cu(e.status,e.responseText,e.getResponseHeader("Content-Type")))},e.onerror=function(){r(new Cu(e.status,e.responseText,e.getResponseHeader("Content-Type")))},e.send(t)})}(i,t);return a.then(o,o),a}(this.input,t,this.src).then(function(t){e.dispatchEvent(new CustomEvent("load"));var n=t?t.trim():null;e.input.dispatchEvent(new CustomEvent("autocheck:success",{detail:{warning:n},bubbles:!0,cancelable:!0}))}).catch(function(t){e.dispatchEvent(new CustomEvent("error")),e.input.dispatchEvent(new CustomEvent("autocheck:error",{detail:{message:function(e){if(422===e.statusCode&&e.responseText&&e.contentType.includes("text/html; fragment"))return e.responseText}(t)},bubbles:!0,cancelable:!0}))}).then(r,r)}else this.input.dispatchEvent(new CustomEvent("autocheck:complete",{bubbles:!0,cancelable:!0}))}},{key:"src",get:function(){var e=this.getAttribute("src");if(!e)return"";var t=this.ownerDocument.createElement("a");return t.href=e,t.href},set:function(e){this.setAttribute("src",e)}},{key:"csrf",get:function(){return this.getAttribute("csrf")||""},set:function(e){this.setAttribute("csrf",e)}}]),t}();window.customElements.get("auto-check")||(window.AutoCheckElement=Ru,window.customElements.define("auto-check",Ru));var Nu=new Map,Iu=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ec;l(this,e),this.strings=t,this.values=n,this.type=r,this.partCallback=o}return f(e,[{key:"getHTML",value:function(){for(var e,t,n=this.strings.length-1,r="",o=!0,i=0;i<n;i++){var a=this.strings[i];r+=a;var s=(void 0,void 0,t=(e=a).lastIndexOf(">"),e.indexOf("<",t+1)>-1?e.length:t);r+=(o=s>-1?s<a.length:o)?zu:Bu}return r+=this.strings[n]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),qu=function(e){function t(){return l(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,Iu),f(t,[{key:"getHTML",value:function(){return"<svg>"+d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHTML",this).call(this)+"</svg>"}},{key:"getTemplateElement",value:function(){var e=d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getTemplateElement",this).call(this),n=e.content,r=n.firstChild;return n.removeChild(r),nc(n,r.firstChild),e}}]),t}();function Fu(e){var t=Nu.get(e.type);void 0===t&&(t=new Map,Nu.set(e.type,t));var n=t.get(e.strings);return void 0===n&&(n=new Yu(e,e.getTemplateElement()),t.set(e.strings,n)),n}var Bu="{{lit-"+String(Math.random()).slice(2)+"}}",zu="\x3c!--"+Bu+"--\x3e",Xu=new RegExp(Bu+"|"+zu),Vu=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;var Wu=function e(t,n,r,o,i){l(this,e),this.type=t,this.index=n,this.name=r,this.rawName=o,this.strings=i},Uu=function(e){return-1!==e.index},Yu=function e(t,n){l(this,e),this.parts=[],this.element=n;for(var r=this.element.content,o=document.createTreeWalker(r,133,null,!1),i=-1,a=0,s=[],u=void 0,c=void 0;o.nextNode();){i++,u=c;var f=c=o.currentNode;if(1===f.nodeType){if(!f.hasAttributes())continue;for(var d=f.attributes,h=0,p=0;p<d.length;p++)d[p].value.indexOf(Bu)>=0&&h++;for(;h-- >0;){var v=t.strings[a],m=Vu.exec(v)[1],g=d.getNamedItem(m),b=g.value.split(Xu);this.parts.push(new Wu("attribute",i,g.name,m,b)),f.removeAttribute(g.name),a+=b.length-1}}else if(3===f.nodeType){var y=f.nodeValue;if(y.indexOf(Bu)<0)continue;var w=f.parentNode,E=y.split(Xu),_=E.length-1;a+=_;for(var x=0;x<_;x++)w.insertBefore(""===E[x]?document.createComment(""):document.createTextNode(E[x]),f),this.parts.push(new Wu("node",i++));w.insertBefore(""===E[_]?document.createComment(""):document.createTextNode(E[_]),f),s.push(f)}else if(8===f.nodeType&&f.nodeValue===Bu){var k=f.parentNode,T=f.previousSibling;null===T||T!==u||T.nodeType!==Node.TEXT_NODE?k.insertBefore(document.createComment(""),f):i--,this.parts.push(new Wu("node",i++)),s.push(f),null===f.nextSibling?k.insertBefore(document.createComment(""),f):i--,c=u,a++}}var j=!0,L=!1,O=void 0;try{for(var S,A=s[Symbol.iterator]();!(j=(S=A.next()).done);j=!0){var M=S.value;M.parentNode.removeChild(M)}}catch(e){L=!0,O=e}finally{try{!j&&A.return&&A.return()}finally{if(L)throw O}}},Gu=function(e,t){return Ku(t)?(t=t(e),$u):null===t?void 0:t},Ku=function(e){return"function"==typeof e&&!0===e.__litDirective},$u={},Ju=function(e){return null===e||!("object"===(void 0===e?"undefined":u(e))||"function"==typeof e)},Zu=function(){function e(t,n,r,o){l(this,e),this.instance=t,this.element=n,this.name=r,this.strings=o,this.size=o.length-1,this._previousValues=[]}return f(e,[{key:"_interpolate",value:function(e,t){for(var n=this.strings,r=n.length-1,o="",i=0;i<r;i++){o+=n[i];var a=Gu(this,e[t+i]);if(a&&a!==$u&&(Array.isArray(a)||"string"!=typeof a&&a[Symbol.iterator])){var s=!0,u=!1,c=void 0;try{for(var l,f=a[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){o+=l.value}}catch(e){u=!0,c=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw c}}}else o+=a}return o+n[r]}},{key:"_equalToPreviousValues",value:function(e,t){for(var n=t;n<t+this.size;n++)if(this._previousValues[n]!==e[n]||!Ju(e[n]))return!1;return!0}},{key:"setValue",value:function(e,t){if(!this._equalToPreviousValues(e,t)){var n=this.strings,r=void 0;2===n.length&&""===n[0]&&""===n[1]?(r=Gu(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==$u&&this.element.setAttribute(this.name,r),this._previousValues=e}}}]),e}(),Qu=function(){function e(t,n,r){l(this,e),this.instance=t,this.startNode=n,this.endNode=r,this._previousValue=void 0}return f(e,[{key:"setValue",value:function(e){if((e=Gu(this,e))!==$u)if(Ju(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof Iu?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}},{key:"_insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"_setNode",value:function(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}},{key:"_setText",value:function(e){var t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}},{key:"_setTemplateResult",value:function(e){var t=this.instance._getTemplate(e),n=void 0;this._previousValue&&this._previousValue.template===t?n=this._previousValue:(n=new tc(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(e.values)}},{key:"_setIterable",value:function(t){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);var n=this._previousValue,r=0,o=!0,i=!1,a=void 0;try{for(var s,u=t[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,l=n[r];if(void 0===l){var f=this.startNode;if(r>0)f=n[r-1].endNode=document.createTextNode(""),this._insert(f);l=new e(this.instance,f,this.endNode),n.push(l)}l.setValue(c),r++}}catch(e){i=!0,a=e}finally{try{!o&&u.return&&u.return()}finally{if(i)throw a}}if(0===r)this.clear(),this._previousValue=void 0;else if(r<n.length){var d=n[r-1];n.length=r,this.clear(d.endNode.previousSibling),d.endNode=this.endNode}}},{key:"_setPromise",value:function(e){var t=this;this._previousValue=e,e.then(function(n){t._previousValue===e&&t.setValue(n)})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;rc(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),ec=function(e,t,n){if("attribute"===t.type)return new Zu(e,n,t.name,t.strings);if("node"===t.type)return new Qu(e,n,n.nextSibling);throw new Error("Unknown part type "+t.type)},tc=function(){function e(t,n,r){l(this,e),this._parts=[],this.template=t,this._partCallback=n,this._getTemplate=r}return f(e,[{key:"update",value:function(e){var t=0,n=!0,r=!1,o=void 0;try{for(var i,a=this._parts[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;s?void 0===s.size?(s.setValue(e[t]),t++):(s.setValue(e,t),t+=s.size):t++}}catch(e){r=!0,o=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}}},{key:"_clone",value:function(){var e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0)for(var n=document.createTreeWalker(e,133,null,!1),r=-1,o=0;o<t.length;o++){var i=t[o],a=Uu(i);if(a)for(;r<i.index;)r++,n.nextNode();this._parts.push(a?this._partCallback(this,i,n.currentNode):void 0)}return e}}]),e}(),nc=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t;o!==n;){var i=o.nextSibling;e.insertBefore(o,r),o=i}},rc=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;r!==n;){var o=r.nextSibling;e.removeChild(r),r=o}};return{delegated_events:ye,form_data_entries:Zt,lit_html:Object.freeze({templateCaches:Nu,html:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Iu(e,n,"html")},svg:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new qu(e,n,"svg")},TemplateResult:Iu,SVGTemplateResult:qu,defaultTemplateFactory:Fu,render:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fu,r=n(e),o=t.__templateInstance;if(void 0===o||o.template!==r||o._partCallback!==e.partCallback){o=new tc(r,e.partCallback,n),t.__templateInstance=o;var i=o._clone();o.update(e.values),rc(t,t.firstChild),t.appendChild(i)}else o.update(e.values)},TemplatePart:Wu,isTemplatePartActive:Uu,Template:Yu,getValue:Gu,directive:function(e){return e.__litDirective=!0,e},noChange:$u,directiveValue:$u,AttributePart:Zu,NodePart:Qu,defaultPartCallback:ec,TemplateInstance:tc,reparentNodes:nc,removeNodes:rc}),github__code_editor:st,github__debounce:ct,github__throttle:lt,github__details:Et,github__details_dialog:xt,github__dimensions:Lt,github__document_ready:s,github__eventloop_tasks:Ot,github__failbot:Y,github__feature_detection:Ht,github__fetch:Jt,github__form:sn,github__fragment_target:Pe,github__google_analytics:un,github__has_interactions:dn,github__hash_change:ze,github__history:Ae,github__hotkey:Ve,github__hotkey_map:Zn,github__html_safe:qt,github__inflector:ar,github__inspect:io,github__locale:sr,github__menu:hr,github__metadata:D,github__navigation:Ur,github__node:yr,github__number_helpers:Gr,github__onfocus:Qr,github__parse_html:Bt,github__pjax:Ro,github__pjax__prefetch:uo,github__preserve_position:ca,github__proxy_site_detection:H,github__query_selector:pt,github__radix_trie:vn,github__remote_form:ii,github__remote_submit:tn,github__restrict_tab_behavior:Ke,github__scrollby:ra,github__scrollto:Er,github__select_menu__loading:ui,github__send_beacon:S,github__session_storage:li,github__sliding_promise_queue:no,github__sso:Ko,github__subscription:mr,github__sudo:vi,github__task_list:Ui,github__text:Gi,github__throttled_input:ea,github__timers:Io,github__timezone:At,github__typecast:M,github__updatable_content:va,github__visible:Ue,invariant:o,selector_observer:Wn,___github__sortablejs:ga}});
node-js-beautify-1.11.0+dfsg/test/resources/github-min.js-2-
##############################################
node-js-beautify-1.11.0+dfsg/tools/generate-changelog.sh-2-
node-js-beautify-1.11.0+dfsg/tools/generate-changelog.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/generate-changelog.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/generate-changelog.sh-5-
##############################################
node-js-beautify-1.11.0+dfsg/tools/npm-2-
node-js-beautify-1.11.0+dfsg/tools/npm:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/npm:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/npm:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/npm-6-
##############################################
node-js-beautify-1.11.0+dfsg/tools/python-dev-2-
node-js-beautify-1.11.0+dfsg/tools/python-dev:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/python-dev:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/python-dev:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/python-dev-6-PYTHON_ENV=python-dev
##############################################
node-js-beautify-1.11.0+dfsg/tools/python-rel-2-
node-js-beautify-1.11.0+dfsg/tools/python-rel:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/python-rel:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/python-rel:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/python-rel-6-PYTHON_ENV=python-rel
##############################################
node-js-beautify-1.11.0+dfsg/tools/release-all.sh-2-
node-js-beautify-1.11.0+dfsg/tools/release-all.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/release-all.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/release-all.sh-5-
##############################################
node-js-beautify-1.11.0+dfsg/tools/build.sh-2-
node-js-beautify-1.11.0+dfsg/tools/build.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/tools/build.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/build.sh:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/tools/build.sh-6-
##############################################
node-js-beautify-1.11.0+dfsg/.pc/use-system-libs.patch/tools/build.sh-2-
node-js-beautify-1.11.0+dfsg/.pc/use-system-libs.patch/tools/build.sh:3:REL_SCRIPT_DIR="`dirname \"$0\"`"
node-js-beautify-1.11.0+dfsg/.pc/use-system-libs.patch/tools/build.sh:4:SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
node-js-beautify-1.11.0+dfsg/.pc/use-system-libs.patch/tools/build.sh:5:PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
node-js-beautify-1.11.0+dfsg/.pc/use-system-libs.patch/tools/build.sh-6-